blob: d0998c2abf49449b54180fdbae13da77fa8eec1d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer57d37252006-04-14 03:01:27 +00003# Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
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#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
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 Spencer57d37252006-04-14 03:01:27 +0000428PACKAGE_VERSION='1.8cvs'
429PACKAGE_STRING='llvm 1.8cvs'
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"
John Criswell0389cf72006-06-20 17:44:40 +0000435ac_subdirs_all="$ac_subdirs_all projects/privbracket"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000436ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000442ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
John Criswell7a73b802003-06-30 21:59:07 +0000443# Factoring default headers for most tests.
444ac_includes_default="\
445#include <stdio.h>
446#if HAVE_SYS_TYPES_H
447# include <sys/types.h>
448#endif
449#if HAVE_SYS_STAT_H
450# include <sys/stat.h>
451#endif
452#if STDC_HEADERS
453# include <stdlib.h>
454# include <stddef.h>
455#else
456# if HAVE_STDLIB_H
457# include <stdlib.h>
458# endif
459#endif
460#if HAVE_STRING_H
461# if !STDC_HEADERS && HAVE_MEMORY_H
462# include <memory.h>
463# endif
464# include <string.h>
465#endif
466#if HAVE_STRINGS_H
467# include <strings.h>
468#endif
469#if HAVE_INTTYPES_H
470# include <inttypes.h>
471#else
472# if HAVE_STDINT_H
473# include <stdint.h>
474# endif
475#endif
476#if HAVE_UNISTD_H
477# include <unistd.h>
478#endif"
479
Evan Chengcf9be262006-06-20 22:16:32 +0000480ac_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 CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS 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 GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 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 LLVMGCC_VERSION LLVMGCC_MAJVERS 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 +0000481ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000482
483# Initialize some variables set by options.
484ac_init_help=
485ac_init_version=false
486# The variables have the same names as the options, with
487# dashes changed to underlines.
488cache_file=/dev/null
489exec_prefix=NONE
490no_create=
491no_recursion=
492prefix=NONE
493program_prefix=NONE
494program_suffix=NONE
495program_transform_name=s,x,x,
496silent=
497site=
498srcdir=
499verbose=
500x_includes=NONE
501x_libraries=NONE
502
503# Installation directory options.
504# These are left unexpanded so users can "make install exec_prefix=/foo"
505# and all the variables that are supposed to be based on exec_prefix
506# by default will actually change.
507# Use braces instead of parens because sh, perl, etc. also accept them.
508bindir='${exec_prefix}/bin'
509sbindir='${exec_prefix}/sbin'
510libexecdir='${exec_prefix}/libexec'
511datadir='${prefix}/share'
512sysconfdir='${prefix}/etc'
513sharedstatedir='${prefix}/com'
514localstatedir='${prefix}/var'
515libdir='${exec_prefix}/lib'
516includedir='${prefix}/include'
517oldincludedir='/usr/include'
518infodir='${prefix}/info'
519mandir='${prefix}/man'
520
521ac_prev=
522for ac_option
523do
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
527 ac_prev=
528 continue
529 fi
530
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533 # Accept the important Cygnus configure options, so we can diagnose typos.
534
535 case $ac_option in
536
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 ac_prev=bindir ;;
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 bindir=$ac_optarg ;;
541
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
546
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
553
554 --config-cache | -C)
555 cache_file=config.cache ;;
556
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 ac_prev=datadir ;;
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 | --da=*)
561 datadir=$ac_optarg ;;
562
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
571
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
583 eval "enable_$ac_feature='$ac_optarg'" ;;
584
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
593
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
596 with_gas=yes ;;
597
598 -help | --help | --hel | --he | -h)
599 ac_init_help=long ;;
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
604
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
609
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
616
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 ac_prev=infodir ;;
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
621
622 -libdir | --libdir | --libdi | --libd)
623 ac_prev=libdir ;;
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 libdir=$ac_optarg ;;
626
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
633
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
642
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 ac_prev=mandir ;;
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 mandir=$ac_optarg ;;
647
648 -nfp | --nfp | --nf)
649 # Obsolete; use --without-fp.
650 with_fp=no ;;
651
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
654 no_create=yes ;;
655
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 no_recursion=yes ;;
659
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
668
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 ac_prev=prefix ;;
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 prefix=$ac_optarg ;;
673
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
680
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
687
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
704
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
707 silent=yes ;;
708
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 ac_prev=sbindir ;;
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 | --sbi=* | --sb=*)
713 sbindir=$ac_optarg ;;
714
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
718 | --sha | --sh)
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 | --sha=* | --sh=*)
724 sharedstatedir=$ac_optarg ;;
725
726 -site | --site | --sit)
727 ac_prev=site ;;
728 -site=* | --site=* | --sit=*)
729 site=$ac_optarg ;;
730
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 ac_prev=srcdir ;;
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 srcdir=$ac_optarg ;;
735
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
742
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
747
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 verbose=yes ;;
750
751 -version | --version | --versio | --versi | --vers | -V)
752 ac_init_version=: ;;
753
754 -with-* | --with-*)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 case $ac_option in
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 *) ac_optarg=yes ;;
764 esac
765 eval "with_$ac_package='$ac_optarg'" ;;
766
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
775
776 --x)
777 # Obsolete; use --with-x.
778 with_x=yes ;;
779
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
786
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
793
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
797 ;;
798
799 *=*)
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
807 export $ac_envvar ;;
808
809 *)
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815 ;;
816
817 esac
818done
819
820if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
824fi
825
826# Be sure to have absolute paths.
827for ac_var in exec_prefix prefix
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# Be sure to have absolute paths.
838for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000839 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000840do
841 eval ac_val=$`echo $ac_var`
842 case $ac_val in
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
846 esac
847done
848
849# There might be people who depend on the old broken behavior: `$host'
850# used to hold the argument of --host etc.
851# FIXME: To remove some day.
852build=$build_alias
853host=$host_alias
854target=$target_alias
855
856# FIXME: To remove some day.
857if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
863 cross_compiling=yes
864 fi
865fi
866
867ac_tool_prefix=
868test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870test "$silent" = yes && exec 6>/dev/null
871
872
873# Find the source files, if location was not specified.
874if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000883echo X"$0" |
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
888 s/.*/./; q'`
889 srcdir=$ac_confdir
890 if test ! -r $srcdir/$ac_unique_file; then
891 srcdir=..
892 fi
893else
894 ac_srcdir_defaulted=no
895fi
896if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
900 else
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
903 fi
904fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000905(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000908srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909ac_env_build_alias_set=${build_alias+set}
910ac_env_build_alias_value=$build_alias
911ac_cv_env_build_alias_set=${build_alias+set}
912ac_cv_env_build_alias_value=$build_alias
913ac_env_host_alias_set=${host_alias+set}
914ac_env_host_alias_value=$host_alias
915ac_cv_env_host_alias_set=${host_alias+set}
916ac_cv_env_host_alias_value=$host_alias
917ac_env_target_alias_set=${target_alias+set}
918ac_env_target_alias_value=$target_alias
919ac_cv_env_target_alias_set=${target_alias+set}
920ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000921ac_env_CC_set=${CC+set}
922ac_env_CC_value=$CC
923ac_cv_env_CC_set=${CC+set}
924ac_cv_env_CC_value=$CC
925ac_env_CFLAGS_set=${CFLAGS+set}
926ac_env_CFLAGS_value=$CFLAGS
927ac_cv_env_CFLAGS_set=${CFLAGS+set}
928ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000937ac_env_CPP_set=${CPP+set}
938ac_env_CPP_value=$CPP
939ac_cv_env_CPP_set=${CPP+set}
940ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000941ac_env_CXX_set=${CXX+set}
942ac_env_CXX_value=$CXX
943ac_cv_env_CXX_set=${CXX+set}
944ac_cv_env_CXX_value=$CXX
945ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_env_CXXFLAGS_value=$CXXFLAGS
947ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000949ac_env_CXXCPP_set=${CXXCPP+set}
950ac_env_CXXCPP_value=$CXXCPP
951ac_cv_env_CXXCPP_set=${CXXCPP+set}
952ac_cv_env_CXXCPP_value=$CXXCPP
953ac_env_F77_set=${F77+set}
954ac_env_F77_value=$F77
955ac_cv_env_F77_set=${F77+set}
956ac_cv_env_F77_value=$F77
957ac_env_FFLAGS_set=${FFLAGS+set}
958ac_env_FFLAGS_value=$FFLAGS
959ac_cv_env_FFLAGS_set=${FFLAGS+set}
960ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +0000969\`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE. See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991 cat <<_ACEOF
992Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000996 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018_ACEOF
1019
1020 cat <<\_ACEOF
1021
1022System types:
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1026_ACEOF
1027fi
1028
1029if test -n "$ac_init_help"; then
1030 case $ac_init_help in
Reid Spencer57d37252006-04-14 03:01:27 +00001031 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001032 esac
1033 cat <<\_ACEOF
1034
1035Optional Features:
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001038 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001039 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001040 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001042 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001043 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001044 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001045 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001046 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001047 --enable-shared[=PKGS]
1048 build shared libraries [default=yes]
1049 --enable-static[=PKGS]
1050 build static libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001053 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Optional Packages:
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001058 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1059 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001060 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001061 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-pic try to use only PIC/non-PIC objects [default=use
1064 both]
1065 --with-tags[=TAGS]
1066 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001069 CC C compiler command
1070 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001075 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082Use these variables to override the choices made by `configure' or to help
1083it to find libraries and programs with nonstandard names/locations.
1084
1085Report bugs to <llvmbugs@cs.uiuc.edu>.
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101 ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157esac
John Criswell7a73b802003-06-30 21:59:07 +00001158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001168 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176fi
1177
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180 cat <<\_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +00001181llvm configure 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001183
Reid Spencer2706f8c2004-09-19 23:53:36 +00001184Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001185This configure script is free software; the Free Software Foundation
1186gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001187
John Criswellc0c186d2005-11-08 21:11:33 +00001188Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001189_ACEOF
1190 exit 0
1191fi
1192exec 5>config.log
1193cat >&5 <<_ACEOF
1194This file contains any messages produced by compilers while
1195running configure, to aid debugging if configure makes a mistake.
1196
Reid Spencer57d37252006-04-14 03:01:27 +00001197It was created by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001198generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001199
1200 $ $0 $@
1201
1202_ACEOF
1203{
1204cat <<_ASUNAME
1205## --------- ##
1206## Platform. ##
1207## --------- ##
1208
1209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1217
1218/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1225
1226_ASUNAME
1227
1228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229for as_dir in $PATH
1230do
1231 IFS=$as_save_IFS
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1234done
1235
1236} >&5
1237
1238cat >&5 <<_ACEOF
1239
1240
1241## ----------- ##
1242## Core tests. ##
1243## ----------- ##
1244
1245_ACEOF
1246
1247
1248# Keep a trace of the command line.
1249# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001250# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001251# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001252# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001253ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001254ac_configure_args0=
1255ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001256ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001257ac_must_keep_next=false
1258for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001259do
John Criswell0c38eaf2003-09-10 15:17:25 +00001260 for ac_arg
1261 do
1262 case $ac_arg in
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 continue ;;
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 esac
1270 case $ac_pass in
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272 2)
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001275 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001276 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001277 case $ac_arg in
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 esac
1285 ;;
1286 -* ) ac_must_keep_next=true ;;
1287 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001288 fi
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1291 ac_sep=" "
1292 ;;
1293 esac
1294 done
John Criswell7a73b802003-06-30 21:59:07 +00001295done
John Criswell0c38eaf2003-09-10 15:17:25 +00001296$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297$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 +00001298
1299# When interrupted or exit'd, cleanup temporary files, and complete
1300# config.log. We remove comments because anyway the quotes in there
1301# would cause problems or look ugly.
1302# WARNING: Be sure not to use single quotes in there, as some shells,
1303# such as our DU 5.0 friend, will then `close' the trap.
1304trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1306 {
1307 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001308
John Criswell7a73b802003-06-30 21:59:07 +00001309 cat <<\_ASBOX
1310## ---------------- ##
1311## Cache variables. ##
1312## ---------------- ##
1313_ASBOX
1314 echo
1315 # The following way of writing the cache mishandles newlines in values,
1316{
1317 (set) 2>&1 |
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 *ac_space=\ *)
1320 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001323 ;;
1324 *)
1325 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001327 ;;
1328 esac;
1329}
1330 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001331
1332 cat <<\_ASBOX
1333## ----------------- ##
1334## Output variables. ##
1335## ----------------- ##
1336_ASBOX
1337 echo
1338 for ac_var in $ac_subst_vars
1339 do
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1342 done | sort
1343 echo
1344
1345 if test -n "$ac_subst_files"; then
1346 cat <<\_ASBOX
1347## ------------- ##
1348## Output files. ##
1349## ------------- ##
1350_ASBOX
1351 echo
1352 for ac_var in $ac_subst_files
1353 do
1354 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001355 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001356 done | sort
1357 echo
1358 fi
1359
John Criswell7a73b802003-06-30 21:59:07 +00001360 if test -s confdefs.h; then
1361 cat <<\_ASBOX
1362## ----------- ##
1363## confdefs.h. ##
1364## ----------- ##
1365_ASBOX
1366 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001367 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001368 echo
1369 fi
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1373 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001374 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 exit $exit_status
1377 ' 0
1378for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380done
1381ac_signal=0
1382
1383# confdefs.h avoids OS command line length limits that DEFS can exceed.
1384rm -rf conftest* confdefs.h
1385# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386echo >confdefs.h
1387
1388# Predefined preprocessor variables.
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_NAME "$PACKAGE_NAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_VERSION "$PACKAGE_VERSION"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_STRING "$PACKAGE_STRING"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412_ACEOF
1413
1414
1415# Let the site file select an alternate cache file if it wants to.
1416# Prefer explicitly selected file to automatically selected ones.
1417if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420 else
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 fi
1423fi
1424for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1429 . "$ac_site_file"
1430 fi
1431done
1432
1433if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438echo "$as_me: loading cache $cache_file" >&6;}
1439 case $cache_file in
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1442 esac
1443 fi
1444else
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446echo "$as_me: creating cache $cache_file" >&6;}
1447 >$cache_file
1448fi
1449
1450# Check that the precious variables saved in the cache have kept the same
1451# value.
1452ac_cache_corrupted=false
1453for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1460 set,)
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1464 ,set)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,);;
1469 *)
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001474echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001476echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001477 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001478 fi;;
1479 esac
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1482 case $ac_new_val in
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1486 esac
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490 esac
1491 fi
1492done
1493if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1499fi
1500
1501ac_ext=c
1502ac_cpp='$CPP $CPPFLAGS'
1503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533
Misha Brukman19098e52005-05-12 22:15:34 +00001534LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001535
1536
1537
1538
1539
1540
1541
John Criswell7a73b802003-06-30 21:59:07 +00001542ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001543for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001544 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break
1548 elif test -f $ac_dir/install.sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 break
1552 elif test -f $ac_dir/shtool; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break
1556 fi
1557done
1558if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001561 { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
John Criswell392aaa32003-07-22 19:18:09 +00001567
Reid Spencer2706f8c2004-09-19 23:53:36 +00001568if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001569 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001571echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001573 fi
John Criswell93e1c722003-09-15 17:04:06 +00001574fi
1575
John Criswell33a911a2003-11-25 20:36:46 +00001576for i in `ls ${srcdir}/projects`
1577do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578 if test -d ${srcdir}/projects/${i} ; then
1579 case ${i} in
1580 "CVS") ;;
1581 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/sample"
1584 ;;
1585 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001586
Reid Spencer4d68ba22004-09-07 16:35:45 +00001587subdirs="$subdirs projects/Stacker"
1588 ;;
John Criswell0389cf72006-06-20 17:44:40 +00001589 "privbracket")
1590
1591subdirs="$subdirs projects/privbracket"
1592 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001593 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001594
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595subdirs="$subdirs projects/llvm-test"
1596 ;;
1597 "llvm-reopt")
1598
1599subdirs="$subdirs projects/llvm-reopt"
1600;;
1601 "llvm-gcc")
1602
1603subdirs="$subdirs projects/llvm-gcc"
1604 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001605 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001606
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001607subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 "llvm-tv")
1610
1611subdirs="$subdirs projects/llvm-tv"
1612 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001613 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001614
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001615subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001616 ;;
John Criswell241116f2005-12-19 20:27:24 +00001617 "llvm-kernel")
1618
1619subdirs="$subdirs projects/llvm-kernel"
1620 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001621 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001624 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001625 esac
John Criswell33a911a2003-11-25 20:36:46 +00001626 fi
1627done
John Criswell559a6c12003-09-30 16:31:48 +00001628
John Criswell7a73b802003-06-30 21:59:07 +00001629
1630# Make sure we can run config.sub.
1631$ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636echo "$as_me:$LINENO: checking build system type" >&5
1637echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 ac_cv_build_alias=$build_alias
1642test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653fi
1654echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655echo "${ECHO_T}$ac_cv_build" >&6
1656build=$ac_cv_build
1657build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662echo "$as_me:$LINENO: checking host system type" >&5
1663echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 ac_cv_host_alias=$host_alias
1668test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675fi
1676echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677echo "${ECHO_T}$ac_cv_host" >&6
1678host=$ac_cv_host
1679host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684echo "$as_me:$LINENO: checking target system type" >&5
1685echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686if test "${ac_cv_target+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689 ac_cv_target_alias=$target_alias
1690test "x$ac_cv_target_alias" = "x" &&
1691 ac_cv_target_alias=$ac_cv_host_alias
1692ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1696
1697fi
1698echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699echo "${ECHO_T}$ac_cv_target" >&6
1700target=$ac_cv_target
1701target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706# The aliases save the names the user supplied, while $host etc.
1707# will get canonicalized.
1708test -n "$target_alias" &&
1709 test "$program_prefix$program_suffix$program_transform_name" = \
1710 NONENONEs,x,x, &&
1711 program_prefix=${target_alias}-
1712
Reid Spencer7b3e8512004-12-24 06:29:05 +00001713echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1714echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1715if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001719 *-*-aix*)
1720 llvm_cv_os_type="AIX"
1721 llvm_cv_platform_type="Unix" ;;
1722 *-*-cygwin*)
1723 llvm_cv_os_type="Cygwin"
1724 llvm_cv_platform_type="Unix" ;;
1725 *-*-darwin*)
1726 llvm_cv_os_type="Darwin"
1727 llvm_cv_platform_type="Unix" ;;
1728 *-*-freebsd*)
1729 llvm_cv_os_type="FreeBSD"
1730 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00001731 *-*-openbsd*)
1732 llvm_cv_os_type="OpenBSD"
1733 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001734 *-*-hpux*)
1735 llvm_cv_os_type="HP-UX"
1736 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001737 *-*-interix*)
1738 llvm_cv_os_type="Interix"
1739 llvm_cv_platform_type="Unix" ;;
1740 *-*-linux*)
1741 llvm_cv_os_type="Linux"
1742 llvm_cv_platform_type="Unix" ;;
1743 *-*-solaris*)
1744 llvm_cv_os_type="SunOS"
1745 llvm_cv_platform_type="Unix" ;;
1746 *-*-win32*)
1747 llvm_cv_os_type="Win32"
1748 llvm_cv_platform_type="Win32" ;;
1749 *-*-mingw*)
1750 llvm_cv_os_type="MingW"
1751 llvm_cv_platform_type="Win32" ;;
1752 *)
1753 llvm_cv_os_type="Unknown"
1754 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001755esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001756fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001757echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001759
Reid Spencer7b3e8512004-12-24 06:29:05 +00001760if test "$llvm_cv_os_type" = "Unknown" ; then
1761 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001763 { (exit 1); exit 1; }; }
1764fi
1765
Reid Spencer7b3e8512004-12-24 06:29:05 +00001766OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001767
1768
Reid Spencer7b3e8512004-12-24 06:29:05 +00001769case $llvm_cv_platform_type in
1770 Unix)
1771
1772cat >>confdefs.h <<\_ACEOF
1773#define LLVM_ON_UNIX 1
1774_ACEOF
1775
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001776 LLVM_ON_UNIX=1
1777
1778 LLVM_ON_WIN32=0
1779
Reid Spencer7b3e8512004-12-24 06:29:05 +00001780 ;;
1781 Win32)
1782
1783cat >>confdefs.h <<\_ACEOF
1784#define LLVM_ON_WIN32 1
1785_ACEOF
1786
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001787 LLVM_ON_UNIX=0
1788
1789 LLVM_ON_WIN32=1
1790
Reid Spencer7b3e8512004-12-24 06:29:05 +00001791 ;;
1792esac
1793
Reid Spencer73fb5482004-08-31 14:20:36 +00001794echo "$as_me:$LINENO: checking target architecture" >&5
1795echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001796if test "${llvm_cv_target_arch+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001800 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001801 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001802 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1803 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001804 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001805 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001806 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001807esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808fi
1809echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001811
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001812if test "$llvm_cv_target_arch" = "Unknown" ; then
1813 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1815fi
John Criswell76595452003-07-01 22:07:39 +00001816
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001817ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001818
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001819
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001820ac_ext=c
1821ac_cpp='$CPP $CPPFLAGS'
1822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001825if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847done
1848done
1849
1850fi
1851fi
1852CC=$ac_cv_prog_CC
1853if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855echo "${ECHO_T}$CC" >&6
1856else
1857 echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863 ac_ct_CC=$CC
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887
1888fi
1889fi
1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893echo "${ECHO_T}$ac_ct_CC" >&6
1894else
1895 echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899 CC=$ac_ct_CC
1900else
1901 CC="$ac_cv_prog_CC"
1902fi
1903
1904if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907set dummy ${ac_tool_prefix}cc; ac_word=$2
1908echo "$as_me:$LINENO: checking for $ac_word" >&5
1909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912else
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1915else
1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917for as_dir in $PATH
1918do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="${ac_tool_prefix}cc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 break 2
1926 fi
1927done
1928done
1929
1930fi
1931fi
1932CC=$ac_cv_prog_CC
1933if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935echo "${ECHO_T}$CC" >&6
1936else
1937 echo "$as_me:$LINENO: result: no" >&5
1938echo "${ECHO_T}no" >&6
1939fi
1940
1941fi
1942if test -z "$ac_cv_prog_CC"; then
1943 ac_ct_CC=$CC
1944 # Extract the first word of "cc", so it can be a program name with args.
1945set dummy cc; ac_word=$2
1946echo "$as_me:$LINENO: checking for $ac_word" >&5
1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953else
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="cc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1964 fi
1965done
1966done
1967
1968fi
1969fi
1970ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973echo "${ECHO_T}$ac_ct_CC" >&6
1974else
1975 echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6
1977fi
1978
1979 CC=$ac_ct_CC
1980else
1981 CC="$ac_cv_prog_CC"
1982fi
1983
1984fi
1985if test -z "$CC"; then
1986 # Extract the first word of "cc", so it can be a program name with args.
1987set dummy cc; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1995else
1996 ac_prog_rejected=no
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005 ac_prog_rejected=yes
2006 continue
2007 fi
2008 ac_cv_prog_CC="cc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2011 fi
2012done
2013done
2014
2015if test $ac_prog_rejected = yes; then
2016 # We found a bogon in the path, so make sure we never use it.
2017 set dummy $ac_cv_prog_CC
2018 shift
2019 if test $# != 0; then
2020 # We chose a different compiler from the bogus one.
2021 # However, it has the same basename, so the bogon will be chosen
2022 # first if we set CC to just the basename; use the full file name.
2023 shift
2024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025 fi
2026fi
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034 echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038fi
2039if test -z "$CC"; then
2040 if test -n "$ac_tool_prefix"; then
2041 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002042 do
2043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002047if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 break 2
2063 fi
2064done
2065done
2066
2067fi
2068fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002073else
2074 echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002079 done
2080fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081if test -z "$CC"; then
2082 ac_ct_CC=$CC
2083 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002084do
2085 # Extract the first word of "$ac_prog", so it can be a program name with args.
2086set dummy $ac_prog; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 break 2
2105 fi
2106done
2107done
2108
2109fi
2110fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002115else
2116 echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002121done
John Criswell7a73b802003-06-30 21:59:07 +00002122
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002123 CC=$ac_ct_CC
2124fi
2125
John Criswell7a73b802003-06-30 21:59:07 +00002126fi
2127
2128
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002129test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: no acceptable C compiler found in \$PATH
2132See \`config.log' for more details." >&2;}
2133 { (exit 1); exit 1; }; }
2134
John Criswell7a73b802003-06-30 21:59:07 +00002135# Provide some information about the compiler.
2136echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002137 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002138ac_compiler=`set X $ac_compile; echo $2`
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140 (eval $ac_compiler --version </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145 (eval $ac_compiler -v </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150 (eval $ac_compiler -V </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154
2155cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002156/* confdefs.h. */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
2160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002161
John Criswell7a73b802003-06-30 21:59:07 +00002162int
2163main ()
2164{
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002171ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002172# Try to create an executable without -o first, disregard a.out.
2173# It will help us diagnose broken compilers, and finding out an intuition
2174# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179 (eval $ac_link_default) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # Find the output, starting from the most likely. This scheme is
2184# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185# resort.
2186
2187# Be careful to initialize this variable, since it used to be cached.
2188# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002190# b.out is created by i960 compilers.
2191for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192do
2193 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002194 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002197 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 # This is the source file.
2199 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 # We found the default executable, but exeext='' is most
2202 # certainly right.
2203 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002204 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # FIXME: I believe we export ac_cv_exeext for Libtool,
2207 # but it would be cool to find out if it's true. Does anybody
2208 # maintain Libtool? --akim.
2209 export ac_cv_exeext
2210 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002211 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002212 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002213 esac
2214done
2215else
2216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002217sed 's/^/| /' conftest.$ac_ext >&5
2218
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002219{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002220See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002221echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002222See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002223 { (exit 77); exit 77; }; }
2224fi
2225
2226ac_exeext=$ac_cv_exeext
2227echo "$as_me:$LINENO: result: $ac_file" >&5
2228echo "${ECHO_T}$ac_file" >&6
2229
2230# Check the compiler produces executables we can run. If not, either
2231# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002232echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002234# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235# If not cross compiling, check that we can run a simple program.
2236if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 cross_compiling=no
2244 else
2245 if test "$cross_compiling" = maybe; then
2246 cross_compiling=yes
2247 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002251echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002252If you meant to cross compile, use \`--host'.
2253See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002254 { (exit 1); exit 1; }; }
2255 fi
2256 fi
2257fi
2258echo "$as_me:$LINENO: result: yes" >&5
2259echo "${ECHO_T}yes" >&6
2260
John Criswell0c38eaf2003-09-10 15:17:25 +00002261rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002262ac_clean_files=$ac_clean_files_save
2263# Check the compiler produces executables we can run. If not, either
2264# the compiler is broken, or we cross compile.
2265echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268echo "${ECHO_T}$cross_compiling" >&6
2269
2270echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273 (eval $ac_link) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279# work properly (i.e., refer to `conftest.exe'), while it won't with
2280# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002281for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002283 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002286 export ac_cv_exeext
2287 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002288 * ) break;;
2289 esac
2290done
2291else
John Criswell0c38eaf2003-09-10 15:17:25 +00002292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002296 { (exit 1); exit 1; }; }
2297fi
2298
2299rm -f conftest$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301echo "${ECHO_T}$ac_cv_exeext" >&6
2302
2303rm -f conftest.$ac_ext
2304EXEEXT=$ac_cv_exeext
2305ac_exeext=$EXEEXT
2306echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002312/* confdefs.h. */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002317
John Criswell7a73b802003-06-30 21:59:07 +00002318int
2319main ()
2320{
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326rm -f conftest.o conftest.obj
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 break;;
2337 esac
2338done
2339else
2340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002347 { (exit 1); exit 1; }; }
2348fi
2349
2350rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351fi
2352echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353echo "${ECHO_T}$ac_cv_objext" >&6
2354OBJEXT=$ac_cv_objext
2355ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002367
John Criswell7a73b802003-06-30 21:59:07 +00002368int
2369main ()
2370{
2371#ifndef __GNUC__
2372 choke me
2373#endif
2374
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002381 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_compiler_gnu=yes
2402else
2403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002404sed 's/^/| /' conftest.$ac_ext >&5
2405
John Criswell7a73b802003-06-30 21:59:07 +00002406ac_compiler_gnu=no
2407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410
2411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
2415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
2417CFLAGS="-g"
2418echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002429
John Criswell7a73b802003-06-30 21:59:07 +00002430int
2431main ()
2432{
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002440 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002448 || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002461else
2462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002463sed 's/^/| /' conftest.$ac_ext >&5
2464
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002468fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS=$ac_save_CFLAGS
2473elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2475 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002476 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002478 fi
2479else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480 if test "$GCC" = yes; then
2481 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002482 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002484 fi
2485fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 ac_cv_prog_cc_stdc=no
2492ac_save_CC=$CC
2493cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499#include <stdarg.h>
2500#include <stdio.h>
2501#include <sys/types.h>
2502#include <sys/stat.h>
2503/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504struct buf { int x; };
2505FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506static char *e (p, i)
2507 char **p;
2508 int i;
2509{
2510 return p[i];
2511}
2512static char *f (char * (*g) (char **, int), char **p, ...)
2513{
2514 char *s;
2515 va_list v;
2516 va_start (v,p);
2517 s = g (p, va_arg (v,int));
2518 va_end (v);
2519 return s;
2520}
2521
2522/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530
2531int test (int i, double x);
2532struct s1 {int (*f) (int a);};
2533struct s2 {int (*f) (double a);};
2534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535int argc;
2536char **argv;
2537int
2538main ()
2539{
2540return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545# Don't try gcc -ansi; that turns off useful extensions and
2546# breaks some systems' header files.
2547# AIX -qlanglvl=ansi
2548# Ultrix and OSF/1 -std1
2549# HP-UX 10.20 and later -Ae
2550# HP-UX older versions -Aa -D_HPUX_SOURCE
2551# SVR4 -Xc -D__EXTENSIONS__
2552for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553do
2554 CC="$ac_save_CC $ac_arg"
2555 rm -f conftest.$ac_objext
2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_stdc=$ac_arg
2578break
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583fi
2584rm -f conftest.err conftest.$ac_objext
2585done
2586rm -f conftest.$ac_ext conftest.$ac_objext
2587CC=$ac_save_CC
2588
2589fi
2590
2591case "x$ac_cv_prog_cc_stdc" in
2592 x|xno)
2593 echo "$as_me:$LINENO: result: none needed" >&5
2594echo "${ECHO_T}none needed" >&6 ;;
2595 *)
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598 CC="$CC $ac_cv_prog_cc_stdc" ;;
2599esac
2600
2601# Some people use a C++ compiler to compile C. Since we use `exit',
2602# in C++ we need to declare it. In case someone uses the same compiler
2603# for both compiling C and C++ we need to have the C++ compiler decide
2604# the declaration of exit, since it's the most demanding environment.
2605cat >conftest.$ac_ext <<_ACEOF
2606#ifndef __cplusplus
2607 choke me
2608#endif
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002633 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2638 'void exit (int);'
2639do
2640 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002646$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002648int
2649main ()
2650{
2651exit (42);
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002658 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 :
2679else
2680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002681sed 's/^/| /' conftest.$ac_ext >&5
2682
John Criswell7a73b802003-06-30 21:59:07 +00002683continue
2684fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002686 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002687/* confdefs.h. */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002692$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002693int
2694main ()
2695{
2696exit (42);
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002703 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002704 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002710 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 break
2724else
2725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002726sed 's/^/| /' conftest.$ac_ext >&5
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002730done
2731rm -f conftest*
2732if test -n "$ac_declaration"; then
2733 echo '#ifdef __cplusplus' >>confdefs.h
2734 echo $ac_declaration >>confdefs.h
2735 echo '#endif' >>confdefs.h
2736fi
2737
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738else
2739 echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753if test "${ac_cv_c_bigendian+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 # See if sys/param.h defines the BYTE_ORDER macro.
2757cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h. */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h. */
2763#include <sys/types.h>
2764#include <sys/param.h>
2765
2766int
2767main ()
2768{
2769#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770 bogus endian macros
2771#endif
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 # It does; now see whether it defined to BIG_ENDIAN or not.
2800cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
2806#include <sys/types.h>
2807#include <sys/param.h>
2808
2809int
2810main ()
2811{
2812#if BYTE_ORDER != BIG_ENDIAN
2813 not big endian
2814#endif
2815
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
2821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_c_bigendian=yes
2843else
2844 echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847ac_cv_c_bigendian=no
2848fi
2849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850else
2851 echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854# It does not; compile a test program.
2855if test "$cross_compiling" = yes; then
2856 # try to guess the endianness by grepping values into an object file
2857 ac_cv_c_bigendian=unknown
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2870int
2871main ()
2872{
2873 _ascii (); _ebcdic ();
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901 ac_cv_c_bigendian=yes
2902fi
2903if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904 if test "$ac_cv_c_bigendian" = unknown; then
2905 ac_cv_c_bigendian=no
2906 else
2907 # finding both strings is unlikely to happen, but who knows?
2908 ac_cv_c_bigendian=unknown
2909 fi
2910fi
2911else
2912 echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915fi
2916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917else
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924int
2925main ()
2926{
2927 /* Are we little or big endian? From Harbison&Steele. */
2928 union
2929 {
2930 long l;
2931 char c[sizeof (long)];
2932 } u;
2933 u.l = 1;
2934 exit (u.c[sizeof (long) - 1] == 1);
2935}
2936_ACEOF
2937rm -f conftest$ac_exeext
2938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_c_bigendian=no
2949else
2950 echo "$as_me: program exited with status $ac_status" >&5
2951echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954( exit $ac_status )
2955ac_cv_c_bigendian=yes
2956fi
2957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2958fi
2959fi
2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961fi
2962echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964case $ac_cv_c_bigendian in
2965 yes)
2966 ENDIAN=big
2967 ;;
2968 no)
2969 ENDIAN=little
2970 ;;
2971 *)
2972 { { echo "$as_me:$LINENO: error: unknown endianness
2973presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974echo "$as_me: error: unknown endianness
2975presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976 { (exit 1); exit 1; }; } ;;
2977esac
2978
2979
Reid Spencer4ebf3312006-04-08 01:41:26 +00002980if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00002981 cvsbuild="yes"
2982 optimize="no"
Reid Spencer54d14482006-04-07 16:01:51 +00002983 CVSBUILD=CVSBUILD=1
2984
2985else
2986 cvsbuild="no"
2987 optimize="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00002988fi
2989
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002990
2991# Check whether --enable-optimized or --disable-optimized was given.
2992if test "${enable_optimized+set}" = set; then
2993 enableval="$enable_optimized"
2994
2995else
Reid Spencer54d14482006-04-07 16:01:51 +00002996 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002997fi;
2998if test ${enableval} = "no" ; then
2999 ENABLE_OPTIMIZED=
3000
3001else
3002 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3003
3004fi
3005
Reid Spencer54d14482006-04-07 16:01:51 +00003006# Check whether --enable-assertions or --disable-assertions was given.
3007if test "${enable_assertions+set}" = set; then
3008 enableval="$enable_assertions"
3009
3010else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003011 enableval="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003012fi;
Reid Spencerc28ccd82006-04-09 20:42:14 +00003013if test ${enableval} = "yes" ; then
3014 DISABLE_ASSERTIONS=
Reid Spencer54d14482006-04-07 16:01:51 +00003015
3016else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003017 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
Reid Spencer54d14482006-04-07 16:01:51 +00003018
3019fi
3020
Reid Spencer6e96d812005-12-21 03:31:53 +00003021# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3022if test "${enable_debug_runtime+set}" = set; then
3023 enableval="$enable_debug_runtime"
3024
3025else
3026 enableval=no
3027fi;
3028if test ${enableval} = "no" ; then
3029 DEBUG_RUNTIME=
3030
3031else
3032 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3033
3034fi
3035
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003036# Check whether --enable-jit or --disable-jit was given.
3037if test "${enable_jit+set}" = set; then
3038 enableval="$enable_jit"
3039
3040else
3041 enableval=default
3042fi;
3043if test ${enableval} = "no"
3044then
3045 JIT=
3046
3047else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003048 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003049 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003050 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003051 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003052 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003053 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003055 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003056 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003057 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003058 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003059 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003060 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003061 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003062 ;;
3063 esac
3064fi
3065
Reid Spencer1f319422004-11-29 04:56:35 +00003066# Check whether --enable-doxygen or --disable-doxygen was given.
3067if test "${enable_doxygen+set}" = set; then
3068 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003069
Reid Spencer1f319422004-11-29 04:56:35 +00003070else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003071 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003072fi;
3073case "$enableval" in
3074 yes) ENABLE_DOXYGEN=1
3075 ;;
3076 no) ENABLE_DOXYGEN=0
3077 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003078 default) ENABLE_DOXYGEN=0
3079 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003080 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3081echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3082 { (exit 1); exit 1; }; } ;;
3083esac
3084
Reid Spencer0a262ba2005-08-24 10:07:20 +00003085# Check whether --enable-threads or --disable-threads was given.
3086if test "${enable_threads+set}" = set; then
3087 enableval="$enable_threads"
3088
3089else
3090 enableval=yes
3091fi;
3092case "$enableval" in
3093 yes) ENABLE_THREADS=1
3094 ;;
3095 no) ENABLE_THREADS=0
3096 ;;
3097 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3098echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3099 { (exit 1); exit 1; }; } ;;
3100esac
3101
3102cat >>confdefs.h <<_ACEOF
3103#define ENABLE_THREADS $ENABLE_THREADS
3104_ACEOF
3105
3106
Reid Spencer945de9b2005-04-22 07:27:28 +00003107TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003108# Check whether --enable-targets or --disable-targets was given.
3109if test "${enable_targets+set}" = set; then
3110 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003111
3112else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003113 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003114fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003115case "$enableval" in
Rafael Espindola7bc59bc2006-05-14 22:18:28 +00003116 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003117 host-only)
3118 case "$llvm_cv_target_arch" in
3119 x86) TARGETS_TO_BUILD="X86" ;;
3120 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003121 Sparc) TARGETS_TO_BUILD="Sparc" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003122 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3123 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3124 IA64) TARGETS_TO_BUILD="IA64" ;;
3125 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003126echo "$as_me: error: Can not set target to build" >&2;}
3127 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003128 esac
3129 ;;
3130 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3131 case "$a_target" in
3132 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3133 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003134 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003135 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3136 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3137 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003138 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3139echo "$as_me: error: Unrecognized target $a_target" >&2;}
3140 { (exit 1); exit 1; }; } ;;
3141 esac
3142 done
3143 ;;
3144esac
Reid Spencer675f0922005-04-22 17:06:18 +00003145TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003146TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3147
3148
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003149
Reid Spencer59473af2004-12-25 07:31:29 +00003150# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3151if test "${with_llvmgccdir+set}" = set; then
3152 withval="$with_llvmgccdir"
3153
3154else
3155 withval=default
3156fi;
3157case "$withval" in
3158 default) WITH_LLVMGCCDIR=default ;;
Reid Spencer0fa145d2006-05-21 10:40:20 +00003159 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Reid Spencer59473af2004-12-25 07:31:29 +00003160 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3161echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3162 { (exit 1); exit 1; }; } ;;
3163esac
3164
3165
Reid Spencer945de9b2005-04-22 07:27:28 +00003166
Evan Chengcf9be262006-06-20 22:16:32 +00003167# Check whether --with-extra-options or --without-extra-options was given.
3168if test "${with_extra_options+set}" = set; then
3169 extraopts="$with_extra_options"
3170
3171else
3172 extraopts=default
3173fi;
3174case "$extraopts" in
3175 default) EXTRA_OPTIONS= ;;
3176 *) EXTRA_OPTIONS=$extraopts ;;
3177esac
3178EXTRA_OPTIONS=$EXTRA_OPTIONS
3179
3180
3181
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3188echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3189# On Suns, sometimes $CPP names a directory.
3190if test -n "$CPP" && test -d "$CPP"; then
3191 CPP=
3192fi
3193if test -z "$CPP"; then
3194 if test "${ac_cv_prog_CPP+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197 # Double quotes because CPP needs to be expanded
3198 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3199 do
3200 ac_preproc_ok=false
3201for ac_c_preproc_warn_flag in '' yes
3202do
3203 # Use a header file that comes with gcc, so configuring glibc
3204 # with a fresh cross-compiler works.
3205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3206 # <limits.h> exists even on freestanding compilers.
3207 # On the NeXT, cc -E runs the code through the compiler's parser,
3208 # not just through cpp. "Syntax error" is here to catch this case.
3209 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
3215#ifdef __STDC__
3216# include <limits.h>
3217#else
3218# include <assert.h>
3219#endif
3220 Syntax error
3221_ACEOF
3222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } >/dev/null; then
3230 if test -s conftest.err; then
3231 ac_cpp_err=$ac_c_preproc_warn_flag
3232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3233 else
3234 ac_cpp_err=
3235 fi
3236else
3237 ac_cpp_err=yes
3238fi
3239if test -z "$ac_cpp_err"; then
3240 :
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 # Broken: fails on valid input.
3246continue
3247fi
3248rm -f conftest.err conftest.$ac_ext
3249
3250 # OK, works on sane cases. Now check whether non-existent headers
3251 # can be detected and how.
3252 cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258#include <ac_nonexistent.h>
3259_ACEOF
3260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
3270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271 else
3272 ac_cpp_err=
3273 fi
3274else
3275 ac_cpp_err=yes
3276fi
3277if test -z "$ac_cpp_err"; then
3278 # Broken: success on invalid input.
3279continue
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 # Passes both tests.
3285ac_preproc_ok=:
3286break
3287fi
3288rm -f conftest.err conftest.$ac_ext
3289
3290done
3291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3292rm -f conftest.err conftest.$ac_ext
3293if $ac_preproc_ok; then
3294 break
3295fi
3296
3297 done
3298 ac_cv_prog_CPP=$CPP
3299
3300fi
3301 CPP=$ac_cv_prog_CPP
3302else
3303 ac_cv_prog_CPP=$CPP
3304fi
3305echo "$as_me:$LINENO: result: $CPP" >&5
3306echo "${ECHO_T}$CPP" >&6
3307ac_preproc_ok=false
3308for ac_c_preproc_warn_flag in '' yes
3309do
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#ifdef __STDC__
3323# include <limits.h>
3324#else
3325# include <assert.h>
3326#endif
3327 Syntax error
3328_ACEOF
3329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3340 else
3341 ac_cpp_err=
3342 fi
3343else
3344 ac_cpp_err=yes
3345fi
3346if test -z "$ac_cpp_err"; then
3347 :
3348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 # Broken: fails on valid input.
3353continue
3354fi
3355rm -f conftest.err conftest.$ac_ext
3356
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365#include <ac_nonexistent.h>
3366_ACEOF
3367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378 else
3379 ac_cpp_err=
3380 fi
3381else
3382 ac_cpp_err=yes
3383fi
3384if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3386continue
3387else
3388 echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 # Passes both tests.
3392ac_preproc_ok=:
3393break
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397done
3398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399rm -f conftest.err conftest.$ac_ext
3400if $ac_preproc_ok; then
3401 :
3402else
3403 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3404See \`config.log' for more details." >&5
3405echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3406See \`config.log' for more details." >&2;}
3407 { (exit 1); exit 1; }; }
3408fi
3409
John Criswell7a73b802003-06-30 21:59:07 +00003410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421if test -n "$ac_tool_prefix"; then
3422 for ac_prog in gcc
3423 do
3424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3426echo "$as_me:$LINENO: checking for $ac_word" >&5
3427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428if test "${ac_cv_prog_CC+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445done
3446done
3447
3448fi
3449fi
3450CC=$ac_cv_prog_CC
3451if test -n "$CC"; then
3452 echo "$as_me:$LINENO: result: $CC" >&5
3453echo "${ECHO_T}$CC" >&6
3454else
3455 echo "$as_me:$LINENO: result: no" >&5
3456echo "${ECHO_T}no" >&6
3457fi
3458
3459 test -n "$CC" && break
3460 done
3461fi
3462if test -z "$CC"; then
3463 ac_ct_CC=$CC
3464 for ac_prog in gcc
3465do
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467set dummy $ac_prog; ac_word=$2
3468echo "$as_me:$LINENO: checking for $ac_word" >&5
3469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472else
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475else
3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH
3478do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_CC="$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487done
3488done
3489
3490fi
3491fi
3492ac_ct_CC=$ac_cv_prog_ac_ct_CC
3493if test -n "$ac_ct_CC"; then
3494 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3495echo "${ECHO_T}$ac_ct_CC" >&6
3496else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499fi
3500
3501 test -n "$ac_ct_CC" && break
3502done
3503
3504 CC=$ac_ct_CC
3505fi
3506
3507
John Criswell0c38eaf2003-09-10 15:17:25 +00003508test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3509See \`config.log' for more details." >&5
3510echo "$as_me: error: no acceptable C compiler found in \$PATH
3511See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003512 { (exit 1); exit 1; }; }
3513
3514# Provide some information about the compiler.
3515echo "$as_me:$LINENO:" \
3516 "checking for C compiler version" >&5
3517ac_compiler=`set X $ac_compile; echo $2`
3518{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3519 (eval $ac_compiler --version </dev/null >&5) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3523{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3524 (eval $ac_compiler -v </dev/null >&5) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3528{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3529 (eval $ac_compiler -V </dev/null >&5) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }
3533
3534echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3535echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3536if test "${ac_cv_c_compiler_gnu+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003545
John Criswell7a73b802003-06-30 21:59:07 +00003546int
3547main ()
3548{
3549#ifndef __GNUC__
3550 choke me
3551#endif
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003559 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003566 { ac_try='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_compiler_gnu=yes
3580else
3581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003582sed 's/^/| /' conftest.$ac_ext >&5
3583
John Criswell7a73b802003-06-30 21:59:07 +00003584ac_compiler_gnu=no
3585fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003587ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588
3589fi
3590echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3591echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3592GCC=`test $ac_compiler_gnu = yes && echo yes`
3593ac_test_CFLAGS=${CFLAGS+set}
3594ac_save_CFLAGS=$CFLAGS
3595CFLAGS="-g"
3596echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3597echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3598if test "${ac_cv_prog_cc_g+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003607
John Criswell7a73b802003-06-30 21:59:07 +00003608int
3609main ()
3610{
3611
3612 ;
3613 return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext
3617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003618 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003625 { ac_try='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 ac_cv_prog_cc_g=yes
3639else
3640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003641sed 's/^/| /' conftest.$ac_ext >&5
3642
John Criswell7a73b802003-06-30 21:59:07 +00003643ac_cv_prog_cc_g=no
3644fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003646fi
3647echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3648echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3649if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3653 CFLAGS="-g -O2"
3654 else
3655 CFLAGS="-g"
3656 fi
3657else
3658 if test "$GCC" = yes; then
3659 CFLAGS="-O2"
3660 else
3661 CFLAGS=
3662 fi
3663fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003664echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3665echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3666if test "${ac_cv_prog_cc_stdc+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 ac_cv_prog_cc_stdc=no
3670ac_save_CC=$CC
3671cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
3677#include <stdarg.h>
3678#include <stdio.h>
3679#include <sys/types.h>
3680#include <sys/stat.h>
3681/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3682struct buf { int x; };
3683FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684static char *e (p, i)
3685 char **p;
3686 int i;
3687{
3688 return p[i];
3689}
3690static char *f (char * (*g) (char **, int), char **p, ...)
3691{
3692 char *s;
3693 va_list v;
3694 va_start (v,p);
3695 s = g (p, va_arg (v,int));
3696 va_end (v);
3697 return s;
3698}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003699
3700/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3701 function prototypes and stuff, but not '\xHH' hex character constants.
3702 These don't provoke an error unfortunately, instead are silently treated
3703 as 'x'. The following induces an error, until -std1 is added to get
3704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3705 array size at least. It's necessary to write '\x00'==0 to get something
3706 that's true only with -std1. */
3707int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708
John Criswell0c38eaf2003-09-10 15:17:25 +00003709int test (int i, double x);
3710struct s1 {int (*f) (int a);};
3711struct s2 {int (*f) (double a);};
3712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713int argc;
3714char **argv;
3715int
3716main ()
3717{
3718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723# Don't try gcc -ansi; that turns off useful extensions and
3724# breaks some systems' header files.
3725# AIX -qlanglvl=ansi
3726# Ultrix and OSF/1 -std1
3727# HP-UX 10.20 and later -Ae
3728# HP-UX older versions -Aa -D_HPUX_SOURCE
3729# SVR4 -Xc -D__EXTENSIONS__
3730for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731do
3732 CC="$ac_save_CC $ac_arg"
3733 rm -f conftest.$ac_objext
3734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003735 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_prog_cc_stdc=$ac_arg
3756break
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003762rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003763done
3764rm -f conftest.$ac_ext conftest.$ac_objext
3765CC=$ac_save_CC
3766
3767fi
3768
3769case "x$ac_cv_prog_cc_stdc" in
3770 x|xno)
3771 echo "$as_me:$LINENO: result: none needed" >&5
3772echo "${ECHO_T}none needed" >&6 ;;
3773 *)
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3775echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3776 CC="$CC $ac_cv_prog_cc_stdc" ;;
3777esac
3778
John Criswell7a73b802003-06-30 21:59:07 +00003779# Some people use a C++ compiler to compile C. Since we use `exit',
3780# in C++ we need to declare it. In case someone uses the same compiler
3781# for both compiling C and C++ we need to have the C++ compiler decide
3782# the declaration of exit, since it's the most demanding environment.
3783cat >conftest.$ac_ext <<_ACEOF
3784#ifndef __cplusplus
3785 choke me
3786#endif
3787_ACEOF
3788rm -f conftest.$ac_objext
3789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003790 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003811 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003812 'extern "C" void std::exit (int) throw (); using std::exit;' \
3813 'extern "C" void std::exit (int); using std::exit;' \
3814 'extern "C" void exit (int) throw ();' \
3815 'extern "C" void exit (int);' \
3816 'void exit (int);'
3817do
3818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
3823/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003824$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003825#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003826int
3827main ()
3828{
3829exit (42);
3830 ;
3831 return 0;
3832}
3833_ACEOF
3834rm -f conftest.$ac_objext
3835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003836 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003837 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003843 { ac_try='test -z "$ac_c_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 :
3857else
3858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003859sed 's/^/| /' conftest.$ac_ext >&5
3860
John Criswell7a73b802003-06-30 21:59:07 +00003861continue
3862fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003864 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003865/* confdefs.h. */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003870$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003871int
3872main ()
3873{
3874exit (42);
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879rm -f conftest.$ac_objext
3880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003881 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003882 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003888 { ac_try='test -z "$ac_c_werror_flag"
3889 || test ! -s conftest.err'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 (eval $ac_try) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 break
3902else
3903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003904sed 's/^/| /' conftest.$ac_ext >&5
3905
John Criswell7a73b802003-06-30 21:59:07 +00003906fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003908done
3909rm -f conftest*
3910if test -n "$ac_declaration"; then
3911 echo '#ifdef __cplusplus' >>confdefs.h
3912 echo $ac_declaration >>confdefs.h
3913 echo '#endif' >>confdefs.h
3914fi
3915
3916else
3917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003918sed 's/^/| /' conftest.$ac_ext >&5
3919
John Criswell7a73b802003-06-30 21:59:07 +00003920fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003928ac_ext=cc
3929ac_cpp='$CXXCPP $CPPFLAGS'
3930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3933if test -n "$ac_tool_prefix"; then
3934 for ac_prog in $CCC g++
3935 do
3936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3937set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3938echo "$as_me:$LINENO: checking for $ac_word" >&5
3939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003943 if test -n "$CXX"; then
3944 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003948do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957done
3958done
3959
3960fi
3961fi
3962CXX=$ac_cv_prog_CXX
3963if test -n "$CXX"; then
3964 echo "$as_me:$LINENO: result: $CXX" >&5
3965echo "${ECHO_T}$CXX" >&6
3966else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969fi
3970
3971 test -n "$CXX" && break
3972 done
3973fi
3974if test -z "$CXX"; then
3975 ac_ct_CXX=$CXX
3976 for ac_prog in $CCC g++
3977do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979set dummy $ac_prog; ac_word=$2
3980echo "$as_me:$LINENO: checking for $ac_word" >&5
3981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985 if test -n "$ac_ct_CXX"; then
3986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_CXX="$ac_prog"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999done
4000done
4001
4002fi
4003fi
4004ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4005if test -n "$ac_ct_CXX"; then
4006 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4007echo "${ECHO_T}$ac_ct_CXX" >&6
4008else
4009 echo "$as_me:$LINENO: result: no" >&5
4010echo "${ECHO_T}no" >&6
4011fi
4012
4013 test -n "$ac_ct_CXX" && break
4014done
4015test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4016
4017 CXX=$ac_ct_CXX
4018fi
4019
4020
4021# Provide some information about the compiler.
4022echo "$as_me:$LINENO:" \
4023 "checking for C++ compiler version" >&5
4024ac_compiler=`set X $ac_compile; echo $2`
4025{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4026 (eval $ac_compiler --version </dev/null >&5) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }
4030{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4031 (eval $ac_compiler -v </dev/null >&5) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }
4035{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4036 (eval $ac_compiler -V </dev/null >&5) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }
4040
4041echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4042echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4043if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
John Criswell7a73b802003-06-30 21:59:07 +00004046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004047/* confdefs.h. */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004052
4053int
4054main ()
4055{
4056#ifndef __GNUC__
4057 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004058#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004059
4060 ;
4061 return 0;
4062}
John Criswell7a73b802003-06-30 21:59:07 +00004063_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004064rm -f conftest.$ac_objext
4065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004067 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004068 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_cxx_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_compiler_gnu=yes
4087else
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091ac_compiler_gnu=no
4092fi
4093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4095
4096fi
4097echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4098echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4099GXX=`test $ac_compiler_gnu = yes && echo yes`
4100ac_test_CXXFLAGS=${CXXFLAGS+set}
4101ac_save_CXXFLAGS=$CXXFLAGS
4102CXXFLAGS="-g"
4103echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4104echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4105if test "${ac_cv_prog_cxx_g+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114
4115int
4116main ()
4117{
4118
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123rm -f conftest.$ac_objext
4124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_cxx_werror_flag"
4133 || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 ac_cv_prog_cxx_g=yes
4146else
4147 echo "$as_me: failed program was:" >&5
4148sed 's/^/| /' conftest.$ac_ext >&5
4149
4150ac_cv_prog_cxx_g=no
4151fi
4152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4155echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4156if test "$ac_test_CXXFLAGS" = set; then
4157 CXXFLAGS=$ac_save_CXXFLAGS
4158elif test $ac_cv_prog_cxx_g = yes; then
4159 if test "$GXX" = yes; then
4160 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004161 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004162 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004163 fi
4164else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004165 if test "$GXX" = yes; then
4166 CXXFLAGS="-O2"
4167 else
4168 CXXFLAGS=
4169 fi
John Criswell7a73b802003-06-30 21:59:07 +00004170fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004171for ac_declaration in \
4172 '' \
4173 'extern "C" void std::exit (int) throw (); using std::exit;' \
4174 'extern "C" void std::exit (int); using std::exit;' \
4175 'extern "C" void exit (int) throw ();' \
4176 'extern "C" void exit (int);' \
4177 'void exit (int);'
4178do
4179 cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185$ac_declaration
4186#include <stdlib.h>
4187int
4188main ()
4189{
4190exit (42);
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_cxx_werror_flag"
4205 || test ! -s conftest.err'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004217 :
4218else
4219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004220sed 's/^/| /' conftest.$ac_ext >&5
4221
John Criswell7a73b802003-06-30 21:59:07 +00004222continue
4223fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004225 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004231$ac_declaration
4232int
4233main ()
4234{
4235exit (42);
4236 ;
4237 return 0;
4238}
John Criswell7a73b802003-06-30 21:59:07 +00004239_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004240rm -f conftest.$ac_objext
4241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004243 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004244 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_cxx_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004262 break
John Criswell7a73b802003-06-30 21:59:07 +00004263else
4264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004265sed 's/^/| /' conftest.$ac_ext >&5
4266
John Criswell7a73b802003-06-30 21:59:07 +00004267fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004269done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004270rm -f conftest*
4271if test -n "$ac_declaration"; then
4272 echo '#ifdef __cplusplus' >>confdefs.h
4273 echo $ac_declaration >>confdefs.h
4274 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004275fi
4276
4277ac_ext=c
4278ac_cpp='$CPP $CPPFLAGS'
4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
John Criswell7a73b802003-06-30 21:59:07 +00004283echo "$as_me:$LINENO: checking " >&5
4284echo $ECHO_N "checking ... $ECHO_C" >&6
4285if test "${ac_cv_has_flex+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288 for ac_prog in flex lex
4289do
4290 # Extract the first word of "$ac_prog", so it can be a program name with args.
4291set dummy $ac_prog; ac_word=$2
4292echo "$as_me:$LINENO: checking for $ac_word" >&5
4293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294if test "${ac_cv_prog_LEX+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297 if test -n "$LEX"; then
4298 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_LEX="$ac_prog"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311done
4312done
4313
4314fi
4315fi
4316LEX=$ac_cv_prog_LEX
4317if test -n "$LEX"; then
4318 echo "$as_me:$LINENO: result: $LEX" >&5
4319echo "${ECHO_T}$LEX" >&6
4320else
4321 echo "$as_me:$LINENO: result: no" >&5
4322echo "${ECHO_T}no" >&6
4323fi
4324
4325 test -n "$LEX" && break
4326done
4327test -n "$LEX" || LEX=":"
4328
4329if test -z "$LEXLIB"
4330then
4331 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4332echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4333if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 ac_check_lib_save_LIBS=$LIBS
4337LIBS="-lfl $LIBS"
4338cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004344
4345/* Override any gcc2 internal prototype to avoid an error. */
4346#ifdef __cplusplus
4347extern "C"
4348#endif
4349/* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4351char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004352int
4353main ()
4354{
4355yywrap ();
4356 ;
4357 return 0;
4358}
4359_ACEOF
4360rm -f conftest.$ac_objext conftest$ac_exeext
4361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004362 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_lib_fl_yywrap=yes
4383else
4384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004385sed 's/^/| /' conftest.$ac_ext >&5
4386
John Criswell7a73b802003-06-30 21:59:07 +00004387ac_cv_lib_fl_yywrap=no
4388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004389rm -f conftest.err conftest.$ac_objext \
4390 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004391LIBS=$ac_check_lib_save_LIBS
4392fi
4393echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4394echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4395if test $ac_cv_lib_fl_yywrap = yes; then
4396 LEXLIB="-lfl"
4397else
4398 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4399echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4400if test "${ac_cv_lib_l_yywrap+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 ac_check_lib_save_LIBS=$LIBS
4404LIBS="-ll $LIBS"
4405cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004406/* confdefs.h. */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004411
4412/* Override any gcc2 internal prototype to avoid an error. */
4413#ifdef __cplusplus
4414extern "C"
4415#endif
4416/* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4418char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004419int
4420main ()
4421{
4422yywrap ();
4423 ;
4424 return 0;
4425}
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_lib_l_yywrap=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 +00004454ac_cv_lib_l_yywrap=no
4455fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004456rm -f conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004458LIBS=$ac_check_lib_save_LIBS
4459fi
4460echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4461echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4462if test $ac_cv_lib_l_yywrap = yes; then
4463 LEXLIB="-ll"
4464fi
4465
4466fi
4467
4468fi
4469
4470if test "x$LEX" != "x:"; then
4471 echo "$as_me:$LINENO: checking lex output file root" >&5
4472echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4473if test "${ac_cv_prog_lex_root+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476 # The minimal lex program is just a single line: %%. But some broken lexes
4477# (Solaris, I think it was) want two %% lines, so accommodate them.
4478cat >conftest.l <<_ACEOF
4479%%
4480%%
4481_ACEOF
4482{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4483 (eval $LEX conftest.l) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }
4487if test -f lex.yy.c; then
4488 ac_cv_prog_lex_root=lex.yy
4489elif test -f lexyy.c; then
4490 ac_cv_prog_lex_root=lexyy
4491else
4492 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4493echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4494 { (exit 1); exit 1; }; }
4495fi
4496fi
4497echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4498echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4499rm -f conftest.l
4500LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4501
4502echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4503echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4504if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 # POSIX says lex can declare yytext either as a pointer or an array; the
4508# default is implementation-dependent. Figure out which it is, since
4509# not all implementations provide the %pointer and %array declarations.
4510ac_cv_prog_lex_yytext_pointer=no
4511echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4512ac_save_LIBS=$LIBS
4513LIBS="$LIBS $LEXLIB"
4514cat >conftest.$ac_ext <<_ACEOF
4515`cat $LEX_OUTPUT_ROOT.c`
4516_ACEOF
4517rm -f conftest.$ac_objext conftest$ac_exeext
4518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004519 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_cv_prog_lex_yytext_pointer=yes
4540else
4541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004542sed 's/^/| /' conftest.$ac_ext >&5
4543
John Criswell7a73b802003-06-30 21:59:07 +00004544fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004545rm -f conftest.err conftest.$ac_objext \
4546 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004547LIBS=$ac_save_LIBS
4548rm -f "${LEX_OUTPUT_ROOT}.c"
4549
4550fi
4551echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4552echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4553if test $ac_cv_prog_lex_yytext_pointer = yes; then
4554
4555cat >>confdefs.h <<\_ACEOF
4556#define YYTEXT_POINTER 1
4557_ACEOF
4558
4559fi
4560
4561fi
4562
4563fi
4564echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4565echo "${ECHO_T}$ac_cv_has_flex" >&6
4566if test "$LEX" != "flex"; then
4567 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4568echo "$as_me: error: flex not found but required" >&2;}
4569 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004570else
4571 FLEX=flex
4572
John Criswell7a73b802003-06-30 21:59:07 +00004573fi
4574
4575echo "$as_me:$LINENO: checking " >&5
4576echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004577if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 for ac_prog in 'bison -y' byacc
4581do
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583set dummy $ac_prog; ac_word=$2
4584echo "$as_me:$LINENO: checking for $ac_word" >&5
4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586if test "${ac_cv_prog_YACC+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589 if test -n "$YACC"; then
4590 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4591else
4592as_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_prog_YACC="$ac_prog"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605
4606fi
4607fi
4608YACC=$ac_cv_prog_YACC
4609if test -n "$YACC"; then
4610 echo "$as_me:$LINENO: result: $YACC" >&5
4611echo "${ECHO_T}$YACC" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617 test -n "$YACC" && break
4618done
4619test -n "$YACC" || YACC="yacc"
4620
John Criswell7a73b802003-06-30 21:59:07 +00004621fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004622echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4623echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004624if test "$YACC" != "bison -y"; then
4625 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4626echo "$as_me: error: bison not found but required" >&2;}
4627 { (exit 1); exit 1; }; }
4628else
Brian Gaeke12810632004-01-13 06:52:10 +00004629 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004630
4631fi
4632
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004633echo "$as_me:$LINENO: checking for GNU make" >&5
4634echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4635if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004638 llvm_cv_gnu_make_command=''
4639 for a in "$MAKE" make gmake gnumake ; do
4640 if test -z "$a" ; then continue ; fi ;
4641 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4642 then
4643 llvm_cv_gnu_make_command=$a ;
4644 break;
John Criswell47fdd832003-07-14 16:52:07 +00004645 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004646 done
John Criswell7a73b802003-06-30 21:59:07 +00004647fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004648echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4649echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4650 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4651 ifGNUmake='' ;
4652 else
4653 ifGNUmake='#' ;
4654 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4655echo "${ECHO_T}\"Not found\"" >&6;
4656 fi
John Criswell7a73b802003-06-30 21:59:07 +00004657
John Criswell7a73b802003-06-30 21:59:07 +00004658
4659echo "$as_me:$LINENO: checking whether ln -s works" >&5
4660echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4661LN_S=$as_ln_s
4662if test "$LN_S" = "ln -s"; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664echo "${ECHO_T}yes" >&6
4665else
4666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4667echo "${ECHO_T}no, using $LN_S" >&6
4668fi
4669
Reid Spencer8a2d4712004-12-16 17:48:14 +00004670# Extract the first word of "cmp", so it can be a program name with args.
4671set dummy cmp; ac_word=$2
4672echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674if test "${ac_cv_path_CMP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 case $CMP in
4678 [\\/]* | ?:[\\/]*)
4679 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4680 ;;
4681 *)
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694done
4695
4696 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4697 ;;
4698esac
4699fi
4700CMP=$ac_cv_path_CMP
4701
4702if test -n "$CMP"; then
4703 echo "$as_me:$LINENO: result: $CMP" >&5
4704echo "${ECHO_T}$CMP" >&6
4705else
4706 echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6
4708fi
4709
4710# Extract the first word of "cp", so it can be a program name with args.
4711set dummy cp; ac_word=$2
4712echo "$as_me:$LINENO: checking for $ac_word" >&5
4713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714if test "${ac_cv_path_CP+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 case $CP in
4718 [\\/]* | ?:[\\/]*)
4719 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4720 ;;
4721 *)
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734done
4735
4736 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4737 ;;
4738esac
4739fi
4740CP=$ac_cv_path_CP
4741
4742if test -n "$CP"; then
4743 echo "$as_me:$LINENO: result: $CP" >&5
4744echo "${ECHO_T}$CP" >&6
4745else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748fi
4749
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004750# Extract the first word of "date", so it can be a program name with args.
4751set dummy date; ac_word=$2
4752echo "$as_me:$LINENO: checking for $ac_word" >&5
4753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004757 case $DATE in
4758 [\\/]* | ?:[\\/]*)
4759 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004760 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004761 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004772 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004773done
4774done
John Criswell7a73b802003-06-30 21:59:07 +00004775
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004776 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004777 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004778esac
John Criswell7a73b802003-06-30 21:59:07 +00004779fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004780DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004781
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004782if test -n "$DATE"; then
4783 echo "$as_me:$LINENO: result: $DATE" >&5
4784echo "${ECHO_T}$DATE" >&6
4785else
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
4788fi
John Criswell7a73b802003-06-30 21:59:07 +00004789
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004790# Extract the first word of "find", so it can be a program name with args.
4791set dummy find; ac_word=$2
4792echo "$as_me:$LINENO: checking for $ac_word" >&5
4793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004797 case $FIND in
4798 [\\/]* | ?:[\\/]*)
4799 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4800 ;;
4801 *)
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814done
4815
4816 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4817 ;;
4818esac
4819fi
4820FIND=$ac_cv_path_FIND
4821
4822if test -n "$FIND"; then
4823 echo "$as_me:$LINENO: result: $FIND" >&5
4824echo "${ECHO_T}$FIND" >&6
4825else
4826 echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
4828fi
4829
4830# Extract the first word of "grep", so it can be a program name with args.
4831set dummy grep; ac_word=$2
4832echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834if test "${ac_cv_path_GREP+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837 case $GREP in
4838 [\\/]* | ?:[\\/]*)
4839 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4840 ;;
4841 *)
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4857 ;;
4858esac
4859fi
4860GREP=$ac_cv_path_GREP
4861
4862if test -n "$GREP"; then
4863 echo "$as_me:$LINENO: result: $GREP" >&5
4864echo "${ECHO_T}$GREP" >&6
4865else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868fi
4869
4870# Extract the first word of "mkdir", so it can be a program name with args.
4871set dummy mkdir; ac_word=$2
4872echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874if test "${ac_cv_path_MKDIR+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877 case $MKDIR in
4878 [\\/]* | ?:[\\/]*)
4879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4880 ;;
4881 *)
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893done
4894done
4895
4896 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4897 ;;
4898esac
4899fi
4900MKDIR=$ac_cv_path_MKDIR
4901
4902if test -n "$MKDIR"; then
4903 echo "$as_me:$LINENO: result: $MKDIR" >&5
4904echo "${ECHO_T}$MKDIR" >&6
4905else
4906 echo "$as_me:$LINENO: result: no" >&5
4907echo "${ECHO_T}no" >&6
4908fi
4909
4910# Extract the first word of "mv", so it can be a program name with args.
4911set dummy mv; ac_word=$2
4912echo "$as_me:$LINENO: checking for $ac_word" >&5
4913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914if test "${ac_cv_path_MV+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917 case $MV in
4918 [\\/]* | ?:[\\/]*)
4919 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4920 ;;
4921 *)
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933done
4934done
4935
4936 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4937 ;;
4938esac
4939fi
4940MV=$ac_cv_path_MV
4941
4942if test -n "$MV"; then
4943 echo "$as_me:$LINENO: result: $MV" >&5
4944echo "${ECHO_T}$MV" >&6
4945else
4946 echo "$as_me:$LINENO: result: no" >&5
4947echo "${ECHO_T}no" >&6
4948fi
4949
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004950if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4952set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4953echo "$as_me:$LINENO: checking for $ac_word" >&5
4954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955if test "${ac_cv_prog_RANLIB+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 if test -n "$RANLIB"; then
4959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973done
4974
4975fi
4976fi
4977RANLIB=$ac_cv_prog_RANLIB
4978if test -n "$RANLIB"; then
4979 echo "$as_me:$LINENO: result: $RANLIB" >&5
4980echo "${ECHO_T}$RANLIB" >&6
4981else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984fi
4985
4986fi
4987if test -z "$ac_cv_prog_RANLIB"; then
4988 ac_ct_RANLIB=$RANLIB
4989 # Extract the first word of "ranlib", so it can be a program name with args.
4990set dummy ranlib; ac_word=$2
4991echo "$as_me:$LINENO: checking for $ac_word" >&5
4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996 if test -n "$ac_ct_RANLIB"; then
4997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_ac_ct_RANLIB="ranlib"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010done
5011done
5012
5013 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5014fi
5015fi
5016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5017if test -n "$ac_ct_RANLIB"; then
5018 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5019echo "${ECHO_T}$ac_ct_RANLIB" >&6
5020else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023fi
5024
5025 RANLIB=$ac_ct_RANLIB
5026else
5027 RANLIB="$ac_cv_prog_RANLIB"
5028fi
5029
5030# Extract the first word of "rm", so it can be a program name with args.
5031set dummy rm; ac_word=$2
5032echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034if test "${ac_cv_path_RM+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037 case $RM in
5038 [\\/]* | ?:[\\/]*)
5039 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5040 ;;
5041 *)
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053done
5054done
5055
5056 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5057 ;;
5058esac
5059fi
5060RM=$ac_cv_path_RM
5061
5062if test -n "$RM"; then
5063 echo "$as_me:$LINENO: result: $RM" >&5
5064echo "${ECHO_T}$RM" >&6
5065else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068fi
5069
5070# Extract the first word of "sed", so it can be a program name with args.
5071set dummy sed; ac_word=$2
5072echo "$as_me:$LINENO: checking for $ac_word" >&5
5073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074if test "${ac_cv_path_SED+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 case $SED in
5078 [\\/]* | ?:[\\/]*)
5079 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5080 ;;
5081 *)
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093done
5094done
5095
5096 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5097 ;;
5098esac
5099fi
5100SED=$ac_cv_path_SED
5101
5102if test -n "$SED"; then
5103 echo "$as_me:$LINENO: result: $SED" >&5
5104echo "${ECHO_T}$SED" >&6
5105else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108fi
5109
5110# Extract the first word of "tar", so it can be a program name with args.
5111set dummy tar; ac_word=$2
5112echo "$as_me:$LINENO: checking for $ac_word" >&5
5113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114if test "${ac_cv_path_TAR+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117 case $TAR in
5118 [\\/]* | ?:[\\/]*)
5119 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5120 ;;
5121 *)
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133done
5134done
5135
5136 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5137 ;;
5138esac
5139fi
5140TAR=$ac_cv_path_TAR
5141
5142if test -n "$TAR"; then
5143 echo "$as_me:$LINENO: result: $TAR" >&5
5144echo "${ECHO_T}$TAR" >&6
5145else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148fi
5149
Reid Spencerecbd2422006-06-02 23:13:18 +00005150
Reid Spencer8a2246f2005-07-13 03:20:14 +00005151# Extract the first word of "Graphviz", so it can be a program name with args.
5152set dummy Graphviz; ac_word=$2
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 case $GRAPHVIZ in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174done
5175done
5176
Reid Spencerc232a652005-07-14 02:25:12 +00005177 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005178 ;;
5179esac
5180fi
5181GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5182
5183if test -n "$GRAPHVIZ"; then
5184 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5185echo "${ECHO_T}$GRAPHVIZ" >&6
5186else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189fi
5190
Reid Spencerc232a652005-07-14 02:25:12 +00005191if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005192
5193cat >>confdefs.h <<\_ACEOF
5194#define HAVE_GRAPHVIZ 1
5195_ACEOF
5196
Reid Spencercaf0ece2006-06-05 15:54:38 +00005197 if test "$llvm_cv_os_type" == "MingW" ; then
5198 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5199 fi
Reid Spencerc232a652005-07-14 02:25:12 +00005200
Reid Spencerbe130282005-07-14 05:19:12 +00005201cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005202#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
Reid Spencerc232a652005-07-14 02:25:12 +00005203_ACEOF
5204
Reid Spencer8a2246f2005-07-13 03:20:14 +00005205fi
Reid Spencercaf0ece2006-06-05 15:54:38 +00005206# Extract the first word of "dot", so it can be a program name with args.
5207set dummy dot; ac_word=$2
5208echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210if test "${ac_cv_path_DOT+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 case $DOT in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231
5232 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5233 ;;
5234esac
5235fi
5236DOT=$ac_cv_path_DOT
5237
5238if test -n "$DOT"; then
5239 echo "$as_me:$LINENO: result: $DOT" >&5
5240echo "${ECHO_T}$DOT" >&6
5241else
5242 echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246if test "$DOT" != "echo dot" ; then
5247
5248cat >>confdefs.h <<\_ACEOF
5249#define HAVE_DOT 1
5250_ACEOF
5251
5252 if test "$llvm_cv_os_type" == "MingW" ; then
5253 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5254 fi
5255
5256cat >>confdefs.h <<_ACEOF
5257#define LLVM_PATH_DOT "$DOT${EXEEXT}"
5258_ACEOF
5259
5260fi
5261for ac_prog in gv gsview32
5262do
5263 # Extract the first word of "$ac_prog", so it can be a program name with args.
5264set dummy $ac_prog; ac_word=$2
Reid Spencerbe130282005-07-14 05:19:12 +00005265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267if test "${ac_cv_path_GV+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 case $GV in
5271 [\\/]* | ?:[\\/]*)
5272 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5273 ;;
5274 *)
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286done
5287done
5288
Reid Spencerbe130282005-07-14 05:19:12 +00005289 ;;
5290esac
5291fi
5292GV=$ac_cv_path_GV
5293
5294if test -n "$GV"; then
5295 echo "$as_me:$LINENO: result: $GV" >&5
5296echo "${ECHO_T}$GV" >&6
5297else
5298 echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6
5300fi
5301
Reid Spencercaf0ece2006-06-05 15:54:38 +00005302 test -n "$GV" && break
5303done
5304test -n "$GV" || GV="echo gv"
5305
Misha Brukmanf83d4062005-11-01 21:00:49 +00005306if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005307
5308cat >>confdefs.h <<\_ACEOF
5309#define HAVE_GV 1
5310_ACEOF
5311
Reid Spencercaf0ece2006-06-05 15:54:38 +00005312 if test "$llvm_cv_os_type" == "MingW" ; then
5313 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5314 fi
Reid Spencerbe130282005-07-14 05:19:12 +00005315
5316cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005317#define LLVM_PATH_GV "$GV${EXEEXT}"
Reid Spencerbe130282005-07-14 05:19:12 +00005318_ACEOF
5319
5320fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005321# Extract the first word of "dotty", so it can be a program name with args.
5322set dummy dotty; ac_word=$2
5323echo "$as_me:$LINENO: checking for $ac_word" >&5
5324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325if test "${ac_cv_path_DOTTY+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 case $DOTTY in
5329 [\\/]* | ?:[\\/]*)
5330 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5331 ;;
5332 *)
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344done
5345done
5346
5347 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5348 ;;
5349esac
5350fi
5351DOTTY=$ac_cv_path_DOTTY
5352
5353if test -n "$DOTTY"; then
5354 echo "$as_me:$LINENO: result: $DOTTY" >&5
5355echo "${ECHO_T}$DOTTY" >&6
5356else
5357 echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6
5359fi
5360
5361if test "$DOTTY" != "echo dotty" ; then
5362
5363cat >>confdefs.h <<\_ACEOF
5364#define HAVE_DOTTY 1
5365_ACEOF
5366
Reid Spencercaf0ece2006-06-05 15:54:38 +00005367 if test "$llvm_cv_os_type" == "MingW" ; then
5368 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5369 fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005370
5371cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005372#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
Reid Spencerecbd2422006-06-02 23:13:18 +00005373_ACEOF
5374
5375fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005376
Reid Spencerb195d9d2006-03-23 23:21:29 +00005377
5378# Extract the first word of "perl", so it can be a program name with args.
5379set dummy perl; ac_word=$2
5380echo "$as_me:$LINENO: checking for $ac_word" >&5
5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382if test "${ac_cv_path_PERL+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385 case $PERL in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5388 ;;
5389 *)
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5405 ;;
5406esac
5407fi
5408PERL=$ac_cv_path_PERL
5409
5410if test -n "$PERL"; then
5411 echo "$as_me:$LINENO: result: $PERL" >&5
5412echo "${ECHO_T}$PERL" >&6
5413else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416fi
5417
5418if test "$PERL" != "none"; then
5419 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5420echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5421 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5422 echo "$as_me:$LINENO: result: yes" >&5
5423echo "${ECHO_T}yes" >&6
5424 else
5425 PERL=none
5426 echo "$as_me:$LINENO: result: not found" >&5
5427echo "${ECHO_T}not found" >&6
5428 fi
5429fi
5430
5431
5432if test x"$PERL" = xnone; then
5433 HAVE_PERL=0
5434
5435else
5436 HAVE_PERL=1
5437
5438fi
5439
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005440# Find a good install program. We prefer a C program (faster),
5441# so one script is as good as another. But avoid the broken or
5442# incompatible versions:
5443# SysV /etc/install, /usr/sbin/install
5444# SunOS /usr/etc/install
5445# IRIX /sbin/install
5446# AIX /bin/install
5447# AmigaOS /C/install, which installs bootblocks on floppy discs
5448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5451# OS/2's system install, which has a completely different semantic
5452# ./install, which can be erroneously created by make from ./install.sh.
5453echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5454echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5455if test -z "$INSTALL"; then
5456if test "${ac_cv_path_install+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 # Account for people who put trailing slashes in PATH elements.
5465case $as_dir/ in
5466 ./ | .// | /cC/* | \
5467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5468 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5469 /usr/ucb/* ) ;;
5470 *)
5471 # OSF1 and SCO ODT 3.0 have their own names for install.
5472 # Don't use installbsd from OSF since it installs stuff as root
5473 # by default.
5474 for ac_prog in ginstall scoinst install; do
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5477 if test $ac_prog = install &&
5478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5479 # AIX install. It has an incompatible calling convention.
5480 :
5481 elif test $ac_prog = install &&
5482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5483 # program-specific install script used by HP pwplus--don't use.
5484 :
5485 else
5486 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5487 break 3
5488 fi
5489 fi
5490 done
5491 done
5492 ;;
5493esac
5494done
5495
5496
5497fi
5498 if test "${ac_cv_path_install+set}" = set; then
5499 INSTALL=$ac_cv_path_install
5500 else
5501 # As a last resort, use the slow shell script. We don't cache a
5502 # path for INSTALL within a source directory, because that will
5503 # break other packages using the cache if that directory is
5504 # removed, or if the path is relative.
5505 INSTALL=$ac_install_sh
5506 fi
5507fi
5508echo "$as_me:$LINENO: result: $INSTALL" >&5
5509echo "${ECHO_T}$INSTALL" >&6
5510
5511# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5512# It thinks the first close brace ends the variable substitution.
5513test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5514
5515test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5516
5517test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5518
5519
5520# Extract the first word of "bzip2", so it can be a program name with args.
5521set dummy bzip2; ac_word=$2
5522echo "$as_me:$LINENO: checking for $ac_word" >&5
5523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524if test "${ac_cv_path_BZIP2+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 case $BZIP2 in
5528 [\\/]* | ?:[\\/]*)
5529 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5530 ;;
5531 *)
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5542 fi
5543done
5544done
5545
Reid Spencerf9b458c2006-04-27 07:49:24 +00005546 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005547 ;;
5548esac
5549fi
5550BZIP2=$ac_cv_path_BZIP2
5551
5552if test -n "$BZIP2"; then
5553 echo "$as_me:$LINENO: result: $BZIP2" >&5
5554echo "${ECHO_T}$BZIP2" >&6
5555else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558fi
5559
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005560# Extract the first word of "doxygen", so it can be a program name with args.
5561set dummy doxygen; ac_word=$2
5562echo "$as_me:$LINENO: checking for $ac_word" >&5
5563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564if test "${ac_cv_path_DOXYGEN+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 case $DOXYGEN in
5568 [\\/]* | ?:[\\/]*)
5569 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5570 ;;
5571 *)
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583done
5584done
5585
Reid Spencerf9b458c2006-04-27 07:49:24 +00005586 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005587 ;;
5588esac
5589fi
5590DOXYGEN=$ac_cv_path_DOXYGEN
5591
5592if test -n "$DOXYGEN"; then
5593 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5594echo "${ECHO_T}$DOXYGEN" >&6
5595else
5596 echo "$as_me:$LINENO: result: no" >&5
5597echo "${ECHO_T}no" >&6
5598fi
5599
5600# Extract the first word of "etags", so it can be a program name with args.
5601set dummy etags; ac_word=$2
5602echo "$as_me:$LINENO: checking for $ac_word" >&5
5603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604if test "${ac_cv_path_ETAGS+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 case $ETAGS in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5610 ;;
5611 *)
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624done
5625
Reid Spencerf9b458c2006-04-27 07:49:24 +00005626 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005627 ;;
5628esac
5629fi
5630ETAGS=$ac_cv_path_ETAGS
5631
5632if test -n "$ETAGS"; then
5633 echo "$as_me:$LINENO: result: $ETAGS" >&5
5634echo "${ECHO_T}$ETAGS" >&6
5635else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640# Extract the first word of "groff", so it can be a program name with args.
5641set dummy groff; ac_word=$2
5642echo "$as_me:$LINENO: checking for $ac_word" >&5
5643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644if test "${ac_cv_path_GROFF+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647 case $GROFF in
5648 [\\/]* | ?:[\\/]*)
5649 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5650 ;;
5651 *)
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664done
5665
Reid Spencerf9b458c2006-04-27 07:49:24 +00005666 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005667 ;;
5668esac
5669fi
5670GROFF=$ac_cv_path_GROFF
5671
5672if test -n "$GROFF"; then
5673 echo "$as_me:$LINENO: result: $GROFF" >&5
5674echo "${ECHO_T}$GROFF" >&6
5675else
5676 echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
5678fi
5679
5680# Extract the first word of "gzip", so it can be a program name with args.
5681set dummy gzip; ac_word=$2
5682echo "$as_me:$LINENO: checking for $ac_word" >&5
5683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684if test "${ac_cv_path_GZIP+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687 case $GZIP in
5688 [\\/]* | ?:[\\/]*)
5689 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5690 ;;
5691 *)
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5702 fi
5703done
5704done
5705
Reid Spencerf9b458c2006-04-27 07:49:24 +00005706 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005707 ;;
5708esac
5709fi
5710GZIP=$ac_cv_path_GZIP
5711
5712if test -n "$GZIP"; then
5713 echo "$as_me:$LINENO: result: $GZIP" >&5
5714echo "${ECHO_T}$GZIP" >&6
5715else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718fi
5719
5720# Extract the first word of "pod2html", so it can be a program name with args.
5721set dummy pod2html; ac_word=$2
5722echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724if test "${ac_cv_path_POD2HTML+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727 case $POD2HTML in
5728 [\\/]* | ?:[\\/]*)
5729 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5730 ;;
5731 *)
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743done
5744done
5745
Reid Spencerf9b458c2006-04-27 07:49:24 +00005746 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005747 ;;
5748esac
5749fi
5750POD2HTML=$ac_cv_path_POD2HTML
5751
5752if test -n "$POD2HTML"; then
5753 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5754echo "${ECHO_T}$POD2HTML" >&6
5755else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758fi
5759
5760# Extract the first word of "pod2man", so it can be a program name with args.
5761set dummy pod2man; ac_word=$2
5762echo "$as_me:$LINENO: checking for $ac_word" >&5
5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764if test "${ac_cv_path_POD2MAN+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 case $POD2MAN in
5768 [\\/]* | ?:[\\/]*)
5769 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5770 ;;
5771 *)
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783done
5784done
5785
Reid Spencerf9b458c2006-04-27 07:49:24 +00005786 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005787 ;;
5788esac
5789fi
5790POD2MAN=$ac_cv_path_POD2MAN
5791
5792if test -n "$POD2MAN"; then
5793 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5794echo "${ECHO_T}$POD2MAN" >&6
5795else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005800# Extract the first word of "runtest", so it can be a program name with args.
5801set dummy runtest; ac_word=$2
5802echo "$as_me:$LINENO: checking for $ac_word" >&5
5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804if test "${ac_cv_path_RUNTEST+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807 case $RUNTEST in
5808 [\\/]* | ?:[\\/]*)
5809 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5810 ;;
5811 *)
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
5825
Reid Spencerf9b458c2006-04-27 07:49:24 +00005826 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005827 ;;
5828esac
5829fi
5830RUNTEST=$ac_cv_path_RUNTEST
5831
5832if test -n "$RUNTEST"; then
5833 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5834echo "${ECHO_T}$RUNTEST" >&6
5835else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838fi
5839
Reid Spencer0fcb9412004-11-30 08:11:54 +00005840
Reid Spencer0fcb9412004-11-30 08:11:54 +00005841no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005842echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5843echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005844
5845# Check whether --with-tclinclude or --without-tclinclude was given.
5846if test "${with_tclinclude+set}" = set; then
5847 withval="$with_tclinclude"
5848 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005849else
5850 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005851fi;
5852if test "${ac_cv_path_tclsh+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855
5856if test x"${with_tclinclude}" != x ; then
5857 if test -f ${with_tclinclude}/tclsh ; then
5858 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5859 elif test -f ${with_tclinclude}/src/tclsh ; then
5860 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5861 else
5862 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5863echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5864 { (exit 1); exit 1; }; }
5865 fi
5866fi
5867
Reid Spencer0fcb9412004-11-30 08:11:54 +00005868if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005869 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005870echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005871 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 +00005872do
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005875echo "$as_me:$LINENO: checking for $ac_word" >&5
5876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005877if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
Reid Spencercda35f82004-12-02 04:17:20 +00005880 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005881 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005882 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005883 ;;
5884 *)
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005892 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897done
5898
5899 ;;
5900esac
5901fi
Reid Spencercda35f82004-12-02 04:17:20 +00005902TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005903
Reid Spencercda35f82004-12-02 04:17:20 +00005904if test -n "$TCLSH"; then
5905 echo "$as_me:$LINENO: result: $TCLSH" >&5
5906echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005907else
5908 echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
5910fi
5911
Reid Spencercda35f82004-12-02 04:17:20 +00005912 test -n "$TCLSH" && break
5913done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005914
Reid Spencercda35f82004-12-02 04:17:20 +00005915 if test x"${TCLSH}" = x ; then
5916 ac_cv_path_tclsh='';
5917 else
5918 ac_cv_path_tclsh="${TCLSH}";
5919 fi
5920else
5921 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5922echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5923 TCLSH="${ac_cv_path_tclsh}"
5924
5925fi
5926
5927fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005928
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005929# Extract the first word of "zip", so it can be a program name with args.
5930set dummy zip; ac_word=$2
5931echo "$as_me:$LINENO: checking for $ac_word" >&5
5932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933if test "${ac_cv_path_ZIP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936 case $ZIP in
5937 [\\/]* | ?:[\\/]*)
5938 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5939 ;;
5940 *)
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953done
5954
Reid Spencerf9b458c2006-04-27 07:49:24 +00005955 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005956 ;;
5957esac
5958fi
5959ZIP=$ac_cv_path_ZIP
5960
5961if test -n "$ZIP"; then
5962 echo "$as_me:$LINENO: result: $ZIP" >&5
5963echo "${ECHO_T}$ZIP" >&6
5964else
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
5967fi
5968
5969
5970echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5971echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5972if test "${llvm_cv_link_use_r+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974else
5975 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005976ac_cpp='$CPP $CPPFLAGS'
5977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005981 oldcflags="$CFLAGS"
5982 CFLAGS="$CFLAGS -Wl,-R."
5983 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005989
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005990int
5991main ()
5992{
5993int main() { return 0; }
5994 ;
5995 return 0;
5996}
John Criswell47fdd832003-07-14 16:52:07 +00005997_ACEOF
5998rm -f conftest.$ac_objext conftest$ac_exeext
5999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006000 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006006 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006020 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00006021else
John Criswell47fdd832003-07-14 16:52:07 +00006022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006023sed 's/^/| /' conftest.$ac_ext >&5
6024
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006025llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00006026fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006027rm -f conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006029 CFLAGS="$oldcflags"
6030 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006036
John Criswell7a73b802003-06-30 21:59:07 +00006037fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006038echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6039echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6040if test "$llvm_cv_link_use_r" = yes ; then
6041
6042cat >>confdefs.h <<\_ACEOF
6043#define HAVE_LINK_R 1
6044_ACEOF
6045
John Criswell47fdd832003-07-14 16:52:07 +00006046 fi
John Criswell47fdd832003-07-14 16:52:07 +00006047
John Criswell47fdd832003-07-14 16:52:07 +00006048
John Criswell47fdd832003-07-14 16:52:07 +00006049
John Criswell7a73b802003-06-30 21:59:07 +00006050
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006051echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6052echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6053if test "${ac_cv_c_const+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h. */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h. */
6062
6063int
6064main ()
6065{
6066/* FIXME: Include the comments suggested by Paul. */
6067#ifndef __cplusplus
6068 /* Ultrix mips cc rejects this. */
6069 typedef int charset[2];
6070 const charset x;
6071 /* SunOS 4.1.1 cc rejects this. */
6072 char const *const *ccp;
6073 char **p;
6074 /* NEC SVR4.0.2 mips cc rejects this. */
6075 struct point {int x, y;};
6076 static struct point const zero = {0,0};
6077 /* AIX XL C 1.02.0.0 rejects this.
6078 It does not let you subtract one const X* pointer from another in
6079 an arm of an if-expression whose if-part is not a constant
6080 expression */
6081 const char *g = "string";
6082 ccp = &g + (g ? g-g : 0);
6083 /* HPUX 7.0 cc rejects these. */
6084 ++ccp;
6085 p = (char**) ccp;
6086 ccp = (char const *const *) p;
6087 { /* SCO 3.2v4 cc rejects this. */
6088 char *t;
6089 char const *s = 0 ? (char *) 0 : (char const *) 0;
6090
6091 *t++ = 0;
6092 }
6093 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6094 int x[] = {25, 17};
6095 const int *foo = &x[0];
6096 ++foo;
6097 }
6098 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6099 typedef const int *iptr;
6100 iptr p = 0;
6101 ++p;
6102 }
6103 { /* AIX XL C 1.02.0.0 rejects this saying
6104 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6105 struct s { int j; const int *ap[3]; };
6106 struct s *b; b->j = 5;
6107 }
6108 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6109 const int foo = 10;
6110 }
6111#endif
6112
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117rm -f conftest.$ac_objext
6118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_c_const=yes
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144ac_cv_c_const=no
6145fi
6146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6149echo "${ECHO_T}$ac_cv_c_const" >&6
6150if test $ac_cv_c_const = no; then
6151
6152cat >>confdefs.h <<\_ACEOF
6153#define const
6154_ACEOF
6155
6156fi
6157
6158
6159echo "$as_me:$LINENO: checking for egrep" >&5
6160echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6161if test "${ac_cv_prog_egrep+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6165 then ac_cv_prog_egrep='grep -E'
6166 else ac_cv_prog_egrep='egrep'
6167 fi
6168fi
6169echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6170echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6171 EGREP=$ac_cv_prog_egrep
6172
John Criswell7a73b802003-06-30 21:59:07 +00006173
6174echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6175echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6176if test "${ac_cv_header_stdc+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006185#include <stdlib.h>
6186#include <stdarg.h>
6187#include <string.h>
6188#include <float.h>
6189
John Criswell0c38eaf2003-09-10 15:17:25 +00006190int
6191main ()
6192{
6193
6194 ;
6195 return 0;
6196}
John Criswell7a73b802003-06-30 21:59:07 +00006197_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006198rm -f conftest.$ac_objext
6199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006200 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006220 ac_cv_header_stdc=yes
6221else
6222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006228
6229if test $ac_cv_header_stdc = yes; then
6230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006237#include <string.h>
6238
6239_ACEOF
6240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006241 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006242 :
6243else
6244 ac_cv_header_stdc=no
6245fi
6246rm -f conftest*
6247
6248fi
6249
6250if test $ac_cv_header_stdc = yes; then
6251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006258#include <stdlib.h>
6259
6260_ACEOF
6261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006262 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006263 :
6264else
6265 ac_cv_header_stdc=no
6266fi
6267rm -f conftest*
6268
6269fi
6270
6271if test $ac_cv_header_stdc = yes; then
6272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6273 if test "$cross_compiling" = yes; then
6274 :
6275else
6276 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006282#include <ctype.h>
6283#if ((' ' & 0x0FF) == 0x020)
6284# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6285# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6286#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006287# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006288 (('a' <= (c) && (c) <= 'i') \
6289 || ('j' <= (c) && (c) <= 'r') \
6290 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006291# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6292#endif
6293
6294#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6295int
6296main ()
6297{
6298 int i;
6299 for (i = 0; i < 256; i++)
6300 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006301 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006302 exit(2);
6303 exit (0);
6304}
6305_ACEOF
6306rm -f conftest$ac_exeext
6307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 :
6318else
6319 echo "$as_me: program exited with status $ac_status" >&5
6320echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006321sed 's/^/| /' conftest.$ac_ext >&5
6322
John Criswell7a73b802003-06-30 21:59:07 +00006323( exit $ac_status )
6324ac_cv_header_stdc=no
6325fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006327fi
6328fi
6329fi
6330echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6331echo "${ECHO_T}$ac_cv_header_stdc" >&6
6332if test $ac_cv_header_stdc = yes; then
6333
6334cat >>confdefs.h <<\_ACEOF
6335#define STDC_HEADERS 1
6336_ACEOF
6337
6338fi
6339
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006340
6341
6342
6343
6344
6345ac_header_dirent=no
6346for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6347 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6348echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6349echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6350if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353 cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h. */
6359#include <sys/types.h>
6360#include <$ac_hdr>
6361
6362int
6363main ()
6364{
6365if ((DIR *) 0)
6366return 0;
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371rm -f conftest.$ac_objext
6372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_c_werror_flag"
6381 || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 eval "$as_ac_Header=yes"
6394else
6395 echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398eval "$as_ac_Header=no"
6399fi
6400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404if test `eval echo '${'$as_ac_Header'}'` = yes; then
6405 cat >>confdefs.h <<_ACEOF
6406#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6407_ACEOF
6408
6409ac_header_dirent=$ac_hdr; break
6410fi
6411
6412done
6413# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6414if test $ac_header_dirent = dirent.h; then
6415 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6416echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6417if test "${ac_cv_search_opendir+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420 ac_func_search_save_LIBS=$LIBS
6421ac_cv_search_opendir=no
6422cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428
6429/* Override any gcc2 internal prototype to avoid an error. */
6430#ifdef __cplusplus
6431extern "C"
6432#endif
6433/* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6435char opendir ();
6436int
6437main ()
6438{
6439opendir ();
6440 ;
6441 return 0;
6442}
6443_ACEOF
6444rm -f conftest.$ac_objext conftest$ac_exeext
6445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_search_opendir="none required"
6467else
6468 echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471fi
6472rm -f conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474if test "$ac_cv_search_opendir" = no; then
6475 for ac_lib in dir; do
6476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6477 cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h. */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h. */
6483
6484/* Override any gcc2 internal prototype to avoid an error. */
6485#ifdef __cplusplus
6486extern "C"
6487#endif
6488/* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490char opendir ();
6491int
6492main ()
6493{
6494opendir ();
6495 ;
6496 return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext conftest$ac_exeext
6500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501 (eval $ac_link) 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag"
6509 || test ! -s conftest.err'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_search_opendir="-l$ac_lib"
6522break
6523else
6524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527fi
6528rm -f conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6530 done
6531fi
6532LIBS=$ac_func_search_save_LIBS
6533fi
6534echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6535echo "${ECHO_T}$ac_cv_search_opendir" >&6
6536if test "$ac_cv_search_opendir" != no; then
6537 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6538
6539fi
6540
6541else
6542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6544if test "${ac_cv_search_opendir+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 ac_func_search_save_LIBS=$LIBS
6548ac_cv_search_opendir=no
6549cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h. */
6555
6556/* Override any gcc2 internal prototype to avoid an error. */
6557#ifdef __cplusplus
6558extern "C"
6559#endif
6560/* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6562char opendir ();
6563int
6564main ()
6565{
6566opendir ();
6567 ;
6568 return 0;
6569}
6570_ACEOF
6571rm -f conftest.$ac_objext conftest$ac_exeext
6572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag"
6581 || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_search_opendir="none required"
6594else
6595 echo "$as_me: failed program was:" >&5
6596sed 's/^/| /' conftest.$ac_ext >&5
6597
6598fi
6599rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601if test "$ac_cv_search_opendir" = no; then
6602 for ac_lib in x; do
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610
6611/* Override any gcc2 internal prototype to avoid an error. */
6612#ifdef __cplusplus
6613extern "C"
6614#endif
6615/* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617char opendir ();
6618int
6619main ()
6620{
6621opendir ();
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626rm -f conftest.$ac_objext conftest$ac_exeext
6627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_search_opendir="-l$ac_lib"
6649break
6650else
6651 echo "$as_me: failed program was:" >&5
6652sed 's/^/| /' conftest.$ac_ext >&5
6653
6654fi
6655rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 done
6658fi
6659LIBS=$ac_func_search_save_LIBS
6660fi
6661echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6662echo "${ECHO_T}$ac_cv_search_opendir" >&6
6663if test "$ac_cv_search_opendir" != no; then
6664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6665
6666fi
6667
6668fi
6669
John Criswell7a73b802003-06-30 21:59:07 +00006670# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006681 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006682do
6683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684echo "$as_me:$LINENO: checking for $ac_header" >&5
6685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006690/* confdefs.h. */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006695$ac_includes_default
6696
6697#include <$ac_header>
6698_ACEOF
6699rm -f conftest.$ac_objext
6700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006701 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006702 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006708 { ac_try='test -z "$ac_c_werror_flag"
6709 || test ! -s conftest.err'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_Header=yes"
6722else
6723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006724sed 's/^/| /' conftest.$ac_ext >&5
6725
John Criswell7a73b802003-06-30 21:59:07 +00006726eval "$as_ac_Header=no"
6727fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006729fi
6730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735_ACEOF
6736
6737fi
6738
6739done
6740
6741
6742
6743for ac_header in dlfcn.h
6744do
6745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006746if eval "test \"\${$as_ac_Header+set}\" = set"; then
6747 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6749if eval "test \"\${$as_ac_Header+set}\" = set"; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006751fi
6752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006754else
Brian Gaeke0a621332004-09-08 20:38:05 +00006755 # Is the header compilable?
6756echo "$as_me:$LINENO: checking $ac_header usability" >&5
6757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6758cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006759/* confdefs.h. */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006764$ac_includes_default
6765#include <$ac_header>
6766_ACEOF
6767rm -f conftest.$ac_objext
6768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006769 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006789 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006790else
6791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006792sed 's/^/| /' conftest.$ac_ext >&5
6793
Brian Gaeke0a621332004-09-08 20:38:05 +00006794ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006795fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6798echo "${ECHO_T}$ac_header_compiler" >&6
6799
6800# Is the header present?
6801echo "$as_me:$LINENO: checking $ac_header presence" >&5
6802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6803cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006804/* confdefs.h. */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h. */
6809#include <$ac_header>
6810_ACEOF
6811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } >/dev/null; then
6819 if test -s conftest.err; then
6820 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006822 else
6823 ac_cpp_err=
6824 fi
6825else
6826 ac_cpp_err=yes
6827fi
6828if test -z "$ac_cpp_err"; then
6829 ac_header_preproc=yes
6830else
6831 echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ac_header_preproc=no
6835fi
6836rm -f conftest.err conftest.$ac_ext
6837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6838echo "${ECHO_T}$ac_header_preproc" >&6
6839
6840# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6842 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6847 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006848 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006849 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006862 (
6863 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006864## ----------------------------------- ##
6865## Report this to llvmbugs@cs.uiuc.edu ##
6866## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006867_ASBOX
6868 ) |
6869 sed "s/^/$as_me: WARNING: /" >&2
6870 ;;
6871esac
6872echo "$as_me:$LINENO: checking for $ac_header" >&5
6873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6874if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006877 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006878fi
6879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006881
6882fi
John Criswell7a73b802003-06-30 21:59:07 +00006883if test `eval echo '${'$as_ac_Header'}'` = yes; then
6884 cat >>confdefs.h <<_ACEOF
6885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886_ACEOF
6887
6888fi
6889
6890done
6891
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006892# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6893if test "${enable_ltdl_install+set}" = set; then
6894 enableval="$enable_ltdl_install"
6895
6896fi;
6897
6898
6899
6900if test x"${enable_ltdl_install-no}" != xno; then
6901 INSTALL_LTDL_TRUE=
6902 INSTALL_LTDL_FALSE='#'
6903else
6904 INSTALL_LTDL_TRUE='#'
6905 INSTALL_LTDL_FALSE=
6906fi
6907
6908
6909
6910if test x"${enable_ltdl_convenience-no}" != xno; then
6911 CONVENIENCE_LTDL_TRUE=
6912 CONVENIENCE_LTDL_FALSE='#'
6913else
6914 CONVENIENCE_LTDL_TRUE='#'
6915 CONVENIENCE_LTDL_FALSE=
6916fi
6917
6918
6919echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6920echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6921library_names_spec=
6922libname_spec='lib$name'
6923soname_spec=
6924shrext_cmds=".so"
6925postinstall_cmds=
6926postuninstall_cmds=
6927finish_cmds=
6928finish_eval=
6929shlibpath_var=
6930shlibpath_overrides_runpath=unknown
6931version_type=none
6932dynamic_linker="$host_os ld.so"
6933sys_lib_dlsearch_path_spec="/lib /usr/lib"
6934if test "$GCC" = yes; then
6935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6937 # if the path contains ";" then we assume it to be the separator
6938 # otherwise default to the standard path separator (i.e. ":") - it is
6939 # assumed that no part of a normal pathname contains ";" but that should
6940 # okay in the real world where ";" in dirpaths is itself problematic.
6941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6942 else
6943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6944 fi
6945else
6946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6947fi
6948need_lib_prefix=unknown
6949hardcode_into_libs=no
6950
6951# when you set need_version to no, make sure it does not cause -set_version
6952# flags to be left without arguments
6953need_version=unknown
6954
6955case $host_os in
6956aix3*)
6957 version_type=linux
6958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6959 shlibpath_var=LIBPATH
6960
6961 # AIX 3 has no versioning support, so we append a major version to the name.
6962 soname_spec='${libname}${release}${shared_ext}$major'
6963 ;;
6964
6965aix4* | aix5*)
6966 version_type=linux
6967 need_lib_prefix=no
6968 need_version=no
6969 hardcode_into_libs=yes
6970 if test "$host_cpu" = ia64; then
6971 # AIX 5 supports IA64
6972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6973 shlibpath_var=LD_LIBRARY_PATH
6974 else
6975 # With GCC up to 2.95.x, collect2 would create an import file
6976 # for dependence libraries. The import file would start with
6977 # the line `#! .'. This would cause the generated library to
6978 # depend on `.', always an invalid library. This was fixed in
6979 # development snapshots of GCC prior to 3.0.
6980 case $host_os in
6981 aix4 | aix4.[01] | aix4.[01].*)
6982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6983 echo ' yes '
6984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6985 :
6986 else
6987 can_build_shared=no
6988 fi
6989 ;;
6990 esac
6991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6992 # soname into executable. Probably we can add versioning support to
6993 # collect2, so additional links can be useful in future.
6994 if test "$aix_use_runtimelinking" = yes; then
6995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6996 # instead of lib<name>.a to let people know that these are not
6997 # typical AIX shared libraries.
6998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6999 else
7000 # We preserve .a as extension for shared libraries through AIX4.2
7001 # and later when we are not doing run time linking.
7002 library_names_spec='${libname}${release}.a $libname.a'
7003 soname_spec='${libname}${release}${shared_ext}$major'
7004 fi
7005 shlibpath_var=LIBPATH
7006 fi
7007 ;;
7008
7009amigaos*)
7010 library_names_spec='$libname.ixlibrary $libname.a'
7011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7012 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'
7013 ;;
7014
7015beos*)
7016 library_names_spec='${libname}${shared_ext}'
7017 dynamic_linker="$host_os ld.so"
7018 shlibpath_var=LIBRARY_PATH
7019 ;;
7020
7021bsdi[45]*)
7022 version_type=linux
7023 need_version=no
7024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7025 soname_spec='${libname}${release}${shared_ext}$major'
7026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7027 shlibpath_var=LD_LIBRARY_PATH
7028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7030 # the default ld.so.conf also contains /usr/contrib/lib and
7031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7032 # libtool to hard-code these into programs
7033 ;;
7034
7035cygwin* | mingw* | pw32*)
7036 version_type=windows
7037 shrext_cmds=".dll"
7038 need_version=no
7039 need_lib_prefix=no
7040
7041 case $GCC,$host_os in
7042 yes,cygwin* | yes,mingw* | yes,pw32*)
7043 library_names_spec='$libname.dll.a'
7044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7045 postinstall_cmds='base_file=`basename \${file}`~
7046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7047 dldir=$destdir/`dirname \$dlpath`~
7048 test -d \$dldir || mkdir -p \$dldir~
7049 $install_prog $dir/$dlname \$dldir/$dlname'
7050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7051 dlpath=$dir/\$dldll~
7052 $rm \$dlpath'
7053 shlibpath_overrides_runpath=yes
7054
7055 case $host_os in
7056 cygwin*)
7057 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7058 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7059 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7060 ;;
7061 mingw*)
7062 # MinGW DLLs use traditional 'lib' prefix
7063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7065 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7066 # It is most probably a Windows format PATH printed by
7067 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7068 # path with ; separators, and with drive letters. We can handle the
7069 # drive letters (cygwin fileutils understands them), so leave them,
7070 # especially as we might pass files found there to a mingw objdump,
7071 # which wouldn't understand a cygwinified path. Ahh.
7072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7073 else
7074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7075 fi
7076 ;;
7077 pw32*)
7078 # pw32 DLLs use 'pw' prefix rather than 'lib'
7079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7080 ;;
7081 esac
7082 ;;
7083
7084 *)
7085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7086 ;;
7087 esac
7088 dynamic_linker='Win32 ld.exe'
7089 # FIXME: first we should search . and the directory the executable is in
7090 shlibpath_var=PATH
7091 ;;
7092
7093darwin* | rhapsody*)
7094 dynamic_linker="$host_os dyld"
7095 version_type=darwin
7096 need_lib_prefix=no
7097 need_version=no
7098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7099 soname_spec='${libname}${release}${major}$shared_ext'
7100 shlibpath_overrides_runpath=yes
7101 shlibpath_var=DYLD_LIBRARY_PATH
7102 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7104 if test "$GCC" = yes; then
7105 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"`
7106 else
7107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7108 fi
7109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7110 ;;
7111
7112dgux*)
7113 version_type=linux
7114 need_lib_prefix=no
7115 need_version=no
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7117 soname_spec='${libname}${release}${shared_ext}$major'
7118 shlibpath_var=LD_LIBRARY_PATH
7119 ;;
7120
7121freebsd1*)
7122 dynamic_linker=no
7123 ;;
7124
7125kfreebsd*-gnu)
7126 version_type=linux
7127 need_lib_prefix=no
7128 need_version=no
7129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7130 soname_spec='${libname}${release}${shared_ext}$major'
7131 shlibpath_var=LD_LIBRARY_PATH
7132 shlibpath_overrides_runpath=no
7133 hardcode_into_libs=yes
7134 dynamic_linker='GNU ld.so'
7135 ;;
7136
7137freebsd*)
7138 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7139 version_type=freebsd-$objformat
7140 case $version_type in
7141 freebsd-elf*)
7142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7143 need_version=no
7144 need_lib_prefix=no
7145 ;;
7146 freebsd-*)
7147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7148 need_version=yes
7149 ;;
7150 esac
7151 shlibpath_var=LD_LIBRARY_PATH
7152 case $host_os in
7153 freebsd2*)
7154 shlibpath_overrides_runpath=yes
7155 ;;
7156 freebsd3.01* | freebsdelf3.01*)
7157 shlibpath_overrides_runpath=yes
7158 hardcode_into_libs=yes
7159 ;;
7160 *) # from 3.2 on
7161 shlibpath_overrides_runpath=no
7162 hardcode_into_libs=yes
7163 ;;
7164 esac
7165 ;;
7166
7167gnu*)
7168 version_type=linux
7169 need_lib_prefix=no
7170 need_version=no
7171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7172 soname_spec='${libname}${release}${shared_ext}$major'
7173 shlibpath_var=LD_LIBRARY_PATH
7174 hardcode_into_libs=yes
7175 ;;
7176
7177hpux9* | hpux10* | hpux11*)
7178 # Give a soname corresponding to the major version so that dld.sl refuses to
7179 # link against other versions.
7180 version_type=sunos
7181 need_lib_prefix=no
7182 need_version=no
7183 case "$host_cpu" in
7184 ia64*)
7185 shrext_cmds='.so'
7186 hardcode_into_libs=yes
7187 dynamic_linker="$host_os dld.so"
7188 shlibpath_var=LD_LIBRARY_PATH
7189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7191 soname_spec='${libname}${release}${shared_ext}$major'
7192 if test "X$HPUX_IA64_MODE" = X32; then
7193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7194 else
7195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7196 fi
7197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7198 ;;
7199 hppa*64*)
7200 shrext_cmds='.sl'
7201 hardcode_into_libs=yes
7202 dynamic_linker="$host_os dld.sl"
7203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7206 soname_spec='${libname}${release}${shared_ext}$major'
7207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7209 ;;
7210 *)
7211 shrext_cmds='.sl'
7212 dynamic_linker="$host_os dld.sl"
7213 shlibpath_var=SHLIB_PATH
7214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7216 soname_spec='${libname}${release}${shared_ext}$major'
7217 ;;
7218 esac
7219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7220 postinstall_cmds='chmod 555 $lib'
7221 ;;
7222
7223irix5* | irix6* | nonstopux*)
7224 case $host_os in
7225 nonstopux*) version_type=nonstopux ;;
7226 *)
7227 if test "$lt_cv_prog_gnu_ld" = yes; then
7228 version_type=linux
7229 else
7230 version_type=irix
7231 fi ;;
7232 esac
7233 need_lib_prefix=no
7234 need_version=no
7235 soname_spec='${libname}${release}${shared_ext}$major'
7236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7237 case $host_os in
7238 irix5* | nonstopux*)
7239 libsuff= shlibsuff=
7240 ;;
7241 *)
7242 case $LD in # libtool.m4 will add one of these switches to LD
7243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7244 libsuff= shlibsuff= libmagic=32-bit;;
7245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7246 libsuff=32 shlibsuff=N32 libmagic=N32;;
7247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7249 *) libsuff= shlibsuff= libmagic=never-match;;
7250 esac
7251 ;;
7252 esac
7253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7254 shlibpath_overrides_runpath=no
7255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7257 hardcode_into_libs=yes
7258 ;;
7259
7260# No shared lib support for Linux oldld, aout, or coff.
7261linux*oldld* | linux*aout* | linux*coff*)
7262 dynamic_linker=no
7263 ;;
7264
7265# This must be Linux ELF.
7266linux*)
7267 version_type=linux
7268 need_lib_prefix=no
7269 need_version=no
7270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7271 soname_spec='${libname}${release}${shared_ext}$major'
7272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7273 shlibpath_var=LD_LIBRARY_PATH
7274 shlibpath_overrides_runpath=no
7275 # This implies no fast_install, which is unacceptable.
7276 # Some rework will be needed to allow for fast_install
7277 # before this can be enabled.
7278 hardcode_into_libs=yes
7279
7280 # Append ld.so.conf contents to the search path
7281 if test -f /etc/ld.so.conf; then
7282 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7284 fi
7285
7286 # We used to test for /lib/ld.so.1 and disable shared libraries on
7287 # powerpc, because MkLinux only supported shared libraries with the
7288 # GNU dynamic linker. Since this was broken with cross compilers,
7289 # most powerpc-linux boxes support dynamic linking these days and
7290 # people can always --disable-shared, the test was removed, and we
7291 # assume the GNU/Linux dynamic linker is in use.
7292 dynamic_linker='GNU/Linux ld.so'
7293 ;;
7294
7295knetbsd*-gnu)
7296 version_type=linux
7297 need_lib_prefix=no
7298 need_version=no
7299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7300 soname_spec='${libname}${release}${shared_ext}$major'
7301 shlibpath_var=LD_LIBRARY_PATH
7302 shlibpath_overrides_runpath=no
7303 hardcode_into_libs=yes
7304 dynamic_linker='GNU ld.so'
7305 ;;
7306
7307netbsd*)
7308 version_type=sunos
7309 need_lib_prefix=no
7310 need_version=no
7311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7314 dynamic_linker='NetBSD (a.out) ld.so'
7315 else
7316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7317 soname_spec='${libname}${release}${shared_ext}$major'
7318 dynamic_linker='NetBSD ld.elf_so'
7319 fi
7320 shlibpath_var=LD_LIBRARY_PATH
7321 shlibpath_overrides_runpath=yes
7322 hardcode_into_libs=yes
7323 ;;
7324
7325newsos6)
7326 version_type=linux
7327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7328 shlibpath_var=LD_LIBRARY_PATH
7329 shlibpath_overrides_runpath=yes
7330 ;;
7331
7332nto-qnx*)
7333 version_type=linux
7334 need_lib_prefix=no
7335 need_version=no
7336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337 soname_spec='${libname}${release}${shared_ext}$major'
7338 shlibpath_var=LD_LIBRARY_PATH
7339 shlibpath_overrides_runpath=yes
7340 ;;
7341
7342openbsd*)
7343 version_type=sunos
7344 need_lib_prefix=no
7345 need_version=no
7346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7348 shlibpath_var=LD_LIBRARY_PATH
7349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7350 case $host_os in
7351 openbsd2.[89] | openbsd2.[89].*)
7352 shlibpath_overrides_runpath=no
7353 ;;
7354 *)
7355 shlibpath_overrides_runpath=yes
7356 ;;
7357 esac
7358 else
7359 shlibpath_overrides_runpath=yes
7360 fi
7361 ;;
7362
7363os2*)
7364 libname_spec='$name'
7365 shrext_cmds=".dll"
7366 need_lib_prefix=no
7367 library_names_spec='$libname${shared_ext} $libname.a'
7368 dynamic_linker='OS/2 ld.exe'
7369 shlibpath_var=LIBPATH
7370 ;;
7371
7372osf3* | osf4* | osf5*)
7373 version_type=osf
7374 need_lib_prefix=no
7375 need_version=no
7376 soname_spec='${libname}${release}${shared_ext}$major'
7377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7378 shlibpath_var=LD_LIBRARY_PATH
7379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7381 ;;
7382
7383sco3.2v5*)
7384 version_type=osf
7385 soname_spec='${libname}${release}${shared_ext}$major'
7386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7387 shlibpath_var=LD_LIBRARY_PATH
7388 ;;
7389
7390solaris*)
7391 version_type=linux
7392 need_lib_prefix=no
7393 need_version=no
7394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7395 soname_spec='${libname}${release}${shared_ext}$major'
7396 shlibpath_var=LD_LIBRARY_PATH
7397 shlibpath_overrides_runpath=yes
7398 hardcode_into_libs=yes
7399 # ldd complains unless libraries are executable
7400 postinstall_cmds='chmod +x $lib'
7401 ;;
7402
7403sunos4*)
7404 version_type=sunos
7405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7407 shlibpath_var=LD_LIBRARY_PATH
7408 shlibpath_overrides_runpath=yes
7409 if test "$with_gnu_ld" = yes; then
7410 need_lib_prefix=no
7411 fi
7412 need_version=yes
7413 ;;
7414
7415sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7416 version_type=linux
7417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7418 soname_spec='${libname}${release}${shared_ext}$major'
7419 shlibpath_var=LD_LIBRARY_PATH
7420 case $host_vendor in
7421 sni)
7422 shlibpath_overrides_runpath=no
7423 need_lib_prefix=no
7424 export_dynamic_flag_spec='${wl}-Blargedynsym'
7425 runpath_var=LD_RUN_PATH
7426 ;;
7427 siemens)
7428 need_lib_prefix=no
7429 ;;
7430 motorola)
7431 need_lib_prefix=no
7432 need_version=no
7433 shlibpath_overrides_runpath=no
7434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7435 ;;
7436 esac
7437 ;;
7438
7439sysv4*MP*)
7440 if test -d /usr/nec ;then
7441 version_type=linux
7442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7443 soname_spec='$libname${shared_ext}.$major'
7444 shlibpath_var=LD_LIBRARY_PATH
7445 fi
7446 ;;
7447
7448uts4*)
7449 version_type=linux
7450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
7452 shlibpath_var=LD_LIBRARY_PATH
7453 ;;
7454
7455*)
7456 dynamic_linker=no
7457 ;;
7458esac
7459echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7460echo "${ECHO_T}$dynamic_linker" >&6
7461test "$dynamic_linker" = no && can_build_shared=no
7462
7463
7464echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7465echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7466if test "${libltdl_cv_shlibext+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469
7470module=yes
7471eval libltdl_cv_shlibext=$shrext_cmds
7472
7473fi
7474echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7475echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7476if test -n "$libltdl_cv_shlibext"; then
7477
7478cat >>confdefs.h <<_ACEOF
7479#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7480_ACEOF
7481
7482fi
7483
7484
7485echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7486echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7487if test "${libltdl_cv_shlibpath_var+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 libltdl_cv_shlibpath_var="$shlibpath_var"
7491fi
7492echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7493echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7494if test -n "$libltdl_cv_shlibpath_var"; then
7495
7496cat >>confdefs.h <<_ACEOF
7497#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7498_ACEOF
7499
7500fi
7501
7502
7503echo "$as_me:$LINENO: checking for the default library search path" >&5
7504echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7505if test "${libltdl_cv_sys_search_path+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7509fi
7510echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7511echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7512if test -n "$libltdl_cv_sys_search_path"; then
7513 sys_search_path=
7514 for dir in $libltdl_cv_sys_search_path; do
7515 if test -z "$sys_search_path"; then
7516 sys_search_path="$dir"
7517 else
7518 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7519 fi
7520 done
7521
7522cat >>confdefs.h <<_ACEOF
7523#define LTDL_SYSSEARCHPATH "$sys_search_path"
7524_ACEOF
7525
7526fi
7527
7528echo "$as_me:$LINENO: checking for objdir" >&5
7529echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7530if test "${libltdl_cv_objdir+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 libltdl_cv_objdir="$objdir"
7534 if test -n "$objdir"; then
7535 :
7536 else
7537 rm -f .libs 2>/dev/null
7538 mkdir .libs 2>/dev/null
7539 if test -d .libs; then
7540 libltdl_cv_objdir=.libs
7541 else
7542 # MS-DOS does not allow filenames that begin with a dot.
7543 libltdl_cv_objdir=_libs
7544 fi
7545 rmdir .libs 2>/dev/null
7546 fi
7547
7548fi
7549echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7550echo "${ECHO_T}$libltdl_cv_objdir" >&6
7551
7552cat >>confdefs.h <<_ACEOF
7553#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7554_ACEOF
7555
7556
7557echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7558echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7559if test "${lt_cv_path_NM+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562 if test -n "$NM"; then
7563 # Let the user override the test.
7564 lt_cv_path_NM="$NM"
7565else
7566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7567 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7568 IFS="$lt_save_ifs"
7569 test -z "$ac_dir" && ac_dir=.
7570 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7571 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7572 # Check to see if the nm accepts a BSD-compat flag.
7573 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7574 # nm: unknown option "B" ignored
7575 # Tru64's nm complains that /dev/null is an invalid object file
7576 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7577 */dev/null* | *'Invalid file or object type'*)
7578 lt_cv_path_NM="$tmp_nm -B"
7579 break
7580 ;;
7581 *)
7582 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7583 */dev/null*)
7584 lt_cv_path_NM="$tmp_nm -p"
7585 break
7586 ;;
7587 *)
7588 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7589 continue # so that we can try to find one that supports BSD flags
7590 ;;
7591 esac
7592 esac
7593 fi
7594 done
7595 IFS="$lt_save_ifs"
7596 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7597fi
7598fi
7599echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7600echo "${ECHO_T}$lt_cv_path_NM" >&6
7601NM="$lt_cv_path_NM"
7602
7603
7604
7605
7606
7607# Check for command to grab the raw symbol name followed by C symbol from nm.
7608echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7609echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7610if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613
7614# These are sane defaults that work on at least a few old systems.
7615# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7616
7617# Character class describing NM global symbol codes.
7618symcode='[BCDEGRST]'
7619
7620# Regexp to match symbols that can be accessed directly from C.
7621sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7622
7623# Transform the above into a raw symbol and a C symbol.
7624symxfrm='\1 \2\3 \3'
7625
7626# Transform an extracted symbol line into a proper C declaration
7627lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7628
7629# Transform an extracted symbol line into symbol name and symbol address
7630lt_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'"
7631
7632# Define system-specific variables.
7633case $host_os in
7634aix*)
7635 symcode='[BCDT]'
7636 ;;
7637cygwin* | mingw* | pw32*)
7638 symcode='[ABCDGISTW]'
7639 ;;
7640hpux*) # Its linker distinguishes data from code symbols
7641 if test "$host_cpu" = ia64; then
7642 symcode='[ABCDEGRST]'
7643 fi
7644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7645 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'"
7646 ;;
7647linux*)
7648 if test "$host_cpu" = ia64; then
7649 symcode='[ABCDGIRSTW]'
7650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7651 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'"
7652 fi
7653 ;;
7654irix* | nonstopux*)
7655 symcode='[BCDEGRST]'
7656 ;;
7657osf*)
7658 symcode='[BCDEGQRST]'
7659 ;;
7660solaris* | sysv5*)
7661 symcode='[BDRT]'
7662 ;;
7663sysv4)
7664 symcode='[DFNSTU]'
7665 ;;
7666esac
7667
7668# Handle CRLF in mingw tool chain
7669opt_cr=
7670case $build_os in
7671mingw*)
7672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7673 ;;
7674esac
7675
7676# If we're using GNU nm, then use its standard symbol codes.
7677case `$NM -V 2>&1` in
7678*GNU* | *'with BFD'*)
7679 symcode='[ABCDGIRSTW]' ;;
7680esac
7681
7682# Try without a prefix undercore, then with it.
7683for ac_symprfx in "" "_"; do
7684
7685 # Write the raw and C identifiers.
7686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7687
7688 # Check to see that the pipe works correctly.
7689 pipe_works=no
7690
7691 rm -f conftest*
7692 cat > conftest.$ac_ext <<EOF
7693#ifdef __cplusplus
7694extern "C" {
7695#endif
7696char nm_test_var;
7697void nm_test_func(){}
7698#ifdef __cplusplus
7699}
7700#endif
7701int main(){nm_test_var='a';nm_test_func();return(0);}
7702EOF
7703
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; then
7709 # Now try to grab the symbols.
7710 nlist=conftest.nm
7711 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7712 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && test -s "$nlist"; then
7716 # Try sorting and uniquifying the output.
7717 if sort "$nlist" | uniq > "$nlist"T; then
7718 mv -f "$nlist"T "$nlist"
7719 else
7720 rm -f "$nlist"T
7721 fi
7722
7723 # Make sure that we snagged all the symbols we need.
7724 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7725 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7726 cat <<EOF > conftest.$ac_ext
7727#ifdef __cplusplus
7728extern "C" {
7729#endif
7730
7731EOF
7732 # Now generate the symbol file.
7733 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7734
7735 cat <<EOF >> conftest.$ac_ext
7736#if defined (__STDC__) && __STDC__
7737# define lt_ptr_t void *
7738#else
7739# define lt_ptr_t char *
7740# define const
7741#endif
7742
7743/* The mapping between symbol names and symbols. */
7744const struct {
7745 const char *name;
7746 lt_ptr_t address;
7747}
7748lt_preloaded_symbols[] =
7749{
7750EOF
7751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7752 cat <<\EOF >> conftest.$ac_ext
7753 {0, (lt_ptr_t) 0}
7754};
7755
7756#ifdef __cplusplus
7757}
7758#endif
7759EOF
7760 # Now try linking the two files.
7761 mv conftest.$ac_objext conftstm.$ac_objext
7762 lt_save_LIBS="$LIBS"
7763 lt_save_CFLAGS="$CFLAGS"
7764 LIBS="conftstm.$ac_objext"
7765 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7771 pipe_works=yes
7772 fi
7773 LIBS="$lt_save_LIBS"
7774 CFLAGS="$lt_save_CFLAGS"
7775 else
7776 echo "cannot find nm_test_func in $nlist" >&5
7777 fi
7778 else
7779 echo "cannot find nm_test_var in $nlist" >&5
7780 fi
7781 else
7782 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7783 fi
7784 else
7785 echo "$progname: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 fi
7788 rm -f conftest* conftst*
7789
7790 # Do not use the global_symbol_pipe unless it works.
7791 if test "$pipe_works" = yes; then
7792 break
7793 else
7794 lt_cv_sys_global_symbol_pipe=
7795 fi
7796done
7797
7798fi
7799
7800if test -z "$lt_cv_sys_global_symbol_pipe"; then
7801 lt_cv_sys_global_symbol_to_cdecl=
7802fi
7803if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7804 echo "$as_me:$LINENO: result: failed" >&5
7805echo "${ECHO_T}failed" >&6
7806else
7807 echo "$as_me:$LINENO: result: ok" >&5
7808echo "${ECHO_T}ok" >&6
7809fi
7810
7811
7812echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7813echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7814if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7818 libltdl_cv_preloaded_symbols=yes
7819 else
7820 libltdl_cv_preloaded_symbols=no
7821 fi
7822
7823fi
7824echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7825echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7826if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7827
7828cat >>confdefs.h <<\_ACEOF
7829#define HAVE_PRELOADED_SYMBOLS 1
7830_ACEOF
7831
7832fi
7833
7834LIBADD_DL=
7835
7836ac_ext=c
7837ac_cpp='$CPP $CPPFLAGS'
7838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843echo "$as_me:$LINENO: checking for shl_load" >&5
7844echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7845if test "${ac_cv_func_shl_load+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848 cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h. */
7854/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7856#define shl_load innocuous_shl_load
7857
7858/* System header to define __stub macros and hopefully few prototypes,
7859 which can conflict with char shl_load (); below.
7860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861 <limits.h> exists even on freestanding compilers. */
7862
7863#ifdef __STDC__
7864# include <limits.h>
7865#else
7866# include <assert.h>
7867#endif
7868
7869#undef shl_load
7870
7871/* Override any gcc2 internal prototype to avoid an error. */
7872#ifdef __cplusplus
7873extern "C"
7874{
7875#endif
7876/* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7878char shl_load ();
7879/* The GNU C library defines this for functions which it implements
7880 to always fail with ENOSYS. Some functions are actually named
7881 something starting with __ and the normal name is an alias. */
7882#if defined (__stub_shl_load) || defined (__stub___shl_load)
7883choke me
7884#else
7885char (*f) () = shl_load;
7886#endif
7887#ifdef __cplusplus
7888}
7889#endif
7890
7891int
7892main ()
7893{
7894return f != shl_load;
7895 ;
7896 return 0;
7897}
7898_ACEOF
7899rm -f conftest.$ac_objext conftest$ac_exeext
7900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag"
7909 || test ! -s conftest.err'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ac_cv_func_shl_load=yes
7922else
7923 echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
7926ac_cv_func_shl_load=no
7927fi
7928rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930fi
7931echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7932echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7933if test $ac_cv_func_shl_load = yes; then
7934
7935cat >>confdefs.h <<\_ACEOF
7936#define HAVE_SHL_LOAD 1
7937_ACEOF
7938
7939else
7940 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7941echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7942if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944else
7945 ac_check_lib_save_LIBS=$LIBS
7946LIBS="-ldld $LIBS"
7947cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
7953
7954/* Override any gcc2 internal prototype to avoid an error. */
7955#ifdef __cplusplus
7956extern "C"
7957#endif
7958/* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7960char shl_load ();
7961int
7962main ()
7963{
7964shl_load ();
7965 ;
7966 return 0;
7967}
7968_ACEOF
7969rm -f conftest.$ac_objext conftest$ac_exeext
7970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_lib_dld_shl_load=yes
7992else
7993 echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
7996ac_cv_lib_dld_shl_load=no
7997fi
7998rm -f conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000LIBS=$ac_check_lib_save_LIBS
8001fi
8002echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8003echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8004if test $ac_cv_lib_dld_shl_load = yes; then
8005
8006cat >>confdefs.h <<\_ACEOF
8007#define HAVE_SHL_LOAD 1
8008_ACEOF
8009
8010 LIBADD_DL="$LIBADD_DL -ldld"
8011else
8012 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8013echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8014if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017 ac_check_lib_save_LIBS=$LIBS
8018LIBS="-ldl $LIBS"
8019cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025
8026/* Override any gcc2 internal prototype to avoid an error. */
8027#ifdef __cplusplus
8028extern "C"
8029#endif
8030/* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8032char dlopen ();
8033int
8034main ()
8035{
8036dlopen ();
8037 ;
8038 return 0;
8039}
8040_ACEOF
8041rm -f conftest.$ac_objext conftest$ac_exeext
8042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>conftest.er1
8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try='test -z "$ac_c_werror_flag"
8051 || test ! -s conftest.err'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; } &&
8057 { ac_try='test -s conftest$ac_exeext'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 ac_cv_lib_dl_dlopen=yes
8064else
8065 echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068ac_cv_lib_dl_dlopen=no
8069fi
8070rm -f conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072LIBS=$ac_check_lib_save_LIBS
8073fi
8074echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8075echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8076if test $ac_cv_lib_dl_dlopen = yes; then
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define HAVE_LIBDL 1
8080_ACEOF
8081
8082 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8083else
8084 cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8090#if HAVE_DLFCN_H
8091# include <dlfcn.h>
8092#endif
8093
8094int
8095main ()
8096{
8097dlopen(0, 0);
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext conftest$ac_exeext
8103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124
8125cat >>confdefs.h <<\_ACEOF
8126#define HAVE_LIBDL 1
8127_ACEOF
8128 libltdl_cv_func_dlopen="yes"
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8135if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138 ac_check_lib_save_LIBS=$LIBS
8139LIBS="-lsvld $LIBS"
8140cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
8146
8147/* Override any gcc2 internal prototype to avoid an error. */
8148#ifdef __cplusplus
8149extern "C"
8150#endif
8151/* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8153char dlopen ();
8154int
8155main ()
8156{
8157dlopen ();
8158 ;
8159 return 0;
8160}
8161_ACEOF
8162rm -f conftest.$ac_objext conftest$ac_exeext
8163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag"
8172 || test ! -s conftest.err'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 ac_cv_lib_svld_dlopen=yes
8185else
8186 echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189ac_cv_lib_svld_dlopen=no
8190fi
8191rm -f conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193LIBS=$ac_check_lib_save_LIBS
8194fi
8195echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8196echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8197if test $ac_cv_lib_svld_dlopen = yes; then
8198
8199cat >>confdefs.h <<\_ACEOF
8200#define HAVE_LIBDL 1
8201_ACEOF
8202
8203 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8204else
8205 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8206echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8207if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 ac_check_lib_save_LIBS=$LIBS
8211LIBS="-ldld $LIBS"
8212cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218
8219/* Override any gcc2 internal prototype to avoid an error. */
8220#ifdef __cplusplus
8221extern "C"
8222#endif
8223/* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8225char dld_link ();
8226int
8227main ()
8228{
8229dld_link ();
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 ac_cv_lib_dld_dld_link=yes
8257else
8258 echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
8260
8261ac_cv_lib_dld_dld_link=no
8262fi
8263rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265LIBS=$ac_check_lib_save_LIBS
8266fi
8267echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8268echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8269if test $ac_cv_lib_dld_dld_link = yes; then
8270
8271cat >>confdefs.h <<\_ACEOF
8272#define HAVE_DLD 1
8273_ACEOF
8274
8275 LIBADD_DL="$LIBADD_DL -ldld"
8276else
8277 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8278echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8279if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281else
8282 cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
8288/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8290#define _dyld_func_lookup innocuous__dyld_func_lookup
8291
8292/* System header to define __stub macros and hopefully few prototypes,
8293 which can conflict with char _dyld_func_lookup (); below.
8294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295 <limits.h> exists even on freestanding compilers. */
8296
8297#ifdef __STDC__
8298# include <limits.h>
8299#else
8300# include <assert.h>
8301#endif
8302
8303#undef _dyld_func_lookup
8304
8305/* Override any gcc2 internal prototype to avoid an error. */
8306#ifdef __cplusplus
8307extern "C"
8308{
8309#endif
8310/* We use char because int might match the return type of a gcc2
8311 builtin and then its argument prototype would still apply. */
8312char _dyld_func_lookup ();
8313/* The GNU C library defines this for functions which it implements
8314 to always fail with ENOSYS. Some functions are actually named
8315 something starting with __ and the normal name is an alias. */
8316#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8317choke me
8318#else
8319char (*f) () = _dyld_func_lookup;
8320#endif
8321#ifdef __cplusplus
8322}
8323#endif
8324
8325int
8326main ()
8327{
8328return f != _dyld_func_lookup;
8329 ;
8330 return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext conftest$ac_exeext
8334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335 (eval $ac_link) 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag"
8343 || test ! -s conftest.err'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_func__dyld_func_lookup=yes
8356else
8357 echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360ac_cv_func__dyld_func_lookup=no
8361fi
8362rm -f conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364fi
8365echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8366echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8367if test $ac_cv_func__dyld_func_lookup = yes; then
8368
8369cat >>confdefs.h <<\_ACEOF
8370#define HAVE_DYLD 1
8371_ACEOF
8372
8373fi
8374
8375
8376fi
8377
8378
8379fi
8380
8381
8382fi
8383rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8385
8386fi
8387
8388
8389fi
8390
8391
8392fi
8393
8394
8395if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8396then
8397 lt_save_LIBS="$LIBS"
8398 LIBS="$LIBS $LIBADD_DL"
8399
8400for ac_func in dlerror
8401do
8402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8403echo "$as_me:$LINENO: checking for $ac_func" >&5
8404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8405if eval "test \"\${$as_ac_var+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8416#define $ac_func innocuous_$ac_func
8417
8418/* System header to define __stub macros and hopefully few prototypes,
8419 which can conflict with char $ac_func (); below.
8420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8421 <limits.h> exists even on freestanding compilers. */
8422
8423#ifdef __STDC__
8424# include <limits.h>
8425#else
8426# include <assert.h>
8427#endif
8428
8429#undef $ac_func
8430
8431/* Override any gcc2 internal prototype to avoid an error. */
8432#ifdef __cplusplus
8433extern "C"
8434{
8435#endif
8436/* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438char $ac_func ();
8439/* The GNU C library defines this for functions which it implements
8440 to always fail with ENOSYS. Some functions are actually named
8441 something starting with __ and the normal name is an alias. */
8442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8443choke me
8444#else
8445char (*f) () = $ac_func;
8446#endif
8447#ifdef __cplusplus
8448}
8449#endif
8450
8451int
8452main ()
8453{
8454return f != $ac_func;
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 eval "$as_ac_var=yes"
8482else
8483 echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486eval "$as_ac_var=no"
8487fi
8488rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490fi
8491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493if test `eval echo '${'$as_ac_var'}'` = yes; then
8494 cat >>confdefs.h <<_ACEOF
8495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496_ACEOF
8497
8498fi
8499done
8500
8501 LIBS="$lt_save_LIBS"
8502fi
8503ac_ext=c
8504ac_cpp='$CPP $CPPFLAGS'
8505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509
8510
8511echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8512echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8513if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515else
8516 ac_cv_sys_symbol_underscore=no
8517 cat > conftest.$ac_ext <<EOF
8518void nm_test_func(){}
8519int main(){nm_test_func;return 0;}
8520EOF
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; then
8526 # Now try to grab the symbols.
8527 ac_nlist=conftest.nm
8528 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && test -s "$ac_nlist"; then
8533 # See whether the symbols have a leading underscore.
8534 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8535 ac_cv_sys_symbol_underscore=yes
8536 else
8537 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8538 :
8539 else
8540 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8541 fi
8542 fi
8543 else
8544 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8545 fi
8546 else
8547 echo "configure: failed program was:" >&5
8548 cat conftest.c >&5
8549 fi
8550 rm -rf conftest*
8551
8552fi
8553echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8554echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8555
8556
8557if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8558 if test x"$libltdl_cv_func_dlopen" = xyes ||
8559 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8560 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8561echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8562if test "${libltdl_cv_need_uscore+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565 libltdl_cv_need_uscore=unknown
8566 save_LIBS="$LIBS"
8567 LIBS="$LIBS $LIBADD_DL"
8568 if test "$cross_compiling" = yes; then :
8569 libltdl_cv_need_uscore=cross
8570else
8571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8572 lt_status=$lt_dlunknown
8573 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +00008574#line 8558 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008575#include "confdefs.h"
8576
8577#if HAVE_DLFCN_H
8578#include <dlfcn.h>
8579#endif
8580
8581#include <stdio.h>
8582
8583#ifdef RTLD_GLOBAL
8584# define LT_DLGLOBAL RTLD_GLOBAL
8585#else
8586# ifdef DL_GLOBAL
8587# define LT_DLGLOBAL DL_GLOBAL
8588# else
8589# define LT_DLGLOBAL 0
8590# endif
8591#endif
8592
8593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8594 find out it does not work in some platform. */
8595#ifndef LT_DLLAZY_OR_NOW
8596# ifdef RTLD_LAZY
8597# define LT_DLLAZY_OR_NOW RTLD_LAZY
8598# else
8599# ifdef DL_LAZY
8600# define LT_DLLAZY_OR_NOW DL_LAZY
8601# else
8602# ifdef RTLD_NOW
8603# define LT_DLLAZY_OR_NOW RTLD_NOW
8604# else
8605# ifdef DL_NOW
8606# define LT_DLLAZY_OR_NOW DL_NOW
8607# else
8608# define LT_DLLAZY_OR_NOW 0
8609# endif
8610# endif
8611# endif
8612# endif
8613#endif
8614
8615#ifdef __cplusplus
8616extern "C" void exit (int);
8617#endif
8618
8619void fnord() { int i=42;}
8620int main ()
8621{
8622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8623 int status = $lt_dlunknown;
8624
8625 if (self)
8626 {
8627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8629 /* dlclose (self); */
8630 }
8631
8632 exit (status);
8633}
8634EOF
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8640 (./conftest; exit; ) 2>/dev/null
8641 lt_status=$?
8642 case x$lt_status in
8643 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8644 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8645 x$lt_unknown|x*) ;;
8646 esac
8647 else :
8648 # compilation failed
8649
8650 fi
8651fi
8652rm -fr conftest*
8653
8654 LIBS="$save_LIBS"
8655
8656fi
8657echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8658echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8659 fi
8660fi
8661
8662if test x"$libltdl_cv_need_uscore" = xyes; then
8663
8664cat >>confdefs.h <<\_ACEOF
8665#define NEED_USCORE 1
8666_ACEOF
8667
8668fi
8669
8670
8671echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8672echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8673if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676 # PORTME does your system automatically load deplibs for dlopen?
8677 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8678 # For now, we just catch OSes we know something about -- in the
8679 # future, we'll try test this programmatically.
8680 libltdl_cv_sys_dlopen_deplibs=unknown
8681 case "$host_os" in
8682 aix3*|aix4.1.*|aix4.2.*)
8683 # Unknown whether this is true for these versions of AIX, but
8684 # we want this `case' here to explicitly catch those versions.
8685 libltdl_cv_sys_dlopen_deplibs=unknown
8686 ;;
8687 aix[45]*)
8688 libltdl_cv_sys_dlopen_deplibs=yes
8689 ;;
8690 darwin*)
8691 # Assuming the user has installed a libdl from somewhere, this is true
8692 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8693 libltdl_cv_sys_dlopen_deplibs=yes
8694 ;;
8695 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8696 # GNU and its variants, using gnu ld.so (Glibc)
8697 libltdl_cv_sys_dlopen_deplibs=yes
8698 ;;
8699 hpux10*|hpux11*)
8700 libltdl_cv_sys_dlopen_deplibs=yes
8701 ;;
8702 irix[12345]*|irix6.[01]*)
8703 # Catch all versions of IRIX before 6.2, and indicate that we don't
8704 # know how it worked for any of those versions.
8705 libltdl_cv_sys_dlopen_deplibs=unknown
8706 ;;
8707 irix*)
8708 # The case above catches anything before 6.2, and it's known that
8709 # at 6.2 and later dlopen does load deplibs.
8710 libltdl_cv_sys_dlopen_deplibs=yes
8711 ;;
8712 netbsd*)
8713 libltdl_cv_sys_dlopen_deplibs=yes
8714 ;;
8715 openbsd*)
8716 libltdl_cv_sys_dlopen_deplibs=yes
8717 ;;
8718 osf[1234]*)
8719 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8720 # it did *not* use an RPATH in a shared library to find objects the
8721 # library depends on, so we explictly say `no'.
8722 libltdl_cv_sys_dlopen_deplibs=no
8723 ;;
8724 osf5.0|osf5.0a|osf5.1)
8725 # dlopen *does* load deplibs and with the right loader patch applied
8726 # it even uses RPATH in a shared library to search for shared objects
8727 # that the library depends on, but there's no easy way to know if that
8728 # patch is installed. Since this is the case, all we can really
8729 # say is unknown -- it depends on the patch being installed. If
8730 # it is, this changes to `yes'. Without it, it would be `no'.
8731 libltdl_cv_sys_dlopen_deplibs=unknown
8732 ;;
8733 osf*)
8734 # the two cases above should catch all versions of osf <= 5.1. Read
8735 # the comments above for what we know about them.
8736 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8737 # is used to find them so we can finally say `yes'.
8738 libltdl_cv_sys_dlopen_deplibs=yes
8739 ;;
8740 solaris*)
8741 libltdl_cv_sys_dlopen_deplibs=yes
8742 ;;
8743 esac
8744
8745fi
8746echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8747echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8748if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8749
8750cat >>confdefs.h <<\_ACEOF
8751#define LTDL_DLOPEN_DEPLIBS 1
8752_ACEOF
8753
8754fi
8755
8756
8757for ac_header in argz.h
8758do
8759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8760if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo "$as_me:$LINENO: checking for $ac_header" >&5
8762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765fi
8766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8768else
8769 # Is the header compilable?
8770echo "$as_me:$LINENO: checking $ac_header usability" >&5
8771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8772cat >conftest.$ac_ext <<_ACEOF
8773/* confdefs.h. */
8774_ACEOF
8775cat confdefs.h >>conftest.$ac_ext
8776cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h. */
8778$ac_includes_default
8779#include <$ac_header>
8780_ACEOF
8781rm -f conftest.$ac_objext
8782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783 (eval $ac_compile) 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_header_compiler=yes
8804else
8805 echo "$as_me: failed program was:" >&5
8806sed 's/^/| /' conftest.$ac_ext >&5
8807
8808ac_header_compiler=no
8809fi
8810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812echo "${ECHO_T}$ac_header_compiler" >&6
8813
8814# Is the header present?
8815echo "$as_me:$LINENO: checking $ac_header presence" >&5
8816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8817cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h. */
8823#include <$ac_header>
8824_ACEOF
8825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null; then
8833 if test -s conftest.err; then
8834 ac_cpp_err=$ac_c_preproc_warn_flag
8835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8836 else
8837 ac_cpp_err=
8838 fi
8839else
8840 ac_cpp_err=yes
8841fi
8842if test -z "$ac_cpp_err"; then
8843 ac_header_preproc=yes
8844else
8845 echo "$as_me: failed program was:" >&5
8846sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_header_preproc=no
8849fi
8850rm -f conftest.err conftest.$ac_ext
8851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852echo "${ECHO_T}$ac_header_preproc" >&6
8853
8854# So? What about this header?
8855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8856 yes:no: )
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8861 ac_header_preproc=yes
8862 ;;
8863 no:yes:* )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8876 (
8877 cat <<\_ASBOX
8878## ----------------------------------- ##
8879## Report this to llvmbugs@cs.uiuc.edu ##
8880## ----------------------------------- ##
8881_ASBOX
8882 ) |
8883 sed "s/^/$as_me: WARNING: /" >&2
8884 ;;
8885esac
8886echo "$as_me:$LINENO: checking for $ac_header" >&5
8887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891 eval "$as_ac_Header=\$ac_header_preproc"
8892fi
8893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895
8896fi
8897if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8900_ACEOF
8901
8902fi
8903
8904done
8905
8906
8907echo "$as_me:$LINENO: checking for error_t" >&5
8908echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8909if test "${ac_cv_type_error_t+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911else
8912 cat >conftest.$ac_ext <<_ACEOF
8913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
8918#if HAVE_ARGZ_H
8919# include <argz.h>
8920#endif
8921
8922int
8923main ()
8924{
8925if ((error_t *) 0)
8926 return 0;
8927if (sizeof (error_t))
8928 return 0;
8929 ;
8930 return 0;
8931}
8932_ACEOF
8933rm -f conftest.$ac_objext
8934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest.$ac_objext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_type_error_t=yes
8956else
8957 echo "$as_me: failed program was:" >&5
8958sed 's/^/| /' conftest.$ac_ext >&5
8959
8960ac_cv_type_error_t=no
8961fi
8962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8963fi
8964echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8965echo "${ECHO_T}$ac_cv_type_error_t" >&6
8966if test $ac_cv_type_error_t = yes; then
8967
8968cat >>confdefs.h <<_ACEOF
8969#define HAVE_ERROR_T 1
8970_ACEOF
8971
8972
8973else
8974
8975cat >>confdefs.h <<\_ACEOF
8976#define error_t int
8977_ACEOF
8978
8979fi
8980
8981
8982
8983
8984
8985
8986
8987for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8988do
8989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990echo "$as_me:$LINENO: checking for $ac_func" >&5
8991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8992if eval "test \"\${$as_ac_var+set}\" = set"; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994else
8995 cat >conftest.$ac_ext <<_ACEOF
8996/* confdefs.h. */
8997_ACEOF
8998cat confdefs.h >>conftest.$ac_ext
8999cat >>conftest.$ac_ext <<_ACEOF
9000/* end confdefs.h. */
9001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9003#define $ac_func innocuous_$ac_func
9004
9005/* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char $ac_func (); below.
9007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008 <limits.h> exists even on freestanding compilers. */
9009
9010#ifdef __STDC__
9011# include <limits.h>
9012#else
9013# include <assert.h>
9014#endif
9015
9016#undef $ac_func
9017
9018/* Override any gcc2 internal prototype to avoid an error. */
9019#ifdef __cplusplus
9020extern "C"
9021{
9022#endif
9023/* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9025char $ac_func ();
9026/* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9030choke me
9031#else
9032char (*f) () = $ac_func;
9033#endif
9034#ifdef __cplusplus
9035}
9036#endif
9037
9038int
9039main ()
9040{
9041return f != $ac_func;
9042 ;
9043 return 0;
9044}
9045_ACEOF
9046rm -f conftest.$ac_objext conftest$ac_exeext
9047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 eval "$as_ac_var=yes"
9069else
9070 echo "$as_me: failed program was:" >&5
9071sed 's/^/| /' conftest.$ac_ext >&5
9072
9073eval "$as_ac_var=no"
9074fi
9075rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077fi
9078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9080if test `eval echo '${'$as_ac_var'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9083_ACEOF
9084
9085fi
9086done
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9116 stdio.h unistd.h
9117do
9118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9119if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124fi
9125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127else
9128 # Is the header compilable?
9129echo "$as_me:$LINENO: checking $ac_header usability" >&5
9130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9131cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h. */
9137$ac_includes_default
9138#include <$ac_header>
9139_ACEOF
9140rm -f conftest.$ac_objext
9141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_c_werror_flag"
9150 || test ! -s conftest.err'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_header_compiler=yes
9163else
9164 echo "$as_me: failed program was:" >&5
9165sed 's/^/| /' conftest.$ac_ext >&5
9166
9167ac_header_compiler=no
9168fi
9169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171echo "${ECHO_T}$ac_header_compiler" >&6
9172
9173# Is the header present?
9174echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9176cat >conftest.$ac_ext <<_ACEOF
9177/* confdefs.h. */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
9182#include <$ac_header>
9183_ACEOF
9184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9186 ac_status=$?
9187 grep -v '^ *+' conftest.er1 >conftest.err
9188 rm -f conftest.er1
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } >/dev/null; then
9192 if test -s conftest.err; then
9193 ac_cpp_err=$ac_c_preproc_warn_flag
9194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9195 else
9196 ac_cpp_err=
9197 fi
9198else
9199 ac_cpp_err=yes
9200fi
9201if test -z "$ac_cpp_err"; then
9202 ac_header_preproc=yes
9203else
9204 echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 ac_header_preproc=no
9208fi
9209rm -f conftest.err conftest.$ac_ext
9210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9211echo "${ECHO_T}$ac_header_preproc" >&6
9212
9213# So? What about this header?
9214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9215 yes:no: )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9220 ac_header_preproc=yes
9221 ;;
9222 no:yes:* )
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9235 (
9236 cat <<\_ASBOX
9237## ----------------------------------- ##
9238## Report this to llvmbugs@cs.uiuc.edu ##
9239## ----------------------------------- ##
9240_ASBOX
9241 ) |
9242 sed "s/^/$as_me: WARNING: /" >&2
9243 ;;
9244esac
9245echo "$as_me:$LINENO: checking for $ac_header" >&5
9246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249else
9250 eval "$as_ac_Header=\$ac_header_preproc"
9251fi
9252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9254
9255fi
9256if test `eval echo '${'$as_ac_Header'}'` = yes; then
9257 cat >>confdefs.h <<_ACEOF
9258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9259_ACEOF
9260
9261fi
9262
9263done
9264
9265
9266
9267
9268
9269for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9270do
9271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272if eval "test \"\${$as_ac_Header+set}\" = set"; then
9273 echo "$as_me:$LINENO: checking for $ac_header" >&5
9274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9275if eval "test \"\${$as_ac_Header+set}\" = set"; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277fi
9278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9280else
9281 # Is the header compilable?
9282echo "$as_me:$LINENO: checking $ac_header usability" >&5
9283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9284cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h. */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h. */
9290$ac_includes_default
9291#include <$ac_header>
9292_ACEOF
9293rm -f conftest.$ac_objext
9294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295 (eval $ac_compile) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag"
9303 || test ! -s conftest.err'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; } &&
9309 { ac_try='test -s conftest.$ac_objext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_header_compiler=yes
9316else
9317 echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320ac_header_compiler=no
9321fi
9322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324echo "${ECHO_T}$ac_header_compiler" >&6
9325
9326# Is the header present?
9327echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9329cat >conftest.$ac_ext <<_ACEOF
9330/* confdefs.h. */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h. */
9335#include <$ac_header>
9336_ACEOF
9337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } >/dev/null; then
9345 if test -s conftest.err; then
9346 ac_cpp_err=$ac_c_preproc_warn_flag
9347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9348 else
9349 ac_cpp_err=
9350 fi
9351else
9352 ac_cpp_err=yes
9353fi
9354if test -z "$ac_cpp_err"; then
9355 ac_header_preproc=yes
9356else
9357 echo "$as_me: failed program was:" >&5
9358sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ac_header_preproc=no
9361fi
9362rm -f conftest.err conftest.$ac_ext
9363echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364echo "${ECHO_T}$ac_header_preproc" >&6
9365
9366# So? What about this header?
9367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9368 yes:no: )
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9373 ac_header_preproc=yes
9374 ;;
9375 no:yes:* )
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9388 (
9389 cat <<\_ASBOX
9390## ----------------------------------- ##
9391## Report this to llvmbugs@cs.uiuc.edu ##
9392## ----------------------------------- ##
9393_ASBOX
9394 ) |
9395 sed "s/^/$as_me: WARNING: /" >&2
9396 ;;
9397esac
9398echo "$as_me:$LINENO: checking for $ac_header" >&5
9399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403 eval "$as_ac_Header=\$ac_header_preproc"
9404fi
9405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9407
9408fi
9409if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9412_ACEOF
9413
9414fi
9415
9416done
9417
9418
9419
9420for ac_header in string.h strings.h
9421do
9422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424 echo "$as_me:$LINENO: checking for $ac_header" >&5
9425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9426if eval "test \"\${$as_ac_Header+set}\" = set"; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428fi
9429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9431else
9432 # Is the header compilable?
9433echo "$as_me:$LINENO: checking $ac_header usability" >&5
9434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9435cat >conftest.$ac_ext <<_ACEOF
9436/* confdefs.h. */
9437_ACEOF
9438cat confdefs.h >>conftest.$ac_ext
9439cat >>conftest.$ac_ext <<_ACEOF
9440/* end confdefs.h. */
9441$ac_includes_default
9442#include <$ac_header>
9443_ACEOF
9444rm -f conftest.$ac_objext
9445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_header_compiler=yes
9467else
9468 echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471ac_header_compiler=no
9472fi
9473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9475echo "${ECHO_T}$ac_header_compiler" >&6
9476
9477# Is the header present?
9478echo "$as_me:$LINENO: checking $ac_header presence" >&5
9479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9480cat >conftest.$ac_ext <<_ACEOF
9481/* confdefs.h. */
9482_ACEOF
9483cat confdefs.h >>conftest.$ac_ext
9484cat >>conftest.$ac_ext <<_ACEOF
9485/* end confdefs.h. */
9486#include <$ac_header>
9487_ACEOF
9488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } >/dev/null; then
9496 if test -s conftest.err; then
9497 ac_cpp_err=$ac_c_preproc_warn_flag
9498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9499 else
9500 ac_cpp_err=
9501 fi
9502else
9503 ac_cpp_err=yes
9504fi
9505if test -z "$ac_cpp_err"; then
9506 ac_header_preproc=yes
9507else
9508 echo "$as_me: failed program was:" >&5
9509sed 's/^/| /' conftest.$ac_ext >&5
9510
9511 ac_header_preproc=no
9512fi
9513rm -f conftest.err conftest.$ac_ext
9514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9515echo "${ECHO_T}$ac_header_preproc" >&6
9516
9517# So? What about this header?
9518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9519 yes:no: )
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9524 ac_header_preproc=yes
9525 ;;
9526 no:yes:* )
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9534echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9539 (
9540 cat <<\_ASBOX
9541## ----------------------------------- ##
9542## Report this to llvmbugs@cs.uiuc.edu ##
9543## ----------------------------------- ##
9544_ASBOX
9545 ) |
9546 sed "s/^/$as_me: WARNING: /" >&2
9547 ;;
9548esac
9549echo "$as_me:$LINENO: checking for $ac_header" >&5
9550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9551if eval "test \"\${$as_ac_Header+set}\" = set"; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554 eval "$as_ac_Header=\$ac_header_preproc"
9555fi
9556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9558
9559fi
9560if test `eval echo '${'$as_ac_Header'}'` = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9563_ACEOF
9564 break
9565fi
9566
9567done
9568
9569
9570
9571
9572for ac_func in strchr index
9573do
9574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575echo "$as_me:$LINENO: checking for $ac_func" >&5
9576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577if eval "test \"\${$as_ac_var+set}\" = set"; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9588#define $ac_func innocuous_$ac_func
9589
9590/* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char $ac_func (); below.
9592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593 <limits.h> exists even on freestanding compilers. */
9594
9595#ifdef __STDC__
9596# include <limits.h>
9597#else
9598# include <assert.h>
9599#endif
9600
9601#undef $ac_func
9602
9603/* Override any gcc2 internal prototype to avoid an error. */
9604#ifdef __cplusplus
9605extern "C"
9606{
9607#endif
9608/* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9610char $ac_func ();
9611/* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615choke me
9616#else
9617char (*f) () = $ac_func;
9618#endif
9619#ifdef __cplusplus
9620}
9621#endif
9622
9623int
9624main ()
9625{
9626return f != $ac_func;
9627 ;
9628 return 0;
9629}
9630_ACEOF
9631rm -f conftest.$ac_objext conftest$ac_exeext
9632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 eval "$as_ac_var=yes"
9654else
9655 echo "$as_me: failed program was:" >&5
9656sed 's/^/| /' conftest.$ac_ext >&5
9657
9658eval "$as_ac_var=no"
9659fi
9660rm -f conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662fi
9663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665if test `eval echo '${'$as_ac_var'}'` = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668_ACEOF
9669 break
9670fi
9671done
9672
9673
9674
9675for ac_func in strrchr rindex
9676do
9677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678echo "$as_me:$LINENO: checking for $ac_func" >&5
9679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680if eval "test \"\${$as_ac_var+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9682else
9683 cat >conftest.$ac_ext <<_ACEOF
9684/* confdefs.h. */
9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h. */
9689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9691#define $ac_func innocuous_$ac_func
9692
9693/* System header to define __stub macros and hopefully few prototypes,
9694 which can conflict with char $ac_func (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9697
9698#ifdef __STDC__
9699# include <limits.h>
9700#else
9701# include <assert.h>
9702#endif
9703
9704#undef $ac_func
9705
9706/* Override any gcc2 internal prototype to avoid an error. */
9707#ifdef __cplusplus
9708extern "C"
9709{
9710#endif
9711/* We use char because int might match the return type of a gcc2
9712 builtin and then its argument prototype would still apply. */
9713char $ac_func ();
9714/* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9718choke me
9719#else
9720char (*f) () = $ac_func;
9721#endif
9722#ifdef __cplusplus
9723}
9724#endif
9725
9726int
9727main ()
9728{
9729return f != $ac_func;
9730 ;
9731 return 0;
9732}
9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
9735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 eval "$as_ac_var=yes"
9757else
9758 echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761eval "$as_ac_var=no"
9762fi
9763rm -f conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765fi
9766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768if test `eval echo '${'$as_ac_var'}'` = yes; then
9769 cat >>confdefs.h <<_ACEOF
9770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9771_ACEOF
9772 break
9773fi
9774done
9775
9776
9777
9778for ac_func in memcpy bcopy
9779do
9780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781echo "$as_me:$LINENO: checking for $ac_func" >&5
9782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_var+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785else
9786 cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794#define $ac_func innocuous_$ac_func
9795
9796/* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char $ac_func (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9800
9801#ifdef __STDC__
9802# include <limits.h>
9803#else
9804# include <assert.h>
9805#endif
9806
9807#undef $ac_func
9808
9809/* Override any gcc2 internal prototype to avoid an error. */
9810#ifdef __cplusplus
9811extern "C"
9812{
9813#endif
9814/* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9816char $ac_func ();
9817/* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821choke me
9822#else
9823char (*f) () = $ac_func;
9824#endif
9825#ifdef __cplusplus
9826}
9827#endif
9828
9829int
9830main ()
9831{
9832return f != $ac_func;
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
9838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 eval "$as_ac_var=yes"
9860else
9861 echo "$as_me: failed program was:" >&5
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
9864eval "$as_ac_var=no"
9865fi
9866rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868fi
9869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871if test `eval echo '${'$as_ac_var'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874_ACEOF
9875 break
9876fi
9877done
9878
9879
9880
9881for ac_func in memmove strcmp
9882do
9883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884echo "$as_me:$LINENO: checking for $ac_func" >&5
9885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886if eval "test \"\${$as_ac_var+set}\" = set"; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889 cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897#define $ac_func innocuous_$ac_func
9898
9899/* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9903
9904#ifdef __STDC__
9905# include <limits.h>
9906#else
9907# include <assert.h>
9908#endif
9909
9910#undef $ac_func
9911
9912/* Override any gcc2 internal prototype to avoid an error. */
9913#ifdef __cplusplus
9914extern "C"
9915{
9916#endif
9917/* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9919char $ac_func ();
9920/* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9924choke me
9925#else
9926char (*f) () = $ac_func;
9927#endif
9928#ifdef __cplusplus
9929}
9930#endif
9931
9932int
9933main ()
9934{
9935return f != $ac_func;
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 eval "$as_ac_var=yes"
9963else
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967eval "$as_ac_var=no"
9968fi
9969rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971fi
9972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9973echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9974if test `eval echo '${'$as_ac_var'}'` = yes; then
9975 cat >>confdefs.h <<_ACEOF
9976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9977_ACEOF
9978
9979fi
9980done
9981
9982
9983
9984
9985for ac_func in closedir opendir readdir
9986do
9987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988echo "$as_me:$LINENO: checking for $ac_func" >&5
9989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9990if eval "test \"\${$as_ac_var+set}\" = set"; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */
9999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10001#define $ac_func innocuous_$ac_func
10002
10003/* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char $ac_func (); below.
10005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 <limits.h> exists even on freestanding compilers. */
10007
10008#ifdef __STDC__
10009# include <limits.h>
10010#else
10011# include <assert.h>
10012#endif
10013
10014#undef $ac_func
10015
10016/* Override any gcc2 internal prototype to avoid an error. */
10017#ifdef __cplusplus
10018extern "C"
10019{
10020#endif
10021/* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10023char $ac_func ();
10024/* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10028choke me
10029#else
10030char (*f) () = $ac_func;
10031#endif
10032#ifdef __cplusplus
10033}
10034#endif
10035
10036int
10037main ()
10038{
10039return f != $ac_func;
10040 ;
10041 return 0;
10042}
10043_ACEOF
10044rm -f conftest.$ac_objext conftest$ac_exeext
10045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046 (eval $ac_link) 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag"
10054 || test ! -s conftest.err'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 eval "$as_ac_var=yes"
10067else
10068 echo "$as_me: failed program was:" >&5
10069sed 's/^/| /' conftest.$ac_ext >&5
10070
10071eval "$as_ac_var=no"
10072fi
10073rm -f conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075fi
10076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10078if test `eval echo '${'$as_ac_var'}'` = yes; then
10079 cat >>confdefs.h <<_ACEOF
10080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10081_ACEOF
10082
10083fi
10084done
10085
10086
10087# Check whether --enable-shared or --disable-shared was given.
10088if test "${enable_shared+set}" = set; then
10089 enableval="$enable_shared"
10090 p=${PACKAGE-default}
10091 case $enableval in
10092 yes) enable_shared=yes ;;
10093 no) enable_shared=no ;;
10094 *)
10095 enable_shared=no
10096 # Look at the argument we got. We use all the common list separators.
10097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10098 for pkg in $enableval; do
10099 IFS="$lt_save_ifs"
10100 if test "X$pkg" = "X$p"; then
10101 enable_shared=yes
10102 fi
10103 done
10104 IFS="$lt_save_ifs"
10105 ;;
10106 esac
10107else
10108 enable_shared=yes
10109fi;
10110
10111# Check whether --enable-static or --disable-static was given.
10112if test "${enable_static+set}" = set; then
10113 enableval="$enable_static"
10114 p=${PACKAGE-default}
10115 case $enableval in
10116 yes) enable_static=yes ;;
10117 no) enable_static=no ;;
10118 *)
10119 enable_static=no
10120 # Look at the argument we got. We use all the common list separators.
10121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122 for pkg in $enableval; do
10123 IFS="$lt_save_ifs"
10124 if test "X$pkg" = "X$p"; then
10125 enable_static=yes
10126 fi
10127 done
10128 IFS="$lt_save_ifs"
10129 ;;
10130 esac
10131else
10132 enable_static=yes
10133fi;
10134
10135# Check whether --enable-fast-install or --disable-fast-install was given.
10136if test "${enable_fast_install+set}" = set; then
10137 enableval="$enable_fast_install"
10138 p=${PACKAGE-default}
10139 case $enableval in
10140 yes) enable_fast_install=yes ;;
10141 no) enable_fast_install=no ;;
10142 *)
10143 enable_fast_install=no
10144 # Look at the argument we got. We use all the common list separators.
10145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10146 for pkg in $enableval; do
10147 IFS="$lt_save_ifs"
10148 if test "X$pkg" = "X$p"; then
10149 enable_fast_install=yes
10150 fi
10151 done
10152 IFS="$lt_save_ifs"
10153 ;;
10154 esac
10155else
10156 enable_fast_install=yes
10157fi;
10158
10159echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10160echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10161if test "${lt_cv_path_SED+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164 # Loop through the user's path and test for sed and gsed.
10165# Then use that list of sed's as ones to test for truncation.
10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for lt_ac_prog in sed gsed; do
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10174 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10175 fi
10176 done
10177 done
10178done
10179lt_ac_max=0
10180lt_ac_count=0
10181# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10182# along with /bin/sed that truncates output.
10183for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10184 test ! -f $lt_ac_sed && break
10185 cat /dev/null > conftest.in
10186 lt_ac_count=0
10187 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10188 # Check for GNU sed and select it if it is found.
10189 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10190 lt_cv_path_SED=$lt_ac_sed
10191 break
10192 fi
10193 while true; do
10194 cat conftest.in conftest.in >conftest.tmp
10195 mv conftest.tmp conftest.in
10196 cp conftest.in conftest.nl
10197 echo >>conftest.nl
10198 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10199 cmp -s conftest.out conftest.nl || break
10200 # 10000 chars as input seems more than enough
10201 test $lt_ac_count -gt 10 && break
10202 lt_ac_count=`expr $lt_ac_count + 1`
10203 if test $lt_ac_count -gt $lt_ac_max; then
10204 lt_ac_max=$lt_ac_count
10205 lt_cv_path_SED=$lt_ac_sed
10206 fi
10207 done
10208done
10209
10210fi
10211
10212SED=$lt_cv_path_SED
10213echo "$as_me:$LINENO: result: $SED" >&5
10214echo "${ECHO_T}$SED" >&6
10215
10216
10217# Check whether --with-gnu-ld or --without-gnu-ld was given.
10218if test "${with_gnu_ld+set}" = set; then
10219 withval="$with_gnu_ld"
10220 test "$withval" = no || with_gnu_ld=yes
10221else
10222 with_gnu_ld=no
10223fi;
10224ac_prog=ld
10225if test "$GCC" = yes; then
10226 # Check if gcc -print-prog-name=ld gives a path.
10227 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10228echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10229 case $host in
10230 *-*-mingw*)
10231 # gcc leaves a trailing carriage return which upsets mingw
10232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10233 *)
10234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10235 esac
10236 case $ac_prog in
10237 # Accept absolute paths.
10238 [\\/]* | ?:[\\/]*)
10239 re_direlt='/[^/][^/]*/\.\./'
10240 # Canonicalize the pathname of ld
10241 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10242 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10243 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10244 done
10245 test -z "$LD" && LD="$ac_prog"
10246 ;;
10247 "")
10248 # If it fails, then pretend we aren't using GCC.
10249 ac_prog=ld
10250 ;;
10251 *)
10252 # If it is relative, then search for the first ld in PATH.
10253 with_gnu_ld=unknown
10254 ;;
10255 esac
10256elif test "$with_gnu_ld" = yes; then
10257 echo "$as_me:$LINENO: checking for GNU ld" >&5
10258echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10259else
10260 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10261echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10262fi
10263if test "${lt_cv_path_LD+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
10266 if test -z "$LD"; then
10267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10268 for ac_dir in $PATH; do
10269 IFS="$lt_save_ifs"
10270 test -z "$ac_dir" && ac_dir=.
10271 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10272 lt_cv_path_LD="$ac_dir/$ac_prog"
10273 # Check to see if the program is GNU ld. I'd rather use --version,
10274 # but apparently some GNU ld's only accept -v.
10275 # Break only if it was the GNU/non-GNU ld that we prefer.
10276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10277 *GNU* | *'with BFD'*)
10278 test "$with_gnu_ld" != no && break
10279 ;;
10280 *)
10281 test "$with_gnu_ld" != yes && break
10282 ;;
10283 esac
10284 fi
10285 done
10286 IFS="$lt_save_ifs"
10287else
10288 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10289fi
10290fi
10291
10292LD="$lt_cv_path_LD"
10293if test -n "$LD"; then
10294 echo "$as_me:$LINENO: result: $LD" >&5
10295echo "${ECHO_T}$LD" >&6
10296else
10297 echo "$as_me:$LINENO: result: no" >&5
10298echo "${ECHO_T}no" >&6
10299fi
10300test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302 { (exit 1); exit 1; }; }
10303echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305if test "${lt_cv_prog_gnu_ld+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10309case `$LD -v 2>&1 </dev/null` in
10310*GNU* | *'with BFD'*)
10311 lt_cv_prog_gnu_ld=yes
10312 ;;
10313*)
10314 lt_cv_prog_gnu_ld=no
10315 ;;
10316esac
10317fi
10318echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10319echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10320with_gnu_ld=$lt_cv_prog_gnu_ld
10321
10322
10323echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10324echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10325if test "${lt_cv_ld_reload_flag+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328 lt_cv_ld_reload_flag='-r'
10329fi
10330echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10331echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10332reload_flag=$lt_cv_ld_reload_flag
10333case $reload_flag in
10334"" | " "*) ;;
10335*) reload_flag=" $reload_flag" ;;
10336esac
10337reload_cmds='$LD$reload_flag -o $output$reload_objs'
10338case $host_os in
10339 darwin*)
10340 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010341 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342 else
10343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10344 fi
10345 ;;
10346esac
10347
10348echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10349echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10350if test "${lt_cv_deplibs_check_method+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 lt_cv_file_magic_cmd='$MAGIC_CMD'
10354lt_cv_file_magic_test_file=
10355lt_cv_deplibs_check_method='unknown'
10356# Need to set the preceding variable on all platforms that support
10357# interlibrary dependencies.
10358# 'none' -- dependencies not supported.
10359# `unknown' -- same as none, but documents that we really don't know.
10360# 'pass_all' -- all dependencies passed with no checks.
10361# 'test_compile' -- check by making test program.
10362# 'file_magic [[regex]]' -- check by looking for files in library path
10363# which responds to the $file_magic_cmd with a given extended regex.
10364# If you have `file' or equivalent on your system and you're not sure
10365# whether `pass_all' will *always* work, you probably want this one.
10366
10367case $host_os in
10368aix4* | aix5*)
10369 lt_cv_deplibs_check_method=pass_all
10370 ;;
10371
10372beos*)
10373 lt_cv_deplibs_check_method=pass_all
10374 ;;
10375
10376bsdi[45]*)
10377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10378 lt_cv_file_magic_cmd='/usr/bin/file -L'
10379 lt_cv_file_magic_test_file=/shlib/libc.so
10380 ;;
10381
10382cygwin*)
10383 # func_win32_libid is a shell function defined in ltmain.sh
10384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10385 lt_cv_file_magic_cmd='func_win32_libid'
10386 ;;
10387
10388mingw* | pw32*)
10389 # Base MSYS/MinGW do not provide the 'file' command needed by
10390 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10391 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10392 lt_cv_file_magic_cmd='$OBJDUMP -f'
10393 ;;
10394
10395darwin* | rhapsody*)
10396 lt_cv_deplibs_check_method=pass_all
10397 ;;
10398
10399freebsd* | kfreebsd*-gnu)
10400 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10401 case $host_cpu in
10402 i*86 )
10403 # Not sure whether the presence of OpenBSD here was a mistake.
10404 # Let's accept both of them until this is cleared up.
10405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10406 lt_cv_file_magic_cmd=/usr/bin/file
10407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10408 ;;
10409 esac
10410 else
10411 lt_cv_deplibs_check_method=pass_all
10412 fi
10413 ;;
10414
10415gnu*)
10416 lt_cv_deplibs_check_method=pass_all
10417 ;;
10418
10419hpux10.20* | hpux11*)
10420 lt_cv_file_magic_cmd=/usr/bin/file
10421 case "$host_cpu" in
10422 ia64*)
10423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10425 ;;
10426 hppa*64*)
10427 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]'
10428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10429 ;;
10430 *)
10431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10433 ;;
10434 esac
10435 ;;
10436
10437irix5* | irix6* | nonstopux*)
10438 case $LD in
10439 *-32|*"-32 ") libmagic=32-bit;;
10440 *-n32|*"-n32 ") libmagic=N32;;
10441 *-64|*"-64 ") libmagic=64-bit;;
10442 *) libmagic=never-match;;
10443 esac
10444 lt_cv_deplibs_check_method=pass_all
10445 ;;
10446
10447# This must be Linux ELF.
10448linux*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
10452netbsd*)
10453 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10455 else
10456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10457 fi
10458 ;;
10459
10460newos6*)
10461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10462 lt_cv_file_magic_cmd=/usr/bin/file
10463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10464 ;;
10465
10466nto-qnx*)
10467 lt_cv_deplibs_check_method=unknown
10468 ;;
10469
10470openbsd*)
10471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10473 else
10474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10475 fi
10476 ;;
10477
10478osf3* | osf4* | osf5*)
10479 lt_cv_deplibs_check_method=pass_all
10480 ;;
10481
10482sco3.2v5*)
10483 lt_cv_deplibs_check_method=pass_all
10484 ;;
10485
10486solaris*)
10487 lt_cv_deplibs_check_method=pass_all
10488 ;;
10489
10490sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10491 case $host_vendor in
10492 motorola)
10493 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]'
10494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10495 ;;
10496 ncr)
10497 lt_cv_deplibs_check_method=pass_all
10498 ;;
10499 sequent)
10500 lt_cv_file_magic_cmd='/bin/file'
10501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10502 ;;
10503 sni)
10504 lt_cv_file_magic_cmd='/bin/file'
10505 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10506 lt_cv_file_magic_test_file=/lib/libc.so
10507 ;;
10508 siemens)
10509 lt_cv_deplibs_check_method=pass_all
10510 ;;
10511 esac
10512 ;;
10513
10514sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10515 lt_cv_deplibs_check_method=pass_all
10516 ;;
10517esac
10518
10519fi
10520echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10521echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10522file_magic_cmd=$lt_cv_file_magic_cmd
10523deplibs_check_method=$lt_cv_deplibs_check_method
10524test -z "$deplibs_check_method" && deplibs_check_method=unknown
10525
10526
10527
10528# If no C compiler was specified, use CC.
10529LTCC=${LTCC-"$CC"}
10530
10531# Allow CC to be a program name with arguments.
10532compiler=$CC
10533
10534# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10535if test "${enable_libtool_lock+set}" = set; then
10536 enableval="$enable_libtool_lock"
10537
10538fi;
10539test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10540
10541# Some flags need to be propagated to the compiler or linker for good
10542# libtool support.
10543case $host in
10544ia64-*-hpux*)
10545 # Find out which ABI we are using.
10546 echo 'int i;' > conftest.$ac_ext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; then
10552 case `/usr/bin/file conftest.$ac_objext` in
10553 *ELF-32*)
10554 HPUX_IA64_MODE="32"
10555 ;;
10556 *ELF-64*)
10557 HPUX_IA64_MODE="64"
10558 ;;
10559 esac
10560 fi
10561 rm -rf conftest*
10562 ;;
10563*-*-irix6*)
10564 # Find out which ABI we are using.
John Criswell0389cf72006-06-20 17:44:40 +000010565 echo '#line 10549 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; then
10571 if test "$lt_cv_prog_gnu_ld" = yes; then
10572 case `/usr/bin/file conftest.$ac_objext` in
10573 *32-bit*)
10574 LD="${LD-ld} -melf32bsmip"
10575 ;;
10576 *N32*)
10577 LD="${LD-ld} -melf32bmipn32"
10578 ;;
10579 *64-bit*)
10580 LD="${LD-ld} -melf64bmip"
10581 ;;
10582 esac
10583 else
10584 case `/usr/bin/file conftest.$ac_objext` in
10585 *32-bit*)
10586 LD="${LD-ld} -32"
10587 ;;
10588 *N32*)
10589 LD="${LD-ld} -n32"
10590 ;;
10591 *64-bit*)
10592 LD="${LD-ld} -64"
10593 ;;
10594 esac
10595 fi
10596 fi
10597 rm -rf conftest*
10598 ;;
10599
10600x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10601 # Find out which ABI we are using.
10602 echo 'int i;' > conftest.$ac_ext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; then
10608 case "`/usr/bin/file conftest.o`" in
10609 *32-bit*)
10610 case $host in
10611 x86_64-*linux*)
10612 LD="${LD-ld} -m elf_i386"
10613 ;;
10614 ppc64-*linux*|powerpc64-*linux*)
10615 LD="${LD-ld} -m elf32ppclinux"
10616 ;;
10617 s390x-*linux*)
10618 LD="${LD-ld} -m elf_s390"
10619 ;;
10620 sparc64-*linux*)
10621 LD="${LD-ld} -m elf32_sparc"
10622 ;;
10623 esac
10624 ;;
10625 *64-bit*)
10626 case $host in
10627 x86_64-*linux*)
10628 LD="${LD-ld} -m elf_x86_64"
10629 ;;
10630 ppc*-*linux*|powerpc*-*linux*)
10631 LD="${LD-ld} -m elf64ppc"
10632 ;;
10633 s390*-*linux*)
10634 LD="${LD-ld} -m elf64_s390"
10635 ;;
10636 sparc*-*linux*)
10637 LD="${LD-ld} -m elf64_sparc"
10638 ;;
10639 esac
10640 ;;
10641 esac
10642 fi
10643 rm -rf conftest*
10644 ;;
10645
10646*-*-sco3.2v5*)
10647 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10648 SAVE_CFLAGS="$CFLAGS"
10649 CFLAGS="$CFLAGS -belf"
10650 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10651echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10652if test "${lt_cv_cc_needs_belf+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654else
10655 ac_ext=c
10656ac_cpp='$CPP $CPPFLAGS'
10657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661 cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667
10668_ACEOF
10669rm -f conftest.$ac_objext conftest$ac_exeext
10670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 lt_cv_cc_needs_belf=yes
10692else
10693 echo "$as_me: failed program was:" >&5
10694sed 's/^/| /' conftest.$ac_ext >&5
10695
10696lt_cv_cc_needs_belf=no
10697fi
10698rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 ac_ext=c
10701ac_cpp='$CPP $CPPFLAGS'
10702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705
10706fi
10707echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10708echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10711 CFLAGS="$SAVE_CFLAGS"
10712 fi
10713 ;;
10714
10715esac
10716
10717need_locks="$enable_libtool_lock"
10718
10719
Reid Spencer2706f8c2004-09-19 23:53:36 +000010720
10721
10722if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10723 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10724 (test "X$CXX" != "Xg++"))) ; then
10725 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010726ac_cpp='$CXXCPP $CPPFLAGS'
10727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10730echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10731echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10732if test -z "$CXXCPP"; then
10733 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
John Criswell47fdd832003-07-14 16:52:07 +000010736 # Double quotes because CXXCPP needs to be expanded
10737 for CXXCPP in "$CXX -E" "/lib/cpp"
10738 do
10739 ac_preproc_ok=false
10740for ac_cxx_preproc_warn_flag in '' yes
10741do
10742 # Use a header file that comes with gcc, so configuring glibc
10743 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010746 # On the NeXT, cc -E runs the code through the compiler's parser,
10747 # not just through cpp. "Syntax error" is here to catch this case.
10748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010749/* confdefs.h. */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h. */
10754#ifdef __STDC__
10755# include <limits.h>
10756#else
10757# include <assert.h>
10758#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010759 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010760_ACEOF
10761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10763 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010764 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } >/dev/null; then
10769 if test -s conftest.err; then
10770 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010772 else
John Criswell47fdd832003-07-14 16:52:07 +000010773 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010774 fi
John Criswell47fdd832003-07-14 16:52:07 +000010775else
10776 ac_cpp_err=yes
10777fi
10778if test -z "$ac_cpp_err"; then
10779 :
10780else
10781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010782sed 's/^/| /' conftest.$ac_ext >&5
10783
John Criswell47fdd832003-07-14 16:52:07 +000010784 # Broken: fails on valid input.
10785continue
10786fi
10787rm -f conftest.err conftest.$ac_ext
10788
10789 # OK, works on sane cases. Now check whether non-existent headers
10790 # can be detected and how.
10791 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010797#include <ac_nonexistent.h>
10798_ACEOF
10799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10801 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010802 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } >/dev/null; then
10807 if test -s conftest.err; then
10808 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010809 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010810 else
10811 ac_cpp_err=
10812 fi
10813else
10814 ac_cpp_err=yes
10815fi
10816if test -z "$ac_cpp_err"; then
10817 # Broken: success on invalid input.
10818continue
10819else
10820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010821sed 's/^/| /' conftest.$ac_ext >&5
10822
John Criswell47fdd832003-07-14 16:52:07 +000010823 # Passes both tests.
10824ac_preproc_ok=:
10825break
10826fi
10827rm -f conftest.err conftest.$ac_ext
10828
10829done
10830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10831rm -f conftest.err conftest.$ac_ext
10832if $ac_preproc_ok; then
10833 break
John Criswell7a73b802003-06-30 21:59:07 +000010834fi
10835
John Criswell47fdd832003-07-14 16:52:07 +000010836 done
10837 ac_cv_prog_CXXCPP=$CXXCPP
10838
10839fi
10840 CXXCPP=$ac_cv_prog_CXXCPP
10841else
10842 ac_cv_prog_CXXCPP=$CXXCPP
10843fi
10844echo "$as_me:$LINENO: result: $CXXCPP" >&5
10845echo "${ECHO_T}$CXXCPP" >&6
10846ac_preproc_ok=false
10847for ac_cxx_preproc_warn_flag in '' yes
10848do
10849 # Use a header file that comes with gcc, so configuring glibc
10850 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010853 # On the NeXT, cc -E runs the code through the compiler's parser,
10854 # not just through cpp. "Syntax error" is here to catch this case.
10855 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
10861#ifdef __STDC__
10862# include <limits.h>
10863#else
10864# include <assert.h>
10865#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010866 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010867_ACEOF
10868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10870 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010871 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } >/dev/null; then
10876 if test -s conftest.err; then
10877 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010879 else
10880 ac_cpp_err=
10881 fi
10882else
10883 ac_cpp_err=yes
10884fi
10885if test -z "$ac_cpp_err"; then
10886 :
10887else
10888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010889sed 's/^/| /' conftest.$ac_ext >&5
10890
John Criswell47fdd832003-07-14 16:52:07 +000010891 # Broken: fails on valid input.
10892continue
10893fi
10894rm -f conftest.err conftest.$ac_ext
10895
10896 # OK, works on sane cases. Now check whether non-existent headers
10897 # can be detected and how.
10898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010904#include <ac_nonexistent.h>
10905_ACEOF
10906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10908 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010909 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010916 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010917 else
10918 ac_cpp_err=
10919 fi
10920else
10921 ac_cpp_err=yes
10922fi
10923if test -z "$ac_cpp_err"; then
10924 # Broken: success on invalid input.
10925continue
10926else
10927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010928sed 's/^/| /' conftest.$ac_ext >&5
10929
John Criswell47fdd832003-07-14 16:52:07 +000010930 # Passes both tests.
10931ac_preproc_ok=:
10932break
10933fi
10934rm -f conftest.err conftest.$ac_ext
10935
10936done
10937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10938rm -f conftest.err conftest.$ac_ext
10939if $ac_preproc_ok; then
10940 :
10941else
John Criswell0c38eaf2003-09-10 15:17:25 +000010942 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10943See \`config.log' for more details." >&5
10944echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10945See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010946 { (exit 1); exit 1; }; }
10947fi
10948
10949ac_ext=cc
10950ac_cpp='$CXXCPP $CPPFLAGS'
10951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10954
Reid Spencer2706f8c2004-09-19 23:53:36 +000010955fi
10956
John Criswell47fdd832003-07-14 16:52:07 +000010957
10958ac_ext=f
10959ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10960ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10961ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10962if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010963 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 +000010964 do
10965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_F77+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$F77"; then
10973 ac_cv_prog_F77="$F77" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991F77=$ac_cv_prog_F77
10992if test -n "$F77"; then
10993 echo "$as_me:$LINENO: result: $F77" >&5
10994echo "${ECHO_T}$F77" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000 test -n "$F77" && break
11001 done
11002fi
11003if test -z "$F77"; then
11004 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000011005 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 +000011006do
11007 # Extract the first word of "$ac_prog", so it can be a program name with args.
11008set dummy $ac_prog; ac_word=$2
11009echo "$as_me:$LINENO: checking for $ac_word" >&5
11010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11011if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 if test -n "$ac_ct_F77"; then
11015 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_prog_ac_ct_F77="$ac_prog"
11025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028done
11029done
11030
11031fi
11032fi
11033ac_ct_F77=$ac_cv_prog_ac_ct_F77
11034if test -n "$ac_ct_F77"; then
11035 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11036echo "${ECHO_T}$ac_ct_F77" >&6
11037else
11038 echo "$as_me:$LINENO: result: no" >&5
11039echo "${ECHO_T}no" >&6
11040fi
11041
11042 test -n "$ac_ct_F77" && break
11043done
11044
11045 F77=$ac_ct_F77
11046fi
11047
11048
11049# Provide some information about the compiler.
John Criswell0389cf72006-06-20 17:44:40 +000011050echo "$as_me:11034:" \
John Criswell47fdd832003-07-14 16:52:07 +000011051 "checking for Fortran 77 compiler version" >&5
11052ac_compiler=`set X $ac_compile; echo $2`
11053{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11054 (eval $ac_compiler --version </dev/null >&5) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }
11058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11059 (eval $ac_compiler -v </dev/null >&5) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11064 (eval $ac_compiler -V </dev/null >&5) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000011068rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000011069
11070# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000011071# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000011072ac_save_ext=$ac_ext
11073ac_ext=F
11074echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11075echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11076if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 program main
11081#ifndef __GNUC__
11082 choke me
11083#endif
11084
11085 end
11086_ACEOF
11087rm -f conftest.$ac_objext
11088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011089 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011090 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011096 { ac_try='test -z "$ac_f77_werror_flag"
11097 || test ! -s conftest.err'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_compiler_gnu=yes
11110else
11111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011112sed 's/^/| /' conftest.$ac_ext >&5
11113
John Criswell47fdd832003-07-14 16:52:07 +000011114ac_compiler_gnu=no
11115fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011117ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11118
11119fi
11120echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11121echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11122ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011123ac_test_FFLAGS=${FFLAGS+set}
11124ac_save_FFLAGS=$FFLAGS
11125FFLAGS=
11126echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11127echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11128if test "${ac_cv_prog_f77_g+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130else
11131 FFLAGS=-g
11132cat >conftest.$ac_ext <<_ACEOF
11133 program main
11134
11135 end
11136_ACEOF
11137rm -f conftest.$ac_objext
11138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011139 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011146 { ac_try='test -z "$ac_f77_werror_flag"
11147 || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_prog_f77_g=yes
11160else
11161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011162sed 's/^/| /' conftest.$ac_ext >&5
11163
John Criswell47fdd832003-07-14 16:52:07 +000011164ac_cv_prog_f77_g=no
11165fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011167
11168fi
11169echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11170echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11171if test "$ac_test_FFLAGS" = set; then
11172 FFLAGS=$ac_save_FFLAGS
11173elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011174 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011175 FFLAGS="-g -O2"
11176 else
11177 FFLAGS="-g"
11178 fi
11179else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011181 FFLAGS="-O2"
11182 else
11183 FFLAGS=
11184 fi
11185fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011186
11187G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011188ac_ext=c
11189ac_cpp='$CPP $CPPFLAGS'
11190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192ac_compiler_gnu=$ac_cv_c_compiler_gnu
11193
11194
11195
11196# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11197
11198# find the maximum length of command line arguments
11199echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11200echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11201if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203else
11204 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011205 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011206
11207 case $build_os in
11208 msdosdjgpp*)
11209 # On DJGPP, this test can blow up pretty badly due to problems in libc
11210 # (any single argument exceeding 2000 bytes causes a buffer overrun
11211 # during glob expansion). Even if it were fixed, the result of this
11212 # check would be larger than it should be.
11213 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11214 ;;
11215
11216 gnu*)
11217 # Under GNU Hurd, this test is not required because there is
11218 # no limit to the length of command line arguments.
11219 # Libtool will interpret -1 as no limit whatsoever
11220 lt_cv_sys_max_cmd_len=-1;
11221 ;;
11222
11223 cygwin* | mingw*)
11224 # On Win9x/ME, this test blows up -- it succeeds, but takes
11225 # about 5 minutes as the teststring grows exponentially.
11226 # Worse, since 9x/ME are not pre-emptively multitasking,
11227 # you end up with a "frozen" computer, even though with patience
11228 # the test eventually succeeds (with a max line length of 256k).
11229 # Instead, let's just punt: use the minimum linelength reported by
11230 # all of the supported platforms: 8192 (on NT/2K/XP).
11231 lt_cv_sys_max_cmd_len=8192;
11232 ;;
11233
Reid Spencer2706f8c2004-09-19 23:53:36 +000011234 amigaos*)
11235 # On AmigaOS with pdksh, this test takes hours, literally.
11236 # So we just punt and use a minimum line length of 8192.
11237 lt_cv_sys_max_cmd_len=8192;
11238 ;;
11239
11240 netbsd* | freebsd* | openbsd* | darwin* )
11241 # This has been around since 386BSD, at least. Likely further.
11242 if test -x /sbin/sysctl; then
11243 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11244 elif test -x /usr/sbin/sysctl; then
11245 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11246 else
11247 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11248 fi
11249 # And add a safety zone
11250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11251 ;;
11252
John Criswell47fdd832003-07-14 16:52:07 +000011253 *)
11254 # If test is not a shell built-in, we'll probably end up computing a
11255 # maximum length that is only half of the actual maximum length, but
11256 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11258 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11259 = "XX$teststring") >/dev/null 2>&1 &&
11260 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011261 lt_cv_sys_max_cmd_len=$new_result &&
11262 test $i != 17 # 1/2 MB should be enough
11263 do
11264 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011265 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011266 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011267 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011268 # Add a significant safety factor because C++ compilers can tack on massive
11269 # amounts of additional arguments before passing them to the linker.
11270 # It appears as though 1/2 is a usable value.
11271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11272 ;;
11273 esac
11274
11275fi
11276
11277if test -n $lt_cv_sys_max_cmd_len ; then
11278 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11279echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11280else
11281 echo "$as_me:$LINENO: result: none" >&5
11282echo "${ECHO_T}none" >&6
11283fi
11284
11285
11286
11287
11288# Check for command to grab the raw symbol name followed by C symbol from nm.
11289echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11290echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11291if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293else
11294
11295# These are sane defaults that work on at least a few old systems.
11296# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11297
11298# Character class describing NM global symbol codes.
11299symcode='[BCDEGRST]'
11300
11301# Regexp to match symbols that can be accessed directly from C.
11302sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11303
11304# Transform the above into a raw symbol and a C symbol.
11305symxfrm='\1 \2\3 \3'
11306
11307# Transform an extracted symbol line into a proper C declaration
11308lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11309
11310# Transform an extracted symbol line into symbol name and symbol address
11311lt_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'"
11312
11313# Define system-specific variables.
11314case $host_os in
11315aix*)
11316 symcode='[BCDT]'
11317 ;;
11318cygwin* | mingw* | pw32*)
11319 symcode='[ABCDGISTW]'
11320 ;;
11321hpux*) # Its linker distinguishes data from code symbols
11322 if test "$host_cpu" = ia64; then
11323 symcode='[ABCDEGRST]'
11324 fi
11325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11326 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'"
11327 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011328linux*)
11329 if test "$host_cpu" = ia64; then
11330 symcode='[ABCDGIRSTW]'
11331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11332 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'"
11333 fi
11334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011335irix* | nonstopux*)
11336 symcode='[BCDEGRST]'
11337 ;;
11338osf*)
11339 symcode='[BCDEGQRST]'
11340 ;;
11341solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011342 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011343 ;;
11344sysv4)
11345 symcode='[DFNSTU]'
11346 ;;
11347esac
11348
11349# Handle CRLF in mingw tool chain
11350opt_cr=
11351case $build_os in
11352mingw*)
11353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11354 ;;
11355esac
11356
11357# If we're using GNU nm, then use its standard symbol codes.
11358case `$NM -V 2>&1` in
11359*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011360 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011361esac
11362
11363# Try without a prefix undercore, then with it.
11364for ac_symprfx in "" "_"; do
11365
11366 # Write the raw and C identifiers.
11367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11368
11369 # Check to see that the pipe works correctly.
11370 pipe_works=no
11371
11372 rm -f conftest*
11373 cat > conftest.$ac_ext <<EOF
11374#ifdef __cplusplus
11375extern "C" {
11376#endif
11377char nm_test_var;
11378void nm_test_func(){}
11379#ifdef __cplusplus
11380}
11381#endif
11382int main(){nm_test_var='a';nm_test_func();return(0);}
11383EOF
11384
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; then
11390 # Now try to grab the symbols.
11391 nlist=conftest.nm
11392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } && test -s "$nlist"; then
11397 # Try sorting and uniquifying the output.
11398 if sort "$nlist" | uniq > "$nlist"T; then
11399 mv -f "$nlist"T "$nlist"
11400 else
11401 rm -f "$nlist"T
11402 fi
11403
11404 # Make sure that we snagged all the symbols we need.
11405 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11406 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11407 cat <<EOF > conftest.$ac_ext
11408#ifdef __cplusplus
11409extern "C" {
11410#endif
11411
11412EOF
11413 # Now generate the symbol file.
11414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11415
11416 cat <<EOF >> conftest.$ac_ext
11417#if defined (__STDC__) && __STDC__
11418# define lt_ptr_t void *
11419#else
11420# define lt_ptr_t char *
11421# define const
11422#endif
11423
11424/* The mapping between symbol names and symbols. */
11425const struct {
11426 const char *name;
11427 lt_ptr_t address;
11428}
11429lt_preloaded_symbols[] =
11430{
11431EOF
11432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11433 cat <<\EOF >> conftest.$ac_ext
11434 {0, (lt_ptr_t) 0}
11435};
11436
11437#ifdef __cplusplus
11438}
11439#endif
11440EOF
11441 # Now try linking the two files.
11442 mv conftest.$ac_objext conftstm.$ac_objext
11443 lt_save_LIBS="$LIBS"
11444 lt_save_CFLAGS="$CFLAGS"
11445 LIBS="conftstm.$ac_objext"
11446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448 (eval $ac_link) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11452 pipe_works=yes
11453 fi
11454 LIBS="$lt_save_LIBS"
11455 CFLAGS="$lt_save_CFLAGS"
11456 else
11457 echo "cannot find nm_test_func in $nlist" >&5
11458 fi
11459 else
11460 echo "cannot find nm_test_var in $nlist" >&5
11461 fi
11462 else
11463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11464 fi
11465 else
11466 echo "$progname: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 fi
11469 rm -f conftest* conftst*
11470
11471 # Do not use the global_symbol_pipe unless it works.
11472 if test "$pipe_works" = yes; then
11473 break
11474 else
11475 lt_cv_sys_global_symbol_pipe=
11476 fi
11477done
11478
11479fi
11480
11481if test -z "$lt_cv_sys_global_symbol_pipe"; then
11482 lt_cv_sys_global_symbol_to_cdecl=
11483fi
11484if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11485 echo "$as_me:$LINENO: result: failed" >&5
11486echo "${ECHO_T}failed" >&6
11487else
11488 echo "$as_me:$LINENO: result: ok" >&5
11489echo "${ECHO_T}ok" >&6
11490fi
11491
11492echo "$as_me:$LINENO: checking for objdir" >&5
11493echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11494if test "${lt_cv_objdir+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 rm -f .libs 2>/dev/null
11498mkdir .libs 2>/dev/null
11499if test -d .libs; then
11500 lt_cv_objdir=.libs
11501else
11502 # MS-DOS does not allow filenames that begin with a dot.
11503 lt_cv_objdir=_libs
11504fi
11505rmdir .libs 2>/dev/null
11506fi
11507echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11508echo "${ECHO_T}$lt_cv_objdir" >&6
11509objdir=$lt_cv_objdir
11510
11511
11512
11513
11514
11515case $host_os in
11516aix3*)
11517 # AIX sometimes has problems with the GCC collect2 program. For some
11518 # reason, if we set the COLLECT_NAMES environment variable, the problems
11519 # vanish in a puff of smoke.
11520 if test "X${COLLECT_NAMES+set}" != Xset; then
11521 COLLECT_NAMES=
11522 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011523 fi
11524 ;;
11525esac
11526
John Criswell47fdd832003-07-14 16:52:07 +000011527# Sed substitution that helps us do robust quoting. It backslashifies
11528# metacharacters that are still active within double-quoted strings.
11529Xsed='sed -e s/^X//'
11530sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11531
11532# Same as above, but do not quote variable references.
11533double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11534
11535# Sed substitution to delay expansion of an escaped shell variable in a
11536# double_quote_subst'ed string.
11537delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11538
11539# Sed substitution to avoid accidental globbing in evaled expressions
11540no_glob_subst='s/\*/\\\*/g'
11541
11542# Constants:
11543rm="rm -f"
11544
11545# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011546default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011547can_build_shared=yes
11548
11549# All known linkers require a `.a' archive for static linking (except M$VC,
11550# which needs '.lib').
11551libext=a
11552ltmain="$ac_aux_dir/ltmain.sh"
11553ofile="$default_ofile"
11554with_gnu_ld="$lt_cv_prog_gnu_ld"
11555
11556if test -n "$ac_tool_prefix"; then
11557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11558set dummy ${ac_tool_prefix}ar; ac_word=$2
11559echo "$as_me:$LINENO: checking for $ac_word" >&5
11560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11561if test "${ac_cv_prog_AR+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564 if test -n "$AR"; then
11565 ac_cv_prog_AR="$AR" # Let the user override the test.
11566else
11567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568for as_dir in $PATH
11569do
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_prog_AR="${ac_tool_prefix}ar"
11575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11577 fi
11578done
11579done
11580
11581fi
11582fi
11583AR=$ac_cv_prog_AR
11584if test -n "$AR"; then
11585 echo "$as_me:$LINENO: result: $AR" >&5
11586echo "${ECHO_T}$AR" >&6
11587else
11588 echo "$as_me:$LINENO: result: no" >&5
11589echo "${ECHO_T}no" >&6
11590fi
11591
11592fi
11593if test -z "$ac_cv_prog_AR"; then
11594 ac_ct_AR=$AR
11595 # Extract the first word of "ar", so it can be a program name with args.
11596set dummy ar; ac_word=$2
11597echo "$as_me:$LINENO: checking for $ac_word" >&5
11598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 if test -n "$ac_ct_AR"; then
11603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11604else
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_ac_ct_AR="ar"
11613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616done
11617done
11618
11619 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11620fi
11621fi
11622ac_ct_AR=$ac_cv_prog_ac_ct_AR
11623if test -n "$ac_ct_AR"; then
11624 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11625echo "${ECHO_T}$ac_ct_AR" >&6
11626else
11627 echo "$as_me:$LINENO: result: no" >&5
11628echo "${ECHO_T}no" >&6
11629fi
11630
11631 AR=$ac_ct_AR
11632else
11633 AR="$ac_cv_prog_AR"
11634fi
11635
John Criswell7a73b802003-06-30 21:59:07 +000011636if test -n "$ac_tool_prefix"; then
11637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11638set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11639echo "$as_me:$LINENO: checking for $ac_word" >&5
11640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11641if test "${ac_cv_prog_RANLIB+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 if test -n "$RANLIB"; then
11645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11646else
11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658done
11659done
11660
11661fi
11662fi
11663RANLIB=$ac_cv_prog_RANLIB
11664if test -n "$RANLIB"; then
11665 echo "$as_me:$LINENO: result: $RANLIB" >&5
11666echo "${ECHO_T}$RANLIB" >&6
11667else
11668 echo "$as_me:$LINENO: result: no" >&5
11669echo "${ECHO_T}no" >&6
11670fi
11671
11672fi
11673if test -z "$ac_cv_prog_RANLIB"; then
11674 ac_ct_RANLIB=$RANLIB
11675 # Extract the first word of "ranlib", so it can be a program name with args.
11676set dummy ranlib; ac_word=$2
11677echo "$as_me:$LINENO: checking for $ac_word" >&5
11678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11679if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682 if test -n "$ac_ct_RANLIB"; then
11683 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_ac_ct_RANLIB="ranlib"
11693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696done
11697done
11698
11699 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11700fi
11701fi
11702ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11703if test -n "$ac_ct_RANLIB"; then
11704 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11705echo "${ECHO_T}$ac_ct_RANLIB" >&6
11706else
11707 echo "$as_me:$LINENO: result: no" >&5
11708echo "${ECHO_T}no" >&6
11709fi
11710
11711 RANLIB=$ac_ct_RANLIB
11712else
11713 RANLIB="$ac_cv_prog_RANLIB"
11714fi
11715
11716if test -n "$ac_tool_prefix"; then
11717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11718set dummy ${ac_tool_prefix}strip; ac_word=$2
11719echo "$as_me:$LINENO: checking for $ac_word" >&5
11720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11721if test "${ac_cv_prog_STRIP+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 if test -n "$STRIP"; then
11725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11726else
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11737 fi
11738done
11739done
11740
11741fi
11742fi
11743STRIP=$ac_cv_prog_STRIP
11744if test -n "$STRIP"; then
11745 echo "$as_me:$LINENO: result: $STRIP" >&5
11746echo "${ECHO_T}$STRIP" >&6
11747else
11748 echo "$as_me:$LINENO: result: no" >&5
11749echo "${ECHO_T}no" >&6
11750fi
11751
11752fi
11753if test -z "$ac_cv_prog_STRIP"; then
11754 ac_ct_STRIP=$STRIP
11755 # Extract the first word of "strip", so it can be a program name with args.
11756set dummy strip; ac_word=$2
11757echo "$as_me:$LINENO: checking for $ac_word" >&5
11758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11759if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 if test -n "$ac_ct_STRIP"; then
11763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11764else
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 ac_cv_prog_ac_ct_STRIP="strip"
11773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776done
11777done
11778
11779 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11780fi
11781fi
11782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11783if test -n "$ac_ct_STRIP"; then
11784 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11785echo "${ECHO_T}$ac_ct_STRIP" >&6
11786else
11787 echo "$as_me:$LINENO: result: no" >&5
11788echo "${ECHO_T}no" >&6
11789fi
11790
11791 STRIP=$ac_ct_STRIP
11792else
11793 STRIP="$ac_cv_prog_STRIP"
11794fi
11795
11796
John Criswell7a73b802003-06-30 21:59:07 +000011797old_CC="$CC"
11798old_CFLAGS="$CFLAGS"
11799
11800# Set sane defaults for various variables
11801test -z "$AR" && AR=ar
11802test -z "$AR_FLAGS" && AR_FLAGS=cru
11803test -z "$AS" && AS=as
11804test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011805test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011806test -z "$DLLTOOL" && DLLTOOL=dlltool
11807test -z "$LD" && LD=ld
11808test -z "$LN_S" && LN_S="ln -s"
11809test -z "$MAGIC_CMD" && MAGIC_CMD=file
11810test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011811test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011812test -z "$OBJDUMP" && OBJDUMP=objdump
11813test -z "$RANLIB" && RANLIB=:
11814test -z "$STRIP" && STRIP=:
11815test -z "$ac_objext" && ac_objext=o
11816
John Criswell7a73b802003-06-30 21:59:07 +000011817# Determine commands to create old-style static archives.
11818old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11819old_postinstall_cmds='chmod 644 $oldlib'
11820old_postuninstall_cmds=
11821
11822if test -n "$RANLIB"; then
11823 case $host_os in
11824 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011825 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011826 ;;
11827 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011828 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011829 ;;
11830 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011832fi
11833
Reid Spencer2706f8c2004-09-19 23:53:36 +000011834cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11835
John Criswell47fdd832003-07-14 16:52:07 +000011836# Only perform the check for file, if the check method requires it
11837case $deplibs_check_method in
11838file_magic*)
11839 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11840 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11841echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11842if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011844else
John Criswell47fdd832003-07-14 16:52:07 +000011845 case $MAGIC_CMD in
11846[\\/*] | ?:[\\/]*)
11847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11848 ;;
11849*)
11850 lt_save_MAGIC_CMD="$MAGIC_CMD"
11851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11852 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11853 for ac_dir in $ac_dummy; do
11854 IFS="$lt_save_ifs"
11855 test -z "$ac_dir" && ac_dir=.
11856 if test -f $ac_dir/${ac_tool_prefix}file; then
11857 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11858 if test -n "$file_magic_test_file"; then
11859 case $deplibs_check_method in
11860 "file_magic "*)
11861 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11864 $EGREP "$file_magic_regex" > /dev/null; then
11865 :
11866 else
11867 cat <<EOF 1>&2
11868
11869*** Warning: the command libtool uses to detect shared libraries,
11870*** $file_magic_cmd, produces output that libtool cannot recognize.
11871*** The result is that libtool may fail to recognize shared libraries
11872*** as such. This will affect the creation of libtool libraries that
11873*** depend on shared libraries, but programs linked with such libtool
11874*** libraries will work regardless of this problem. Nevertheless, you
11875*** may want to report the problem to your system manager and/or to
11876*** bug-libtool@gnu.org
11877
11878EOF
11879 fi ;;
11880 esac
11881 fi
11882 break
11883 fi
11884 done
11885 IFS="$lt_save_ifs"
11886 MAGIC_CMD="$lt_save_MAGIC_CMD"
11887 ;;
11888esac
John Criswell7a73b802003-06-30 21:59:07 +000011889fi
John Criswell7a73b802003-06-30 21:59:07 +000011890
John Criswell47fdd832003-07-14 16:52:07 +000011891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11892if test -n "$MAGIC_CMD"; then
11893 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11894echo "${ECHO_T}$MAGIC_CMD" >&6
11895else
11896 echo "$as_me:$LINENO: result: no" >&5
11897echo "${ECHO_T}no" >&6
11898fi
John Criswell7a73b802003-06-30 21:59:07 +000011899
John Criswell47fdd832003-07-14 16:52:07 +000011900if test -z "$lt_cv_path_MAGIC_CMD"; then
11901 if test -n "$ac_tool_prefix"; then
11902 echo "$as_me:$LINENO: checking for file" >&5
11903echo $ECHO_N "checking for file... $ECHO_C" >&6
11904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 case $MAGIC_CMD in
11908[\\/*] | ?:[\\/]*)
11909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11910 ;;
11911*)
11912 lt_save_MAGIC_CMD="$MAGIC_CMD"
11913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11915 for ac_dir in $ac_dummy; do
11916 IFS="$lt_save_ifs"
11917 test -z "$ac_dir" && ac_dir=.
11918 if test -f $ac_dir/file; then
11919 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11920 if test -n "$file_magic_test_file"; then
11921 case $deplibs_check_method in
11922 "file_magic "*)
11923 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11926 $EGREP "$file_magic_regex" > /dev/null; then
11927 :
11928 else
11929 cat <<EOF 1>&2
11930
11931*** Warning: the command libtool uses to detect shared libraries,
11932*** $file_magic_cmd, produces output that libtool cannot recognize.
11933*** The result is that libtool may fail to recognize shared libraries
11934*** as such. This will affect the creation of libtool libraries that
11935*** depend on shared libraries, but programs linked with such libtool
11936*** libraries will work regardless of this problem. Nevertheless, you
11937*** may want to report the problem to your system manager and/or to
11938*** bug-libtool@gnu.org
11939
11940EOF
11941 fi ;;
11942 esac
11943 fi
11944 break
11945 fi
11946 done
11947 IFS="$lt_save_ifs"
11948 MAGIC_CMD="$lt_save_MAGIC_CMD"
11949 ;;
11950esac
11951fi
11952
11953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11954if test -n "$MAGIC_CMD"; then
11955 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11956echo "${ECHO_T}$MAGIC_CMD" >&6
11957else
11958 echo "$as_me:$LINENO: result: no" >&5
11959echo "${ECHO_T}no" >&6
11960fi
11961
11962 else
11963 MAGIC_CMD=:
11964 fi
11965fi
11966
11967 fi
11968 ;;
11969esac
11970
Reid Spencer17795972004-11-18 09:47:37 +000011971enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011972enable_win32_dll=no
11973
11974# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11975if test "${enable_libtool_lock+set}" = set; then
11976 enableval="$enable_libtool_lock"
11977
11978fi;
11979test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11980
John Criswell7a73b802003-06-30 21:59:07 +000011981
11982# Check whether --with-pic or --without-pic was given.
11983if test "${with_pic+set}" = set; then
11984 withval="$with_pic"
11985 pic_mode="$withval"
11986else
11987 pic_mode=default
11988fi;
11989test -z "$pic_mode" && pic_mode=default
11990
John Criswell47fdd832003-07-14 16:52:07 +000011991# Use C for the default configuration in the libtool script
11992tagname=
11993lt_save_CC="$CC"
11994ac_ext=c
11995ac_cpp='$CPP $CPPFLAGS'
11996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998ac_compiler_gnu=$ac_cv_c_compiler_gnu
11999
12000
12001# Source file extension for C test sources.
12002ac_ext=c
12003
12004# Object file extension for compiled C test sources.
12005objext=o
12006objext=$objext
12007
12008# Code to be used in simple compile tests
12009lt_simple_compile_test_code="int some_variable = 0;\n"
12010
12011# Code to be used in simple link tests
12012lt_simple_link_test_code='int main(){return(0);}\n'
12013
12014
12015# If no C compiler was specified, use CC.
12016LTCC=${LTCC-"$CC"}
12017
12018# Allow CC to be a program name with arguments.
12019compiler=$CC
12020
12021
12022#
12023# Check for any special shared library compilation flags.
12024#
12025lt_prog_cc_shlib=
12026if test "$GCC" = no; then
12027 case $host_os in
12028 sco3.2v5*)
12029 lt_prog_cc_shlib='-belf'
12030 ;;
12031 esac
12032fi
12033if test -n "$lt_prog_cc_shlib"; then
12034 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12035echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12036 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12037 else
12038 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12039echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12040 lt_cv_prog_cc_can_build_shared=no
12041 fi
12042fi
12043
12044
12045#
12046# Check to make sure the static flag actually works.
12047#
12048echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12049echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12050if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
John Criswell47fdd832003-07-14 16:52:07 +000012053 lt_prog_compiler_static_works=no
12054 save_LDFLAGS="$LDFLAGS"
12055 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12056 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12058 # The compiler can only warn and ignore the option if not recognized
12059 # So say no if there are warnings
12060 if test -s conftest.err; then
12061 # Append any errors to the config.log.
12062 cat conftest.err 1>&5
12063 else
12064 lt_prog_compiler_static_works=yes
12065 fi
12066 fi
12067 $rm conftest*
12068 LDFLAGS="$save_LDFLAGS"
12069
12070fi
12071echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12072echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12073
12074if test x"$lt_prog_compiler_static_works" = xyes; then
12075 :
12076else
12077 lt_prog_compiler_static=
12078fi
12079
12080
12081
John Criswell47fdd832003-07-14 16:52:07 +000012082
12083lt_prog_compiler_no_builtin_flag=
12084
12085if test "$GCC" = yes; then
12086 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12087
Reid Spencer2706f8c2004-09-19 23:53:36 +000012088
12089echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012090echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12091if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 lt_cv_prog_compiler_rtti_exceptions=no
12095 ac_outfile=conftest.$ac_objext
12096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12097 lt_compiler_flag="-fno-rtti -fno-exceptions"
12098 # Insert the option either (1) after the last *FLAGS variable, or
12099 # (2) before a word containing "conftest.", or (3) at the end.
12100 # Note that $ac_compile itself does not contain backslashes and begins
12101 # with a dollar sign (not a hyphen), so the echo should work correctly.
12102 # The option is referenced via a variable to avoid confusing sed.
12103 lt_compile=`echo "$ac_compile" | $SED \
12104 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12106 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000012107 (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012108 (eval "$lt_compile" 2>conftest.err)
12109 ac_status=$?
12110 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000012111 echo "$as_me:12095: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012112 if (exit $ac_status) && test -s "$ac_outfile"; then
12113 # The compiler can only warn and ignore the option if not recognized
12114 # So say no if there are warnings
12115 if test ! -s conftest.err; then
12116 lt_cv_prog_compiler_rtti_exceptions=yes
12117 fi
12118 fi
12119 $rm conftest*
12120
12121fi
12122echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12123echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12124
12125if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12127else
12128 :
12129fi
12130
12131fi
12132
12133lt_prog_compiler_wl=
12134lt_prog_compiler_pic=
12135lt_prog_compiler_static=
12136
12137echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12138echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012139
12140 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012141 lt_prog_compiler_wl='-Wl,'
12142 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012143
12144 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012145 aix*)
12146 # All AIX code is PIC.
12147 if test "$host_cpu" = ia64; then
12148 # AIX 5 now supports IA64 processor
12149 lt_prog_compiler_static='-Bstatic'
12150 fi
John Criswell7a73b802003-06-30 21:59:07 +000012151 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012152
John Criswell7a73b802003-06-30 21:59:07 +000012153 amigaos*)
12154 # FIXME: we need at least 68020 code to build shared libraries, but
12155 # adding the `-m68020' flag to GCC prevents building anything better,
12156 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012157 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012158 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012159
12160 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012161 # PIC is the default for these OSes.
12162 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012163
12164 mingw* | pw32* | os2*)
12165 # This hack is so that the source file can tell whether it is being
12166 # built for inclusion in a dll (and should export symbols for example).
12167 lt_prog_compiler_pic='-DDLL_EXPORT'
12168 ;;
12169
John Criswell7a73b802003-06-30 21:59:07 +000012170 darwin* | rhapsody*)
12171 # PIC is the default on this platform
12172 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012173 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012174 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012175
12176 msdosdjgpp*)
12177 # Just because we use GCC doesn't mean we suddenly get shared libraries
12178 # on systems that don't support them.
12179 lt_prog_compiler_can_build_shared=no
12180 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012181 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012182
John Criswell7a73b802003-06-30 21:59:07 +000012183 sysv4*MP*)
12184 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012185 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012186 fi
12187 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012188
12189 hpux*)
12190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12191 # not for PA HP-UX.
12192 case "$host_cpu" in
12193 hppa*64*|ia64*)
12194 # +Z the default
12195 ;;
12196 *)
12197 lt_prog_compiler_pic='-fPIC'
12198 ;;
12199 esac
12200 ;;
12201
John Criswell7a73b802003-06-30 21:59:07 +000012202 *)
John Criswell47fdd832003-07-14 16:52:07 +000012203 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012204 ;;
12205 esac
12206 else
John Criswell47fdd832003-07-14 16:52:07 +000012207 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012208 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012209 aix*)
12210 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012211 if test "$host_cpu" = ia64; then
12212 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012213 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012214 else
John Criswell47fdd832003-07-14 16:52:07 +000012215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012216 fi
12217 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012218 darwin*)
12219 # PIC is the default on this platform
12220 # Common symbols not allowed in MH_DYLIB files
12221 case "$cc_basename" in
12222 xlc*)
12223 lt_prog_compiler_pic='-qnocommon'
12224 lt_prog_compiler_wl='-Wl,'
12225 ;;
12226 esac
12227 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012228
John Criswell47fdd832003-07-14 16:52:07 +000012229 mingw* | pw32* | os2*)
12230 # This hack is so that the source file can tell whether it is being
12231 # built for inclusion in a dll (and should export symbols for example).
12232 lt_prog_compiler_pic='-DDLL_EXPORT'
12233 ;;
12234
John Criswell7a73b802003-06-30 21:59:07 +000012235 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012236 lt_prog_compiler_wl='-Wl,'
12237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12238 # not for PA HP-UX.
12239 case "$host_cpu" in
12240 hppa*64*|ia64*)
12241 # +Z the default
12242 ;;
12243 *)
12244 lt_prog_compiler_pic='+Z'
12245 ;;
12246 esac
12247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12248 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012249 ;;
12250
John Criswell47fdd832003-07-14 16:52:07 +000012251 irix5* | irix6* | nonstopux*)
12252 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012253 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012254 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012255 ;;
12256
12257 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012258 lt_prog_compiler_pic='-KPIC'
12259 lt_prog_compiler_static='-Bstatic'
12260 ;;
12261
12262 linux*)
12263 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012264 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012265 lt_prog_compiler_wl='-Wl,'
12266 lt_prog_compiler_pic='-KPIC'
12267 lt_prog_compiler_static='-static'
12268 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012269 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012270 lt_prog_compiler_wl='-Wl,'
12271 # All Alpha code is PIC.
12272 lt_prog_compiler_static='-non_shared'
12273 ;;
12274 esac
John Criswell7a73b802003-06-30 21:59:07 +000012275 ;;
12276
12277 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012278 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012279 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012280 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012281 ;;
12282
12283 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012284 lt_prog_compiler_pic='-Kpic'
12285 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012286 ;;
12287
12288 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012289 lt_prog_compiler_wl='-Wl,'
12290 lt_prog_compiler_pic='-KPIC'
12291 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012292 ;;
12293
12294 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012295 lt_prog_compiler_wl='-Qoption ld '
12296 lt_prog_compiler_pic='-PIC'
12297 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012298 ;;
12299
12300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012301 lt_prog_compiler_wl='-Wl,'
12302 lt_prog_compiler_pic='-KPIC'
12303 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012304 ;;
12305
12306 sysv4*MP*)
12307 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012308 lt_prog_compiler_pic='-Kconform_pic'
12309 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012310 fi
12311 ;;
12312
John Criswell47fdd832003-07-14 16:52:07 +000012313 uts4*)
12314 lt_prog_compiler_pic='-pic'
12315 lt_prog_compiler_static='-Bstatic'
12316 ;;
12317
John Criswell7a73b802003-06-30 21:59:07 +000012318 *)
John Criswell47fdd832003-07-14 16:52:07 +000012319 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012320 ;;
12321 esac
12322 fi
12323
John Criswell47fdd832003-07-14 16:52:07 +000012324echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12325echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012326
John Criswell47fdd832003-07-14 16:52:07 +000012327#
12328# Check to make sure the PIC flag actually works.
12329#
12330if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012331
12332echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012333echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12334if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
John Criswell47fdd832003-07-14 16:52:07 +000012337 lt_prog_compiler_pic_works=no
12338 ac_outfile=conftest.$ac_objext
12339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12340 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12341 # Insert the option either (1) after the last *FLAGS variable, or
12342 # (2) before a word containing "conftest.", or (3) at the end.
12343 # Note that $ac_compile itself does not contain backslashes and begins
12344 # with a dollar sign (not a hyphen), so the echo should work correctly.
12345 # The option is referenced via a variable to avoid confusing sed.
12346 lt_compile=`echo "$ac_compile" | $SED \
12347 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12349 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000012350 (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012351 (eval "$lt_compile" 2>conftest.err)
12352 ac_status=$?
12353 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000012354 echo "$as_me:12338: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012355 if (exit $ac_status) && test -s "$ac_outfile"; then
12356 # The compiler can only warn and ignore the option if not recognized
12357 # So say no if there are warnings
12358 if test ! -s conftest.err; then
12359 lt_prog_compiler_pic_works=yes
12360 fi
12361 fi
12362 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012363
John Criswell47fdd832003-07-14 16:52:07 +000012364fi
12365echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12366echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012367
John Criswell47fdd832003-07-14 16:52:07 +000012368if test x"$lt_prog_compiler_pic_works" = xyes; then
12369 case $lt_prog_compiler_pic in
12370 "" | " "*) ;;
12371 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12372 esac
John Criswell7a73b802003-06-30 21:59:07 +000012373else
John Criswell47fdd832003-07-14 16:52:07 +000012374 lt_prog_compiler_pic=
12375 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012376fi
12377
John Criswell7a73b802003-06-30 21:59:07 +000012378fi
John Criswell47fdd832003-07-14 16:52:07 +000012379case "$host_os" in
12380 # For platforms which do not support PIC, -DPIC is meaningless:
12381 *djgpp*)
12382 lt_prog_compiler_pic=
12383 ;;
12384 *)
12385 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12386 ;;
12387esac
John Criswell7a73b802003-06-30 21:59:07 +000012388
John Criswell7a73b802003-06-30 21:59:07 +000012389echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12390echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012391if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
John Criswell47fdd832003-07-14 16:52:07 +000012394 lt_cv_prog_compiler_c_o=no
12395 $rm -r conftest 2>/dev/null
12396 mkdir conftest
12397 cd conftest
12398 mkdir out
12399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012400
John Criswell47fdd832003-07-14 16:52:07 +000012401 lt_compiler_flag="-o out/conftest2.$ac_objext"
12402 # Insert the option either (1) after the last *FLAGS variable, or
12403 # (2) before a word containing "conftest.", or (3) at the end.
12404 # Note that $ac_compile itself does not contain backslashes and begins
12405 # with a dollar sign (not a hyphen), so the echo should work correctly.
12406 lt_compile=`echo "$ac_compile" | $SED \
12407 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12409 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000012410 (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012411 (eval "$lt_compile" 2>out/conftest.err)
12412 ac_status=$?
12413 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000012414 echo "$as_me:12398: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12416 then
12417 # The compiler can only warn and ignore the option if not recognized
12418 # So say no if there are warnings
12419 if test ! -s out/conftest.err; then
12420 lt_cv_prog_compiler_c_o=yes
12421 fi
12422 fi
12423 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012424 $rm conftest*
12425 # SGI C++ compiler will create directory out/ii_files/ for
12426 # template instantiation
12427 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12428 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012429 cd ..
12430 rmdir conftest
12431 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012432
12433fi
John Criswell47fdd832003-07-14 16:52:07 +000012434echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12435echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012436
John Criswell7a73b802003-06-30 21:59:07 +000012437
John Criswell7a73b802003-06-30 21:59:07 +000012438hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012439if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012440 # do not overwrite the value of need_locks provided by the user
12441 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12442echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12443 hard_links=yes
12444 $rm conftest*
12445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446 touch conftest.a
12447 ln conftest.a conftest.b 2>&5 || hard_links=no
12448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12449 echo "$as_me:$LINENO: result: $hard_links" >&5
12450echo "${ECHO_T}$hard_links" >&6
12451 if test "$hard_links" = no; then
12452 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12453echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12454 need_locks=warn
12455 fi
12456else
12457 need_locks=no
12458fi
John Criswell7a73b802003-06-30 21:59:07 +000012459
John Criswell47fdd832003-07-14 16:52:07 +000012460echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12462
12463 runpath_var=
12464 allow_undefined_flag=
12465 enable_shared_with_static_runtimes=no
12466 archive_cmds=
12467 archive_expsym_cmds=
12468 old_archive_From_new_cmds=
12469 old_archive_from_expsyms_cmds=
12470 export_dynamic_flag_spec=
12471 whole_archive_flag_spec=
12472 thread_safe_flag_spec=
12473 hardcode_libdir_flag_spec=
12474 hardcode_libdir_flag_spec_ld=
12475 hardcode_libdir_separator=
12476 hardcode_direct=no
12477 hardcode_minus_L=no
12478 hardcode_shlibpath_var=unsupported
12479 link_all_deplibs=unknown
12480 hardcode_automatic=no
12481 module_cmds=
12482 module_expsym_cmds=
12483 always_export_symbols=no
12484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12485 # include_expsyms should be a list of space-separated symbols to be *always*
12486 # included in the symbol list
12487 include_expsyms=
12488 # exclude_expsyms can be an extended regexp of symbols to exclude
12489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12491 # as well as any symbol that contains `d'.
12492 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12494 # platforms (ab)use it in PIC code, but their linkers get confused if
12495 # the symbol is explicitly referenced. Since portable code cannot
12496 # rely on this symbol name, it's probably fine to never include it in
12497 # preloaded symbol tables.
12498 extract_expsyms_cmds=
12499
12500 case $host_os in
12501 cygwin* | mingw* | pw32*)
12502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12503 # When not using gcc, we currently assume that we are using
12504 # Microsoft Visual C++.
12505 if test "$GCC" != yes; then
12506 with_gnu_ld=no
12507 fi
12508 ;;
12509 openbsd*)
12510 with_gnu_ld=no
12511 ;;
12512 esac
12513
12514 ld_shlibs=yes
12515 if test "$with_gnu_ld" = yes; then
12516 # If archive_cmds runs LD, not CC, wlarc should be empty
12517 wlarc='${wl}'
12518
12519 # See if GNU ld supports shared libraries.
12520 case $host_os in
12521 aix3* | aix4* | aix5*)
12522 # On AIX/PPC, the GNU linker is very broken
12523 if test "$host_cpu" != ia64; then
12524 ld_shlibs=no
12525 cat <<EOF 1>&2
12526
12527*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12528*** to be unable to reliably create shared libraries on AIX.
12529*** Therefore, libtool is disabling shared libraries support. If you
12530*** really care for shared libraries, you may want to modify your PATH
12531*** so that a non-GNU linker is found, and then restart.
12532
12533EOF
12534 fi
12535 ;;
12536
12537 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012538 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 +000012539 hardcode_libdir_flag_spec='-L$libdir'
12540 hardcode_minus_L=yes
12541
12542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12543 # that the semantics of dynamic libraries on AmigaOS, at least up
12544 # to version 4, is to share data among multiple programs linked
12545 # with the same dynamic library. Since this doesn't match the
12546 # behavior of shared libraries on other platforms, we can't use
12547 # them.
12548 ld_shlibs=no
12549 ;;
12550
12551 beos*)
12552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12553 allow_undefined_flag=unsupported
12554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12555 # support --undefined. This deserves some investigation. FIXME
12556 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12557 else
12558 ld_shlibs=no
12559 fi
12560 ;;
12561
12562 cygwin* | mingw* | pw32*)
12563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12564 # as there is no search path for DLLs.
12565 hardcode_libdir_flag_spec='-L$libdir'
12566 allow_undefined_flag=unsupported
12567 always_export_symbols=no
12568 enable_shared_with_static_runtimes=yes
12569 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12570
12571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12573 # If the export-symbols file already is a .def file (1st line
12574 # is EXPORTS), use it as is; otherwise, prepend...
12575 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12576 cp $export_symbols $output_objdir/$soname.def;
12577 else
12578 echo EXPORTS > $output_objdir/$soname.def;
12579 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012580 fi~
12581 $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 +000012582 else
12583 ld_shlibs=no
12584 fi
12585 ;;
12586
12587 netbsd*)
12588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12590 wlarc=
12591 else
12592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12594 fi
12595 ;;
12596
12597 solaris* | sysv5*)
12598 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12599 ld_shlibs=no
12600 cat <<EOF 1>&2
12601
12602*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12603*** create shared libraries on Solaris systems. Therefore, libtool
12604*** is disabling shared libraries support. We urge you to upgrade GNU
12605*** binutils to release 2.9.1 or newer. Another option is to modify
12606*** your PATH or compiler configuration so that the native linker is
12607*** used, and then restart.
12608
12609EOF
12610 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12613 else
12614 ld_shlibs=no
12615 fi
12616 ;;
12617
12618 sunos4*)
12619 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12620 wlarc=
12621 hardcode_direct=yes
12622 hardcode_shlibpath_var=no
12623 ;;
12624
Reid Spencer2706f8c2004-09-19 23:53:36 +000012625 linux*)
12626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12627 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628 archive_cmds="$tmp_archive_cmds"
12629 supports_anon_versioning=no
12630 case `$LD -v 2>/dev/null` in
12631 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12634 *\ 2.11.*) ;; # other 2.11 versions
12635 *) supports_anon_versioning=yes ;;
12636 esac
12637 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012638 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12639cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12640$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012641 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12642 else
12643 archive_expsym_cmds="$tmp_archive_cmds"
12644 fi
12645 else
12646 ld_shlibs=no
12647 fi
12648 ;;
12649
John Criswell47fdd832003-07-14 16:52:07 +000012650 *)
12651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12654 else
12655 ld_shlibs=no
12656 fi
12657 ;;
12658 esac
12659
12660 if test "$ld_shlibs" = yes; then
12661 runpath_var=LD_RUN_PATH
12662 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12663 export_dynamic_flag_spec='${wl}--export-dynamic'
12664 # ancient GNU ld didn't support --whole-archive et. al.
12665 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12666 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12667 else
12668 whole_archive_flag_spec=
12669 fi
12670 fi
12671 else
12672 # PORTME fill in a description of your system's linker (not GNU ld)
12673 case $host_os in
12674 aix3*)
12675 allow_undefined_flag=unsupported
12676 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012677 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 +000012678 # Note: this linker hardcodes the directories in LIBPATH if there
12679 # are no directories specified by -L.
12680 hardcode_minus_L=yes
12681 if test "$GCC" = yes && test -z "$link_static_flag"; then
12682 # Neither direct hardcoding nor static linking is supported with a
12683 # broken collect2.
12684 hardcode_direct=unsupported
12685 fi
12686 ;;
12687
12688 aix4* | aix5*)
12689 if test "$host_cpu" = ia64; then
12690 # On IA64, the linker does run time linking by default, so we don't
12691 # have to do anything special.
12692 aix_use_runtimelinking=no
12693 exp_sym_flag='-Bexport'
12694 no_entry_flag=""
12695 else
12696 # If we're using GNU nm, then we don't want the "-C" option.
12697 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12698 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12699 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'
12700 else
12701 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'
12702 fi
12703 aix_use_runtimelinking=no
12704
12705 # Test if we are trying to use run time linking or normal
12706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12707 # need to do runtime linking.
12708 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12709 for ld_flag in $LDFLAGS; do
12710 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12711 aix_use_runtimelinking=yes
12712 break
12713 fi
12714 done
12715 esac
12716
12717 exp_sym_flag='-bexport'
12718 no_entry_flag='-bnoentry'
12719 fi
12720
12721 # When large executables or shared objects are built, AIX ld can
12722 # have problems creating the table of contents. If linking a library
12723 # or program results in "error TOC overflow" add -mminimal-toc to
12724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12726
12727 archive_cmds=''
12728 hardcode_direct=yes
12729 hardcode_libdir_separator=':'
12730 link_all_deplibs=yes
12731
12732 if test "$GCC" = yes; then
12733 case $host_os in aix4.012|aix4.012.*)
12734 # We only want to do this on AIX 4.2 and lower, the check
12735 # below for broken collect2 doesn't work under 4.3+
12736 collect2name=`${CC} -print-prog-name=collect2`
12737 if test -f "$collect2name" && \
12738 strings "$collect2name" | grep resolve_lib_name >/dev/null
12739 then
12740 # We have reworked collect2
12741 hardcode_direct=yes
12742 else
12743 # We have old collect2
12744 hardcode_direct=unsupported
12745 # It fails to find uninstalled libraries when the uninstalled
12746 # path is not listed in the libpath. Setting hardcode_minus_L
12747 # to unsupported forces relinking
12748 hardcode_minus_L=yes
12749 hardcode_libdir_flag_spec='-L$libdir'
12750 hardcode_libdir_separator=
12751 fi
12752 esac
12753 shared_flag='-shared'
12754 else
12755 # not using gcc
12756 if test "$host_cpu" = ia64; then
12757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12758 # chokes on -Wl,-G. The following line is correct:
12759 shared_flag='-G'
12760 else
12761 if test "$aix_use_runtimelinking" = yes; then
12762 shared_flag='${wl}-G'
12763 else
12764 shared_flag='${wl}-bM:SRE'
12765 fi
12766 fi
12767 fi
12768
12769 # It seems that -bexpall does not export symbols beginning with
12770 # underscore (_), so it is better to generate a list of symbols to export.
12771 always_export_symbols=yes
12772 if test "$aix_use_runtimelinking" = yes; then
12773 # Warning - without using the other runtime loading flags (-brtl),
12774 # -berok will link without error, but may produce a broken library.
12775 allow_undefined_flag='-berok'
12776 # Determine the default libpath from the value encoded in an empty executable.
12777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012778/* confdefs.h. */
12779_ACEOF
12780cat confdefs.h >>conftest.$ac_ext
12781cat >>conftest.$ac_ext <<_ACEOF
12782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012783
John Criswell7a73b802003-06-30 21:59:07 +000012784int
12785main ()
12786{
John Criswell47fdd832003-07-14 16:52:07 +000012787
John Criswell7a73b802003-06-30 21:59:07 +000012788 ;
12789 return 0;
12790}
12791_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012792rm -f conftest.$ac_objext conftest$ac_exeext
12793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012794 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012814
John Criswell47fdd832003-07-14 16:52:07 +000012815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12816}'`
12817# Check for a 64-bit object if we didn't find anything.
12818if 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; }
12819}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012820else
12821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012822sed 's/^/| /' conftest.$ac_ext >&5
12823
John Criswell7a73b802003-06-30 21:59:07 +000012824fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012825rm -f conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012827if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012828
John Criswell47fdd832003-07-14 16:52:07 +000012829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12830 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"
12831 else
12832 if test "$host_cpu" = ia64; then
12833 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12834 allow_undefined_flag="-z nodefs"
12835 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"
12836 else
12837 # Determine the default libpath from the value encoded in an empty executable.
12838 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012844
John Criswell47fdd832003-07-14 16:52:07 +000012845int
12846main ()
12847{
John Criswell7a73b802003-06-30 21:59:07 +000012848
John Criswell47fdd832003-07-14 16:52:07 +000012849 ;
12850 return 0;
12851}
12852_ACEOF
12853rm -f conftest.$ac_objext conftest$ac_exeext
12854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012855 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012856 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012875
John Criswell47fdd832003-07-14 16:52:07 +000012876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12877}'`
12878# Check for a 64-bit object if we didn't find anything.
12879if 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; }
12880}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012881else
John Criswell47fdd832003-07-14 16:52:07 +000012882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012883sed 's/^/| /' conftest.$ac_ext >&5
12884
John Criswell47fdd832003-07-14 16:52:07 +000012885fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012886rm -f conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012889
John Criswell47fdd832003-07-14 16:52:07 +000012890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12891 # Warning - without using the other run time loading flags,
12892 # -berok will link without error, but may produce a broken library.
12893 no_undefined_flag=' ${wl}-bernotok'
12894 allow_undefined_flag=' ${wl}-berok'
12895 # -bexpall does not export symbols beginning with underscore (_)
12896 always_export_symbols=yes
12897 # Exported symbols can be pulled into shared objects from archives
12898 whole_archive_flag_spec=' '
12899 archive_cmds_need_lc=yes
12900 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012901 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 +000012902 fi
12903 fi
John Criswell7a73b802003-06-30 21:59:07 +000012904 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012905
12906 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012907 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 +000012908 hardcode_libdir_flag_spec='-L$libdir'
12909 hardcode_minus_L=yes
12910 # see comment about different semantics on the GNU ld section
12911 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012912 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012913
Reid Spencer2706f8c2004-09-19 23:53:36 +000012914 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012915 export_dynamic_flag_spec=-rdynamic
12916 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012917
John Criswell47fdd832003-07-14 16:52:07 +000012918 cygwin* | mingw* | pw32*)
12919 # When not using gcc, we currently assume that we are using
12920 # Microsoft Visual C++.
12921 # hardcode_libdir_flag_spec is actually meaningless, as there is
12922 # no search path for DLLs.
12923 hardcode_libdir_flag_spec=' '
12924 allow_undefined_flag=unsupported
12925 # Tell ltmain to make .lib files, not .a files.
12926 libext=lib
12927 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012928 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012929 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012930 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012931 # The linker will automatically build a .lib file if we build a DLL.
12932 old_archive_From_new_cmds='true'
12933 # FIXME: Should let the user specify the lib program.
12934 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12935 fix_srcfile_path='`cygpath -w "$srcfile"`'
12936 enable_shared_with_static_runtimes=yes
12937 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012938
John Criswell47fdd832003-07-14 16:52:07 +000012939 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012940 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012941 rhapsody* | darwin1.[012])
12942 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12943 ;;
12944 *) # Darwin 1.3 on
12945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12946 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12947 else
12948 case ${MACOSX_DEPLOYMENT_TARGET} in
12949 10.[012])
12950 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12951 ;;
12952 10.*)
12953 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12954 ;;
12955 esac
12956 fi
12957 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012958 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012959 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012960 hardcode_direct=no
12961 hardcode_automatic=yes
12962 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012963 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012964 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012965 if test "$GCC" = yes ; then
12966 output_verbose_link_cmd='echo'
12967 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12968 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12969 # 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 +000012970 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}'
12971 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 +000012972 else
12973 case "$cc_basename" in
12974 xlc*)
12975 output_verbose_link_cmd='echo'
12976 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12977 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12978 # 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 +000012979 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}'
12980 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 +000012981 ;;
12982 *)
12983 ld_shlibs=no
12984 ;;
12985 esac
John Criswell7a73b802003-06-30 21:59:07 +000012986 fi
John Criswell47fdd832003-07-14 16:52:07 +000012987 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012988
John Criswell47fdd832003-07-14 16:52:07 +000012989 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012991 hardcode_libdir_flag_spec='-L$libdir'
12992 hardcode_shlibpath_var=no
12993 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012994
John Criswell47fdd832003-07-14 16:52:07 +000012995 freebsd1*)
12996 ld_shlibs=no
12997 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012998
John Criswell47fdd832003-07-14 16:52:07 +000012999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13000 # support. Future versions do this automatically, but an explicit c++rt0.o
13001 # does not break anything, and helps significantly (at the cost of a little
13002 # extra space).
13003 freebsd2.2*)
13004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13005 hardcode_libdir_flag_spec='-R$libdir'
13006 hardcode_direct=yes
13007 hardcode_shlibpath_var=no
13008 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013009
John Criswell47fdd832003-07-14 16:52:07 +000013010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13011 freebsd2*)
13012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_direct=yes
13014 hardcode_minus_L=yes
13015 hardcode_shlibpath_var=no
13016 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013017
John Criswell47fdd832003-07-14 16:52:07 +000013018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013019 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013020 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13021 hardcode_libdir_flag_spec='-R$libdir'
13022 hardcode_direct=yes
13023 hardcode_shlibpath_var=no
13024 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013025
John Criswell47fdd832003-07-14 16:52:07 +000013026 hpux9*)
13027 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013028 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 +000013029 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013030 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 +000013031 fi
13032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13033 hardcode_libdir_separator=:
13034 hardcode_direct=yes
13035
13036 # hardcode_minus_L: Not really in the search PATH,
13037 # but as the default location of the library.
13038 hardcode_minus_L=yes
13039 export_dynamic_flag_spec='${wl}-E'
13040 ;;
13041
13042 hpux10* | hpux11*)
13043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13044 case "$host_cpu" in
13045 hppa*64*|ia64*)
13046 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13047 ;;
13048 *)
13049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13050 ;;
13051 esac
13052 else
13053 case "$host_cpu" in
13054 hppa*64*|ia64*)
13055 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 ;;
13057 *)
13058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13059 ;;
13060 esac
13061 fi
13062 if test "$with_gnu_ld" = no; then
13063 case "$host_cpu" in
13064 hppa*64*)
13065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13066 hardcode_libdir_flag_spec_ld='+b $libdir'
13067 hardcode_libdir_separator=:
13068 hardcode_direct=no
13069 hardcode_shlibpath_var=no
13070 ;;
13071 ia64*)
13072 hardcode_libdir_flag_spec='-L$libdir'
13073 hardcode_direct=no
13074 hardcode_shlibpath_var=no
13075
13076 # hardcode_minus_L: Not really in the search PATH,
13077 # but as the default location of the library.
13078 hardcode_minus_L=yes
13079 ;;
13080 *)
13081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13082 hardcode_libdir_separator=:
13083 hardcode_direct=yes
13084 export_dynamic_flag_spec='${wl}-E'
13085
13086 # hardcode_minus_L: Not really in the search PATH,
13087 # but as the default location of the library.
13088 hardcode_minus_L=yes
13089 ;;
13090 esac
13091 fi
13092 ;;
13093
13094 irix5* | irix6* | nonstopux*)
13095 if test "$GCC" = yes; then
13096 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'
13097 else
13098 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'
13099 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13100 fi
13101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13102 hardcode_libdir_separator=:
13103 link_all_deplibs=yes
13104 ;;
13105
13106 netbsd*)
13107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13109 else
13110 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13111 fi
13112 hardcode_libdir_flag_spec='-R$libdir'
13113 hardcode_direct=yes
13114 hardcode_shlibpath_var=no
13115 ;;
13116
13117 newsos6)
13118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119 hardcode_direct=yes
13120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13121 hardcode_libdir_separator=:
13122 hardcode_shlibpath_var=no
13123 ;;
13124
13125 openbsd*)
13126 hardcode_direct=yes
13127 hardcode_shlibpath_var=no
13128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013130 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 +000013131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13132 export_dynamic_flag_spec='${wl}-E'
13133 else
13134 case $host_os in
13135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13137 hardcode_libdir_flag_spec='-R$libdir'
13138 ;;
13139 *)
13140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13142 ;;
13143 esac
13144 fi
13145 ;;
13146
13147 os2*)
13148 hardcode_libdir_flag_spec='-L$libdir'
13149 hardcode_minus_L=yes
13150 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013151 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 +000013152 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13153 ;;
13154
13155 osf3*)
13156 if test "$GCC" = yes; then
13157 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13158 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'
13159 else
13160 allow_undefined_flag=' -expect_unresolved \*'
13161 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'
13162 fi
13163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13164 hardcode_libdir_separator=:
13165 ;;
13166
13167 osf4* | osf5*) # as osf3* with the addition of -msym flag
13168 if test "$GCC" = yes; then
13169 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13170 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'
13171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13172 else
13173 allow_undefined_flag=' -expect_unresolved \*'
13174 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 +000013175 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13176 $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'
13177
John Criswell47fdd832003-07-14 16:52:07 +000013178 # Both c and cxx compiler support -rpath directly
13179 hardcode_libdir_flag_spec='-rpath $libdir'
13180 fi
13181 hardcode_libdir_separator=:
13182 ;;
13183
13184 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013187 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013188 runpath_var=LD_RUN_PATH
13189 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013190 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013191
John Criswell47fdd832003-07-14 16:52:07 +000013192 solaris*)
13193 no_undefined_flag=' -z text'
13194 if test "$GCC" = yes; then
13195 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013196 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13197 $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 +000013198 else
13199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013200 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13201 $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 +000013202 fi
13203 hardcode_libdir_flag_spec='-R$libdir'
13204 hardcode_shlibpath_var=no
13205 case $host_os in
13206 solaris2.[0-5] | solaris2.[0-5].*) ;;
13207 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13208 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13209 esac
13210 link_all_deplibs=yes
13211 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013212
John Criswell47fdd832003-07-14 16:52:07 +000013213 sunos4*)
13214 if test "x$host_vendor" = xsequent; then
13215 # Use $CC to link under sequent, because it throws in some extra .o
13216 # files that make .init and .fini sections work.
13217 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13218 else
13219 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13220 fi
13221 hardcode_libdir_flag_spec='-L$libdir'
13222 hardcode_direct=yes
13223 hardcode_minus_L=yes
13224 hardcode_shlibpath_var=no
13225 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013226
John Criswell47fdd832003-07-14 16:52:07 +000013227 sysv4)
13228 case $host_vendor in
13229 sni)
13230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231 hardcode_direct=yes # is this really true???
13232 ;;
13233 siemens)
13234 ## LD is ld it makes a PLAMLIB
13235 ## CC just makes a GrossModule.
13236 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13237 reload_cmds='$CC -r -o $output$reload_objs'
13238 hardcode_direct=no
13239 ;;
13240 motorola)
13241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13243 ;;
13244 esac
13245 runpath_var='LD_RUN_PATH'
13246 hardcode_shlibpath_var=no
13247 ;;
13248
13249 sysv4.3*)
13250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_shlibpath_var=no
13252 export_dynamic_flag_spec='-Bexport'
13253 ;;
13254
13255 sysv4*MP*)
13256 if test -d /usr/nec; then
13257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_shlibpath_var=no
13259 runpath_var=LD_RUN_PATH
13260 hardcode_runpath_var=yes
13261 ld_shlibs=yes
13262 fi
13263 ;;
13264
13265 sysv4.2uw2*)
13266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13267 hardcode_direct=yes
13268 hardcode_minus_L=no
13269 hardcode_shlibpath_var=no
13270 hardcode_runpath_var=yes
13271 runpath_var=LD_RUN_PATH
13272 ;;
13273
13274 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13275 no_undefined_flag='${wl}-z ${wl}text'
13276 if test "$GCC" = yes; then
13277 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13278 else
13279 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13280 fi
13281 runpath_var='LD_RUN_PATH'
13282 hardcode_shlibpath_var=no
13283 ;;
13284
13285 sysv5*)
13286 no_undefined_flag=' -z text'
13287 # $CC -shared without GNU ld will not create a library from C++
13288 # object files and a static libstdc++, better avoid it by now
13289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013290 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13291 $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 +000013292 hardcode_libdir_flag_spec=
13293 hardcode_shlibpath_var=no
13294 runpath_var='LD_RUN_PATH'
13295 ;;
13296
13297 uts4*)
13298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_libdir_flag_spec='-L$libdir'
13300 hardcode_shlibpath_var=no
13301 ;;
13302
13303 *)
13304 ld_shlibs=no
13305 ;;
13306 esac
13307 fi
13308
John Criswell7a73b802003-06-30 21:59:07 +000013309echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13310echo "${ECHO_T}$ld_shlibs" >&6
13311test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013312
John Criswell47fdd832003-07-14 16:52:07 +000013313variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13314if test "$GCC" = yes; then
13315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13316fi
13317
13318#
13319# Do we need to explicitly link libc?
13320#
13321case "x$archive_cmds_need_lc" in
13322x|xyes)
13323 # Assume -lc should be added
13324 archive_cmds_need_lc=yes
13325
13326 if test "$enable_shared" = yes && test "$GCC" = yes; then
13327 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013328 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013329 # FIXME: we may have to deal with multi-command sequences.
13330 ;;
13331 '$CC '*)
13332 # Test whether the compiler implicitly links with -lc since on some
13333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13334 # to ld, don't add -lc before -lgcc.
13335 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13336echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13337 $rm conftest*
13338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13339
13340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } 2>conftest.err; then
13345 soname=conftest
13346 lib=conftest
13347 libobjs=conftest.$ac_objext
13348 deplibs=
13349 wl=$lt_prog_compiler_wl
13350 compiler_flags=-v
13351 linker_flags=-v
13352 verstring=
13353 output_objdir=.
13354 libname=conftest
13355 lt_save_allow_undefined_flag=$allow_undefined_flag
13356 allow_undefined_flag=
13357 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13358 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }
13362 then
13363 archive_cmds_need_lc=no
13364 else
13365 archive_cmds_need_lc=yes
13366 fi
13367 allow_undefined_flag=$lt_save_allow_undefined_flag
13368 else
13369 cat conftest.err 1>&5
13370 fi
13371 $rm conftest*
13372 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13373echo "${ECHO_T}$archive_cmds_need_lc" >&6
13374 ;;
13375 esac
13376 fi
13377 ;;
13378esac
13379
John Criswell7a73b802003-06-30 21:59:07 +000013380echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13381echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13382library_names_spec=
13383libname_spec='lib$name'
13384soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013385shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013386postinstall_cmds=
13387postuninstall_cmds=
13388finish_cmds=
13389finish_eval=
13390shlibpath_var=
13391shlibpath_overrides_runpath=unknown
13392version_type=none
13393dynamic_linker="$host_os ld.so"
13394sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013395if test "$GCC" = yes; then
13396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13397 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13398 # if the path contains ";" then we assume it to be the separator
13399 # otherwise default to the standard path separator (i.e. ":") - it is
13400 # assumed that no part of a normal pathname contains ";" but that should
13401 # okay in the real world where ";" in dirpaths is itself problematic.
13402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13403 else
13404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13405 fi
13406else
13407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13408fi
13409need_lib_prefix=unknown
13410hardcode_into_libs=no
13411
13412# when you set need_version to no, make sure it does not cause -set_version
13413# flags to be left without arguments
13414need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013415
13416case $host_os in
13417aix3*)
13418 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013420 shlibpath_var=LIBPATH
13421
John Criswell47fdd832003-07-14 16:52:07 +000013422 # AIX 3 has no versioning support, so we append a major version to the name.
13423 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013424 ;;
13425
13426aix4* | aix5*)
13427 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013428 need_lib_prefix=no
13429 need_version=no
13430 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013431 if test "$host_cpu" = ia64; then
13432 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013434 shlibpath_var=LD_LIBRARY_PATH
13435 else
13436 # With GCC up to 2.95.x, collect2 would create an import file
13437 # for dependence libraries. The import file would start with
13438 # the line `#! .'. This would cause the generated library to
13439 # depend on `.', always an invalid library. This was fixed in
13440 # development snapshots of GCC prior to 3.0.
13441 case $host_os in
13442 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13444 echo ' yes '
13445 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13446 :
13447 else
13448 can_build_shared=no
13449 fi
13450 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013451 esac
John Criswell47fdd832003-07-14 16:52:07 +000013452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13453 # soname into executable. Probably we can add versioning support to
13454 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013455 if test "$aix_use_runtimelinking" = yes; then
13456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13457 # instead of lib<name>.a to let people know that these are not
13458 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013460 else
13461 # We preserve .a as extension for shared libraries through AIX4.2
13462 # and later when we are not doing run time linking.
13463 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013464 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013465 fi
13466 shlibpath_var=LIBPATH
13467 fi
13468 ;;
13469
13470amigaos*)
13471 library_names_spec='$libname.ixlibrary $libname.a'
13472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013473 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 +000013474 ;;
13475
13476beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013477 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013478 dynamic_linker="$host_os ld.so"
13479 shlibpath_var=LIBRARY_PATH
13480 ;;
13481
Reid Spencer2706f8c2004-09-19 23:53:36 +000013482bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013483 version_type=linux
13484 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013491 # the default ld.so.conf also contains /usr/contrib/lib and
13492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13493 # libtool to hard-code these into programs
13494 ;;
13495
13496cygwin* | mingw* | pw32*)
13497 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013498 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013499 need_version=no
13500 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013501
John Criswell7a73b802003-06-30 21:59:07 +000013502 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013503 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013504 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013506 postinstall_cmds='base_file=`basename \${file}`~
13507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13508 dldir=$destdir/`dirname \$dlpath`~
13509 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013510 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13512 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013513 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013514 shlibpath_overrides_runpath=yes
13515
13516 case $host_os in
13517 cygwin*)
13518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13519 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 +000013520 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013521 ;;
13522 mingw*)
13523 # MinGW DLLs use traditional 'lib' prefix
13524 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13525 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13526 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13527 # It is most probably a Windows format PATH printed by
13528 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13529 # path with ; separators, and with drive letters. We can handle the
13530 # drive letters (cygwin fileutils understands them), so leave them,
13531 # especially as we might pass files found there to a mingw objdump,
13532 # which wouldn't understand a cygwinified path. Ahh.
13533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13534 else
13535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13536 fi
13537 ;;
13538 pw32*)
13539 # pw32 DLLs use 'pw' prefix rather than 'lib'
13540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13541 ;;
13542 esac
John Criswell7a73b802003-06-30 21:59:07 +000013543 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013544
John Criswell7a73b802003-06-30 21:59:07 +000013545 *)
John Criswell47fdd832003-07-14 16:52:07 +000013546 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013547 ;;
13548 esac
13549 dynamic_linker='Win32 ld.exe'
13550 # FIXME: first we should search . and the directory the executable is in
13551 shlibpath_var=PATH
13552 ;;
13553
13554darwin* | rhapsody*)
13555 dynamic_linker="$host_os dyld"
13556 version_type=darwin
13557 need_lib_prefix=no
13558 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013559 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013560 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013561 shlibpath_overrides_runpath=yes
13562 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013563 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013564 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013565 if test "$GCC" = yes; then
13566 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"`
13567 else
13568 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013569 fi
13570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13571 ;;
13572
13573dgux*)
13574 version_type=linux
13575 need_lib_prefix=no
13576 need_version=no
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13578 soname_spec='${libname}${release}${shared_ext}$major'
13579 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013580 ;;
13581
13582freebsd1*)
13583 dynamic_linker=no
13584 ;;
13585
Reid Spencer2706f8c2004-09-19 23:53:36 +000013586kfreebsd*-gnu)
13587 version_type=linux
13588 need_lib_prefix=no
13589 need_version=no
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13591 soname_spec='${libname}${release}${shared_ext}$major'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 shlibpath_overrides_runpath=no
13594 hardcode_into_libs=yes
13595 dynamic_linker='GNU ld.so'
13596 ;;
13597
John Criswell7a73b802003-06-30 21:59:07 +000013598freebsd*)
13599 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13600 version_type=freebsd-$objformat
13601 case $version_type in
13602 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013604 need_version=no
13605 need_lib_prefix=no
13606 ;;
13607 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013609 need_version=yes
13610 ;;
13611 esac
13612 shlibpath_var=LD_LIBRARY_PATH
13613 case $host_os in
13614 freebsd2*)
13615 shlibpath_overrides_runpath=yes
13616 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013617 freebsd3.01* | freebsdelf3.01*)
13618 shlibpath_overrides_runpath=yes
13619 hardcode_into_libs=yes
13620 ;;
13621 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013622 shlibpath_overrides_runpath=no
13623 hardcode_into_libs=yes
13624 ;;
13625 esac
13626 ;;
13627
13628gnu*)
13629 version_type=linux
13630 need_lib_prefix=no
13631 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013634 shlibpath_var=LD_LIBRARY_PATH
13635 hardcode_into_libs=yes
13636 ;;
13637
13638hpux9* | hpux10* | hpux11*)
13639 # Give a soname corresponding to the major version so that dld.sl refuses to
13640 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013641 version_type=sunos
13642 need_lib_prefix=no
13643 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013644 case "$host_cpu" in
13645 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013646 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013647 hardcode_into_libs=yes
13648 dynamic_linker="$host_os dld.so"
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 if test "X$HPUX_IA64_MODE" = X32; then
13654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13655 else
13656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13657 fi
13658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13659 ;;
13660 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013661 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013662 hardcode_into_libs=yes
13663 dynamic_linker="$host_os dld.sl"
13664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13670 ;;
13671 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013672 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013673 dynamic_linker="$host_os dld.sl"
13674 shlibpath_var=SHLIB_PATH
13675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13678 ;;
13679 esac
John Criswell7a73b802003-06-30 21:59:07 +000013680 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13681 postinstall_cmds='chmod 555 $lib'
13682 ;;
13683
John Criswell47fdd832003-07-14 16:52:07 +000013684irix5* | irix6* | nonstopux*)
13685 case $host_os in
13686 nonstopux*) version_type=nonstopux ;;
13687 *)
13688 if test "$lt_cv_prog_gnu_ld" = yes; then
13689 version_type=linux
13690 else
13691 version_type=irix
13692 fi ;;
13693 esac
John Criswell7a73b802003-06-30 21:59:07 +000013694 need_lib_prefix=no
13695 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013696 soname_spec='${libname}${release}${shared_ext}$major'
13697 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 +000013698 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013699 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013700 libsuff= shlibsuff=
13701 ;;
13702 *)
13703 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13705 libsuff= shlibsuff= libmagic=32-bit;;
13706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13707 libsuff=32 shlibsuff=N32 libmagic=N32;;
13708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013710 *) libsuff= shlibsuff= libmagic=never-match;;
13711 esac
13712 ;;
13713 esac
13714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13715 shlibpath_overrides_runpath=no
13716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013718 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013719 ;;
13720
13721# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013722linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013723 dynamic_linker=no
13724 ;;
13725
13726# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013727linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013728 version_type=linux
13729 need_lib_prefix=no
13730 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=no
13736 # This implies no fast_install, which is unacceptable.
13737 # Some rework will be needed to allow for fast_install
13738 # before this can be enabled.
13739 hardcode_into_libs=yes
13740
Reid Spencer2706f8c2004-09-19 23:53:36 +000013741 # Append ld.so.conf contents to the search path
13742 if test -f /etc/ld.so.conf; then
13743 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13745 fi
13746
John Criswell7a73b802003-06-30 21:59:07 +000013747 # We used to test for /lib/ld.so.1 and disable shared libraries on
13748 # powerpc, because MkLinux only supported shared libraries with the
13749 # GNU dynamic linker. Since this was broken with cross compilers,
13750 # most powerpc-linux boxes support dynamic linking these days and
13751 # people can always --disable-shared, the test was removed, and we
13752 # assume the GNU/Linux dynamic linker is in use.
13753 dynamic_linker='GNU/Linux ld.so'
13754 ;;
13755
Reid Spencer2706f8c2004-09-19 23:53:36 +000013756knetbsd*-gnu)
13757 version_type=linux
13758 need_lib_prefix=no
13759 need_version=no
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=no
13764 hardcode_into_libs=yes
13765 dynamic_linker='GNU ld.so'
13766 ;;
13767
John Criswell7a73b802003-06-30 21:59:07 +000013768netbsd*)
13769 version_type=sunos
13770 need_lib_prefix=no
13771 need_version=no
13772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13775 dynamic_linker='NetBSD (a.out) ld.so'
13776 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013778 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013779 dynamic_linker='NetBSD ld.elf_so'
13780 fi
13781 shlibpath_var=LD_LIBRARY_PATH
13782 shlibpath_overrides_runpath=yes
13783 hardcode_into_libs=yes
13784 ;;
13785
13786newsos6)
13787 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 shlibpath_overrides_runpath=yes
13791 ;;
13792
Reid Spencer2706f8c2004-09-19 23:53:36 +000013793nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013794 version_type=linux
13795 need_lib_prefix=no
13796 need_version=no
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013799 shlibpath_var=LD_LIBRARY_PATH
13800 shlibpath_overrides_runpath=yes
13801 ;;
13802
13803openbsd*)
13804 version_type=sunos
13805 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013806 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13809 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013810 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 +000013811 case $host_os in
13812 openbsd2.[89] | openbsd2.[89].*)
13813 shlibpath_overrides_runpath=no
13814 ;;
13815 *)
13816 shlibpath_overrides_runpath=yes
13817 ;;
13818 esac
John Criswell7a73b802003-06-30 21:59:07 +000013819 else
13820 shlibpath_overrides_runpath=yes
13821 fi
John Criswell7a73b802003-06-30 21:59:07 +000013822 ;;
13823
13824os2*)
13825 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013826 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013827 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013828 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013829 dynamic_linker='OS/2 ld.exe'
13830 shlibpath_var=LIBPATH
13831 ;;
13832
13833osf3* | osf4* | osf5*)
13834 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013835 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013836 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013837 soname_spec='${libname}${release}${shared_ext}$major'
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013839 shlibpath_var=LD_LIBRARY_PATH
13840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13842 ;;
13843
13844sco3.2v5*)
13845 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013846 soname_spec='${libname}${release}${shared_ext}$major'
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013848 shlibpath_var=LD_LIBRARY_PATH
13849 ;;
13850
13851solaris*)
13852 version_type=linux
13853 need_lib_prefix=no
13854 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013857 shlibpath_var=LD_LIBRARY_PATH
13858 shlibpath_overrides_runpath=yes
13859 hardcode_into_libs=yes
13860 # ldd complains unless libraries are executable
13861 postinstall_cmds='chmod +x $lib'
13862 ;;
13863
13864sunos4*)
13865 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13868 shlibpath_var=LD_LIBRARY_PATH
13869 shlibpath_overrides_runpath=yes
13870 if test "$with_gnu_ld" = yes; then
13871 need_lib_prefix=no
13872 fi
13873 need_version=yes
13874 ;;
13875
13876sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13877 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013880 shlibpath_var=LD_LIBRARY_PATH
13881 case $host_vendor in
13882 sni)
13883 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013884 need_lib_prefix=no
13885 export_dynamic_flag_spec='${wl}-Blargedynsym'
13886 runpath_var=LD_RUN_PATH
13887 ;;
13888 siemens)
13889 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013890 ;;
13891 motorola)
13892 need_lib_prefix=no
13893 need_version=no
13894 shlibpath_overrides_runpath=no
13895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13896 ;;
13897 esac
13898 ;;
13899
John Criswell7a73b802003-06-30 21:59:07 +000013900sysv4*MP*)
13901 if test -d /usr/nec ;then
13902 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13904 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013905 shlibpath_var=LD_LIBRARY_PATH
13906 fi
13907 ;;
13908
John Criswell47fdd832003-07-14 16:52:07 +000013909uts4*)
13910 version_type=linux
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 shlibpath_var=LD_LIBRARY_PATH
13914 ;;
13915
John Criswell7a73b802003-06-30 21:59:07 +000013916*)
13917 dynamic_linker=no
13918 ;;
13919esac
13920echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13921echo "${ECHO_T}$dynamic_linker" >&6
13922test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013923
Reid Spencer2706f8c2004-09-19 23:53:36 +000013924echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13925echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13926hardcode_action=
13927if test -n "$hardcode_libdir_flag_spec" || \
13928 test -n "$runpath_var" || \
13929 test "X$hardcode_automatic" = "Xyes" ; then
13930
13931 # We can hardcode non-existant directories.
13932 if test "$hardcode_direct" != no &&
13933 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13934 # have to relink, otherwise we might link with an installed library
13935 # when we should be linking with a yet-to-be-installed one
13936 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13937 test "$hardcode_minus_L" != no; then
13938 # Linking always hardcodes the temporary library directory.
13939 hardcode_action=relink
13940 else
13941 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13942 hardcode_action=immediate
13943 fi
13944else
13945 # We cannot hardcode anything, or else we can only hardcode existing
13946 # directories.
13947 hardcode_action=unsupported
13948fi
13949echo "$as_me:$LINENO: result: $hardcode_action" >&5
13950echo "${ECHO_T}$hardcode_action" >&6
13951
13952if test "$hardcode_action" = relink; then
13953 # Fast installation is not supported
13954 enable_fast_install=no
13955elif test "$shlibpath_overrides_runpath" = yes ||
13956 test "$enable_shared" = no; then
13957 # Fast installation is not necessary
13958 enable_fast_install=needless
13959fi
13960
13961striplib=
13962old_striplib=
13963echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13964echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13965if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13968 echo "$as_me:$LINENO: result: yes" >&5
13969echo "${ECHO_T}yes" >&6
13970else
13971# FIXME - insert some real tests, host_os isn't really good enough
13972 case $host_os in
13973 darwin*)
13974 if test -n "$STRIP" ; then
13975 striplib="$STRIP -x"
13976 echo "$as_me:$LINENO: result: yes" >&5
13977echo "${ECHO_T}yes" >&6
13978 else
13979 echo "$as_me:$LINENO: result: no" >&5
13980echo "${ECHO_T}no" >&6
13981fi
13982 ;;
13983 *)
13984 echo "$as_me:$LINENO: result: no" >&5
13985echo "${ECHO_T}no" >&6
13986 ;;
13987 esac
13988fi
13989
John Criswell7a73b802003-06-30 21:59:07 +000013990if test "x$enable_dlopen" != xyes; then
13991 enable_dlopen=unknown
13992 enable_dlopen_self=unknown
13993 enable_dlopen_self_static=unknown
13994else
13995 lt_cv_dlopen=no
13996 lt_cv_dlopen_libs=
13997
13998 case $host_os in
13999 beos*)
14000 lt_cv_dlopen="load_add_on"
14001 lt_cv_dlopen_libs=
14002 lt_cv_dlopen_self=yes
14003 ;;
14004
John Criswell47fdd832003-07-14 16:52:07 +000014005 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000014006 lt_cv_dlopen="LoadLibrary"
14007 lt_cv_dlopen_libs=
14008 ;;
14009
John Criswell47fdd832003-07-14 16:52:07 +000014010 cygwin*)
14011 lt_cv_dlopen="dlopen"
14012 lt_cv_dlopen_libs=
14013 ;;
14014
14015 darwin*)
14016 # if libdl is installed we need to link against it
14017 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14018echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14019if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022 ac_check_lib_save_LIBS=$LIBS
14023LIBS="-ldl $LIBS"
14024cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014025/* confdefs.h. */
14026_ACEOF
14027cat confdefs.h >>conftest.$ac_ext
14028cat >>conftest.$ac_ext <<_ACEOF
14029/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000014030
14031/* Override any gcc2 internal prototype to avoid an error. */
14032#ifdef __cplusplus
14033extern "C"
14034#endif
14035/* We use char because int might match the return type of a gcc2
14036 builtin and then its argument prototype would still apply. */
14037char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000014038int
14039main ()
14040{
14041dlopen ();
14042 ;
14043 return 0;
14044}
14045_ACEOF
14046rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014048 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_lib_dl_dlopen=yes
14069else
14070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014071sed 's/^/| /' conftest.$ac_ext >&5
14072
John Criswell47fdd832003-07-14 16:52:07 +000014073ac_cv_lib_dl_dlopen=no
14074fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014075rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014077LIBS=$ac_check_lib_save_LIBS
14078fi
14079echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14080echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14081if test $ac_cv_lib_dl_dlopen = yes; then
14082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14083else
14084
14085 lt_cv_dlopen="dyld"
14086 lt_cv_dlopen_libs=
14087 lt_cv_dlopen_self=yes
14088
14089fi
14090
14091 ;;
14092
John Criswell7a73b802003-06-30 21:59:07 +000014093 *)
14094 echo "$as_me:$LINENO: checking for shl_load" >&5
14095echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14096if test "${ac_cv_func_shl_load+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14098else
14099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014105/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14107#define shl_load innocuous_shl_load
14108
John Criswell7a73b802003-06-30 21:59:07 +000014109/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014110 which can conflict with char shl_load (); below.
14111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14112 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014113
John Criswell0c38eaf2003-09-10 15:17:25 +000014114#ifdef __STDC__
14115# include <limits.h>
14116#else
14117# include <assert.h>
14118#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014119
14120#undef shl_load
14121
John Criswell7a73b802003-06-30 21:59:07 +000014122/* Override any gcc2 internal prototype to avoid an error. */
14123#ifdef __cplusplus
14124extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014125{
John Criswell7a73b802003-06-30 21:59:07 +000014126#endif
14127/* We use char because int might match the return type of a gcc2
14128 builtin and then its argument prototype would still apply. */
14129char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014130/* The GNU C library defines this for functions which it implements
14131 to always fail with ENOSYS. Some functions are actually named
14132 something starting with __ and the normal name is an alias. */
14133#if defined (__stub_shl_load) || defined (__stub___shl_load)
14134choke me
14135#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014136char (*f) () = shl_load;
14137#endif
14138#ifdef __cplusplus
14139}
John Criswell7a73b802003-06-30 21:59:07 +000014140#endif
14141
John Criswell0c38eaf2003-09-10 15:17:25 +000014142int
14143main ()
14144{
14145return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014146 ;
14147 return 0;
14148}
14149_ACEOF
14150rm -f conftest.$ac_objext conftest$ac_exeext
14151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014152 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014153 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014154 grep -v '^ *+' conftest.er1 >conftest.err
14155 rm -f conftest.er1
14156 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014159 { ac_try='test -z "$ac_c_werror_flag"
14160 || test ! -s conftest.err'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_func_shl_load=yes
14173else
14174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014175sed 's/^/| /' conftest.$ac_ext >&5
14176
John Criswell7a73b802003-06-30 21:59:07 +000014177ac_cv_func_shl_load=no
14178fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014179rm -f conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014181fi
14182echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14183echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14184if test $ac_cv_func_shl_load = yes; then
14185 lt_cv_dlopen="shl_load"
14186else
14187 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14188echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14189if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192 ac_check_lib_save_LIBS=$LIBS
14193LIBS="-ldld $LIBS"
14194cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014200
14201/* Override any gcc2 internal prototype to avoid an error. */
14202#ifdef __cplusplus
14203extern "C"
14204#endif
14205/* We use char because int might match the return type of a gcc2
14206 builtin and then its argument prototype would still apply. */
14207char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014208int
14209main ()
14210{
14211shl_load ();
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext conftest$ac_exeext
14217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014218 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014219 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_lib_dld_shl_load=yes
14239else
14240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014241sed 's/^/| /' conftest.$ac_ext >&5
14242
John Criswell7a73b802003-06-30 21:59:07 +000014243ac_cv_lib_dld_shl_load=no
14244fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014245rm -f conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014247LIBS=$ac_check_lib_save_LIBS
14248fi
14249echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14250echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14251if test $ac_cv_lib_dld_shl_load = yes; then
14252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14253else
14254 echo "$as_me:$LINENO: checking for dlopen" >&5
14255echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14256if test "${ac_cv_func_dlopen+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258else
14259 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014260/* confdefs.h. */
14261_ACEOF
14262cat confdefs.h >>conftest.$ac_ext
14263cat >>conftest.$ac_ext <<_ACEOF
14264/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014265/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14267#define dlopen innocuous_dlopen
14268
John Criswell7a73b802003-06-30 21:59:07 +000014269/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014270 which can conflict with char dlopen (); below.
14271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14272 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014273
John Criswell0c38eaf2003-09-10 15:17:25 +000014274#ifdef __STDC__
14275# include <limits.h>
14276#else
14277# include <assert.h>
14278#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014279
14280#undef dlopen
14281
John Criswell7a73b802003-06-30 21:59:07 +000014282/* Override any gcc2 internal prototype to avoid an error. */
14283#ifdef __cplusplus
14284extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014285{
John Criswell7a73b802003-06-30 21:59:07 +000014286#endif
14287/* We use char because int might match the return type of a gcc2
14288 builtin and then its argument prototype would still apply. */
14289char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014290/* The GNU C library defines this for functions which it implements
14291 to always fail with ENOSYS. Some functions are actually named
14292 something starting with __ and the normal name is an alias. */
14293#if defined (__stub_dlopen) || defined (__stub___dlopen)
14294choke me
14295#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014296char (*f) () = dlopen;
14297#endif
14298#ifdef __cplusplus
14299}
John Criswell7a73b802003-06-30 21:59:07 +000014300#endif
14301
John Criswell0c38eaf2003-09-10 15:17:25 +000014302int
14303main ()
14304{
14305return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014306 ;
14307 return 0;
14308}
14309_ACEOF
14310rm -f conftest.$ac_objext conftest$ac_exeext
14311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014312 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014319 { ac_try='test -z "$ac_c_werror_flag"
14320 || test ! -s conftest.err'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_func_dlopen=yes
14333else
14334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014335sed 's/^/| /' conftest.$ac_ext >&5
14336
John Criswell7a73b802003-06-30 21:59:07 +000014337ac_cv_func_dlopen=no
14338fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014339rm -f conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014341fi
14342echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14343echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14344if test $ac_cv_func_dlopen = yes; then
14345 lt_cv_dlopen="dlopen"
14346else
14347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351else
14352 ac_check_lib_save_LIBS=$LIBS
14353LIBS="-ldl $LIBS"
14354cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014360
14361/* Override any gcc2 internal prototype to avoid an error. */
14362#ifdef __cplusplus
14363extern "C"
14364#endif
14365/* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */
14367char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014368int
14369main ()
14370{
14371dlopen ();
14372 ;
14373 return 0;
14374}
14375_ACEOF
14376rm -f conftest.$ac_objext conftest$ac_exeext
14377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014378 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_lib_dl_dlopen=yes
14399else
14400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014401sed 's/^/| /' conftest.$ac_ext >&5
14402
John Criswell7a73b802003-06-30 21:59:07 +000014403ac_cv_lib_dl_dlopen=no
14404fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014405rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014407LIBS=$ac_check_lib_save_LIBS
14408fi
14409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14411if test $ac_cv_lib_dl_dlopen = yes; then
14412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14413else
14414 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14415echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14416if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419 ac_check_lib_save_LIBS=$LIBS
14420LIBS="-lsvld $LIBS"
14421cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014422/* confdefs.h. */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
14426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014427
14428/* Override any gcc2 internal prototype to avoid an error. */
14429#ifdef __cplusplus
14430extern "C"
14431#endif
14432/* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14434char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014435int
14436main ()
14437{
14438dlopen ();
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext conftest$ac_exeext
14444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014452 { ac_try='test -z "$ac_c_werror_flag"
14453 || test ! -s conftest.err'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_lib_svld_dlopen=yes
14466else
14467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014468sed 's/^/| /' conftest.$ac_ext >&5
14469
John Criswell7a73b802003-06-30 21:59:07 +000014470ac_cv_lib_svld_dlopen=no
14471fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014472rm -f conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014474LIBS=$ac_check_lib_save_LIBS
14475fi
14476echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14477echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14478if test $ac_cv_lib_svld_dlopen = yes; then
14479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14480else
14481 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14482echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14483if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486 ac_check_lib_save_LIBS=$LIBS
14487LIBS="-ldld $LIBS"
14488cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
14493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014494
14495/* Override any gcc2 internal prototype to avoid an error. */
14496#ifdef __cplusplus
14497extern "C"
14498#endif
14499/* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14501char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014502int
14503main ()
14504{
14505dld_link ();
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510rm -f conftest.$ac_objext conftest$ac_exeext
14511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014512 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_cv_lib_dld_dld_link=yes
14533else
14534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014535sed 's/^/| /' conftest.$ac_ext >&5
14536
John Criswell7a73b802003-06-30 21:59:07 +000014537ac_cv_lib_dld_dld_link=no
14538fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014539rm -f conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014541LIBS=$ac_check_lib_save_LIBS
14542fi
14543echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14544echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14545if test $ac_cv_lib_dld_dld_link = yes; then
14546 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14547fi
14548
14549
14550fi
14551
14552
14553fi
14554
14555
14556fi
14557
14558
14559fi
14560
14561
14562fi
14563
14564 ;;
14565 esac
14566
14567 if test "x$lt_cv_dlopen" != xno; then
14568 enable_dlopen=yes
14569 else
14570 enable_dlopen=no
14571 fi
14572
14573 case $lt_cv_dlopen in
14574 dlopen)
14575 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014576 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014577
14578 save_LDFLAGS="$LDFLAGS"
14579 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14580
14581 save_LIBS="$LIBS"
14582 LIBS="$lt_cv_dlopen_libs $LIBS"
14583
14584 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14585echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14586if test "${lt_cv_dlopen_self+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14588else
14589 if test "$cross_compiling" = yes; then :
14590 lt_cv_dlopen_self=cross
14591else
John Criswell47fdd832003-07-14 16:52:07 +000014592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014593 lt_status=$lt_dlunknown
14594 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000014595#line 14579 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014596#include "confdefs.h"
14597
14598#if HAVE_DLFCN_H
14599#include <dlfcn.h>
14600#endif
14601
14602#include <stdio.h>
14603
14604#ifdef RTLD_GLOBAL
14605# define LT_DLGLOBAL RTLD_GLOBAL
14606#else
14607# ifdef DL_GLOBAL
14608# define LT_DLGLOBAL DL_GLOBAL
14609# else
14610# define LT_DLGLOBAL 0
14611# endif
14612#endif
14613
14614/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14615 find out it does not work in some platform. */
14616#ifndef LT_DLLAZY_OR_NOW
14617# ifdef RTLD_LAZY
14618# define LT_DLLAZY_OR_NOW RTLD_LAZY
14619# else
14620# ifdef DL_LAZY
14621# define LT_DLLAZY_OR_NOW DL_LAZY
14622# else
14623# ifdef RTLD_NOW
14624# define LT_DLLAZY_OR_NOW RTLD_NOW
14625# else
14626# ifdef DL_NOW
14627# define LT_DLLAZY_OR_NOW DL_NOW
14628# else
14629# define LT_DLLAZY_OR_NOW 0
14630# endif
14631# endif
14632# endif
14633# endif
14634#endif
14635
14636#ifdef __cplusplus
14637extern "C" void exit (int);
14638#endif
14639
14640void fnord() { int i=42;}
14641int main ()
14642{
14643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14644 int status = $lt_dlunknown;
14645
14646 if (self)
14647 {
14648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14650 /* dlclose (self); */
14651 }
14652
14653 exit (status);
14654}
14655EOF
14656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14657 (eval $ac_link) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14661 (./conftest; exit; ) 2>/dev/null
14662 lt_status=$?
14663 case x$lt_status in
14664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14666 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14667 esac
14668 else :
14669 # compilation failed
14670 lt_cv_dlopen_self=no
14671 fi
14672fi
14673rm -fr conftest*
14674
14675
14676fi
14677echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14678echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14679
14680 if test "x$lt_cv_dlopen_self" = xyes; then
14681 LDFLAGS="$LDFLAGS $link_static_flag"
14682 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14683echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14684if test "${lt_cv_dlopen_self_static+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686else
14687 if test "$cross_compiling" = yes; then :
14688 lt_cv_dlopen_self_static=cross
14689else
John Criswell47fdd832003-07-14 16:52:07 +000014690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014691 lt_status=$lt_dlunknown
14692 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000014693#line 14677 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014694#include "confdefs.h"
14695
14696#if HAVE_DLFCN_H
14697#include <dlfcn.h>
14698#endif
14699
14700#include <stdio.h>
14701
14702#ifdef RTLD_GLOBAL
14703# define LT_DLGLOBAL RTLD_GLOBAL
14704#else
14705# ifdef DL_GLOBAL
14706# define LT_DLGLOBAL DL_GLOBAL
14707# else
14708# define LT_DLGLOBAL 0
14709# endif
14710#endif
14711
14712/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14713 find out it does not work in some platform. */
14714#ifndef LT_DLLAZY_OR_NOW
14715# ifdef RTLD_LAZY
14716# define LT_DLLAZY_OR_NOW RTLD_LAZY
14717# else
14718# ifdef DL_LAZY
14719# define LT_DLLAZY_OR_NOW DL_LAZY
14720# else
14721# ifdef RTLD_NOW
14722# define LT_DLLAZY_OR_NOW RTLD_NOW
14723# else
14724# ifdef DL_NOW
14725# define LT_DLLAZY_OR_NOW DL_NOW
14726# else
14727# define LT_DLLAZY_OR_NOW 0
14728# endif
14729# endif
14730# endif
14731# endif
14732#endif
14733
14734#ifdef __cplusplus
14735extern "C" void exit (int);
14736#endif
14737
14738void fnord() { int i=42;}
14739int main ()
14740{
14741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14742 int status = $lt_dlunknown;
14743
14744 if (self)
14745 {
14746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14747 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14748 /* dlclose (self); */
14749 }
14750
14751 exit (status);
14752}
14753EOF
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14759 (./conftest; exit; ) 2>/dev/null
14760 lt_status=$?
14761 case x$lt_status in
14762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14764 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14765 esac
14766 else :
14767 # compilation failed
14768 lt_cv_dlopen_self_static=no
14769 fi
14770fi
14771rm -fr conftest*
14772
14773
14774fi
14775echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14776echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14777 fi
14778
14779 CPPFLAGS="$save_CPPFLAGS"
14780 LDFLAGS="$save_LDFLAGS"
14781 LIBS="$save_LIBS"
14782 ;;
14783 esac
14784
14785 case $lt_cv_dlopen_self in
14786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14787 *) enable_dlopen_self=unknown ;;
14788 esac
14789
14790 case $lt_cv_dlopen_self_static in
14791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14792 *) enable_dlopen_self_static=unknown ;;
14793 esac
14794fi
14795
14796
John Criswell47fdd832003-07-14 16:52:07 +000014797# Report which librarie types wil actually be built
14798echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14799echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14800echo "$as_me:$LINENO: result: $can_build_shared" >&5
14801echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014802
John Criswell47fdd832003-07-14 16:52:07 +000014803echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14804echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14805test "$can_build_shared" = "no" && enable_shared=no
14806
14807# On AIX, shared libraries and static libraries use the same namespace, and
14808# are all built from PIC.
14809case "$host_os" in
14810aix3*)
14811 test "$enable_shared" = yes && enable_static=no
14812 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014814 postinstall_cmds='$RANLIB $lib'
14815 fi
14816 ;;
14817
Reid Spencer2706f8c2004-09-19 23:53:36 +000014818aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014819 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14820 test "$enable_shared" = yes && enable_static=no
14821 fi
John Criswell7a73b802003-06-30 21:59:07 +000014822 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014823esac
14824echo "$as_me:$LINENO: result: $enable_shared" >&5
14825echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014826
John Criswell47fdd832003-07-14 16:52:07 +000014827echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14828echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14829# Make sure either enable_shared or enable_static is yes.
14830test "$enable_shared" = yes || enable_static=yes
14831echo "$as_me:$LINENO: result: $enable_static" >&5
14832echo "${ECHO_T}$enable_static" >&6
14833
14834# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014835# libtool distribution, otherwise you forgot to ship ltmain.sh
14836# with your package, and you will get complaints that there are
14837# no rules to generate ltmain.sh.
14838if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014839 # See if we are running on zsh, and set the options which allow our commands through
14840 # without removal of \ escapes.
14841 if test -n "${ZSH_VERSION+set}" ; then
14842 setopt NO_GLOB_SUBST
14843 fi
John Criswell7a73b802003-06-30 21:59:07 +000014844 # Now quote all the things that may contain metacharacters while being
14845 # careful not to overquote the AC_SUBSTed values. We take copies of the
14846 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014847 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14848 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14851 deplibs_check_method reload_flag reload_cmds need_locks \
14852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14853 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014855 old_postinstall_cmds old_postuninstall_cmds \
14856 compiler \
14857 CC \
14858 LD \
14859 lt_prog_compiler_wl \
14860 lt_prog_compiler_pic \
14861 lt_prog_compiler_static \
14862 lt_prog_compiler_no_builtin_flag \
14863 export_dynamic_flag_spec \
14864 thread_safe_flag_spec \
14865 whole_archive_flag_spec \
14866 enable_shared_with_static_runtimes \
14867 old_archive_cmds \
14868 old_archive_from_new_cmds \
14869 predep_objects \
14870 postdep_objects \
14871 predeps \
14872 postdeps \
14873 compiler_lib_search_path \
14874 archive_cmds \
14875 archive_expsym_cmds \
14876 postinstall_cmds \
14877 postuninstall_cmds \
14878 old_archive_from_expsyms_cmds \
14879 allow_undefined_flag \
14880 no_undefined_flag \
14881 export_symbols_cmds \
14882 hardcode_libdir_flag_spec \
14883 hardcode_libdir_flag_spec_ld \
14884 hardcode_libdir_separator \
14885 hardcode_automatic \
14886 module_cmds \
14887 module_expsym_cmds \
14888 lt_cv_prog_compiler_c_o \
14889 exclude_expsyms \
14890 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014891
14892 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014893 old_archive_cmds | \
14894 old_archive_from_new_cmds | \
14895 archive_cmds | \
14896 archive_expsym_cmds | \
14897 module_cmds | \
14898 module_expsym_cmds | \
14899 old_archive_from_expsyms_cmds | \
14900 export_symbols_cmds | \
14901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014902 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014903 old_postinstall_cmds | old_postuninstall_cmds | \
14904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014905 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014906 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 +000014907 ;;
14908 *)
14909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14910 ;;
14911 esac
14912 done
14913
John Criswell47fdd832003-07-14 16:52:07 +000014914 case $lt_echo in
14915 *'\$0 --fallback-echo"')
14916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14917 ;;
14918 esac
14919
14920cfgfile="${ofile}T"
14921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14922 $rm -f "$cfgfile"
14923 { echo "$as_me:$LINENO: creating $ofile" >&5
14924echo "$as_me: creating $ofile" >&6;}
14925
14926 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014927#! $SHELL
14928
John Criswell47fdd832003-07-14 16:52:07 +000014929# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014930# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14931# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14932#
John Criswell47fdd832003-07-14 16:52:07 +000014933# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14934# Free Software Foundation, Inc.
14935#
14936# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014937# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14938#
14939# This program is free software; you can redistribute it and/or modify
14940# it under the terms of the GNU General Public License as published by
14941# the Free Software Foundation; either version 2 of the License, or
14942# (at your option) any later version.
14943#
14944# This program is distributed in the hope that it will be useful, but
14945# WITHOUT ANY WARRANTY; without even the implied warranty of
14946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14947# General Public License for more details.
14948#
14949# You should have received a copy of the GNU General Public License
14950# along with this program; if not, write to the Free Software
14951# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14952#
14953# As a special exception to the GNU General Public License, if you
14954# distribute this file as part of a program that contains a
14955# configuration script generated by Autoconf, you may include it under
14956# the same distribution terms that you use for the rest of that program.
14957
John Criswell47fdd832003-07-14 16:52:07 +000014958# A sed program that does not truncate output.
14959SED=$lt_SED
14960
John Criswell7a73b802003-06-30 21:59:07 +000014961# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014962Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014963
14964# The HP-UX ksh and POSIX shell print the target directory to stdout
14965# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014967
John Criswell47fdd832003-07-14 16:52:07 +000014968# The names of the tagged configurations supported by this script.
14969available_tags=
14970
John Criswell7a73b802003-06-30 21:59:07 +000014971# ### BEGIN LIBTOOL CONFIG
14972
14973# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14974
14975# Shell to use when invoking shell scripts.
14976SHELL=$lt_SHELL
14977
14978# Whether or not to build shared libraries.
14979build_libtool_libs=$enable_shared
14980
14981# Whether or not to build static libraries.
14982build_old_libs=$enable_static
14983
14984# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014985build_libtool_need_lc=$archive_cmds_need_lc
14986
14987# Whether or not to disallow shared libs when runtime libs are static
14988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014989
14990# Whether or not to optimize for fast installation.
14991fast_install=$enable_fast_install
14992
14993# The host system.
14994host_alias=$host_alias
14995host=$host
14996
14997# An echo program that does not interpret backslashes.
14998echo=$lt_echo
14999
15000# The archiver.
15001AR=$lt_AR
15002AR_FLAGS=$lt_AR_FLAGS
15003
John Criswell47fdd832003-07-14 16:52:07 +000015004# A C compiler.
15005LTCC=$lt_LTCC
15006
15007# A language-specific compiler.
15008CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000015009
15010# Is the compiler the GNU C compiler?
15011with_gcc=$GCC
15012
John Criswell47fdd832003-07-14 16:52:07 +000015013# An ERE matcher.
15014EGREP=$lt_EGREP
15015
John Criswell7a73b802003-06-30 21:59:07 +000015016# The linker used to build libraries.
15017LD=$lt_LD
15018
15019# Whether we need hard or soft links.
15020LN_S=$lt_LN_S
15021
15022# A BSD-compatible nm program.
15023NM=$lt_NM
15024
15025# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015026STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000015027
15028# Used to examine libraries when file_magic_cmd begins "file"
15029MAGIC_CMD=$MAGIC_CMD
15030
15031# Used on cygwin: DLL creation program.
15032DLLTOOL="$DLLTOOL"
15033
15034# Used on cygwin: object dumper.
15035OBJDUMP="$OBJDUMP"
15036
15037# Used on cygwin: assembler.
15038AS="$AS"
15039
15040# The name of the directory that contains temporary libtool files.
15041objdir=$objdir
15042
15043# How to create reloadable object files.
15044reload_flag=$lt_reload_flag
15045reload_cmds=$lt_reload_cmds
15046
15047# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000015048wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000015049
15050# Object file suffix (normally "o").
15051objext="$ac_objext"
15052
15053# Old archive suffix (normally "a").
15054libext="$libext"
15055
John Criswell47fdd832003-07-14 16:52:07 +000015056# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015057shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015058
John Criswell7a73b802003-06-30 21:59:07 +000015059# Executable file suffix (normally "").
15060exeext="$exeext"
15061
15062# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000015063pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000015064pic_mode=$pic_mode
15065
John Criswell47fdd832003-07-14 16:52:07 +000015066# What is the maximum length of a command?
15067max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000015068
John Criswell47fdd832003-07-14 16:52:07 +000015069# Does compiler simultaneously support -c and -o options?
15070compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000015071
15072# Must we lock files when doing compilation ?
15073need_locks=$lt_need_locks
15074
15075# Do we need the lib prefix for modules?
15076need_lib_prefix=$need_lib_prefix
15077
15078# Do we need a version for libraries?
15079need_version=$need_version
15080
15081# Whether dlopen is supported.
15082dlopen_support=$enable_dlopen
15083
15084# Whether dlopen of programs is supported.
15085dlopen_self=$enable_dlopen_self
15086
15087# Whether dlopen of statically linked programs is supported.
15088dlopen_self_static=$enable_dlopen_self_static
15089
15090# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000015091link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000015092
15093# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000015094no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000015095
15096# Compiler flag to allow reflexive dlopens.
15097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15098
15099# Compiler flag to generate shared objects directly from archives.
15100whole_archive_flag_spec=$lt_whole_archive_flag_spec
15101
15102# Compiler flag to generate thread-safe objects.
15103thread_safe_flag_spec=$lt_thread_safe_flag_spec
15104
15105# Library versioning type.
15106version_type=$version_type
15107
15108# Format of library name prefix.
15109libname_spec=$lt_libname_spec
15110
15111# List of archive names. First name is the real one, the rest are links.
15112# The last name is the one that the linker finds with -lNAME.
15113library_names_spec=$lt_library_names_spec
15114
15115# The coded name of the library, if different from the real name.
15116soname_spec=$lt_soname_spec
15117
15118# Commands used to build and install an old-style archive.
15119RANLIB=$lt_RANLIB
15120old_archive_cmds=$lt_old_archive_cmds
15121old_postinstall_cmds=$lt_old_postinstall_cmds
15122old_postuninstall_cmds=$lt_old_postuninstall_cmds
15123
15124# Create an old-style archive from a shared archive.
15125old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15126
15127# Create a temporary old-style archive to link instead of a shared archive.
15128old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15129
15130# Commands used to build and install a shared archive.
15131archive_cmds=$lt_archive_cmds
15132archive_expsym_cmds=$lt_archive_expsym_cmds
15133postinstall_cmds=$lt_postinstall_cmds
15134postuninstall_cmds=$lt_postuninstall_cmds
15135
John Criswell47fdd832003-07-14 16:52:07 +000015136# Commands used to build a loadable module (assumed same as above if empty)
15137module_cmds=$lt_module_cmds
15138module_expsym_cmds=$lt_module_expsym_cmds
15139
John Criswell7a73b802003-06-30 21:59:07 +000015140# Commands to strip libraries.
15141old_striplib=$lt_old_striplib
15142striplib=$lt_striplib
15143
John Criswell47fdd832003-07-14 16:52:07 +000015144# Dependencies to place before the objects being linked to create a
15145# shared library.
15146predep_objects=$lt_predep_objects
15147
15148# Dependencies to place after the objects being linked to create a
15149# shared library.
15150postdep_objects=$lt_postdep_objects
15151
15152# Dependencies to place before the objects being linked to create a
15153# shared library.
15154predeps=$lt_predeps
15155
15156# Dependencies to place after the objects being linked to create a
15157# shared library.
15158postdeps=$lt_postdeps
15159
15160# The library search path used internally by the compiler when linking
15161# a shared library.
15162compiler_lib_search_path=$lt_compiler_lib_search_path
15163
John Criswell7a73b802003-06-30 21:59:07 +000015164# Method to check whether dependent libraries are shared objects.
15165deplibs_check_method=$lt_deplibs_check_method
15166
15167# Command to use when deplibs_check_method == file_magic.
15168file_magic_cmd=$lt_file_magic_cmd
15169
15170# Flag that allows shared libraries with undefined symbols to be built.
15171allow_undefined_flag=$lt_allow_undefined_flag
15172
15173# Flag that forces no undefined symbols.
15174no_undefined_flag=$lt_no_undefined_flag
15175
15176# Commands used to finish a libtool library installation in a directory.
15177finish_cmds=$lt_finish_cmds
15178
15179# Same as above, but a single script fragment to be evaled but not shown.
15180finish_eval=$lt_finish_eval
15181
15182# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015183global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015184
15185# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015186global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015187
15188# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015189global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015190
15191# This is the shared library runtime path variable.
15192runpath_var=$runpath_var
15193
15194# This is the shared library path variable.
15195shlibpath_var=$shlibpath_var
15196
15197# Is shlibpath searched before the hard-coded library search path?
15198shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15199
15200# How to hardcode a shared library path into an executable.
15201hardcode_action=$hardcode_action
15202
15203# Whether we should hardcode library paths into libraries.
15204hardcode_into_libs=$hardcode_into_libs
15205
15206# Flag to hardcode \$libdir into a binary during linking.
15207# This must work even if \$libdir does not exist.
15208hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15209
John Criswell47fdd832003-07-14 16:52:07 +000015210# If ld is used when linking, flag to hardcode \$libdir into
15211# a binary during linking. This must work even if \$libdir does
15212# not exist.
15213hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15214
John Criswell7a73b802003-06-30 21:59:07 +000015215# Whether we need a single -rpath flag with a separated argument.
15216hardcode_libdir_separator=$lt_hardcode_libdir_separator
15217
John Criswell47fdd832003-07-14 16:52:07 +000015218# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015219# resulting binary.
15220hardcode_direct=$hardcode_direct
15221
15222# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15223# resulting binary.
15224hardcode_minus_L=$hardcode_minus_L
15225
15226# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15227# the resulting binary.
15228hardcode_shlibpath_var=$hardcode_shlibpath_var
15229
John Criswell47fdd832003-07-14 16:52:07 +000015230# Set to yes if building a shared library automatically hardcodes DIR into the library
15231# and all subsequent libraries and executables linked against it.
15232hardcode_automatic=$hardcode_automatic
15233
John Criswell7a73b802003-06-30 21:59:07 +000015234# Variables whose values should be saved in libtool wrapper scripts and
15235# restored at relink time.
15236variables_saved_for_relink="$variables_saved_for_relink"
15237
15238# Whether libtool must link a program against all its dependency libraries.
15239link_all_deplibs=$link_all_deplibs
15240
15241# Compile-time system search path for libraries
15242sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15243
15244# Run-time system search path for libraries
15245sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15246
15247# Fix the shell variable \$srcfile for the compiler.
15248fix_srcfile_path="$fix_srcfile_path"
15249
15250# Set to yes if exported symbols are required.
15251always_export_symbols=$always_export_symbols
15252
15253# The commands to list exported symbols.
15254export_symbols_cmds=$lt_export_symbols_cmds
15255
15256# The commands to extract the exported symbol list from a shared archive.
15257extract_expsyms_cmds=$lt_extract_expsyms_cmds
15258
15259# Symbols that should not be listed in the preloaded symbols.
15260exclude_expsyms=$lt_exclude_expsyms
15261
15262# Symbols that must always be exported.
15263include_expsyms=$lt_include_expsyms
15264
15265# ### END LIBTOOL CONFIG
15266
15267__EOF__
15268
John Criswell47fdd832003-07-14 16:52:07 +000015269
John Criswell7a73b802003-06-30 21:59:07 +000015270 case $host_os in
15271 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015272 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015273
15274# AIX sometimes has problems with the GCC collect2 program. For some
15275# reason, if we set the COLLECT_NAMES environment variable, the problems
15276# vanish in a puff of smoke.
15277if test "X${COLLECT_NAMES+set}" != Xset; then
15278 COLLECT_NAMES=
15279 export COLLECT_NAMES
15280fi
15281EOF
15282 ;;
15283 esac
15284
John Criswell7a73b802003-06-30 21:59:07 +000015285 # We use sed instead of cat because bash on DJGPP gets confused if
15286 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15287 # text mode, it properly converts lines to CR/LF. This bash problem
15288 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015289 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015290
John Criswell47fdd832003-07-14 16:52:07 +000015291 mv -f "$cfgfile" "$ofile" || \
15292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015293 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015294
15295else
15296 # If there is no Makefile yet, we rely on a make rule to execute
15297 # `config.status --recheck' to rerun these tests and create the
15298 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015299 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15300 if test -f "$ltmain_in"; then
15301 test -f Makefile && make "$ltmain"
15302 fi
John Criswell7a73b802003-06-30 21:59:07 +000015303fi
John Criswell7a73b802003-06-30 21:59:07 +000015304
15305
John Criswell47fdd832003-07-14 16:52:07 +000015306ac_ext=c
15307ac_cpp='$CPP $CPPFLAGS'
15308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310ac_compiler_gnu=$ac_cv_c_compiler_gnu
15311
15312CC="$lt_save_CC"
15313
15314
15315# Check whether --with-tags or --without-tags was given.
15316if test "${with_tags+set}" = set; then
15317 withval="$with_tags"
15318 tagnames="$withval"
15319fi;
15320
15321if test -f "$ltmain" && test -n "$tagnames"; then
15322 if test ! -f "${ofile}"; then
15323 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15324echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15325 fi
15326
15327 if test -z "$LTCC"; then
15328 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15329 if test -z "$LTCC"; then
15330 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15331echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15332 else
15333 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15334echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15335 fi
15336 fi
15337
15338 # Extract list of available tagged configurations in $ofile.
15339 # Note that this assumes the entire list is on one line.
15340 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15341
15342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15343 for tagname in $tagnames; do
15344 IFS="$lt_save_ifs"
15345 # Check whether tagname contains only valid characters
15346 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15347 "") ;;
15348 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15349echo "$as_me: error: invalid tag name: $tagname" >&2;}
15350 { (exit 1); exit 1; }; }
15351 ;;
15352 esac
15353
15354 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15355 then
15356 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15357echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15358 { (exit 1); exit 1; }; }
15359 fi
15360
15361 # Update the list of available tags.
15362 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015363 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015364
15365 case $tagname in
15366 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015367 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15368 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15369 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015370 ac_ext=cc
15371ac_cpp='$CXXCPP $CPPFLAGS'
15372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15375
15376
15377
15378
15379archive_cmds_need_lc_CXX=no
15380allow_undefined_flag_CXX=
15381always_export_symbols_CXX=no
15382archive_expsym_cmds_CXX=
15383export_dynamic_flag_spec_CXX=
15384hardcode_direct_CXX=no
15385hardcode_libdir_flag_spec_CXX=
15386hardcode_libdir_flag_spec_ld_CXX=
15387hardcode_libdir_separator_CXX=
15388hardcode_minus_L_CXX=no
15389hardcode_automatic_CXX=no
15390module_cmds_CXX=
15391module_expsym_cmds_CXX=
15392link_all_deplibs_CXX=unknown
15393old_archive_cmds_CXX=$old_archive_cmds
15394no_undefined_flag_CXX=
15395whole_archive_flag_spec_CXX=
15396enable_shared_with_static_runtimes_CXX=no
15397
15398# Dependencies to place before and after the object being linked:
15399predep_objects_CXX=
15400postdep_objects_CXX=
15401predeps_CXX=
15402postdeps_CXX=
15403compiler_lib_search_path_CXX=
15404
15405# Source file extension for C++ test sources.
15406ac_ext=cc
15407
15408# Object file extension for compiled C++ test sources.
15409objext=o
15410objext_CXX=$objext
15411
15412# Code to be used in simple compile tests
15413lt_simple_compile_test_code="int some_variable = 0;\n"
15414
15415# Code to be used in simple link tests
15416lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15417
15418# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15419
15420# If no C compiler was specified, use CC.
15421LTCC=${LTCC-"$CC"}
15422
15423# Allow CC to be a program name with arguments.
15424compiler=$CC
15425
15426
15427# Allow CC to be a program name with arguments.
15428lt_save_CC=$CC
15429lt_save_LD=$LD
15430lt_save_GCC=$GCC
15431GCC=$GXX
15432lt_save_with_gnu_ld=$with_gnu_ld
15433lt_save_path_LD=$lt_cv_path_LD
15434if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15436else
15437 unset lt_cv_prog_gnu_ld
15438fi
15439if test -n "${lt_cv_path_LDCXX+set}"; then
15440 lt_cv_path_LD=$lt_cv_path_LDCXX
15441else
15442 unset lt_cv_path_LD
15443fi
15444test -z "${LDCXX+set}" || LD=$LDCXX
15445CC=${CXX-"c++"}
15446compiler=$CC
15447compiler_CXX=$CC
15448cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15449
15450# We don't want -fno-exception wen compiling C++ code, so set the
15451# no_builtin_flag separately
15452if test "$GXX" = yes; then
15453 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15454else
15455 lt_prog_compiler_no_builtin_flag_CXX=
15456fi
15457
15458if test "$GXX" = yes; then
15459 # Set up default GNU C++ configuration
15460
15461
15462# Check whether --with-gnu-ld or --without-gnu-ld was given.
15463if test "${with_gnu_ld+set}" = set; then
15464 withval="$with_gnu_ld"
15465 test "$withval" = no || with_gnu_ld=yes
15466else
15467 with_gnu_ld=no
15468fi;
15469ac_prog=ld
15470if test "$GCC" = yes; then
15471 # Check if gcc -print-prog-name=ld gives a path.
15472 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15473echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15474 case $host in
15475 *-*-mingw*)
15476 # gcc leaves a trailing carriage return which upsets mingw
15477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15478 *)
15479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15480 esac
15481 case $ac_prog in
15482 # Accept absolute paths.
15483 [\\/]* | ?:[\\/]*)
15484 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015485 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15489 done
15490 test -z "$LD" && LD="$ac_prog"
15491 ;;
15492 "")
15493 # If it fails, then pretend we aren't using GCC.
15494 ac_prog=ld
15495 ;;
15496 *)
15497 # If it is relative, then search for the first ld in PATH.
15498 with_gnu_ld=unknown
15499 ;;
15500 esac
15501elif test "$with_gnu_ld" = yes; then
15502 echo "$as_me:$LINENO: checking for GNU ld" >&5
15503echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15504else
15505 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15506echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15507fi
15508if test "${lt_cv_path_LD+set}" = set; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510else
15511 if test -z "$LD"; then
15512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15513 for ac_dir in $PATH; do
15514 IFS="$lt_save_ifs"
15515 test -z "$ac_dir" && ac_dir=.
15516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15517 lt_cv_path_LD="$ac_dir/$ac_prog"
15518 # Check to see if the program is GNU ld. I'd rather use --version,
15519 # but apparently some GNU ld's only accept -v.
15520 # Break only if it was the GNU/non-GNU ld that we prefer.
15521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15522 *GNU* | *'with BFD'*)
15523 test "$with_gnu_ld" != no && break
15524 ;;
15525 *)
15526 test "$with_gnu_ld" != yes && break
15527 ;;
15528 esac
15529 fi
15530 done
15531 IFS="$lt_save_ifs"
15532else
15533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15534fi
15535fi
15536
15537LD="$lt_cv_path_LD"
15538if test -n "$LD"; then
15539 echo "$as_me:$LINENO: result: $LD" >&5
15540echo "${ECHO_T}$LD" >&6
15541else
15542 echo "$as_me:$LINENO: result: no" >&5
15543echo "${ECHO_T}no" >&6
15544fi
15545test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15546echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15547 { (exit 1); exit 1; }; }
15548echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15549echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15550if test "${lt_cv_prog_gnu_ld+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552else
15553 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015554case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015555*GNU* | *'with BFD'*)
15556 lt_cv_prog_gnu_ld=yes
15557 ;;
15558*)
15559 lt_cv_prog_gnu_ld=no
15560 ;;
15561esac
15562fi
15563echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15564echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15565with_gnu_ld=$lt_cv_prog_gnu_ld
15566
15567
15568
15569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15570 # archiving commands below assume that GNU ld is being used.
15571 if test "$with_gnu_ld" = yes; then
15572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 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'
15574
15575 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15577
15578 # If archive_cmds runs LD, not CC, wlarc should be empty
15579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15580 # investigate it a little bit more. (MM)
15581 wlarc='${wl}'
15582
15583 # ancient GNU ld didn't support --whole-archive et. al.
15584 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15585 grep 'no-whole-archive' > /dev/null; then
15586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15587 else
15588 whole_archive_flag_spec_CXX=
15589 fi
15590 else
15591 with_gnu_ld=no
15592 wlarc=
15593
15594 # A generic and very simple default shared library creation
15595 # command for GNU C++ for the case where it uses the native
15596 # linker, instead of GNU ld. If possible, this setting should
15597 # overridden to take advantage of the native linker features on
15598 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015599 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015600 fi
15601
15602 # Commands to make compiler produce verbose output that lists
15603 # what "hidden" libraries, object files and flags are used when
15604 # linking a shared library.
15605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15606
15607else
15608 GXX=no
15609 with_gnu_ld=no
15610 wlarc=
15611fi
15612
15613# PORTME: fill in a description of your system's C++ link characteristics
15614echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15615echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15616ld_shlibs_CXX=yes
15617case $host_os in
15618 aix3*)
15619 # FIXME: insert proper C++ library support
15620 ld_shlibs_CXX=no
15621 ;;
15622 aix4* | aix5*)
15623 if test "$host_cpu" = ia64; then
15624 # On IA64, the linker does run time linking by default, so we don't
15625 # have to do anything special.
15626 aix_use_runtimelinking=no
15627 exp_sym_flag='-Bexport'
15628 no_entry_flag=""
15629 else
15630 aix_use_runtimelinking=no
15631
15632 # Test if we are trying to use run time linking or normal
15633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15634 # need to do runtime linking.
15635 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15636 for ld_flag in $LDFLAGS; do
15637 case $ld_flag in
15638 *-brtl*)
15639 aix_use_runtimelinking=yes
15640 break
15641 ;;
15642 esac
15643 done
15644 esac
15645
15646 exp_sym_flag='-bexport'
15647 no_entry_flag='-bnoentry'
15648 fi
15649
15650 # When large executables or shared objects are built, AIX ld can
15651 # have problems creating the table of contents. If linking a library
15652 # or program results in "error TOC overflow" add -mminimal-toc to
15653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15655
15656 archive_cmds_CXX=''
15657 hardcode_direct_CXX=yes
15658 hardcode_libdir_separator_CXX=':'
15659 link_all_deplibs_CXX=yes
15660
15661 if test "$GXX" = yes; then
15662 case $host_os in aix4.012|aix4.012.*)
15663 # We only want to do this on AIX 4.2 and lower, the check
15664 # below for broken collect2 doesn't work under 4.3+
15665 collect2name=`${CC} -print-prog-name=collect2`
15666 if test -f "$collect2name" && \
15667 strings "$collect2name" | grep resolve_lib_name >/dev/null
15668 then
15669 # We have reworked collect2
15670 hardcode_direct_CXX=yes
15671 else
15672 # We have old collect2
15673 hardcode_direct_CXX=unsupported
15674 # It fails to find uninstalled libraries when the uninstalled
15675 # path is not listed in the libpath. Setting hardcode_minus_L
15676 # to unsupported forces relinking
15677 hardcode_minus_L_CXX=yes
15678 hardcode_libdir_flag_spec_CXX='-L$libdir'
15679 hardcode_libdir_separator_CXX=
15680 fi
15681 esac
15682 shared_flag='-shared'
15683 else
15684 # not using gcc
15685 if test "$host_cpu" = ia64; then
15686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15687 # chokes on -Wl,-G. The following line is correct:
15688 shared_flag='-G'
15689 else
15690 if test "$aix_use_runtimelinking" = yes; then
15691 shared_flag='${wl}-G'
15692 else
15693 shared_flag='${wl}-bM:SRE'
15694 fi
15695 fi
15696 fi
15697
15698 # It seems that -bexpall does not export symbols beginning with
15699 # underscore (_), so it is better to generate a list of symbols to export.
15700 always_export_symbols_CXX=yes
15701 if test "$aix_use_runtimelinking" = yes; then
15702 # Warning - without using the other runtime loading flags (-brtl),
15703 # -berok will link without error, but may produce a broken library.
15704 allow_undefined_flag_CXX='-berok'
15705 # Determine the default libpath from the value encoded in an empty executable.
15706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015707/* confdefs.h. */
15708_ACEOF
15709cat confdefs.h >>conftest.$ac_ext
15710cat >>conftest.$ac_ext <<_ACEOF
15711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015712
John Criswell47fdd832003-07-14 16:52:07 +000015713int
15714main ()
15715{
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
15721rm -f conftest.$ac_objext conftest$ac_exeext
15722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015723 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015730 { ac_try='test -z "$ac_cxx_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743
15744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15745}'`
15746# Check for a 64-bit object if we didn't find anything.
15747if 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; }
15748}'`; fi
15749else
15750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015751sed 's/^/| /' conftest.$ac_ext >&5
15752
John Criswell47fdd832003-07-14 16:52:07 +000015753fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015754rm -f conftest.err conftest.$ac_objext \
15755 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15757
15758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15759
15760 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"
15761 else
15762 if test "$host_cpu" = ia64; then
15763 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15764 allow_undefined_flag_CXX="-z nodefs"
15765 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"
15766 else
15767 # Determine the default libpath from the value encoded in an empty executable.
15768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015769/* confdefs.h. */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015774
John Criswell47fdd832003-07-14 16:52:07 +000015775int
15776main ()
15777{
15778
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext conftest$ac_exeext
15784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015785 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015792 { ac_try='test -z "$ac_cxx_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805
15806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15807}'`
15808# Check for a 64-bit object if we didn't find anything.
15809if 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; }
15810}'`; fi
15811else
15812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015813sed 's/^/| /' conftest.$ac_ext >&5
15814
John Criswell47fdd832003-07-14 16:52:07 +000015815fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015816rm -f conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15819
15820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15821 # Warning - without using the other run time loading flags,
15822 # -berok will link without error, but may produce a broken library.
15823 no_undefined_flag_CXX=' ${wl}-bernotok'
15824 allow_undefined_flag_CXX=' ${wl}-berok'
15825 # -bexpall does not export symbols beginning with underscore (_)
15826 always_export_symbols_CXX=yes
15827 # Exported symbols can be pulled into shared objects from archives
15828 whole_archive_flag_spec_CXX=' '
15829 archive_cmds_need_lc_CXX=yes
15830 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015831 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 +000015832 fi
15833 fi
15834 ;;
15835 chorus*)
15836 case $cc_basename in
15837 *)
15838 # FIXME: insert proper C++ library support
15839 ld_shlibs_CXX=no
15840 ;;
15841 esac
15842 ;;
15843
Reid Spencer2706f8c2004-09-19 23:53:36 +000015844
John Criswell47fdd832003-07-14 16:52:07 +000015845 cygwin* | mingw* | pw32*)
15846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15847 # as there is no search path for DLLs.
15848 hardcode_libdir_flag_spec_CXX='-L$libdir'
15849 allow_undefined_flag_CXX=unsupported
15850 always_export_symbols_CXX=no
15851 enable_shared_with_static_runtimes_CXX=yes
15852
15853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15854 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'
15855 # If the export-symbols file already is a .def file (1st line
15856 # is EXPORTS), use it as is; otherwise, prepend...
15857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15858 cp $export_symbols $output_objdir/$soname.def;
15859 else
15860 echo EXPORTS > $output_objdir/$soname.def;
15861 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015862 fi~
15863 $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 +000015864 else
15865 ld_shlibs_CXX=no
15866 fi
15867 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015868 darwin* | rhapsody*)
15869 case "$host_os" in
15870 rhapsody* | darwin1.[012])
15871 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15872 ;;
15873 *) # Darwin 1.3 on
15874 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15875 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15876 else
15877 case ${MACOSX_DEPLOYMENT_TARGET} in
15878 10.[012])
15879 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15880 ;;
15881 10.*)
15882 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15883 ;;
15884 esac
15885 fi
15886 ;;
15887 esac
15888 archive_cmds_need_lc_CXX=no
15889 hardcode_direct_CXX=no
15890 hardcode_automatic_CXX=yes
15891 hardcode_shlibpath_var_CXX=unsupported
15892 whole_archive_flag_spec_CXX=''
15893 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015894
Reid Spencer2706f8c2004-09-19 23:53:36 +000015895 if test "$GXX" = yes ; then
15896 lt_int_apple_cc_single_mod=no
15897 output_verbose_link_cmd='echo'
15898 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15899 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015900 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015901 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015902 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 +000015903 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015904 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 +000015905 fi
15906 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015909 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 +000015910 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015911 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 +000015912 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015913 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 +000015914 else
15915 case "$cc_basename" in
15916 xlc*)
15917 output_verbose_link_cmd='echo'
15918 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'
15919 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15920 # 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 +000015921 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}'
15922 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 +000015923 ;;
15924 *)
15925 ld_shlibs_CXX=no
15926 ;;
15927 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015928 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015929 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015930
15931 dgux*)
15932 case $cc_basename in
15933 ec++)
15934 # FIXME: insert proper C++ library support
15935 ld_shlibs_CXX=no
15936 ;;
15937 ghcx)
15938 # Green Hills C++ Compiler
15939 # FIXME: insert proper C++ library support
15940 ld_shlibs_CXX=no
15941 ;;
15942 *)
15943 # FIXME: insert proper C++ library support
15944 ld_shlibs_CXX=no
15945 ;;
15946 esac
15947 ;;
15948 freebsd12*)
15949 # C++ shared libraries reported to be fairly broken before switch to ELF
15950 ld_shlibs_CXX=no
15951 ;;
15952 freebsd-elf*)
15953 archive_cmds_need_lc_CXX=no
15954 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015955 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015956 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15957 # conventions
15958 ld_shlibs_CXX=yes
15959 ;;
15960 gnu*)
15961 ;;
15962 hpux9*)
15963 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15964 hardcode_libdir_separator_CXX=:
15965 export_dynamic_flag_spec_CXX='${wl}-E'
15966 hardcode_direct_CXX=yes
15967 hardcode_minus_L_CXX=yes # Not in the search PATH,
15968 # but as the default
15969 # location of the library.
15970
15971 case $cc_basename in
15972 CC)
15973 # FIXME: insert proper C++ library support
15974 ld_shlibs_CXX=no
15975 ;;
15976 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015977 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 +000015978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15981 #
15982 # There doesn't appear to be a way to prevent this compiler from
15983 # explicitly linking system object files so we need to strip them
15984 # from the output so that they don't get included in the library
15985 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015986 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 +000015987 ;;
15988 *)
15989 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015990 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 +000015991 else
15992 # FIXME: insert proper C++ library support
15993 ld_shlibs_CXX=no
15994 fi
15995 ;;
15996 esac
15997 ;;
15998 hpux10*|hpux11*)
15999 if test $with_gnu_ld = no; then
16000 case "$host_cpu" in
16001 hppa*64*)
16002 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16003 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16004 hardcode_libdir_separator_CXX=:
16005 ;;
16006 ia64*)
16007 hardcode_libdir_flag_spec_CXX='-L$libdir'
16008 ;;
16009 *)
16010 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16011 hardcode_libdir_separator_CXX=:
16012 export_dynamic_flag_spec_CXX='${wl}-E'
16013 ;;
16014 esac
16015 fi
16016 case "$host_cpu" in
16017 hppa*64*)
16018 hardcode_direct_CXX=no
16019 hardcode_shlibpath_var_CXX=no
16020 ;;
16021 ia64*)
16022 hardcode_direct_CXX=no
16023 hardcode_shlibpath_var_CXX=no
16024 hardcode_minus_L_CXX=yes # Not in the search PATH,
16025 # but as the default
16026 # location of the library.
16027 ;;
16028 *)
16029 hardcode_direct_CXX=yes
16030 hardcode_minus_L_CXX=yes # Not in the search PATH,
16031 # but as the default
16032 # location of the library.
16033 ;;
16034 esac
16035
16036 case $cc_basename in
16037 CC)
16038 # FIXME: insert proper C++ library support
16039 ld_shlibs_CXX=no
16040 ;;
16041 aCC)
16042 case "$host_cpu" in
16043 hppa*64*|ia64*)
16044 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16045 ;;
16046 *)
16047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16048 ;;
16049 esac
16050 # Commands to make compiler produce verbose output that lists
16051 # what "hidden" libraries, object files and flags are used when
16052 # linking a shared library.
16053 #
16054 # There doesn't appear to be a way to prevent this compiler from
16055 # explicitly linking system object files so we need to strip them
16056 # from the output so that they don't get included in the library
16057 # dependencies.
16058 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'
16059 ;;
16060 *)
16061 if test "$GXX" = yes; then
16062 if test $with_gnu_ld = no; then
16063 case "$host_cpu" in
16064 ia64*|hppa*64*)
16065 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16066 ;;
16067 *)
16068 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'
16069 ;;
16070 esac
16071 fi
16072 else
16073 # FIXME: insert proper C++ library support
16074 ld_shlibs_CXX=no
16075 fi
16076 ;;
16077 esac
16078 ;;
16079 irix5* | irix6*)
16080 case $cc_basename in
16081 CC)
16082 # SGI C++
16083 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'
16084
16085 # Archives containing C++ object files must be created using
16086 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16087 # necessary to make sure instantiated templates are included
16088 # in the archive.
16089 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16090 ;;
16091 *)
16092 if test "$GXX" = yes; then
16093 if test "$with_gnu_ld" = no; then
16094 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'
16095 else
16096 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'
16097 fi
16098 fi
16099 link_all_deplibs_CXX=yes
16100 ;;
16101 esac
16102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16103 hardcode_libdir_separator_CXX=:
16104 ;;
16105 linux*)
16106 case $cc_basename in
16107 KCC)
16108 # Kuck and Associates, Inc. (KAI) C++ Compiler
16109
16110 # KCC will only create a shared library if the output file
16111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16112 # to its proper name (with version) after linking.
16113 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'
16114 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'
16115 # Commands to make compiler produce verbose output that lists
16116 # what "hidden" libraries, object files and flags are used when
16117 # linking a shared library.
16118 #
16119 # There doesn't appear to be a way to prevent this compiler from
16120 # explicitly linking system object files so we need to strip them
16121 # from the output so that they don't get included in the library
16122 # dependencies.
16123 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'
16124
16125 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16126 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16127
16128 # Archives containing C++ object files must be created using
16129 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16130 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16131 ;;
16132 icpc)
16133 # Intel C++
16134 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016135 # version 8.0 and above of icpc choke on multiply defined symbols
16136 # if we add $predep_objects and $postdep_objects, however 7.1 and
16137 # earlier do not add the objects themselves.
16138 case `$CC -V 2>&1` in
16139 *"Version 7."*)
16140 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16141 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'
16142 ;;
16143 *) # Version 8.0 or newer
16144 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16145 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16146 ;;
16147 esac
John Criswell47fdd832003-07-14 16:52:07 +000016148 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16151 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16152 ;;
16153 cxx)
16154 # Compaq C++
16155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 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'
16157
16158 runpath_var=LD_RUN_PATH
16159 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16160 hardcode_libdir_separator_CXX=:
16161
16162 # Commands to make compiler produce verbose output that lists
16163 # what "hidden" libraries, object files and flags are used when
16164 # linking a shared library.
16165 #
16166 # There doesn't appear to be a way to prevent this compiler from
16167 # explicitly linking system object files so we need to strip them
16168 # from the output so that they don't get included in the library
16169 # dependencies.
16170 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'
16171 ;;
16172 esac
16173 ;;
16174 lynxos*)
16175 # FIXME: insert proper C++ library support
16176 ld_shlibs_CXX=no
16177 ;;
16178 m88k*)
16179 # FIXME: insert proper C++ library support
16180 ld_shlibs_CXX=no
16181 ;;
16182 mvs*)
16183 case $cc_basename in
16184 cxx)
16185 # FIXME: insert proper C++ library support
16186 ld_shlibs_CXX=no
16187 ;;
16188 *)
16189 # FIXME: insert proper C++ library support
16190 ld_shlibs_CXX=no
16191 ;;
16192 esac
16193 ;;
16194 netbsd*)
16195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16196 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16197 wlarc=
16198 hardcode_libdir_flag_spec_CXX='-R$libdir'
16199 hardcode_direct_CXX=yes
16200 hardcode_shlibpath_var_CXX=no
16201 fi
16202 # Workaround some broken pre-1.5 toolchains
16203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16204 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016205 openbsd2*)
16206 # C++ shared libraries are fairly broken
16207 ld_shlibs_CXX=no
16208 ;;
16209 openbsd*)
16210 hardcode_direct_CXX=yes
16211 hardcode_shlibpath_var_CXX=no
16212 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16215 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16216 export_dynamic_flag_spec_CXX='${wl}-E'
16217 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16218 fi
16219 output_verbose_link_cmd='echo'
16220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016221 osf3*)
16222 case $cc_basename in
16223 KCC)
16224 # Kuck and Associates, Inc. (KAI) C++ Compiler
16225
16226 # KCC will only create a shared library if the output file
16227 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16228 # to its proper name (with version) after linking.
16229 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'
16230
16231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16232 hardcode_libdir_separator_CXX=:
16233
16234 # Archives containing C++ object files must be created using
16235 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16236 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16237
16238 ;;
16239 RCC)
16240 # Rational C++ 2.4.1
16241 # FIXME: insert proper C++ library support
16242 ld_shlibs_CXX=no
16243 ;;
16244 cxx)
16245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16246 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'
16247
16248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16249 hardcode_libdir_separator_CXX=:
16250
16251 # Commands to make compiler produce verbose output that lists
16252 # what "hidden" libraries, object files and flags are used when
16253 # linking a shared library.
16254 #
16255 # There doesn't appear to be a way to prevent this compiler from
16256 # explicitly linking system object files so we need to strip them
16257 # from the output so that they don't get included in the library
16258 # dependencies.
16259 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'
16260 ;;
16261 *)
16262 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16263 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16264 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'
16265
16266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16267 hardcode_libdir_separator_CXX=:
16268
16269 # Commands to make compiler produce verbose output that lists
16270 # what "hidden" libraries, object files and flags are used when
16271 # linking a shared library.
16272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16273
16274 else
16275 # FIXME: insert proper C++ library support
16276 ld_shlibs_CXX=no
16277 fi
16278 ;;
16279 esac
16280 ;;
16281 osf4* | osf5*)
16282 case $cc_basename in
16283 KCC)
16284 # Kuck and Associates, Inc. (KAI) C++ Compiler
16285
16286 # KCC will only create a shared library if the output file
16287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16288 # to its proper name (with version) after linking.
16289 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'
16290
16291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16292 hardcode_libdir_separator_CXX=:
16293
16294 # Archives containing C++ object files must be created using
16295 # the KAI C++ compiler.
16296 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16297 ;;
16298 RCC)
16299 # Rational C++ 2.4.1
16300 # FIXME: insert proper C++ library support
16301 ld_shlibs_CXX=no
16302 ;;
16303 cxx)
16304 allow_undefined_flag_CXX=' -expect_unresolved \*'
16305 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 +000016306 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16307 echo "-hidden">> $lib.exp~
16308 $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~
16309 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016310
16311 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16312 hardcode_libdir_separator_CXX=:
16313
16314 # Commands to make compiler produce verbose output that lists
16315 # what "hidden" libraries, object files and flags are used when
16316 # linking a shared library.
16317 #
16318 # There doesn't appear to be a way to prevent this compiler from
16319 # explicitly linking system object files so we need to strip them
16320 # from the output so that they don't get included in the library
16321 # dependencies.
16322 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'
16323 ;;
16324 *)
16325 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16326 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16327 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'
16328
16329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16330 hardcode_libdir_separator_CXX=:
16331
16332 # Commands to make compiler produce verbose output that lists
16333 # what "hidden" libraries, object files and flags are used when
16334 # linking a shared library.
16335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16336
16337 else
16338 # FIXME: insert proper C++ library support
16339 ld_shlibs_CXX=no
16340 fi
16341 ;;
16342 esac
16343 ;;
16344 psos*)
16345 # FIXME: insert proper C++ library support
16346 ld_shlibs_CXX=no
16347 ;;
16348 sco*)
16349 archive_cmds_need_lc_CXX=no
16350 case $cc_basename in
16351 CC)
16352 # FIXME: insert proper C++ library support
16353 ld_shlibs_CXX=no
16354 ;;
16355 *)
16356 # FIXME: insert proper C++ library support
16357 ld_shlibs_CXX=no
16358 ;;
16359 esac
16360 ;;
16361 sunos4*)
16362 case $cc_basename in
16363 CC)
16364 # Sun C++ 4.x
16365 # FIXME: insert proper C++ library support
16366 ld_shlibs_CXX=no
16367 ;;
16368 lcc)
16369 # Lucid
16370 # FIXME: insert proper C++ library support
16371 ld_shlibs_CXX=no
16372 ;;
16373 *)
16374 # FIXME: insert proper C++ library support
16375 ld_shlibs_CXX=no
16376 ;;
16377 esac
16378 ;;
16379 solaris*)
16380 case $cc_basename in
16381 CC)
16382 # Sun C++ 4.2, 5.x and Centerline C++
16383 no_undefined_flag_CXX=' -zdefs'
16384 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 +000016385 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16386 $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 +000016387
16388 hardcode_libdir_flag_spec_CXX='-R$libdir'
16389 hardcode_shlibpath_var_CXX=no
16390 case $host_os in
16391 solaris2.0-5 | solaris2.0-5.*) ;;
16392 *)
16393 # The C++ compiler is used as linker so we must use $wl
16394 # flag to pass the commands to the underlying system
16395 # linker.
16396 # Supported since Solaris 2.6 (maybe 2.5.1?)
16397 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16398 ;;
16399 esac
16400 link_all_deplibs_CXX=yes
16401
16402 # Commands to make compiler produce verbose output that lists
16403 # what "hidden" libraries, object files and flags are used when
16404 # linking a shared library.
16405 #
16406 # There doesn't appear to be a way to prevent this compiler from
16407 # explicitly linking system object files so we need to strip them
16408 # from the output so that they don't get included in the library
16409 # dependencies.
16410 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'
16411
16412 # Archives containing C++ object files must be created using
16413 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16414 # necessary to make sure instantiated templates are included
16415 # in the archive.
16416 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16417 ;;
16418 gcx)
16419 # Green Hills C++ Compiler
16420 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16421
16422 # The C++ compiler must be used to create the archive.
16423 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16424 ;;
16425 *)
16426 # GNU C++ compiler with Solaris linker
16427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16428 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16429 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016430 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 +000016431 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16432 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16433
John Criswell47fdd832003-07-14 16:52:07 +000016434 # Commands to make compiler produce verbose output that lists
16435 # what "hidden" libraries, object files and flags are used when
16436 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016437 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016438 else
16439 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16440 # platform.
16441 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 +000016442 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16443 $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 +000016444
16445 # Commands to make compiler produce verbose output that lists
16446 # what "hidden" libraries, object files and flags are used when
16447 # linking a shared library.
16448 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16449 fi
16450
16451 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16452 fi
16453 ;;
16454 esac
16455 ;;
16456 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16457 archive_cmds_need_lc_CXX=no
16458 ;;
16459 tandem*)
16460 case $cc_basename in
16461 NCC)
16462 # NonStop-UX NCC 3.20
16463 # FIXME: insert proper C++ library support
16464 ld_shlibs_CXX=no
16465 ;;
16466 *)
16467 # FIXME: insert proper C++ library support
16468 ld_shlibs_CXX=no
16469 ;;
16470 esac
16471 ;;
16472 vxworks*)
16473 # FIXME: insert proper C++ library support
16474 ld_shlibs_CXX=no
16475 ;;
16476 *)
16477 # FIXME: insert proper C++ library support
16478 ld_shlibs_CXX=no
16479 ;;
16480esac
16481echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16482echo "${ECHO_T}$ld_shlibs_CXX" >&6
16483test "$ld_shlibs_CXX" = no && can_build_shared=no
16484
16485GCC_CXX="$GXX"
16486LD_CXX="$LD"
16487
John Criswell47fdd832003-07-14 16:52:07 +000016488
16489cat > conftest.$ac_ext <<EOF
16490class Foo
16491{
16492public:
16493 Foo (void) { a = 0; }
16494private:
16495 int a;
16496};
16497EOF
16498
16499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; then
16504 # Parse the compiler output and extract the necessary
16505 # objects, libraries and library flags.
16506
16507 # Sentinel used to keep track of whether or not we are before
16508 # the conftest object file.
16509 pre_test_object_deps_done=no
16510
16511 # The `*' in the case matches for architectures that use `case' in
16512 # $output_verbose_cmd can trigger glob expansion during the loop
16513 # eval without this substitution.
16514 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16515
16516 for p in `eval $output_verbose_link_cmd`; do
16517 case $p in
16518
16519 -L* | -R* | -l*)
16520 # Some compilers place space between "-{L,R}" and the path.
16521 # Remove the space.
16522 if test $p = "-L" \
16523 || test $p = "-R"; then
16524 prev=$p
16525 continue
16526 else
16527 prev=
16528 fi
16529
16530 if test "$pre_test_object_deps_done" = no; then
16531 case $p in
16532 -L* | -R*)
16533 # Internal compiler library paths should come after those
16534 # provided the user. The postdeps already come after the
16535 # user supplied libs so there is no need to process them.
16536 if test -z "$compiler_lib_search_path_CXX"; then
16537 compiler_lib_search_path_CXX="${prev}${p}"
16538 else
16539 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16540 fi
16541 ;;
16542 # The "-l" case would never come before the object being
16543 # linked, so don't bother handling this case.
16544 esac
16545 else
16546 if test -z "$postdeps_CXX"; then
16547 postdeps_CXX="${prev}${p}"
16548 else
16549 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16550 fi
16551 fi
16552 ;;
16553
16554 *.$objext)
16555 # This assumes that the test object file only shows up
16556 # once in the compiler output.
16557 if test "$p" = "conftest.$objext"; then
16558 pre_test_object_deps_done=yes
16559 continue
16560 fi
16561
16562 if test "$pre_test_object_deps_done" = no; then
16563 if test -z "$predep_objects_CXX"; then
16564 predep_objects_CXX="$p"
16565 else
16566 predep_objects_CXX="$predep_objects_CXX $p"
16567 fi
16568 else
16569 if test -z "$postdep_objects_CXX"; then
16570 postdep_objects_CXX="$p"
16571 else
16572 postdep_objects_CXX="$postdep_objects_CXX $p"
16573 fi
16574 fi
16575 ;;
16576
16577 *) ;; # Ignore the rest.
16578
16579 esac
16580 done
16581
16582 # Clean up.
16583 rm -f a.out a.exe
16584else
16585 echo "libtool.m4: error: problem compiling CXX test program"
16586fi
16587
16588$rm -f confest.$objext
16589
16590case " $postdeps_CXX " in
16591*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16592esac
16593
16594lt_prog_compiler_wl_CXX=
16595lt_prog_compiler_pic_CXX=
16596lt_prog_compiler_static_CXX=
16597
16598echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16599echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16600
16601 # C++ specific cases for pic, static, wl, etc.
16602 if test "$GXX" = yes; then
16603 lt_prog_compiler_wl_CXX='-Wl,'
16604 lt_prog_compiler_static_CXX='-static'
16605
16606 case $host_os in
16607 aix*)
16608 # All AIX code is PIC.
16609 if test "$host_cpu" = ia64; then
16610 # AIX 5 now supports IA64 processor
16611 lt_prog_compiler_static_CXX='-Bstatic'
16612 fi
16613 ;;
16614 amigaos*)
16615 # FIXME: we need at least 68020 code to build shared libraries, but
16616 # adding the `-m68020' flag to GCC prevents building anything better,
16617 # like `-m68040'.
16618 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16619 ;;
16620 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16621 # PIC is the default for these OSes.
16622 ;;
16623 mingw* | os2* | pw32*)
16624 # This hack is so that the source file can tell whether it is being
16625 # built for inclusion in a dll (and should export symbols for example).
16626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16627 ;;
16628 darwin* | rhapsody*)
16629 # PIC is the default on this platform
16630 # Common symbols not allowed in MH_DYLIB files
16631 lt_prog_compiler_pic_CXX='-fno-common'
16632 ;;
16633 *djgpp*)
16634 # DJGPP does not support shared libraries at all
16635 lt_prog_compiler_pic_CXX=
16636 ;;
16637 sysv4*MP*)
16638 if test -d /usr/nec; then
16639 lt_prog_compiler_pic_CXX=-Kconform_pic
16640 fi
16641 ;;
16642 hpux*)
16643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16644 # not for PA HP-UX.
16645 case "$host_cpu" in
16646 hppa*64*|ia64*)
16647 ;;
16648 *)
16649 lt_prog_compiler_pic_CXX='-fPIC'
16650 ;;
16651 esac
16652 ;;
16653 *)
16654 lt_prog_compiler_pic_CXX='-fPIC'
16655 ;;
16656 esac
16657 else
16658 case $host_os in
16659 aix4* | aix5*)
16660 # All AIX code is PIC.
16661 if test "$host_cpu" = ia64; then
16662 # AIX 5 now supports IA64 processor
16663 lt_prog_compiler_static_CXX='-Bstatic'
16664 else
16665 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16666 fi
16667 ;;
16668 chorus*)
16669 case $cc_basename in
16670 cxch68)
16671 # Green Hills C++ Compiler
16672 # _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"
16673 ;;
16674 esac
16675 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016676 darwin*)
16677 # PIC is the default on this platform
16678 # Common symbols not allowed in MH_DYLIB files
16679 case "$cc_basename" in
16680 xlc*)
16681 lt_prog_compiler_pic_CXX='-qnocommon'
16682 lt_prog_compiler_wl_CXX='-Wl,'
16683 ;;
16684 esac
16685 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016686 dgux*)
16687 case $cc_basename in
16688 ec++)
16689 lt_prog_compiler_pic_CXX='-KPIC'
16690 ;;
16691 ghcx)
16692 # Green Hills C++ Compiler
16693 lt_prog_compiler_pic_CXX='-pic'
16694 ;;
16695 *)
16696 ;;
16697 esac
16698 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016699 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016700 # FreeBSD uses GNU C++
16701 ;;
16702 hpux9* | hpux10* | hpux11*)
16703 case $cc_basename in
16704 CC)
16705 lt_prog_compiler_wl_CXX='-Wl,'
16706 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16707 if test "$host_cpu" != ia64; then
16708 lt_prog_compiler_pic_CXX='+Z'
16709 fi
16710 ;;
16711 aCC)
16712 lt_prog_compiler_wl_CXX='-Wl,'
16713 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16714 case "$host_cpu" in
16715 hppa*64*|ia64*)
16716 # +Z the default
16717 ;;
16718 *)
16719 lt_prog_compiler_pic_CXX='+Z'
16720 ;;
16721 esac
16722 ;;
16723 *)
16724 ;;
16725 esac
16726 ;;
16727 irix5* | irix6* | nonstopux*)
16728 case $cc_basename in
16729 CC)
16730 lt_prog_compiler_wl_CXX='-Wl,'
16731 lt_prog_compiler_static_CXX='-non_shared'
16732 # CC pic flag -KPIC is the default.
16733 ;;
16734 *)
16735 ;;
16736 esac
16737 ;;
16738 linux*)
16739 case $cc_basename in
16740 KCC)
16741 # KAI C++ Compiler
16742 lt_prog_compiler_wl_CXX='--backend -Wl,'
16743 lt_prog_compiler_pic_CXX='-fPIC'
16744 ;;
16745 icpc)
16746 # Intel C++
16747 lt_prog_compiler_wl_CXX='-Wl,'
16748 lt_prog_compiler_pic_CXX='-KPIC'
16749 lt_prog_compiler_static_CXX='-static'
16750 ;;
16751 cxx)
16752 # Compaq C++
16753 # Make sure the PIC flag is empty. It appears that all Alpha
16754 # Linux and Compaq Tru64 Unix objects are PIC.
16755 lt_prog_compiler_pic_CXX=
16756 lt_prog_compiler_static_CXX='-non_shared'
16757 ;;
16758 *)
16759 ;;
16760 esac
16761 ;;
16762 lynxos*)
16763 ;;
16764 m88k*)
16765 ;;
16766 mvs*)
16767 case $cc_basename in
16768 cxx)
16769 lt_prog_compiler_pic_CXX='-W c,exportall'
16770 ;;
16771 *)
16772 ;;
16773 esac
16774 ;;
16775 netbsd*)
16776 ;;
16777 osf3* | osf4* | osf5*)
16778 case $cc_basename in
16779 KCC)
16780 lt_prog_compiler_wl_CXX='--backend -Wl,'
16781 ;;
16782 RCC)
16783 # Rational C++ 2.4.1
16784 lt_prog_compiler_pic_CXX='-pic'
16785 ;;
16786 cxx)
16787 # Digital/Compaq C++
16788 lt_prog_compiler_wl_CXX='-Wl,'
16789 # Make sure the PIC flag is empty. It appears that all Alpha
16790 # Linux and Compaq Tru64 Unix objects are PIC.
16791 lt_prog_compiler_pic_CXX=
16792 lt_prog_compiler_static_CXX='-non_shared'
16793 ;;
16794 *)
16795 ;;
16796 esac
16797 ;;
16798 psos*)
16799 ;;
16800 sco*)
16801 case $cc_basename in
16802 CC)
16803 lt_prog_compiler_pic_CXX='-fPIC'
16804 ;;
16805 *)
16806 ;;
16807 esac
16808 ;;
16809 solaris*)
16810 case $cc_basename in
16811 CC)
16812 # Sun C++ 4.2, 5.x and Centerline C++
16813 lt_prog_compiler_pic_CXX='-KPIC'
16814 lt_prog_compiler_static_CXX='-Bstatic'
16815 lt_prog_compiler_wl_CXX='-Qoption ld '
16816 ;;
16817 gcx)
16818 # Green Hills C++ Compiler
16819 lt_prog_compiler_pic_CXX='-PIC'
16820 ;;
16821 *)
16822 ;;
16823 esac
16824 ;;
16825 sunos4*)
16826 case $cc_basename in
16827 CC)
16828 # Sun C++ 4.x
16829 lt_prog_compiler_pic_CXX='-pic'
16830 lt_prog_compiler_static_CXX='-Bstatic'
16831 ;;
16832 lcc)
16833 # Lucid
16834 lt_prog_compiler_pic_CXX='-pic'
16835 ;;
16836 *)
16837 ;;
16838 esac
16839 ;;
16840 tandem*)
16841 case $cc_basename in
16842 NCC)
16843 # NonStop-UX NCC 3.20
16844 lt_prog_compiler_pic_CXX='-KPIC'
16845 ;;
16846 *)
16847 ;;
16848 esac
16849 ;;
16850 unixware*)
16851 ;;
16852 vxworks*)
16853 ;;
16854 *)
16855 lt_prog_compiler_can_build_shared_CXX=no
16856 ;;
16857 esac
16858 fi
16859
16860echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16861echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16862
16863#
16864# Check to make sure the PIC flag actually works.
16865#
16866if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016867
16868echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016869echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16870if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 lt_prog_compiler_pic_works_CXX=no
16874 ac_outfile=conftest.$ac_objext
16875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16876 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16877 # Insert the option either (1) after the last *FLAGS variable, or
16878 # (2) before a word containing "conftest.", or (3) at the end.
16879 # Note that $ac_compile itself does not contain backslashes and begins
16880 # with a dollar sign (not a hyphen), so the echo should work correctly.
16881 # The option is referenced via a variable to avoid confusing sed.
16882 lt_compile=`echo "$ac_compile" | $SED \
16883 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16885 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000016886 (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016887 (eval "$lt_compile" 2>conftest.err)
16888 ac_status=$?
16889 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000016890 echo "$as_me:16874: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016891 if (exit $ac_status) && test -s "$ac_outfile"; then
16892 # The compiler can only warn and ignore the option if not recognized
16893 # So say no if there are warnings
16894 if test ! -s conftest.err; then
16895 lt_prog_compiler_pic_works_CXX=yes
16896 fi
16897 fi
16898 $rm conftest*
16899
16900fi
16901echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16902echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16903
16904if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16905 case $lt_prog_compiler_pic_CXX in
16906 "" | " "*) ;;
16907 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16908 esac
16909else
16910 lt_prog_compiler_pic_CXX=
16911 lt_prog_compiler_can_build_shared_CXX=no
16912fi
16913
16914fi
16915case "$host_os" in
16916 # For platforms which do not support PIC, -DPIC is meaningless:
16917 *djgpp*)
16918 lt_prog_compiler_pic_CXX=
16919 ;;
16920 *)
16921 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16922 ;;
16923esac
16924
16925echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16926echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16927if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929else
16930 lt_cv_prog_compiler_c_o_CXX=no
16931 $rm -r conftest 2>/dev/null
16932 mkdir conftest
16933 cd conftest
16934 mkdir out
16935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16936
John Criswell47fdd832003-07-14 16:52:07 +000016937 lt_compiler_flag="-o out/conftest2.$ac_objext"
16938 # Insert the option either (1) after the last *FLAGS variable, or
16939 # (2) before a word containing "conftest.", or (3) at the end.
16940 # Note that $ac_compile itself does not contain backslashes and begins
16941 # with a dollar sign (not a hyphen), so the echo should work correctly.
16942 lt_compile=`echo "$ac_compile" | $SED \
16943 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16945 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000016946 (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016947 (eval "$lt_compile" 2>out/conftest.err)
16948 ac_status=$?
16949 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000016950 echo "$as_me:16934: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16952 then
16953 # The compiler can only warn and ignore the option if not recognized
16954 # So say no if there are warnings
16955 if test ! -s out/conftest.err; then
16956 lt_cv_prog_compiler_c_o_CXX=yes
16957 fi
16958 fi
16959 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960 $rm conftest*
16961 # SGI C++ compiler will create directory out/ii_files/ for
16962 # template instantiation
16963 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16964 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016965 cd ..
16966 rmdir conftest
16967 $rm conftest*
16968
16969fi
16970echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16971echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16972
16973
16974hard_links="nottested"
16975if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16976 # do not overwrite the value of need_locks provided by the user
16977 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16978echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16979 hard_links=yes
16980 $rm conftest*
16981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16982 touch conftest.a
16983 ln conftest.a conftest.b 2>&5 || hard_links=no
16984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16985 echo "$as_me:$LINENO: result: $hard_links" >&5
16986echo "${ECHO_T}$hard_links" >&6
16987 if test "$hard_links" = no; then
16988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16989echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16990 need_locks=warn
16991 fi
16992else
16993 need_locks=no
16994fi
16995
16996echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16997echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16998
16999 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17000 case $host_os in
17001 aix4* | aix5*)
17002 # If we're using GNU nm, then we don't want the "-C" option.
17003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17005 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'
17006 else
17007 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'
17008 fi
17009 ;;
17010 pw32*)
17011 export_symbols_cmds_CXX="$ltdll_cmds"
17012 ;;
17013 cygwin* | mingw*)
17014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17015 ;;
17016 *)
17017 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17018 ;;
17019 esac
17020
17021echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17022echo "${ECHO_T}$ld_shlibs_CXX" >&6
17023test "$ld_shlibs_CXX" = no && can_build_shared=no
17024
17025variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17026if test "$GCC" = yes; then
17027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17028fi
17029
17030#
17031# Do we need to explicitly link libc?
17032#
17033case "x$archive_cmds_need_lc_CXX" in
17034x|xyes)
17035 # Assume -lc should be added
17036 archive_cmds_need_lc_CXX=yes
17037
17038 if test "$enable_shared" = yes && test "$GCC" = yes; then
17039 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017040 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017041 # FIXME: we may have to deal with multi-command sequences.
17042 ;;
17043 '$CC '*)
17044 # Test whether the compiler implicitly links with -lc since on some
17045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17046 # to ld, don't add -lc before -lgcc.
17047 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17048echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17049 $rm conftest*
17050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17051
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } 2>conftest.err; then
17057 soname=conftest
17058 lib=conftest
17059 libobjs=conftest.$ac_objext
17060 deplibs=
17061 wl=$lt_prog_compiler_wl_CXX
17062 compiler_flags=-v
17063 linker_flags=-v
17064 verstring=
17065 output_objdir=.
17066 libname=conftest
17067 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17068 allow_undefined_flag_CXX=
17069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17070 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }
17074 then
17075 archive_cmds_need_lc_CXX=no
17076 else
17077 archive_cmds_need_lc_CXX=yes
17078 fi
17079 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17080 else
17081 cat conftest.err 1>&5
17082 fi
17083 $rm conftest*
17084 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17085echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17086 ;;
17087 esac
17088 fi
17089 ;;
17090esac
17091
John Criswell47fdd832003-07-14 16:52:07 +000017092echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17093echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17094library_names_spec=
17095libname_spec='lib$name'
17096soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017097shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017098postinstall_cmds=
17099postuninstall_cmds=
17100finish_cmds=
17101finish_eval=
17102shlibpath_var=
17103shlibpath_overrides_runpath=unknown
17104version_type=none
17105dynamic_linker="$host_os ld.so"
17106sys_lib_dlsearch_path_spec="/lib /usr/lib"
17107if test "$GCC" = yes; then
17108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17110 # if the path contains ";" then we assume it to be the separator
17111 # otherwise default to the standard path separator (i.e. ":") - it is
17112 # assumed that no part of a normal pathname contains ";" but that should
17113 # okay in the real world where ";" in dirpaths is itself problematic.
17114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17115 else
17116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17117 fi
17118else
17119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17120fi
17121need_lib_prefix=unknown
17122hardcode_into_libs=no
17123
17124# when you set need_version to no, make sure it does not cause -set_version
17125# flags to be left without arguments
17126need_version=unknown
17127
17128case $host_os in
17129aix3*)
17130 version_type=linux
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17132 shlibpath_var=LIBPATH
17133
17134 # AIX 3 has no versioning support, so we append a major version to the name.
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 ;;
17137
17138aix4* | aix5*)
17139 version_type=linux
17140 need_lib_prefix=no
17141 need_version=no
17142 hardcode_into_libs=yes
17143 if test "$host_cpu" = ia64; then
17144 # AIX 5 supports IA64
17145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 else
17148 # With GCC up to 2.95.x, collect2 would create an import file
17149 # for dependence libraries. The import file would start with
17150 # the line `#! .'. This would cause the generated library to
17151 # depend on `.', always an invalid library. This was fixed in
17152 # development snapshots of GCC prior to 3.0.
17153 case $host_os in
17154 aix4 | aix4.[01] | aix4.[01].*)
17155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17156 echo ' yes '
17157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17158 :
17159 else
17160 can_build_shared=no
17161 fi
17162 ;;
17163 esac
17164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17165 # soname into executable. Probably we can add versioning support to
17166 # collect2, so additional links can be useful in future.
17167 if test "$aix_use_runtimelinking" = yes; then
17168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17169 # instead of lib<name>.a to let people know that these are not
17170 # typical AIX shared libraries.
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 else
17173 # We preserve .a as extension for shared libraries through AIX4.2
17174 # and later when we are not doing run time linking.
17175 library_names_spec='${libname}${release}.a $libname.a'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 fi
17178 shlibpath_var=LIBPATH
17179 fi
17180 ;;
17181
17182amigaos*)
17183 library_names_spec='$libname.ixlibrary $libname.a'
17184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017185 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 +000017186 ;;
17187
17188beos*)
17189 library_names_spec='${libname}${shared_ext}'
17190 dynamic_linker="$host_os ld.so"
17191 shlibpath_var=LIBRARY_PATH
17192 ;;
17193
Reid Spencer2706f8c2004-09-19 23:53:36 +000017194bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017195 version_type=linux
17196 need_version=no
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17203 # the default ld.so.conf also contains /usr/contrib/lib and
17204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17205 # libtool to hard-code these into programs
17206 ;;
17207
17208cygwin* | mingw* | pw32*)
17209 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017210 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017211 need_version=no
17212 need_lib_prefix=no
17213
17214 case $GCC,$host_os in
17215 yes,cygwin* | yes,mingw* | yes,pw32*)
17216 library_names_spec='$libname.dll.a'
17217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017218 postinstall_cmds='base_file=`basename \${file}`~
17219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17220 dldir=$destdir/`dirname \$dlpath`~
17221 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017222 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17224 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017225 $rm \$dlpath'
17226 shlibpath_overrides_runpath=yes
17227
17228 case $host_os in
17229 cygwin*)
17230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17231 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 +000017232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017233 ;;
17234 mingw*)
17235 # MinGW DLLs use traditional 'lib' prefix
17236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17239 # It is most probably a Windows format PATH printed by
17240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17241 # path with ; separators, and with drive letters. We can handle the
17242 # drive letters (cygwin fileutils understands them), so leave them,
17243 # especially as we might pass files found there to a mingw objdump,
17244 # which wouldn't understand a cygwinified path. Ahh.
17245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17246 else
17247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17248 fi
17249 ;;
17250 pw32*)
17251 # pw32 DLLs use 'pw' prefix rather than 'lib'
17252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17253 ;;
17254 esac
17255 ;;
17256
17257 *)
17258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17259 ;;
17260 esac
17261 dynamic_linker='Win32 ld.exe'
17262 # FIXME: first we should search . and the directory the executable is in
17263 shlibpath_var=PATH
17264 ;;
17265
17266darwin* | rhapsody*)
17267 dynamic_linker="$host_os dyld"
17268 version_type=darwin
17269 need_lib_prefix=no
17270 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017271 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017272 soname_spec='${libname}${release}${major}$shared_ext'
17273 shlibpath_overrides_runpath=yes
17274 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017275 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017276 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017277 if test "$GCC" = yes; then
17278 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"`
17279 else
17280 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017281 fi
17282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17283 ;;
17284
17285dgux*)
17286 version_type=linux
17287 need_lib_prefix=no
17288 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 ;;
17293
17294freebsd1*)
17295 dynamic_linker=no
17296 ;;
17297
Reid Spencer2706f8c2004-09-19 23:53:36 +000017298kfreebsd*-gnu)
17299 version_type=linux
17300 need_lib_prefix=no
17301 need_version=no
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=no
17306 hardcode_into_libs=yes
17307 dynamic_linker='GNU ld.so'
17308 ;;
17309
John Criswell47fdd832003-07-14 16:52:07 +000017310freebsd*)
17311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17312 version_type=freebsd-$objformat
17313 case $version_type in
17314 freebsd-elf*)
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17316 need_version=no
17317 need_lib_prefix=no
17318 ;;
17319 freebsd-*)
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17321 need_version=yes
17322 ;;
17323 esac
17324 shlibpath_var=LD_LIBRARY_PATH
17325 case $host_os in
17326 freebsd2*)
17327 shlibpath_overrides_runpath=yes
17328 ;;
17329 freebsd3.01* | freebsdelf3.01*)
17330 shlibpath_overrides_runpath=yes
17331 hardcode_into_libs=yes
17332 ;;
17333 *) # from 3.2 on
17334 shlibpath_overrides_runpath=no
17335 hardcode_into_libs=yes
17336 ;;
17337 esac
17338 ;;
17339
17340gnu*)
17341 version_type=linux
17342 need_lib_prefix=no
17343 need_version=no
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 hardcode_into_libs=yes
17348 ;;
17349
17350hpux9* | hpux10* | hpux11*)
17351 # Give a soname corresponding to the major version so that dld.sl refuses to
17352 # link against other versions.
17353 version_type=sunos
17354 need_lib_prefix=no
17355 need_version=no
17356 case "$host_cpu" in
17357 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017358 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017359 hardcode_into_libs=yes
17360 dynamic_linker="$host_os dld.so"
17361 shlibpath_var=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 if test "X$HPUX_IA64_MODE" = X32; then
17366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17367 else
17368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17369 fi
17370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17371 ;;
17372 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017373 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017374 hardcode_into_libs=yes
17375 dynamic_linker="$host_os dld.sl"
17376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17382 ;;
17383 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017384 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017385 dynamic_linker="$host_os dld.sl"
17386 shlibpath_var=SHLIB_PATH
17387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 ;;
17391 esac
17392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17393 postinstall_cmds='chmod 555 $lib'
17394 ;;
17395
17396irix5* | irix6* | nonstopux*)
17397 case $host_os in
17398 nonstopux*) version_type=nonstopux ;;
17399 *)
17400 if test "$lt_cv_prog_gnu_ld" = yes; then
17401 version_type=linux
17402 else
17403 version_type=irix
17404 fi ;;
17405 esac
17406 need_lib_prefix=no
17407 need_version=no
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17410 case $host_os in
17411 irix5* | nonstopux*)
17412 libsuff= shlibsuff=
17413 ;;
17414 *)
17415 case $LD in # libtool.m4 will add one of these switches to LD
17416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17417 libsuff= shlibsuff= libmagic=32-bit;;
17418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17419 libsuff=32 shlibsuff=N32 libmagic=N32;;
17420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17422 *) libsuff= shlibsuff= libmagic=never-match;;
17423 esac
17424 ;;
17425 esac
17426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17427 shlibpath_overrides_runpath=no
17428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17430 hardcode_into_libs=yes
17431 ;;
17432
17433# No shared lib support for Linux oldld, aout, or coff.
17434linux*oldld* | linux*aout* | linux*coff*)
17435 dynamic_linker=no
17436 ;;
17437
17438# This must be Linux ELF.
17439linux*)
17440 version_type=linux
17441 need_lib_prefix=no
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 shlibpath_overrides_runpath=no
17448 # This implies no fast_install, which is unacceptable.
17449 # Some rework will be needed to allow for fast_install
17450 # before this can be enabled.
17451 hardcode_into_libs=yes
17452
Reid Spencer2706f8c2004-09-19 23:53:36 +000017453 # Append ld.so.conf contents to the search path
17454 if test -f /etc/ld.so.conf; then
17455 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17457 fi
17458
John Criswell47fdd832003-07-14 16:52:07 +000017459 # We used to test for /lib/ld.so.1 and disable shared libraries on
17460 # powerpc, because MkLinux only supported shared libraries with the
17461 # GNU dynamic linker. Since this was broken with cross compilers,
17462 # most powerpc-linux boxes support dynamic linking these days and
17463 # people can always --disable-shared, the test was removed, and we
17464 # assume the GNU/Linux dynamic linker is in use.
17465 dynamic_linker='GNU/Linux ld.so'
17466 ;;
17467
Reid Spencer2706f8c2004-09-19 23:53:36 +000017468knetbsd*-gnu)
17469 version_type=linux
17470 need_lib_prefix=no
17471 need_version=no
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=no
17476 hardcode_into_libs=yes
17477 dynamic_linker='GNU ld.so'
17478 ;;
17479
John Criswell47fdd832003-07-14 16:52:07 +000017480netbsd*)
17481 version_type=sunos
17482 need_lib_prefix=no
17483 need_version=no
17484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17487 dynamic_linker='NetBSD (a.out) ld.so'
17488 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017490 soname_spec='${libname}${release}${shared_ext}$major'
17491 dynamic_linker='NetBSD ld.elf_so'
17492 fi
17493 shlibpath_var=LD_LIBRARY_PATH
17494 shlibpath_overrides_runpath=yes
17495 hardcode_into_libs=yes
17496 ;;
17497
17498newsos6)
17499 version_type=linux
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17503 ;;
17504
Reid Spencer2706f8c2004-09-19 23:53:36 +000017505nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017506 version_type=linux
17507 need_lib_prefix=no
17508 need_version=no
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 shlibpath_overrides_runpath=yes
17513 ;;
17514
17515openbsd*)
17516 version_type=sunos
17517 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017518 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17523 case $host_os in
17524 openbsd2.[89] | openbsd2.[89].*)
17525 shlibpath_overrides_runpath=no
17526 ;;
17527 *)
17528 shlibpath_overrides_runpath=yes
17529 ;;
17530 esac
17531 else
17532 shlibpath_overrides_runpath=yes
17533 fi
17534 ;;
17535
17536os2*)
17537 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017538 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017539 need_lib_prefix=no
17540 library_names_spec='$libname${shared_ext} $libname.a'
17541 dynamic_linker='OS/2 ld.exe'
17542 shlibpath_var=LIBPATH
17543 ;;
17544
17545osf3* | osf4* | osf5*)
17546 version_type=osf
17547 need_lib_prefix=no
17548 need_version=no
17549 soname_spec='${libname}${release}${shared_ext}$major'
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17554 ;;
17555
17556sco3.2v5*)
17557 version_type=osf
17558 soname_spec='${libname}${release}${shared_ext}$major'
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 ;;
17562
17563solaris*)
17564 version_type=linux
17565 need_lib_prefix=no
17566 need_version=no
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 shlibpath_var=LD_LIBRARY_PATH
17570 shlibpath_overrides_runpath=yes
17571 hardcode_into_libs=yes
17572 # ldd complains unless libraries are executable
17573 postinstall_cmds='chmod +x $lib'
17574 ;;
17575
17576sunos4*)
17577 version_type=sunos
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17579 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath=yes
17582 if test "$with_gnu_ld" = yes; then
17583 need_lib_prefix=no
17584 fi
17585 need_version=yes
17586 ;;
17587
17588sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17589 version_type=linux
17590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 soname_spec='${libname}${release}${shared_ext}$major'
17592 shlibpath_var=LD_LIBRARY_PATH
17593 case $host_vendor in
17594 sni)
17595 shlibpath_overrides_runpath=no
17596 need_lib_prefix=no
17597 export_dynamic_flag_spec='${wl}-Blargedynsym'
17598 runpath_var=LD_RUN_PATH
17599 ;;
17600 siemens)
17601 need_lib_prefix=no
17602 ;;
17603 motorola)
17604 need_lib_prefix=no
17605 need_version=no
17606 shlibpath_overrides_runpath=no
17607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17608 ;;
17609 esac
17610 ;;
17611
17612sysv4*MP*)
17613 if test -d /usr/nec ;then
17614 version_type=linux
17615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17616 soname_spec='$libname${shared_ext}.$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 fi
17619 ;;
17620
17621uts4*)
17622 version_type=linux
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 shlibpath_var=LD_LIBRARY_PATH
17626 ;;
17627
17628*)
17629 dynamic_linker=no
17630 ;;
17631esac
17632echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17633echo "${ECHO_T}$dynamic_linker" >&6
17634test "$dynamic_linker" = no && can_build_shared=no
17635
Reid Spencer2706f8c2004-09-19 23:53:36 +000017636echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17637echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17638hardcode_action_CXX=
17639if test -n "$hardcode_libdir_flag_spec_CXX" || \
17640 test -n "$runpath_var_CXX" || \
17641 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17642
17643 # We can hardcode non-existant directories.
17644 if test "$hardcode_direct_CXX" != no &&
17645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17646 # have to relink, otherwise we might link with an installed library
17647 # when we should be linking with a yet-to-be-installed one
17648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17649 test "$hardcode_minus_L_CXX" != no; then
17650 # Linking always hardcodes the temporary library directory.
17651 hardcode_action_CXX=relink
17652 else
17653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17654 hardcode_action_CXX=immediate
17655 fi
17656else
17657 # We cannot hardcode anything, or else we can only hardcode existing
17658 # directories.
17659 hardcode_action_CXX=unsupported
17660fi
17661echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17662echo "${ECHO_T}$hardcode_action_CXX" >&6
17663
17664if test "$hardcode_action_CXX" = relink; then
17665 # Fast installation is not supported
17666 enable_fast_install=no
17667elif test "$shlibpath_overrides_runpath" = yes ||
17668 test "$enable_shared" = no; then
17669 # Fast installation is not necessary
17670 enable_fast_install=needless
17671fi
17672
17673striplib=
17674old_striplib=
17675echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17676echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17677if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17680 echo "$as_me:$LINENO: result: yes" >&5
17681echo "${ECHO_T}yes" >&6
17682else
17683# FIXME - insert some real tests, host_os isn't really good enough
17684 case $host_os in
17685 darwin*)
17686 if test -n "$STRIP" ; then
17687 striplib="$STRIP -x"
17688 echo "$as_me:$LINENO: result: yes" >&5
17689echo "${ECHO_T}yes" >&6
17690 else
17691 echo "$as_me:$LINENO: result: no" >&5
17692echo "${ECHO_T}no" >&6
17693fi
17694 ;;
17695 *)
17696 echo "$as_me:$LINENO: result: no" >&5
17697echo "${ECHO_T}no" >&6
17698 ;;
17699 esac
17700fi
17701
John Criswell47fdd832003-07-14 16:52:07 +000017702if test "x$enable_dlopen" != xyes; then
17703 enable_dlopen=unknown
17704 enable_dlopen_self=unknown
17705 enable_dlopen_self_static=unknown
17706else
17707 lt_cv_dlopen=no
17708 lt_cv_dlopen_libs=
17709
17710 case $host_os in
17711 beos*)
17712 lt_cv_dlopen="load_add_on"
17713 lt_cv_dlopen_libs=
17714 lt_cv_dlopen_self=yes
17715 ;;
17716
17717 mingw* | pw32*)
17718 lt_cv_dlopen="LoadLibrary"
17719 lt_cv_dlopen_libs=
17720 ;;
17721
17722 cygwin*)
17723 lt_cv_dlopen="dlopen"
17724 lt_cv_dlopen_libs=
17725 ;;
17726
17727 darwin*)
17728 # if libdl is installed we need to link against it
17729 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17730echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17731if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733else
17734 ac_check_lib_save_LIBS=$LIBS
17735LIBS="-ldl $LIBS"
17736cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017742
17743/* Override any gcc2 internal prototype to avoid an error. */
17744#ifdef __cplusplus
17745extern "C"
17746#endif
17747/* We use char because int might match the return type of a gcc2
17748 builtin and then its argument prototype would still apply. */
17749char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017750int
17751main ()
17752{
17753dlopen ();
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext conftest$ac_exeext
17759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017760 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017767 { ac_try='test -z "$ac_cxx_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_lib_dl_dlopen=yes
17781else
17782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017783sed 's/^/| /' conftest.$ac_ext >&5
17784
John Criswell47fdd832003-07-14 16:52:07 +000017785ac_cv_lib_dl_dlopen=no
17786fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017787rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017789LIBS=$ac_check_lib_save_LIBS
17790fi
17791echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17792echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17793if test $ac_cv_lib_dl_dlopen = yes; then
17794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17795else
17796
17797 lt_cv_dlopen="dyld"
17798 lt_cv_dlopen_libs=
17799 lt_cv_dlopen_self=yes
17800
17801fi
17802
17803 ;;
17804
17805 *)
17806 echo "$as_me:$LINENO: checking for shl_load" >&5
17807echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17808if test "${ac_cv_func_shl_load+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017817/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819#define shl_load innocuous_shl_load
17820
John Criswell47fdd832003-07-14 16:52:07 +000017821/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017822 which can conflict with char shl_load (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017825
John Criswell0c38eaf2003-09-10 15:17:25 +000017826#ifdef __STDC__
17827# include <limits.h>
17828#else
17829# include <assert.h>
17830#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017831
17832#undef shl_load
17833
John Criswell47fdd832003-07-14 16:52:07 +000017834/* Override any gcc2 internal prototype to avoid an error. */
17835#ifdef __cplusplus
17836extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017837{
John Criswell47fdd832003-07-14 16:52:07 +000017838#endif
17839/* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017842/* The GNU C library defines this for functions which it implements
17843 to always fail with ENOSYS. Some functions are actually named
17844 something starting with __ and the normal name is an alias. */
17845#if defined (__stub_shl_load) || defined (__stub___shl_load)
17846choke me
17847#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017848char (*f) () = shl_load;
17849#endif
17850#ifdef __cplusplus
17851}
John Criswell47fdd832003-07-14 16:52:07 +000017852#endif
17853
John Criswell0c38eaf2003-09-10 15:17:25 +000017854int
17855main ()
17856{
17857return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext conftest$ac_exeext
17863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017864 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017871 { ac_try='test -z "$ac_cxx_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_cv_func_shl_load=yes
17885else
17886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017887sed 's/^/| /' conftest.$ac_ext >&5
17888
John Criswell47fdd832003-07-14 16:52:07 +000017889ac_cv_func_shl_load=no
17890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017891rm -f conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017893fi
17894echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17895echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17896if test $ac_cv_func_shl_load = yes; then
17897 lt_cv_dlopen="shl_load"
17898else
17899 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17900echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17901if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904 ac_check_lib_save_LIBS=$LIBS
17905LIBS="-ldld $LIBS"
17906cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017907/* confdefs.h. */
17908_ACEOF
17909cat confdefs.h >>conftest.$ac_ext
17910cat >>conftest.$ac_ext <<_ACEOF
17911/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017912
17913/* Override any gcc2 internal prototype to avoid an error. */
17914#ifdef __cplusplus
17915extern "C"
17916#endif
17917/* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017920int
17921main ()
17922{
17923shl_load ();
17924 ;
17925 return 0;
17926}
17927_ACEOF
17928rm -f conftest.$ac_objext conftest$ac_exeext
17929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017930 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017931 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017937 { ac_try='test -z "$ac_cxx_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_lib_dld_shl_load=yes
17951else
17952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017953sed 's/^/| /' conftest.$ac_ext >&5
17954
John Criswell47fdd832003-07-14 16:52:07 +000017955ac_cv_lib_dld_shl_load=no
17956fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017957rm -f conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017959LIBS=$ac_check_lib_save_LIBS
17960fi
17961echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17962echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17963if test $ac_cv_lib_dld_shl_load = yes; then
17964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17965else
17966 echo "$as_me:$LINENO: checking for dlopen" >&5
17967echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17968if test "${ac_cv_func_dlopen+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970else
17971 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017977/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979#define dlopen innocuous_dlopen
17980
John Criswell47fdd832003-07-14 16:52:07 +000017981/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017982 which can conflict with char dlopen (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017985
John Criswell0c38eaf2003-09-10 15:17:25 +000017986#ifdef __STDC__
17987# include <limits.h>
17988#else
17989# include <assert.h>
17990#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017991
17992#undef dlopen
17993
John Criswell47fdd832003-07-14 16:52:07 +000017994/* Override any gcc2 internal prototype to avoid an error. */
17995#ifdef __cplusplus
17996extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017997{
John Criswell47fdd832003-07-14 16:52:07 +000017998#endif
17999/* We use char because int might match the return type of a gcc2
18000 builtin and then its argument prototype would still apply. */
18001char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018002/* The GNU C library defines this for functions which it implements
18003 to always fail with ENOSYS. Some functions are actually named
18004 something starting with __ and the normal name is an alias. */
18005#if defined (__stub_dlopen) || defined (__stub___dlopen)
18006choke me
18007#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018008char (*f) () = dlopen;
18009#endif
18010#ifdef __cplusplus
18011}
John Criswell47fdd832003-07-14 16:52:07 +000018012#endif
18013
John Criswell0c38eaf2003-09-10 15:17:25 +000018014int
18015main ()
18016{
18017return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000018018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext conftest$ac_exeext
18023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018024 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018031 { ac_try='test -z "$ac_cxx_werror_flag"
18032 || test ! -s conftest.err'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_cv_func_dlopen=yes
18045else
18046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018047sed 's/^/| /' conftest.$ac_ext >&5
18048
John Criswell47fdd832003-07-14 16:52:07 +000018049ac_cv_func_dlopen=no
18050fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018051rm -f conftest.err conftest.$ac_objext \
18052 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018053fi
18054echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18055echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18056if test $ac_cv_func_dlopen = yes; then
18057 lt_cv_dlopen="dlopen"
18058else
18059 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18060echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18061if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063else
18064 ac_check_lib_save_LIBS=$LIBS
18065LIBS="-ldl $LIBS"
18066cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018067/* confdefs.h. */
18068_ACEOF
18069cat confdefs.h >>conftest.$ac_ext
18070cat >>conftest.$ac_ext <<_ACEOF
18071/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018072
18073/* Override any gcc2 internal prototype to avoid an error. */
18074#ifdef __cplusplus
18075extern "C"
18076#endif
18077/* We use char because int might match the return type of a gcc2
18078 builtin and then its argument prototype would still apply. */
18079char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018080int
18081main ()
18082{
18083dlopen ();
18084 ;
18085 return 0;
18086}
18087_ACEOF
18088rm -f conftest.$ac_objext conftest$ac_exeext
18089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018090 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018097 { ac_try='test -z "$ac_cxx_werror_flag"
18098 || test ! -s conftest.err'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_cv_lib_dl_dlopen=yes
18111else
18112 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018113sed 's/^/| /' conftest.$ac_ext >&5
18114
John Criswell47fdd832003-07-14 16:52:07 +000018115ac_cv_lib_dl_dlopen=no
18116fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018117rm -f conftest.err conftest.$ac_objext \
18118 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018119LIBS=$ac_check_lib_save_LIBS
18120fi
18121echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18122echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18123if test $ac_cv_lib_dl_dlopen = yes; then
18124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18125else
18126 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18127echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18128if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130else
18131 ac_check_lib_save_LIBS=$LIBS
18132LIBS="-lsvld $LIBS"
18133cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018139
18140/* Override any gcc2 internal prototype to avoid an error. */
18141#ifdef __cplusplus
18142extern "C"
18143#endif
18144/* We use char because int might match the return type of a gcc2
18145 builtin and then its argument prototype would still apply. */
18146char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018147int
18148main ()
18149{
18150dlopen ();
18151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest.$ac_objext conftest$ac_exeext
18156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018157 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018164 { ac_try='test -z "$ac_cxx_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_lib_svld_dlopen=yes
18178else
18179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018180sed 's/^/| /' conftest.$ac_ext >&5
18181
John Criswell47fdd832003-07-14 16:52:07 +000018182ac_cv_lib_svld_dlopen=no
18183fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018184rm -f conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018186LIBS=$ac_check_lib_save_LIBS
18187fi
18188echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18189echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18190if test $ac_cv_lib_svld_dlopen = yes; then
18191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18192else
18193 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18194echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18195if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197else
18198 ac_check_lib_save_LIBS=$LIBS
18199LIBS="-ldld $LIBS"
18200cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018201/* confdefs.h. */
18202_ACEOF
18203cat confdefs.h >>conftest.$ac_ext
18204cat >>conftest.$ac_ext <<_ACEOF
18205/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018206
18207/* Override any gcc2 internal prototype to avoid an error. */
18208#ifdef __cplusplus
18209extern "C"
18210#endif
18211/* We use char because int might match the return type of a gcc2
18212 builtin and then its argument prototype would still apply. */
18213char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018214int
18215main ()
18216{
18217dld_link ();
18218 ;
18219 return 0;
18220}
18221_ACEOF
18222rm -f conftest.$ac_objext conftest$ac_exeext
18223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018224 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018225 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018231 { ac_try='test -z "$ac_cxx_werror_flag"
18232 || test ! -s conftest.err'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 ac_cv_lib_dld_dld_link=yes
18245else
18246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018247sed 's/^/| /' conftest.$ac_ext >&5
18248
John Criswell47fdd832003-07-14 16:52:07 +000018249ac_cv_lib_dld_dld_link=no
18250fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018251rm -f conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018253LIBS=$ac_check_lib_save_LIBS
18254fi
18255echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18256echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18257if test $ac_cv_lib_dld_dld_link = yes; then
18258 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18259fi
18260
18261
18262fi
18263
18264
18265fi
18266
18267
18268fi
18269
18270
18271fi
18272
18273
18274fi
18275
18276 ;;
18277 esac
18278
18279 if test "x$lt_cv_dlopen" != xno; then
18280 enable_dlopen=yes
18281 else
18282 enable_dlopen=no
18283 fi
18284
18285 case $lt_cv_dlopen in
18286 dlopen)
18287 save_CPPFLAGS="$CPPFLAGS"
18288 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18289
18290 save_LDFLAGS="$LDFLAGS"
18291 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18292
18293 save_LIBS="$LIBS"
18294 LIBS="$lt_cv_dlopen_libs $LIBS"
18295
18296 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18297echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18298if test "${lt_cv_dlopen_self+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 if test "$cross_compiling" = yes; then :
18302 lt_cv_dlopen_self=cross
18303else
18304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18305 lt_status=$lt_dlunknown
18306 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000018307#line 18291 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018308#include "confdefs.h"
18309
18310#if HAVE_DLFCN_H
18311#include <dlfcn.h>
18312#endif
18313
18314#include <stdio.h>
18315
18316#ifdef RTLD_GLOBAL
18317# define LT_DLGLOBAL RTLD_GLOBAL
18318#else
18319# ifdef DL_GLOBAL
18320# define LT_DLGLOBAL DL_GLOBAL
18321# else
18322# define LT_DLGLOBAL 0
18323# endif
18324#endif
18325
18326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18327 find out it does not work in some platform. */
18328#ifndef LT_DLLAZY_OR_NOW
18329# ifdef RTLD_LAZY
18330# define LT_DLLAZY_OR_NOW RTLD_LAZY
18331# else
18332# ifdef DL_LAZY
18333# define LT_DLLAZY_OR_NOW DL_LAZY
18334# else
18335# ifdef RTLD_NOW
18336# define LT_DLLAZY_OR_NOW RTLD_NOW
18337# else
18338# ifdef DL_NOW
18339# define LT_DLLAZY_OR_NOW DL_NOW
18340# else
18341# define LT_DLLAZY_OR_NOW 0
18342# endif
18343# endif
18344# endif
18345# endif
18346#endif
18347
18348#ifdef __cplusplus
18349extern "C" void exit (int);
18350#endif
18351
18352void fnord() { int i=42;}
18353int main ()
18354{
18355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18356 int status = $lt_dlunknown;
18357
18358 if (self)
18359 {
18360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18362 /* dlclose (self); */
18363 }
18364
18365 exit (status);
18366}
18367EOF
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18373 (./conftest; exit; ) 2>/dev/null
18374 lt_status=$?
18375 case x$lt_status in
18376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18378 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18379 esac
18380 else :
18381 # compilation failed
18382 lt_cv_dlopen_self=no
18383 fi
18384fi
18385rm -fr conftest*
18386
18387
18388fi
18389echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18390echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18391
18392 if test "x$lt_cv_dlopen_self" = xyes; then
18393 LDFLAGS="$LDFLAGS $link_static_flag"
18394 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18395echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18396if test "${lt_cv_dlopen_self_static+set}" = set; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18398else
18399 if test "$cross_compiling" = yes; then :
18400 lt_cv_dlopen_self_static=cross
18401else
18402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18403 lt_status=$lt_dlunknown
18404 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000018405#line 18389 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018406#include "confdefs.h"
18407
18408#if HAVE_DLFCN_H
18409#include <dlfcn.h>
18410#endif
18411
18412#include <stdio.h>
18413
18414#ifdef RTLD_GLOBAL
18415# define LT_DLGLOBAL RTLD_GLOBAL
18416#else
18417# ifdef DL_GLOBAL
18418# define LT_DLGLOBAL DL_GLOBAL
18419# else
18420# define LT_DLGLOBAL 0
18421# endif
18422#endif
18423
18424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18425 find out it does not work in some platform. */
18426#ifndef LT_DLLAZY_OR_NOW
18427# ifdef RTLD_LAZY
18428# define LT_DLLAZY_OR_NOW RTLD_LAZY
18429# else
18430# ifdef DL_LAZY
18431# define LT_DLLAZY_OR_NOW DL_LAZY
18432# else
18433# ifdef RTLD_NOW
18434# define LT_DLLAZY_OR_NOW RTLD_NOW
18435# else
18436# ifdef DL_NOW
18437# define LT_DLLAZY_OR_NOW DL_NOW
18438# else
18439# define LT_DLLAZY_OR_NOW 0
18440# endif
18441# endif
18442# endif
18443# endif
18444#endif
18445
18446#ifdef __cplusplus
18447extern "C" void exit (int);
18448#endif
18449
18450void fnord() { int i=42;}
18451int main ()
18452{
18453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18454 int status = $lt_dlunknown;
18455
18456 if (self)
18457 {
18458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18460 /* dlclose (self); */
18461 }
18462
18463 exit (status);
18464}
18465EOF
18466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18471 (./conftest; exit; ) 2>/dev/null
18472 lt_status=$?
18473 case x$lt_status in
18474 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18475 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18476 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18477 esac
18478 else :
18479 # compilation failed
18480 lt_cv_dlopen_self_static=no
18481 fi
18482fi
18483rm -fr conftest*
18484
18485
18486fi
18487echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18488echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18489 fi
18490
18491 CPPFLAGS="$save_CPPFLAGS"
18492 LDFLAGS="$save_LDFLAGS"
18493 LIBS="$save_LIBS"
18494 ;;
18495 esac
18496
18497 case $lt_cv_dlopen_self in
18498 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18499 *) enable_dlopen_self=unknown ;;
18500 esac
18501
18502 case $lt_cv_dlopen_self_static in
18503 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18504 *) enable_dlopen_self_static=unknown ;;
18505 esac
18506fi
18507
18508
18509# The else clause should only fire when bootstrapping the
18510# libtool distribution, otherwise you forgot to ship ltmain.sh
18511# with your package, and you will get complaints that there are
18512# no rules to generate ltmain.sh.
18513if test -f "$ltmain"; then
18514 # See if we are running on zsh, and set the options which allow our commands through
18515 # without removal of \ escapes.
18516 if test -n "${ZSH_VERSION+set}" ; then
18517 setopt NO_GLOB_SUBST
18518 fi
18519 # Now quote all the things that may contain metacharacters while being
18520 # careful not to overquote the AC_SUBSTed values. We take copies of the
18521 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018522 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18523 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18526 deplibs_check_method reload_flag reload_cmds need_locks \
18527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18528 lt_cv_sys_global_symbol_to_c_name_address \
18529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18530 old_postinstall_cmds old_postuninstall_cmds \
18531 compiler_CXX \
18532 CC_CXX \
18533 LD_CXX \
18534 lt_prog_compiler_wl_CXX \
18535 lt_prog_compiler_pic_CXX \
18536 lt_prog_compiler_static_CXX \
18537 lt_prog_compiler_no_builtin_flag_CXX \
18538 export_dynamic_flag_spec_CXX \
18539 thread_safe_flag_spec_CXX \
18540 whole_archive_flag_spec_CXX \
18541 enable_shared_with_static_runtimes_CXX \
18542 old_archive_cmds_CXX \
18543 old_archive_from_new_cmds_CXX \
18544 predep_objects_CXX \
18545 postdep_objects_CXX \
18546 predeps_CXX \
18547 postdeps_CXX \
18548 compiler_lib_search_path_CXX \
18549 archive_cmds_CXX \
18550 archive_expsym_cmds_CXX \
18551 postinstall_cmds_CXX \
18552 postuninstall_cmds_CXX \
18553 old_archive_from_expsyms_cmds_CXX \
18554 allow_undefined_flag_CXX \
18555 no_undefined_flag_CXX \
18556 export_symbols_cmds_CXX \
18557 hardcode_libdir_flag_spec_CXX \
18558 hardcode_libdir_flag_spec_ld_CXX \
18559 hardcode_libdir_separator_CXX \
18560 hardcode_automatic_CXX \
18561 module_cmds_CXX \
18562 module_expsym_cmds_CXX \
18563 lt_cv_prog_compiler_c_o_CXX \
18564 exclude_expsyms_CXX \
18565 include_expsyms_CXX; do
18566
18567 case $var in
18568 old_archive_cmds_CXX | \
18569 old_archive_from_new_cmds_CXX | \
18570 archive_cmds_CXX | \
18571 archive_expsym_cmds_CXX | \
18572 module_cmds_CXX | \
18573 module_expsym_cmds_CXX | \
18574 old_archive_from_expsyms_cmds_CXX | \
18575 export_symbols_cmds_CXX | \
18576 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18577 postinstall_cmds | postuninstall_cmds | \
18578 old_postinstall_cmds | old_postuninstall_cmds | \
18579 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18580 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018581 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 +000018582 ;;
18583 *)
18584 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18585 ;;
18586 esac
18587 done
18588
18589 case $lt_echo in
18590 *'\$0 --fallback-echo"')
18591 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18592 ;;
18593 esac
18594
18595cfgfile="$ofile"
18596
18597 cat <<__EOF__ >> "$cfgfile"
18598# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18599
18600# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18601
18602# Shell to use when invoking shell scripts.
18603SHELL=$lt_SHELL
18604
18605# Whether or not to build shared libraries.
18606build_libtool_libs=$enable_shared
18607
18608# Whether or not to build static libraries.
18609build_old_libs=$enable_static
18610
18611# Whether or not to add -lc for building shared libraries.
18612build_libtool_need_lc=$archive_cmds_need_lc_CXX
18613
18614# Whether or not to disallow shared libs when runtime libs are static
18615allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18616
18617# Whether or not to optimize for fast installation.
18618fast_install=$enable_fast_install
18619
18620# The host system.
18621host_alias=$host_alias
18622host=$host
18623
18624# An echo program that does not interpret backslashes.
18625echo=$lt_echo
18626
18627# The archiver.
18628AR=$lt_AR
18629AR_FLAGS=$lt_AR_FLAGS
18630
18631# A C compiler.
18632LTCC=$lt_LTCC
18633
18634# A language-specific compiler.
18635CC=$lt_compiler_CXX
18636
18637# Is the compiler the GNU C compiler?
18638with_gcc=$GCC_CXX
18639
18640# An ERE matcher.
18641EGREP=$lt_EGREP
18642
18643# The linker used to build libraries.
18644LD=$lt_LD_CXX
18645
18646# Whether we need hard or soft links.
18647LN_S=$lt_LN_S
18648
18649# A BSD-compatible nm program.
18650NM=$lt_NM
18651
18652# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018653STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018654
18655# Used to examine libraries when file_magic_cmd begins "file"
18656MAGIC_CMD=$MAGIC_CMD
18657
18658# Used on cygwin: DLL creation program.
18659DLLTOOL="$DLLTOOL"
18660
18661# Used on cygwin: object dumper.
18662OBJDUMP="$OBJDUMP"
18663
18664# Used on cygwin: assembler.
18665AS="$AS"
18666
18667# The name of the directory that contains temporary libtool files.
18668objdir=$objdir
18669
18670# How to create reloadable object files.
18671reload_flag=$lt_reload_flag
18672reload_cmds=$lt_reload_cmds
18673
18674# How to pass a linker flag through the compiler.
18675wl=$lt_lt_prog_compiler_wl_CXX
18676
18677# Object file suffix (normally "o").
18678objext="$ac_objext"
18679
18680# Old archive suffix (normally "a").
18681libext="$libext"
18682
18683# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018684shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018685
18686# Executable file suffix (normally "").
18687exeext="$exeext"
18688
18689# Additional compiler flags for building library objects.
18690pic_flag=$lt_lt_prog_compiler_pic_CXX
18691pic_mode=$pic_mode
18692
18693# What is the maximum length of a command?
18694max_cmd_len=$lt_cv_sys_max_cmd_len
18695
18696# Does compiler simultaneously support -c and -o options?
18697compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18698
18699# Must we lock files when doing compilation ?
18700need_locks=$lt_need_locks
18701
18702# Do we need the lib prefix for modules?
18703need_lib_prefix=$need_lib_prefix
18704
18705# Do we need a version for libraries?
18706need_version=$need_version
18707
18708# Whether dlopen is supported.
18709dlopen_support=$enable_dlopen
18710
18711# Whether dlopen of programs is supported.
18712dlopen_self=$enable_dlopen_self
18713
18714# Whether dlopen of statically linked programs is supported.
18715dlopen_self_static=$enable_dlopen_self_static
18716
18717# Compiler flag to prevent dynamic linking.
18718link_static_flag=$lt_lt_prog_compiler_static_CXX
18719
18720# Compiler flag to turn off builtin functions.
18721no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18722
18723# Compiler flag to allow reflexive dlopens.
18724export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18725
18726# Compiler flag to generate shared objects directly from archives.
18727whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18728
18729# Compiler flag to generate thread-safe objects.
18730thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18731
18732# Library versioning type.
18733version_type=$version_type
18734
18735# Format of library name prefix.
18736libname_spec=$lt_libname_spec
18737
18738# List of archive names. First name is the real one, the rest are links.
18739# The last name is the one that the linker finds with -lNAME.
18740library_names_spec=$lt_library_names_spec
18741
18742# The coded name of the library, if different from the real name.
18743soname_spec=$lt_soname_spec
18744
18745# Commands used to build and install an old-style archive.
18746RANLIB=$lt_RANLIB
18747old_archive_cmds=$lt_old_archive_cmds_CXX
18748old_postinstall_cmds=$lt_old_postinstall_cmds
18749old_postuninstall_cmds=$lt_old_postuninstall_cmds
18750
18751# Create an old-style archive from a shared archive.
18752old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18753
18754# Create a temporary old-style archive to link instead of a shared archive.
18755old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18756
18757# Commands used to build and install a shared archive.
18758archive_cmds=$lt_archive_cmds_CXX
18759archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18760postinstall_cmds=$lt_postinstall_cmds
18761postuninstall_cmds=$lt_postuninstall_cmds
18762
18763# Commands used to build a loadable module (assumed same as above if empty)
18764module_cmds=$lt_module_cmds_CXX
18765module_expsym_cmds=$lt_module_expsym_cmds_CXX
18766
18767# Commands to strip libraries.
18768old_striplib=$lt_old_striplib
18769striplib=$lt_striplib
18770
18771# Dependencies to place before the objects being linked to create a
18772# shared library.
18773predep_objects=$lt_predep_objects_CXX
18774
18775# Dependencies to place after the objects being linked to create a
18776# shared library.
18777postdep_objects=$lt_postdep_objects_CXX
18778
18779# Dependencies to place before the objects being linked to create a
18780# shared library.
18781predeps=$lt_predeps_CXX
18782
18783# Dependencies to place after the objects being linked to create a
18784# shared library.
18785postdeps=$lt_postdeps_CXX
18786
18787# The library search path used internally by the compiler when linking
18788# a shared library.
18789compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18790
18791# Method to check whether dependent libraries are shared objects.
18792deplibs_check_method=$lt_deplibs_check_method
18793
18794# Command to use when deplibs_check_method == file_magic.
18795file_magic_cmd=$lt_file_magic_cmd
18796
18797# Flag that allows shared libraries with undefined symbols to be built.
18798allow_undefined_flag=$lt_allow_undefined_flag_CXX
18799
18800# Flag that forces no undefined symbols.
18801no_undefined_flag=$lt_no_undefined_flag_CXX
18802
18803# Commands used to finish a libtool library installation in a directory.
18804finish_cmds=$lt_finish_cmds
18805
18806# Same as above, but a single script fragment to be evaled but not shown.
18807finish_eval=$lt_finish_eval
18808
18809# Take the output of nm and produce a listing of raw symbols and C names.
18810global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18811
18812# Transform the output of nm in a proper C declaration
18813global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18814
18815# Transform the output of nm in a C name address pair
18816global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18817
18818# This is the shared library runtime path variable.
18819runpath_var=$runpath_var
18820
18821# This is the shared library path variable.
18822shlibpath_var=$shlibpath_var
18823
18824# Is shlibpath searched before the hard-coded library search path?
18825shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18826
18827# How to hardcode a shared library path into an executable.
18828hardcode_action=$hardcode_action_CXX
18829
18830# Whether we should hardcode library paths into libraries.
18831hardcode_into_libs=$hardcode_into_libs
18832
18833# Flag to hardcode \$libdir into a binary during linking.
18834# This must work even if \$libdir does not exist.
18835hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18836
18837# If ld is used when linking, flag to hardcode \$libdir into
18838# a binary during linking. This must work even if \$libdir does
18839# not exist.
18840hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18841
18842# Whether we need a single -rpath flag with a separated argument.
18843hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18844
18845# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18846# resulting binary.
18847hardcode_direct=$hardcode_direct_CXX
18848
18849# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18850# resulting binary.
18851hardcode_minus_L=$hardcode_minus_L_CXX
18852
18853# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18854# the resulting binary.
18855hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18856
18857# Set to yes if building a shared library automatically hardcodes DIR into the library
18858# and all subsequent libraries and executables linked against it.
18859hardcode_automatic=$hardcode_automatic_CXX
18860
18861# Variables whose values should be saved in libtool wrapper scripts and
18862# restored at relink time.
18863variables_saved_for_relink="$variables_saved_for_relink"
18864
18865# Whether libtool must link a program against all its dependency libraries.
18866link_all_deplibs=$link_all_deplibs_CXX
18867
18868# Compile-time system search path for libraries
18869sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18870
18871# Run-time system search path for libraries
18872sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18873
18874# Fix the shell variable \$srcfile for the compiler.
18875fix_srcfile_path="$fix_srcfile_path_CXX"
18876
18877# Set to yes if exported symbols are required.
18878always_export_symbols=$always_export_symbols_CXX
18879
18880# The commands to list exported symbols.
18881export_symbols_cmds=$lt_export_symbols_cmds_CXX
18882
18883# The commands to extract the exported symbol list from a shared archive.
18884extract_expsyms_cmds=$lt_extract_expsyms_cmds
18885
18886# Symbols that should not be listed in the preloaded symbols.
18887exclude_expsyms=$lt_exclude_expsyms_CXX
18888
18889# Symbols that must always be exported.
18890include_expsyms=$lt_include_expsyms_CXX
18891
18892# ### END LIBTOOL TAG CONFIG: $tagname
18893
18894__EOF__
18895
18896
18897else
18898 # If there is no Makefile yet, we rely on a make rule to execute
18899 # `config.status --recheck' to rerun these tests and create the
18900 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018901 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18902 if test -f "$ltmain_in"; then
18903 test -f Makefile && make "$ltmain"
18904 fi
John Criswell47fdd832003-07-14 16:52:07 +000018905fi
18906
18907
18908ac_ext=c
18909ac_cpp='$CPP $CPPFLAGS'
18910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912ac_compiler_gnu=$ac_cv_c_compiler_gnu
18913
18914CC=$lt_save_CC
18915LDCXX=$LD
18916LD=$lt_save_LD
18917GCC=$lt_save_GCC
18918with_gnu_ldcxx=$with_gnu_ld
18919with_gnu_ld=$lt_save_with_gnu_ld
18920lt_cv_path_LDCXX=$lt_cv_path_LD
18921lt_cv_path_LD=$lt_save_path_LD
18922lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18923lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18924
18925 else
18926 tagname=""
18927 fi
18928 ;;
18929
18930 F77)
18931 if test -n "$F77" && test "X$F77" != "Xno"; then
18932
18933ac_ext=f
18934ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18935ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18937
18938
18939archive_cmds_need_lc_F77=no
18940allow_undefined_flag_F77=
18941always_export_symbols_F77=no
18942archive_expsym_cmds_F77=
18943export_dynamic_flag_spec_F77=
18944hardcode_direct_F77=no
18945hardcode_libdir_flag_spec_F77=
18946hardcode_libdir_flag_spec_ld_F77=
18947hardcode_libdir_separator_F77=
18948hardcode_minus_L_F77=no
18949hardcode_automatic_F77=no
18950module_cmds_F77=
18951module_expsym_cmds_F77=
18952link_all_deplibs_F77=unknown
18953old_archive_cmds_F77=$old_archive_cmds
18954no_undefined_flag_F77=
18955whole_archive_flag_spec_F77=
18956enable_shared_with_static_runtimes_F77=no
18957
18958# Source file extension for f77 test sources.
18959ac_ext=f
18960
18961# Object file extension for compiled f77 test sources.
18962objext=o
18963objext_F77=$objext
18964
18965# Code to be used in simple compile tests
18966lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18967
18968# Code to be used in simple link tests
18969lt_simple_link_test_code=" program t\n end\n"
18970
18971# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18972
18973# If no C compiler was specified, use CC.
18974LTCC=${LTCC-"$CC"}
18975
18976# Allow CC to be a program name with arguments.
18977compiler=$CC
18978
18979
18980# Allow CC to be a program name with arguments.
18981lt_save_CC="$CC"
18982CC=${F77-"f77"}
18983compiler=$CC
18984compiler_F77=$CC
18985cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18986
18987echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18988echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18989echo "$as_me:$LINENO: result: $can_build_shared" >&5
18990echo "${ECHO_T}$can_build_shared" >&6
18991
18992echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18993echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18994test "$can_build_shared" = "no" && enable_shared=no
18995
18996# On AIX, shared libraries and static libraries use the same namespace, and
18997# are all built from PIC.
18998case "$host_os" in
18999aix3*)
19000 test "$enable_shared" = yes && enable_static=no
19001 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019002 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019003 postinstall_cmds='$RANLIB $lib'
19004 fi
19005 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019006aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000019007 test "$enable_shared" = yes && enable_static=no
19008 ;;
19009esac
19010echo "$as_me:$LINENO: result: $enable_shared" >&5
19011echo "${ECHO_T}$enable_shared" >&6
19012
19013echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19014echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19015# Make sure either enable_shared or enable_static is yes.
19016test "$enable_shared" = yes || enable_static=yes
19017echo "$as_me:$LINENO: result: $enable_static" >&5
19018echo "${ECHO_T}$enable_static" >&6
19019
19020test "$ld_shlibs_F77" = no && can_build_shared=no
19021
19022GCC_F77="$G77"
19023LD_F77="$LD"
19024
19025lt_prog_compiler_wl_F77=
19026lt_prog_compiler_pic_F77=
19027lt_prog_compiler_static_F77=
19028
19029echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19030echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19031
19032 if test "$GCC" = yes; then
19033 lt_prog_compiler_wl_F77='-Wl,'
19034 lt_prog_compiler_static_F77='-static'
19035
19036 case $host_os in
19037 aix*)
19038 # All AIX code is PIC.
19039 if test "$host_cpu" = ia64; then
19040 # AIX 5 now supports IA64 processor
19041 lt_prog_compiler_static_F77='-Bstatic'
19042 fi
19043 ;;
19044
19045 amigaos*)
19046 # FIXME: we need at least 68020 code to build shared libraries, but
19047 # adding the `-m68020' flag to GCC prevents building anything better,
19048 # like `-m68040'.
19049 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19050 ;;
19051
19052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19053 # PIC is the default for these OSes.
19054 ;;
19055
19056 mingw* | pw32* | os2*)
19057 # This hack is so that the source file can tell whether it is being
19058 # built for inclusion in a dll (and should export symbols for example).
19059 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19060 ;;
19061
19062 darwin* | rhapsody*)
19063 # PIC is the default on this platform
19064 # Common symbols not allowed in MH_DYLIB files
19065 lt_prog_compiler_pic_F77='-fno-common'
19066 ;;
19067
19068 msdosdjgpp*)
19069 # Just because we use GCC doesn't mean we suddenly get shared libraries
19070 # on systems that don't support them.
19071 lt_prog_compiler_can_build_shared_F77=no
19072 enable_shared=no
19073 ;;
19074
19075 sysv4*MP*)
19076 if test -d /usr/nec; then
19077 lt_prog_compiler_pic_F77=-Kconform_pic
19078 fi
19079 ;;
19080
19081 hpux*)
19082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19083 # not for PA HP-UX.
19084 case "$host_cpu" in
19085 hppa*64*|ia64*)
19086 # +Z the default
19087 ;;
19088 *)
19089 lt_prog_compiler_pic_F77='-fPIC'
19090 ;;
19091 esac
19092 ;;
19093
19094 *)
19095 lt_prog_compiler_pic_F77='-fPIC'
19096 ;;
19097 esac
19098 else
19099 # PORTME Check for flag to pass linker flags through the system compiler.
19100 case $host_os in
19101 aix*)
19102 lt_prog_compiler_wl_F77='-Wl,'
19103 if test "$host_cpu" = ia64; then
19104 # AIX 5 now supports IA64 processor
19105 lt_prog_compiler_static_F77='-Bstatic'
19106 else
19107 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19108 fi
19109 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019110 darwin*)
19111 # PIC is the default on this platform
19112 # Common symbols not allowed in MH_DYLIB files
19113 case "$cc_basename" in
19114 xlc*)
19115 lt_prog_compiler_pic_F77='-qnocommon'
19116 lt_prog_compiler_wl_F77='-Wl,'
19117 ;;
19118 esac
19119 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019120
19121 mingw* | pw32* | os2*)
19122 # This hack is so that the source file can tell whether it is being
19123 # built for inclusion in a dll (and should export symbols for example).
19124 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19125 ;;
19126
19127 hpux9* | hpux10* | hpux11*)
19128 lt_prog_compiler_wl_F77='-Wl,'
19129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19130 # not for PA HP-UX.
19131 case "$host_cpu" in
19132 hppa*64*|ia64*)
19133 # +Z the default
19134 ;;
19135 *)
19136 lt_prog_compiler_pic_F77='+Z'
19137 ;;
19138 esac
19139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19140 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19141 ;;
19142
19143 irix5* | irix6* | nonstopux*)
19144 lt_prog_compiler_wl_F77='-Wl,'
19145 # PIC (with -KPIC) is the default.
19146 lt_prog_compiler_static_F77='-non_shared'
19147 ;;
19148
19149 newsos6)
19150 lt_prog_compiler_pic_F77='-KPIC'
19151 lt_prog_compiler_static_F77='-Bstatic'
19152 ;;
19153
19154 linux*)
19155 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019156 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019157 lt_prog_compiler_wl_F77='-Wl,'
19158 lt_prog_compiler_pic_F77='-KPIC'
19159 lt_prog_compiler_static_F77='-static'
19160 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019161 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019162 lt_prog_compiler_wl_F77='-Wl,'
19163 # All Alpha code is PIC.
19164 lt_prog_compiler_static_F77='-non_shared'
19165 ;;
19166 esac
19167 ;;
19168
19169 osf3* | osf4* | osf5*)
19170 lt_prog_compiler_wl_F77='-Wl,'
19171 # All OSF/1 code is PIC.
19172 lt_prog_compiler_static_F77='-non_shared'
19173 ;;
19174
19175 sco3.2v5*)
19176 lt_prog_compiler_pic_F77='-Kpic'
19177 lt_prog_compiler_static_F77='-dn'
19178 ;;
19179
19180 solaris*)
19181 lt_prog_compiler_wl_F77='-Wl,'
19182 lt_prog_compiler_pic_F77='-KPIC'
19183 lt_prog_compiler_static_F77='-Bstatic'
19184 ;;
19185
19186 sunos4*)
19187 lt_prog_compiler_wl_F77='-Qoption ld '
19188 lt_prog_compiler_pic_F77='-PIC'
19189 lt_prog_compiler_static_F77='-Bstatic'
19190 ;;
19191
19192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19193 lt_prog_compiler_wl_F77='-Wl,'
19194 lt_prog_compiler_pic_F77='-KPIC'
19195 lt_prog_compiler_static_F77='-Bstatic'
19196 ;;
19197
19198 sysv4*MP*)
19199 if test -d /usr/nec ;then
19200 lt_prog_compiler_pic_F77='-Kconform_pic'
19201 lt_prog_compiler_static_F77='-Bstatic'
19202 fi
19203 ;;
19204
19205 uts4*)
19206 lt_prog_compiler_pic_F77='-pic'
19207 lt_prog_compiler_static_F77='-Bstatic'
19208 ;;
19209
19210 *)
19211 lt_prog_compiler_can_build_shared_F77=no
19212 ;;
19213 esac
19214 fi
19215
19216echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19217echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19218
19219#
19220# Check to make sure the PIC flag actually works.
19221#
19222if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019223
19224echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019225echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19226if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
19229 lt_prog_compiler_pic_works_F77=no
19230 ac_outfile=conftest.$ac_objext
19231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19232 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19233 # Insert the option either (1) after the last *FLAGS variable, or
19234 # (2) before a word containing "conftest.", or (3) at the end.
19235 # Note that $ac_compile itself does not contain backslashes and begins
19236 # with a dollar sign (not a hyphen), so the echo should work correctly.
19237 # The option is referenced via a variable to avoid confusing sed.
19238 lt_compile=`echo "$ac_compile" | $SED \
19239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19241 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000019242 (eval echo "\"\$as_me:19226: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019243 (eval "$lt_compile" 2>conftest.err)
19244 ac_status=$?
19245 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000019246 echo "$as_me:19230: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019247 if (exit $ac_status) && test -s "$ac_outfile"; then
19248 # The compiler can only warn and ignore the option if not recognized
19249 # So say no if there are warnings
19250 if test ! -s conftest.err; then
19251 lt_prog_compiler_pic_works_F77=yes
19252 fi
19253 fi
19254 $rm conftest*
19255
19256fi
19257echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19258echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19259
19260if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19261 case $lt_prog_compiler_pic_F77 in
19262 "" | " "*) ;;
19263 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19264 esac
19265else
19266 lt_prog_compiler_pic_F77=
19267 lt_prog_compiler_can_build_shared_F77=no
19268fi
19269
19270fi
19271case "$host_os" in
19272 # For platforms which do not support PIC, -DPIC is meaningless:
19273 *djgpp*)
19274 lt_prog_compiler_pic_F77=
19275 ;;
19276 *)
19277 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19278 ;;
19279esac
19280
19281echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19282echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19283if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285else
19286 lt_cv_prog_compiler_c_o_F77=no
19287 $rm -r conftest 2>/dev/null
19288 mkdir conftest
19289 cd conftest
19290 mkdir out
19291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19292
John Criswell47fdd832003-07-14 16:52:07 +000019293 lt_compiler_flag="-o out/conftest2.$ac_objext"
19294 # Insert the option either (1) after the last *FLAGS variable, or
19295 # (2) before a word containing "conftest.", or (3) at the end.
19296 # Note that $ac_compile itself does not contain backslashes and begins
19297 # with a dollar sign (not a hyphen), so the echo should work correctly.
19298 lt_compile=`echo "$ac_compile" | $SED \
19299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19301 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000019302 (eval echo "\"\$as_me:19286: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019303 (eval "$lt_compile" 2>out/conftest.err)
19304 ac_status=$?
19305 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000019306 echo "$as_me:19290: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19308 then
19309 # The compiler can only warn and ignore the option if not recognized
19310 # So say no if there are warnings
19311 if test ! -s out/conftest.err; then
19312 lt_cv_prog_compiler_c_o_F77=yes
19313 fi
19314 fi
19315 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019316 $rm conftest*
19317 # SGI C++ compiler will create directory out/ii_files/ for
19318 # template instantiation
19319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19320 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019321 cd ..
19322 rmdir conftest
19323 $rm conftest*
19324
19325fi
19326echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19327echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19328
19329
19330hard_links="nottested"
19331if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19332 # do not overwrite the value of need_locks provided by the user
19333 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19334echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19335 hard_links=yes
19336 $rm conftest*
19337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19338 touch conftest.a
19339 ln conftest.a conftest.b 2>&5 || hard_links=no
19340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19341 echo "$as_me:$LINENO: result: $hard_links" >&5
19342echo "${ECHO_T}$hard_links" >&6
19343 if test "$hard_links" = no; then
19344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19345echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19346 need_locks=warn
19347 fi
19348else
19349 need_locks=no
19350fi
19351
19352echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19353echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19354
19355 runpath_var=
19356 allow_undefined_flag_F77=
19357 enable_shared_with_static_runtimes_F77=no
19358 archive_cmds_F77=
19359 archive_expsym_cmds_F77=
19360 old_archive_From_new_cmds_F77=
19361 old_archive_from_expsyms_cmds_F77=
19362 export_dynamic_flag_spec_F77=
19363 whole_archive_flag_spec_F77=
19364 thread_safe_flag_spec_F77=
19365 hardcode_libdir_flag_spec_F77=
19366 hardcode_libdir_flag_spec_ld_F77=
19367 hardcode_libdir_separator_F77=
19368 hardcode_direct_F77=no
19369 hardcode_minus_L_F77=no
19370 hardcode_shlibpath_var_F77=unsupported
19371 link_all_deplibs_F77=unknown
19372 hardcode_automatic_F77=no
19373 module_cmds_F77=
19374 module_expsym_cmds_F77=
19375 always_export_symbols_F77=no
19376 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19377 # include_expsyms should be a list of space-separated symbols to be *always*
19378 # included in the symbol list
19379 include_expsyms_F77=
19380 # exclude_expsyms can be an extended regexp of symbols to exclude
19381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19383 # as well as any symbol that contains `d'.
19384 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19386 # platforms (ab)use it in PIC code, but their linkers get confused if
19387 # the symbol is explicitly referenced. Since portable code cannot
19388 # rely on this symbol name, it's probably fine to never include it in
19389 # preloaded symbol tables.
19390 extract_expsyms_cmds=
19391
19392 case $host_os in
19393 cygwin* | mingw* | pw32*)
19394 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19395 # When not using gcc, we currently assume that we are using
19396 # Microsoft Visual C++.
19397 if test "$GCC" != yes; then
19398 with_gnu_ld=no
19399 fi
19400 ;;
19401 openbsd*)
19402 with_gnu_ld=no
19403 ;;
19404 esac
19405
19406 ld_shlibs_F77=yes
19407 if test "$with_gnu_ld" = yes; then
19408 # If archive_cmds runs LD, not CC, wlarc should be empty
19409 wlarc='${wl}'
19410
19411 # See if GNU ld supports shared libraries.
19412 case $host_os in
19413 aix3* | aix4* | aix5*)
19414 # On AIX/PPC, the GNU linker is very broken
19415 if test "$host_cpu" != ia64; then
19416 ld_shlibs_F77=no
19417 cat <<EOF 1>&2
19418
19419*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19420*** to be unable to reliably create shared libraries on AIX.
19421*** Therefore, libtool is disabling shared libraries support. If you
19422*** really care for shared libraries, you may want to modify your PATH
19423*** so that a non-GNU linker is found, and then restart.
19424
19425EOF
19426 fi
19427 ;;
19428
19429 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019430 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 +000019431 hardcode_libdir_flag_spec_F77='-L$libdir'
19432 hardcode_minus_L_F77=yes
19433
19434 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19435 # that the semantics of dynamic libraries on AmigaOS, at least up
19436 # to version 4, is to share data among multiple programs linked
19437 # with the same dynamic library. Since this doesn't match the
19438 # behavior of shared libraries on other platforms, we can't use
19439 # them.
19440 ld_shlibs_F77=no
19441 ;;
19442
19443 beos*)
19444 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19445 allow_undefined_flag_F77=unsupported
19446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19447 # support --undefined. This deserves some investigation. FIXME
19448 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449 else
19450 ld_shlibs_F77=no
19451 fi
19452 ;;
19453
19454 cygwin* | mingw* | pw32*)
19455 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19456 # as there is no search path for DLLs.
19457 hardcode_libdir_flag_spec_F77='-L$libdir'
19458 allow_undefined_flag_F77=unsupported
19459 always_export_symbols_F77=no
19460 enable_shared_with_static_runtimes_F77=yes
19461 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19462
19463 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19464 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19465 # If the export-symbols file already is a .def file (1st line
19466 # is EXPORTS), use it as is; otherwise, prepend...
19467 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19468 cp $export_symbols $output_objdir/$soname.def;
19469 else
19470 echo EXPORTS > $output_objdir/$soname.def;
19471 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019472 fi~
19473 $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 +000019474 else
19475 ld_shlibs=no
19476 fi
19477 ;;
19478
19479 netbsd*)
19480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19481 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19482 wlarc=
19483 else
19484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19485 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19486 fi
19487 ;;
19488
19489 solaris* | sysv5*)
19490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19491 ld_shlibs_F77=no
19492 cat <<EOF 1>&2
19493
19494*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19495*** create shared libraries on Solaris systems. Therefore, libtool
19496*** is disabling shared libraries support. We urge you to upgrade GNU
19497*** binutils to release 2.9.1 or newer. Another option is to modify
19498*** your PATH or compiler configuration so that the native linker is
19499*** used, and then restart.
19500
19501EOF
19502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19505 else
19506 ld_shlibs_F77=no
19507 fi
19508 ;;
19509
19510 sunos4*)
19511 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19512 wlarc=
19513 hardcode_direct_F77=yes
19514 hardcode_shlibpath_var_F77=no
19515 ;;
19516
Reid Spencer2706f8c2004-09-19 23:53:36 +000019517 linux*)
19518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19519 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19520 archive_cmds_F77="$tmp_archive_cmds"
19521 supports_anon_versioning=no
19522 case `$LD -v 2>/dev/null` in
19523 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19526 *\ 2.11.*) ;; # other 2.11 versions
19527 *) supports_anon_versioning=yes ;;
19528 esac
19529 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019530 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19531cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19532$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019533 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19534 else
19535 archive_expsym_cmds_F77="$tmp_archive_cmds"
19536 fi
19537 else
19538 ld_shlibs_F77=no
19539 fi
19540 ;;
19541
John Criswell47fdd832003-07-14 16:52:07 +000019542 *)
19543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19544 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19545 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19546 else
19547 ld_shlibs_F77=no
19548 fi
19549 ;;
19550 esac
19551
19552 if test "$ld_shlibs_F77" = yes; then
19553 runpath_var=LD_RUN_PATH
19554 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19555 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19556 # ancient GNU ld didn't support --whole-archive et. al.
19557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19558 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19559 else
19560 whole_archive_flag_spec_F77=
19561 fi
19562 fi
19563 else
19564 # PORTME fill in a description of your system's linker (not GNU ld)
19565 case $host_os in
19566 aix3*)
19567 allow_undefined_flag_F77=unsupported
19568 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019569 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 +000019570 # Note: this linker hardcodes the directories in LIBPATH if there
19571 # are no directories specified by -L.
19572 hardcode_minus_L_F77=yes
19573 if test "$GCC" = yes && test -z "$link_static_flag"; then
19574 # Neither direct hardcoding nor static linking is supported with a
19575 # broken collect2.
19576 hardcode_direct_F77=unsupported
19577 fi
19578 ;;
19579
19580 aix4* | aix5*)
19581 if test "$host_cpu" = ia64; then
19582 # On IA64, the linker does run time linking by default, so we don't
19583 # have to do anything special.
19584 aix_use_runtimelinking=no
19585 exp_sym_flag='-Bexport'
19586 no_entry_flag=""
19587 else
19588 # If we're using GNU nm, then we don't want the "-C" option.
19589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19591 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'
19592 else
19593 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'
19594 fi
19595 aix_use_runtimelinking=no
19596
19597 # Test if we are trying to use run time linking or normal
19598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19599 # need to do runtime linking.
19600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19601 for ld_flag in $LDFLAGS; do
19602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19603 aix_use_runtimelinking=yes
19604 break
19605 fi
19606 done
19607 esac
19608
19609 exp_sym_flag='-bexport'
19610 no_entry_flag='-bnoentry'
19611 fi
19612
19613 # When large executables or shared objects are built, AIX ld can
19614 # have problems creating the table of contents. If linking a library
19615 # or program results in "error TOC overflow" add -mminimal-toc to
19616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19618
19619 archive_cmds_F77=''
19620 hardcode_direct_F77=yes
19621 hardcode_libdir_separator_F77=':'
19622 link_all_deplibs_F77=yes
19623
19624 if test "$GCC" = yes; then
19625 case $host_os in aix4.012|aix4.012.*)
19626 # We only want to do this on AIX 4.2 and lower, the check
19627 # below for broken collect2 doesn't work under 4.3+
19628 collect2name=`${CC} -print-prog-name=collect2`
19629 if test -f "$collect2name" && \
19630 strings "$collect2name" | grep resolve_lib_name >/dev/null
19631 then
19632 # We have reworked collect2
19633 hardcode_direct_F77=yes
19634 else
19635 # We have old collect2
19636 hardcode_direct_F77=unsupported
19637 # It fails to find uninstalled libraries when the uninstalled
19638 # path is not listed in the libpath. Setting hardcode_minus_L
19639 # to unsupported forces relinking
19640 hardcode_minus_L_F77=yes
19641 hardcode_libdir_flag_spec_F77='-L$libdir'
19642 hardcode_libdir_separator_F77=
19643 fi
19644 esac
19645 shared_flag='-shared'
19646 else
19647 # not using gcc
19648 if test "$host_cpu" = ia64; then
19649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19650 # chokes on -Wl,-G. The following line is correct:
19651 shared_flag='-G'
19652 else
19653 if test "$aix_use_runtimelinking" = yes; then
19654 shared_flag='${wl}-G'
19655 else
19656 shared_flag='${wl}-bM:SRE'
19657 fi
19658 fi
19659 fi
19660
19661 # It seems that -bexpall does not export symbols beginning with
19662 # underscore (_), so it is better to generate a list of symbols to export.
19663 always_export_symbols_F77=yes
19664 if test "$aix_use_runtimelinking" = yes; then
19665 # Warning - without using the other runtime loading flags (-brtl),
19666 # -berok will link without error, but may produce a broken library.
19667 allow_undefined_flag_F77='-berok'
19668 # Determine the default libpath from the value encoded in an empty executable.
19669 cat >conftest.$ac_ext <<_ACEOF
19670 program main
19671
19672 end
19673_ACEOF
19674rm -f conftest.$ac_objext conftest$ac_exeext
19675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019676 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019677 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019683 { ac_try='test -z "$ac_f77_werror_flag"
19684 || test ! -s conftest.err'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696
19697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19698}'`
19699# Check for a 64-bit object if we didn't find anything.
19700if 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; }
19701}'`; fi
19702else
19703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019704sed 's/^/| /' conftest.$ac_ext >&5
19705
John Criswell47fdd832003-07-14 16:52:07 +000019706fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019707rm -f conftest.err conftest.$ac_objext \
19708 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19710
19711 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19712 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"
19713 else
19714 if test "$host_cpu" = ia64; then
19715 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19716 allow_undefined_flag_F77="-z nodefs"
19717 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"
19718 else
19719 # Determine the default libpath from the value encoded in an empty executable.
19720 cat >conftest.$ac_ext <<_ACEOF
19721 program main
19722
19723 end
19724_ACEOF
19725rm -f conftest.$ac_objext conftest$ac_exeext
19726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019727 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019734 { ac_try='test -z "$ac_f77_werror_flag"
19735 || test ! -s conftest.err'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747
19748aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19749}'`
19750# Check for a 64-bit object if we didn't find anything.
19751if 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; }
19752}'`; fi
19753else
19754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019755sed 's/^/| /' conftest.$ac_ext >&5
19756
John Criswell47fdd832003-07-14 16:52:07 +000019757fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019758rm -f conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019760if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19761
19762 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19763 # Warning - without using the other run time loading flags,
19764 # -berok will link without error, but may produce a broken library.
19765 no_undefined_flag_F77=' ${wl}-bernotok'
19766 allow_undefined_flag_F77=' ${wl}-berok'
19767 # -bexpall does not export symbols beginning with underscore (_)
19768 always_export_symbols_F77=yes
19769 # Exported symbols can be pulled into shared objects from archives
19770 whole_archive_flag_spec_F77=' '
19771 archive_cmds_need_lc_F77=yes
19772 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019773 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 +000019774 fi
19775 fi
19776 ;;
19777
19778 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019779 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 +000019780 hardcode_libdir_flag_spec_F77='-L$libdir'
19781 hardcode_minus_L_F77=yes
19782 # see comment about different semantics on the GNU ld section
19783 ld_shlibs_F77=no
19784 ;;
19785
Reid Spencer2706f8c2004-09-19 23:53:36 +000019786 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019787 export_dynamic_flag_spec_F77=-rdynamic
19788 ;;
19789
19790 cygwin* | mingw* | pw32*)
19791 # When not using gcc, we currently assume that we are using
19792 # Microsoft Visual C++.
19793 # hardcode_libdir_flag_spec is actually meaningless, as there is
19794 # no search path for DLLs.
19795 hardcode_libdir_flag_spec_F77=' '
19796 allow_undefined_flag_F77=unsupported
19797 # Tell ltmain to make .lib files, not .a files.
19798 libext=lib
19799 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019800 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019801 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019802 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 +000019803 # The linker will automatically build a .lib file if we build a DLL.
19804 old_archive_From_new_cmds_F77='true'
19805 # FIXME: Should let the user specify the lib program.
19806 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19807 fix_srcfile_path='`cygpath -w "$srcfile"`'
19808 enable_shared_with_static_runtimes_F77=yes
19809 ;;
19810
19811 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019812 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019813 rhapsody* | darwin1.[012])
19814 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19815 ;;
19816 *) # Darwin 1.3 on
19817 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19818 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19819 else
19820 case ${MACOSX_DEPLOYMENT_TARGET} in
19821 10.[012])
19822 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19823 ;;
19824 10.*)
19825 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19826 ;;
19827 esac
19828 fi
19829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019830 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019831 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019832 hardcode_direct_F77=no
19833 hardcode_automatic_F77=yes
19834 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019835 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019836 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019837 if test "$GCC" = yes ; then
19838 output_verbose_link_cmd='echo'
19839 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19840 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19841 # 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 +000019842 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}'
19843 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 +000019844 else
19845 case "$cc_basename" in
19846 xlc*)
19847 output_verbose_link_cmd='echo'
19848 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19849 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19850 # 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 +000019851 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}'
19852 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 +000019853 ;;
19854 *)
19855 ld_shlibs_F77=no
19856 ;;
19857 esac
John Criswell47fdd832003-07-14 16:52:07 +000019858 fi
19859 ;;
19860
19861 dgux*)
19862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19863 hardcode_libdir_flag_spec_F77='-L$libdir'
19864 hardcode_shlibpath_var_F77=no
19865 ;;
19866
19867 freebsd1*)
19868 ld_shlibs_F77=no
19869 ;;
19870
19871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19872 # support. Future versions do this automatically, but an explicit c++rt0.o
19873 # does not break anything, and helps significantly (at the cost of a little
19874 # extra space).
19875 freebsd2.2*)
19876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19877 hardcode_libdir_flag_spec_F77='-R$libdir'
19878 hardcode_direct_F77=yes
19879 hardcode_shlibpath_var_F77=no
19880 ;;
19881
19882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19883 freebsd2*)
19884 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19885 hardcode_direct_F77=yes
19886 hardcode_minus_L_F77=yes
19887 hardcode_shlibpath_var_F77=no
19888 ;;
19889
19890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019891 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019892 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19893 hardcode_libdir_flag_spec_F77='-R$libdir'
19894 hardcode_direct_F77=yes
19895 hardcode_shlibpath_var_F77=no
19896 ;;
19897
19898 hpux9*)
19899 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019900 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 +000019901 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019902 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 +000019903 fi
19904 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19905 hardcode_libdir_separator_F77=:
19906 hardcode_direct_F77=yes
19907
19908 # hardcode_minus_L: Not really in the search PATH,
19909 # but as the default location of the library.
19910 hardcode_minus_L_F77=yes
19911 export_dynamic_flag_spec_F77='${wl}-E'
19912 ;;
19913
19914 hpux10* | hpux11*)
19915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19916 case "$host_cpu" in
19917 hppa*64*|ia64*)
19918 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19919 ;;
19920 *)
19921 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19922 ;;
19923 esac
19924 else
19925 case "$host_cpu" in
19926 hppa*64*|ia64*)
19927 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19928 ;;
19929 *)
19930 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19931 ;;
19932 esac
19933 fi
19934 if test "$with_gnu_ld" = no; then
19935 case "$host_cpu" in
19936 hppa*64*)
19937 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19938 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19939 hardcode_libdir_separator_F77=:
19940 hardcode_direct_F77=no
19941 hardcode_shlibpath_var_F77=no
19942 ;;
19943 ia64*)
19944 hardcode_libdir_flag_spec_F77='-L$libdir'
19945 hardcode_direct_F77=no
19946 hardcode_shlibpath_var_F77=no
19947
19948 # hardcode_minus_L: Not really in the search PATH,
19949 # but as the default location of the library.
19950 hardcode_minus_L_F77=yes
19951 ;;
19952 *)
19953 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19954 hardcode_libdir_separator_F77=:
19955 hardcode_direct_F77=yes
19956 export_dynamic_flag_spec_F77='${wl}-E'
19957
19958 # hardcode_minus_L: Not really in the search PATH,
19959 # but as the default location of the library.
19960 hardcode_minus_L_F77=yes
19961 ;;
19962 esac
19963 fi
19964 ;;
19965
19966 irix5* | irix6* | nonstopux*)
19967 if test "$GCC" = yes; then
19968 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'
19969 else
19970 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'
19971 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19972 fi
19973 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19974 hardcode_libdir_separator_F77=:
19975 link_all_deplibs_F77=yes
19976 ;;
19977
19978 netbsd*)
19979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19980 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19981 else
19982 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19983 fi
19984 hardcode_libdir_flag_spec_F77='-R$libdir'
19985 hardcode_direct_F77=yes
19986 hardcode_shlibpath_var_F77=no
19987 ;;
19988
19989 newsos6)
19990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991 hardcode_direct_F77=yes
19992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19993 hardcode_libdir_separator_F77=:
19994 hardcode_shlibpath_var_F77=no
19995 ;;
19996
19997 openbsd*)
19998 hardcode_direct_F77=yes
19999 hardcode_shlibpath_var_F77=no
20000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20001 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020002 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 +000020003 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20004 export_dynamic_flag_spec_F77='${wl}-E'
20005 else
20006 case $host_os in
20007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20009 hardcode_libdir_flag_spec_F77='-R$libdir'
20010 ;;
20011 *)
20012 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20014 ;;
20015 esac
20016 fi
20017 ;;
20018
20019 os2*)
20020 hardcode_libdir_flag_spec_F77='-L$libdir'
20021 hardcode_minus_L_F77=yes
20022 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000020023 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 +000020024 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20025 ;;
20026
20027 osf3*)
20028 if test "$GCC" = yes; then
20029 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20030 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'
20031 else
20032 allow_undefined_flag_F77=' -expect_unresolved \*'
20033 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'
20034 fi
20035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20036 hardcode_libdir_separator_F77=:
20037 ;;
20038
20039 osf4* | osf5*) # as osf3* with the addition of -msym flag
20040 if test "$GCC" = yes; then
20041 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20042 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'
20043 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20044 else
20045 allow_undefined_flag_F77=' -expect_unresolved \*'
20046 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 +000020047 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~
20048 $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'
20049
John Criswell47fdd832003-07-14 16:52:07 +000020050 # Both c and cxx compiler support -rpath directly
20051 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20052 fi
20053 hardcode_libdir_separator_F77=:
20054 ;;
20055
20056 sco3.2v5*)
20057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20058 hardcode_shlibpath_var_F77=no
20059 export_dynamic_flag_spec_F77='${wl}-Bexport'
20060 runpath_var=LD_RUN_PATH
20061 hardcode_runpath_var=yes
20062 ;;
20063
20064 solaris*)
20065 no_undefined_flag_F77=' -z text'
20066 if test "$GCC" = yes; then
20067 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020068 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20069 $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 +000020070 else
20071 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020072 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20073 $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 +000020074 fi
20075 hardcode_libdir_flag_spec_F77='-R$libdir'
20076 hardcode_shlibpath_var_F77=no
20077 case $host_os in
20078 solaris2.[0-5] | solaris2.[0-5].*) ;;
20079 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20080 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20081 esac
20082 link_all_deplibs_F77=yes
20083 ;;
20084
20085 sunos4*)
20086 if test "x$host_vendor" = xsequent; then
20087 # Use $CC to link under sequent, because it throws in some extra .o
20088 # files that make .init and .fini sections work.
20089 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20090 else
20091 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20092 fi
20093 hardcode_libdir_flag_spec_F77='-L$libdir'
20094 hardcode_direct_F77=yes
20095 hardcode_minus_L_F77=yes
20096 hardcode_shlibpath_var_F77=no
20097 ;;
20098
20099 sysv4)
20100 case $host_vendor in
20101 sni)
20102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20103 hardcode_direct_F77=yes # is this really true???
20104 ;;
20105 siemens)
20106 ## LD is ld it makes a PLAMLIB
20107 ## CC just makes a GrossModule.
20108 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20109 reload_cmds_F77='$CC -r -o $output$reload_objs'
20110 hardcode_direct_F77=no
20111 ;;
20112 motorola)
20113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20115 ;;
20116 esac
20117 runpath_var='LD_RUN_PATH'
20118 hardcode_shlibpath_var_F77=no
20119 ;;
20120
20121 sysv4.3*)
20122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20123 hardcode_shlibpath_var_F77=no
20124 export_dynamic_flag_spec_F77='-Bexport'
20125 ;;
20126
20127 sysv4*MP*)
20128 if test -d /usr/nec; then
20129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20130 hardcode_shlibpath_var_F77=no
20131 runpath_var=LD_RUN_PATH
20132 hardcode_runpath_var=yes
20133 ld_shlibs_F77=yes
20134 fi
20135 ;;
20136
20137 sysv4.2uw2*)
20138 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20139 hardcode_direct_F77=yes
20140 hardcode_minus_L_F77=no
20141 hardcode_shlibpath_var_F77=no
20142 hardcode_runpath_var=yes
20143 runpath_var=LD_RUN_PATH
20144 ;;
20145
20146 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20147 no_undefined_flag_F77='${wl}-z ${wl}text'
20148 if test "$GCC" = yes; then
20149 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20150 else
20151 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20152 fi
20153 runpath_var='LD_RUN_PATH'
20154 hardcode_shlibpath_var_F77=no
20155 ;;
20156
20157 sysv5*)
20158 no_undefined_flag_F77=' -z text'
20159 # $CC -shared without GNU ld will not create a library from C++
20160 # object files and a static libstdc++, better avoid it by now
20161 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020162 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20163 $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 +000020164 hardcode_libdir_flag_spec_F77=
20165 hardcode_shlibpath_var_F77=no
20166 runpath_var='LD_RUN_PATH'
20167 ;;
20168
20169 uts4*)
20170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171 hardcode_libdir_flag_spec_F77='-L$libdir'
20172 hardcode_shlibpath_var_F77=no
20173 ;;
20174
20175 *)
20176 ld_shlibs_F77=no
20177 ;;
20178 esac
20179 fi
20180
20181echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20182echo "${ECHO_T}$ld_shlibs_F77" >&6
20183test "$ld_shlibs_F77" = no && can_build_shared=no
20184
20185variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20186if test "$GCC" = yes; then
20187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20188fi
20189
20190#
20191# Do we need to explicitly link libc?
20192#
20193case "x$archive_cmds_need_lc_F77" in
20194x|xyes)
20195 # Assume -lc should be added
20196 archive_cmds_need_lc_F77=yes
20197
20198 if test "$enable_shared" = yes && test "$GCC" = yes; then
20199 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020200 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020201 # FIXME: we may have to deal with multi-command sequences.
20202 ;;
20203 '$CC '*)
20204 # Test whether the compiler implicitly links with -lc since on some
20205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20206 # to ld, don't add -lc before -lgcc.
20207 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20208echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20209 $rm conftest*
20210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20211
20212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213 (eval $ac_compile) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } 2>conftest.err; then
20217 soname=conftest
20218 lib=conftest
20219 libobjs=conftest.$ac_objext
20220 deplibs=
20221 wl=$lt_prog_compiler_wl_F77
20222 compiler_flags=-v
20223 linker_flags=-v
20224 verstring=
20225 output_objdir=.
20226 libname=conftest
20227 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20228 allow_undefined_flag_F77=
20229 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20230 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }
20234 then
20235 archive_cmds_need_lc_F77=no
20236 else
20237 archive_cmds_need_lc_F77=yes
20238 fi
20239 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20240 else
20241 cat conftest.err 1>&5
20242 fi
20243 $rm conftest*
20244 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20245echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20246 ;;
20247 esac
20248 fi
20249 ;;
20250esac
20251
John Criswell47fdd832003-07-14 16:52:07 +000020252echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20253echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20254library_names_spec=
20255libname_spec='lib$name'
20256soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020257shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020258postinstall_cmds=
20259postuninstall_cmds=
20260finish_cmds=
20261finish_eval=
20262shlibpath_var=
20263shlibpath_overrides_runpath=unknown
20264version_type=none
20265dynamic_linker="$host_os ld.so"
20266sys_lib_dlsearch_path_spec="/lib /usr/lib"
20267if test "$GCC" = yes; then
20268 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20269 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20270 # if the path contains ";" then we assume it to be the separator
20271 # otherwise default to the standard path separator (i.e. ":") - it is
20272 # assumed that no part of a normal pathname contains ";" but that should
20273 # okay in the real world where ";" in dirpaths is itself problematic.
20274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20275 else
20276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20277 fi
20278else
20279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20280fi
20281need_lib_prefix=unknown
20282hardcode_into_libs=no
20283
20284# when you set need_version to no, make sure it does not cause -set_version
20285# flags to be left without arguments
20286need_version=unknown
20287
20288case $host_os in
20289aix3*)
20290 version_type=linux
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20292 shlibpath_var=LIBPATH
20293
20294 # AIX 3 has no versioning support, so we append a major version to the name.
20295 soname_spec='${libname}${release}${shared_ext}$major'
20296 ;;
20297
20298aix4* | aix5*)
20299 version_type=linux
20300 need_lib_prefix=no
20301 need_version=no
20302 hardcode_into_libs=yes
20303 if test "$host_cpu" = ia64; then
20304 # AIX 5 supports IA64
20305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20306 shlibpath_var=LD_LIBRARY_PATH
20307 else
20308 # With GCC up to 2.95.x, collect2 would create an import file
20309 # for dependence libraries. The import file would start with
20310 # the line `#! .'. This would cause the generated library to
20311 # depend on `.', always an invalid library. This was fixed in
20312 # development snapshots of GCC prior to 3.0.
20313 case $host_os in
20314 aix4 | aix4.[01] | aix4.[01].*)
20315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20316 echo ' yes '
20317 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20318 :
20319 else
20320 can_build_shared=no
20321 fi
20322 ;;
20323 esac
20324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20325 # soname into executable. Probably we can add versioning support to
20326 # collect2, so additional links can be useful in future.
20327 if test "$aix_use_runtimelinking" = yes; then
20328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20329 # instead of lib<name>.a to let people know that these are not
20330 # typical AIX shared libraries.
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332 else
20333 # We preserve .a as extension for shared libraries through AIX4.2
20334 # and later when we are not doing run time linking.
20335 library_names_spec='${libname}${release}.a $libname.a'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 fi
20338 shlibpath_var=LIBPATH
20339 fi
20340 ;;
20341
20342amigaos*)
20343 library_names_spec='$libname.ixlibrary $libname.a'
20344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020345 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 +000020346 ;;
20347
20348beos*)
20349 library_names_spec='${libname}${shared_ext}'
20350 dynamic_linker="$host_os ld.so"
20351 shlibpath_var=LIBRARY_PATH
20352 ;;
20353
Reid Spencer2706f8c2004-09-19 23:53:36 +000020354bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020355 version_type=linux
20356 need_version=no
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20363 # the default ld.so.conf also contains /usr/contrib/lib and
20364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20365 # libtool to hard-code these into programs
20366 ;;
20367
20368cygwin* | mingw* | pw32*)
20369 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020370 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020371 need_version=no
20372 need_lib_prefix=no
20373
20374 case $GCC,$host_os in
20375 yes,cygwin* | yes,mingw* | yes,pw32*)
20376 library_names_spec='$libname.dll.a'
20377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020378 postinstall_cmds='base_file=`basename \${file}`~
20379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20380 dldir=$destdir/`dirname \$dlpath`~
20381 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020382 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20384 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020385 $rm \$dlpath'
20386 shlibpath_overrides_runpath=yes
20387
20388 case $host_os in
20389 cygwin*)
20390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20391 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 +000020392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020393 ;;
20394 mingw*)
20395 # MinGW DLLs use traditional 'lib' prefix
20396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20399 # It is most probably a Windows format PATH printed by
20400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20401 # path with ; separators, and with drive letters. We can handle the
20402 # drive letters (cygwin fileutils understands them), so leave them,
20403 # especially as we might pass files found there to a mingw objdump,
20404 # which wouldn't understand a cygwinified path. Ahh.
20405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20406 else
20407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20408 fi
20409 ;;
20410 pw32*)
20411 # pw32 DLLs use 'pw' prefix rather than 'lib'
20412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20413 ;;
20414 esac
20415 ;;
20416
20417 *)
20418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20419 ;;
20420 esac
20421 dynamic_linker='Win32 ld.exe'
20422 # FIXME: first we should search . and the directory the executable is in
20423 shlibpath_var=PATH
20424 ;;
20425
20426darwin* | rhapsody*)
20427 dynamic_linker="$host_os dyld"
20428 version_type=darwin
20429 need_lib_prefix=no
20430 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020432 soname_spec='${libname}${release}${major}$shared_ext'
20433 shlibpath_overrides_runpath=yes
20434 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020435 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020436 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020437 if test "$GCC" = yes; then
20438 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"`
20439 else
20440 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020441 fi
20442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20443 ;;
20444
20445dgux*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 ;;
20453
20454freebsd1*)
20455 dynamic_linker=no
20456 ;;
20457
Reid Spencer2706f8c2004-09-19 23:53:36 +000020458kfreebsd*-gnu)
20459 version_type=linux
20460 need_lib_prefix=no
20461 need_version=no
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=no
20466 hardcode_into_libs=yes
20467 dynamic_linker='GNU ld.so'
20468 ;;
20469
John Criswell47fdd832003-07-14 16:52:07 +000020470freebsd*)
20471 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20472 version_type=freebsd-$objformat
20473 case $version_type in
20474 freebsd-elf*)
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20476 need_version=no
20477 need_lib_prefix=no
20478 ;;
20479 freebsd-*)
20480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20481 need_version=yes
20482 ;;
20483 esac
20484 shlibpath_var=LD_LIBRARY_PATH
20485 case $host_os in
20486 freebsd2*)
20487 shlibpath_overrides_runpath=yes
20488 ;;
20489 freebsd3.01* | freebsdelf3.01*)
20490 shlibpath_overrides_runpath=yes
20491 hardcode_into_libs=yes
20492 ;;
20493 *) # from 3.2 on
20494 shlibpath_overrides_runpath=no
20495 hardcode_into_libs=yes
20496 ;;
20497 esac
20498 ;;
20499
20500gnu*)
20501 version_type=linux
20502 need_lib_prefix=no
20503 need_version=no
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 shlibpath_var=LD_LIBRARY_PATH
20507 hardcode_into_libs=yes
20508 ;;
20509
20510hpux9* | hpux10* | hpux11*)
20511 # Give a soname corresponding to the major version so that dld.sl refuses to
20512 # link against other versions.
20513 version_type=sunos
20514 need_lib_prefix=no
20515 need_version=no
20516 case "$host_cpu" in
20517 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020518 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020519 hardcode_into_libs=yes
20520 dynamic_linker="$host_os dld.so"
20521 shlibpath_var=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 if test "X$HPUX_IA64_MODE" = X32; then
20526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20527 else
20528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20529 fi
20530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20531 ;;
20532 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020533 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020534 hardcode_into_libs=yes
20535 dynamic_linker="$host_os dld.sl"
20536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20542 ;;
20543 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020544 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020545 dynamic_linker="$host_os dld.sl"
20546 shlibpath_var=SHLIB_PATH
20547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549 soname_spec='${libname}${release}${shared_ext}$major'
20550 ;;
20551 esac
20552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20553 postinstall_cmds='chmod 555 $lib'
20554 ;;
20555
20556irix5* | irix6* | nonstopux*)
20557 case $host_os in
20558 nonstopux*) version_type=nonstopux ;;
20559 *)
20560 if test "$lt_cv_prog_gnu_ld" = yes; then
20561 version_type=linux
20562 else
20563 version_type=irix
20564 fi ;;
20565 esac
20566 need_lib_prefix=no
20567 need_version=no
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20570 case $host_os in
20571 irix5* | nonstopux*)
20572 libsuff= shlibsuff=
20573 ;;
20574 *)
20575 case $LD in # libtool.m4 will add one of these switches to LD
20576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20577 libsuff= shlibsuff= libmagic=32-bit;;
20578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20579 libsuff=32 shlibsuff=N32 libmagic=N32;;
20580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20582 *) libsuff= shlibsuff= libmagic=never-match;;
20583 esac
20584 ;;
20585 esac
20586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20587 shlibpath_overrides_runpath=no
20588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20590 hardcode_into_libs=yes
20591 ;;
20592
20593# No shared lib support for Linux oldld, aout, or coff.
20594linux*oldld* | linux*aout* | linux*coff*)
20595 dynamic_linker=no
20596 ;;
20597
20598# This must be Linux ELF.
20599linux*)
20600 version_type=linux
20601 need_lib_prefix=no
20602 need_version=no
20603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604 soname_spec='${libname}${release}${shared_ext}$major'
20605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath=no
20608 # This implies no fast_install, which is unacceptable.
20609 # Some rework will be needed to allow for fast_install
20610 # before this can be enabled.
20611 hardcode_into_libs=yes
20612
Reid Spencer2706f8c2004-09-19 23:53:36 +000020613 # Append ld.so.conf contents to the search path
20614 if test -f /etc/ld.so.conf; then
20615 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20617 fi
20618
John Criswell47fdd832003-07-14 16:52:07 +000020619 # We used to test for /lib/ld.so.1 and disable shared libraries on
20620 # powerpc, because MkLinux only supported shared libraries with the
20621 # GNU dynamic linker. Since this was broken with cross compilers,
20622 # most powerpc-linux boxes support dynamic linking these days and
20623 # people can always --disable-shared, the test was removed, and we
20624 # assume the GNU/Linux dynamic linker is in use.
20625 dynamic_linker='GNU/Linux ld.so'
20626 ;;
20627
Reid Spencer2706f8c2004-09-19 23:53:36 +000020628knetbsd*-gnu)
20629 version_type=linux
20630 need_lib_prefix=no
20631 need_version=no
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20633 soname_spec='${libname}${release}${shared_ext}$major'
20634 shlibpath_var=LD_LIBRARY_PATH
20635 shlibpath_overrides_runpath=no
20636 hardcode_into_libs=yes
20637 dynamic_linker='GNU ld.so'
20638 ;;
20639
John Criswell47fdd832003-07-14 16:52:07 +000020640netbsd*)
20641 version_type=sunos
20642 need_lib_prefix=no
20643 need_version=no
20644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20647 dynamic_linker='NetBSD (a.out) ld.so'
20648 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020650 soname_spec='${libname}${release}${shared_ext}$major'
20651 dynamic_linker='NetBSD ld.elf_so'
20652 fi
20653 shlibpath_var=LD_LIBRARY_PATH
20654 shlibpath_overrides_runpath=yes
20655 hardcode_into_libs=yes
20656 ;;
20657
20658newsos6)
20659 version_type=linux
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 shlibpath_var=LD_LIBRARY_PATH
20662 shlibpath_overrides_runpath=yes
20663 ;;
20664
Reid Spencer2706f8c2004-09-19 23:53:36 +000020665nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020666 version_type=linux
20667 need_lib_prefix=no
20668 need_version=no
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 shlibpath_var=LD_LIBRARY_PATH
20672 shlibpath_overrides_runpath=yes
20673 ;;
20674
20675openbsd*)
20676 version_type=sunos
20677 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020678 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20681 shlibpath_var=LD_LIBRARY_PATH
20682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20683 case $host_os in
20684 openbsd2.[89] | openbsd2.[89].*)
20685 shlibpath_overrides_runpath=no
20686 ;;
20687 *)
20688 shlibpath_overrides_runpath=yes
20689 ;;
20690 esac
20691 else
20692 shlibpath_overrides_runpath=yes
20693 fi
20694 ;;
20695
20696os2*)
20697 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020698 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020699 need_lib_prefix=no
20700 library_names_spec='$libname${shared_ext} $libname.a'
20701 dynamic_linker='OS/2 ld.exe'
20702 shlibpath_var=LIBPATH
20703 ;;
20704
20705osf3* | osf4* | osf5*)
20706 version_type=osf
20707 need_lib_prefix=no
20708 need_version=no
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 shlibpath_var=LD_LIBRARY_PATH
20712 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20713 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20714 ;;
20715
20716sco3.2v5*)
20717 version_type=osf
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20720 shlibpath_var=LD_LIBRARY_PATH
20721 ;;
20722
20723solaris*)
20724 version_type=linux
20725 need_lib_prefix=no
20726 need_version=no
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec='${libname}${release}${shared_ext}$major'
20729 shlibpath_var=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath=yes
20731 hardcode_into_libs=yes
20732 # ldd complains unless libraries are executable
20733 postinstall_cmds='chmod +x $lib'
20734 ;;
20735
20736sunos4*)
20737 version_type=sunos
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20742 if test "$with_gnu_ld" = yes; then
20743 need_lib_prefix=no
20744 fi
20745 need_version=yes
20746 ;;
20747
20748sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20749 version_type=linux
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec='${libname}${release}${shared_ext}$major'
20752 shlibpath_var=LD_LIBRARY_PATH
20753 case $host_vendor in
20754 sni)
20755 shlibpath_overrides_runpath=no
20756 need_lib_prefix=no
20757 export_dynamic_flag_spec='${wl}-Blargedynsym'
20758 runpath_var=LD_RUN_PATH
20759 ;;
20760 siemens)
20761 need_lib_prefix=no
20762 ;;
20763 motorola)
20764 need_lib_prefix=no
20765 need_version=no
20766 shlibpath_overrides_runpath=no
20767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20768 ;;
20769 esac
20770 ;;
20771
20772sysv4*MP*)
20773 if test -d /usr/nec ;then
20774 version_type=linux
20775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20776 soname_spec='$libname${shared_ext}.$major'
20777 shlibpath_var=LD_LIBRARY_PATH
20778 fi
20779 ;;
20780
20781uts4*)
20782 version_type=linux
20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 soname_spec='${libname}${release}${shared_ext}$major'
20785 shlibpath_var=LD_LIBRARY_PATH
20786 ;;
20787
20788*)
20789 dynamic_linker=no
20790 ;;
20791esac
20792echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20793echo "${ECHO_T}$dynamic_linker" >&6
20794test "$dynamic_linker" = no && can_build_shared=no
20795
Reid Spencer2706f8c2004-09-19 23:53:36 +000020796echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20797echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20798hardcode_action_F77=
20799if test -n "$hardcode_libdir_flag_spec_F77" || \
20800 test -n "$runpath_var_F77" || \
20801 test "X$hardcode_automatic_F77" = "Xyes" ; then
20802
20803 # We can hardcode non-existant directories.
20804 if test "$hardcode_direct_F77" != no &&
20805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20806 # have to relink, otherwise we might link with an installed library
20807 # when we should be linking with a yet-to-be-installed one
20808 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20809 test "$hardcode_minus_L_F77" != no; then
20810 # Linking always hardcodes the temporary library directory.
20811 hardcode_action_F77=relink
20812 else
20813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20814 hardcode_action_F77=immediate
20815 fi
20816else
20817 # We cannot hardcode anything, or else we can only hardcode existing
20818 # directories.
20819 hardcode_action_F77=unsupported
20820fi
20821echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20822echo "${ECHO_T}$hardcode_action_F77" >&6
20823
20824if test "$hardcode_action_F77" = relink; then
20825 # Fast installation is not supported
20826 enable_fast_install=no
20827elif test "$shlibpath_overrides_runpath" = yes ||
20828 test "$enable_shared" = no; then
20829 # Fast installation is not necessary
20830 enable_fast_install=needless
20831fi
20832
20833striplib=
20834old_striplib=
20835echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20836echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20837if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20839 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20840 echo "$as_me:$LINENO: result: yes" >&5
20841echo "${ECHO_T}yes" >&6
20842else
20843# FIXME - insert some real tests, host_os isn't really good enough
20844 case $host_os in
20845 darwin*)
20846 if test -n "$STRIP" ; then
20847 striplib="$STRIP -x"
20848 echo "$as_me:$LINENO: result: yes" >&5
20849echo "${ECHO_T}yes" >&6
20850 else
20851 echo "$as_me:$LINENO: result: no" >&5
20852echo "${ECHO_T}no" >&6
20853fi
20854 ;;
20855 *)
20856 echo "$as_me:$LINENO: result: no" >&5
20857echo "${ECHO_T}no" >&6
20858 ;;
20859 esac
20860fi
20861
20862
John Criswell47fdd832003-07-14 16:52:07 +000020863
20864# The else clause should only fire when bootstrapping the
20865# libtool distribution, otherwise you forgot to ship ltmain.sh
20866# with your package, and you will get complaints that there are
20867# no rules to generate ltmain.sh.
20868if test -f "$ltmain"; then
20869 # See if we are running on zsh, and set the options which allow our commands through
20870 # without removal of \ escapes.
20871 if test -n "${ZSH_VERSION+set}" ; then
20872 setopt NO_GLOB_SUBST
20873 fi
20874 # Now quote all the things that may contain metacharacters while being
20875 # careful not to overquote the AC_SUBSTed values. We take copies of the
20876 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020877 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20878 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020879 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20880 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20881 deplibs_check_method reload_flag reload_cmds need_locks \
20882 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20883 lt_cv_sys_global_symbol_to_c_name_address \
20884 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20885 old_postinstall_cmds old_postuninstall_cmds \
20886 compiler_F77 \
20887 CC_F77 \
20888 LD_F77 \
20889 lt_prog_compiler_wl_F77 \
20890 lt_prog_compiler_pic_F77 \
20891 lt_prog_compiler_static_F77 \
20892 lt_prog_compiler_no_builtin_flag_F77 \
20893 export_dynamic_flag_spec_F77 \
20894 thread_safe_flag_spec_F77 \
20895 whole_archive_flag_spec_F77 \
20896 enable_shared_with_static_runtimes_F77 \
20897 old_archive_cmds_F77 \
20898 old_archive_from_new_cmds_F77 \
20899 predep_objects_F77 \
20900 postdep_objects_F77 \
20901 predeps_F77 \
20902 postdeps_F77 \
20903 compiler_lib_search_path_F77 \
20904 archive_cmds_F77 \
20905 archive_expsym_cmds_F77 \
20906 postinstall_cmds_F77 \
20907 postuninstall_cmds_F77 \
20908 old_archive_from_expsyms_cmds_F77 \
20909 allow_undefined_flag_F77 \
20910 no_undefined_flag_F77 \
20911 export_symbols_cmds_F77 \
20912 hardcode_libdir_flag_spec_F77 \
20913 hardcode_libdir_flag_spec_ld_F77 \
20914 hardcode_libdir_separator_F77 \
20915 hardcode_automatic_F77 \
20916 module_cmds_F77 \
20917 module_expsym_cmds_F77 \
20918 lt_cv_prog_compiler_c_o_F77 \
20919 exclude_expsyms_F77 \
20920 include_expsyms_F77; do
20921
20922 case $var in
20923 old_archive_cmds_F77 | \
20924 old_archive_from_new_cmds_F77 | \
20925 archive_cmds_F77 | \
20926 archive_expsym_cmds_F77 | \
20927 module_cmds_F77 | \
20928 module_expsym_cmds_F77 | \
20929 old_archive_from_expsyms_cmds_F77 | \
20930 export_symbols_cmds_F77 | \
20931 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20932 postinstall_cmds | postuninstall_cmds | \
20933 old_postinstall_cmds | old_postuninstall_cmds | \
20934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20935 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020936 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 +000020937 ;;
20938 *)
20939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20940 ;;
20941 esac
20942 done
20943
20944 case $lt_echo in
20945 *'\$0 --fallback-echo"')
20946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20947 ;;
20948 esac
20949
20950cfgfile="$ofile"
20951
20952 cat <<__EOF__ >> "$cfgfile"
20953# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20954
20955# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20956
20957# Shell to use when invoking shell scripts.
20958SHELL=$lt_SHELL
20959
20960# Whether or not to build shared libraries.
20961build_libtool_libs=$enable_shared
20962
20963# Whether or not to build static libraries.
20964build_old_libs=$enable_static
20965
20966# Whether or not to add -lc for building shared libraries.
20967build_libtool_need_lc=$archive_cmds_need_lc_F77
20968
20969# Whether or not to disallow shared libs when runtime libs are static
20970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20971
20972# Whether or not to optimize for fast installation.
20973fast_install=$enable_fast_install
20974
20975# The host system.
20976host_alias=$host_alias
20977host=$host
20978
20979# An echo program that does not interpret backslashes.
20980echo=$lt_echo
20981
20982# The archiver.
20983AR=$lt_AR
20984AR_FLAGS=$lt_AR_FLAGS
20985
20986# A C compiler.
20987LTCC=$lt_LTCC
20988
20989# A language-specific compiler.
20990CC=$lt_compiler_F77
20991
20992# Is the compiler the GNU C compiler?
20993with_gcc=$GCC_F77
20994
20995# An ERE matcher.
20996EGREP=$lt_EGREP
20997
20998# The linker used to build libraries.
20999LD=$lt_LD_F77
21000
21001# Whether we need hard or soft links.
21002LN_S=$lt_LN_S
21003
21004# A BSD-compatible nm program.
21005NM=$lt_NM
21006
21007# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021008STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021009
21010# Used to examine libraries when file_magic_cmd begins "file"
21011MAGIC_CMD=$MAGIC_CMD
21012
21013# Used on cygwin: DLL creation program.
21014DLLTOOL="$DLLTOOL"
21015
21016# Used on cygwin: object dumper.
21017OBJDUMP="$OBJDUMP"
21018
21019# Used on cygwin: assembler.
21020AS="$AS"
21021
21022# The name of the directory that contains temporary libtool files.
21023objdir=$objdir
21024
21025# How to create reloadable object files.
21026reload_flag=$lt_reload_flag
21027reload_cmds=$lt_reload_cmds
21028
21029# How to pass a linker flag through the compiler.
21030wl=$lt_lt_prog_compiler_wl_F77
21031
21032# Object file suffix (normally "o").
21033objext="$ac_objext"
21034
21035# Old archive suffix (normally "a").
21036libext="$libext"
21037
21038# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021039shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021040
21041# Executable file suffix (normally "").
21042exeext="$exeext"
21043
21044# Additional compiler flags for building library objects.
21045pic_flag=$lt_lt_prog_compiler_pic_F77
21046pic_mode=$pic_mode
21047
21048# What is the maximum length of a command?
21049max_cmd_len=$lt_cv_sys_max_cmd_len
21050
21051# Does compiler simultaneously support -c and -o options?
21052compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21053
21054# Must we lock files when doing compilation ?
21055need_locks=$lt_need_locks
21056
21057# Do we need the lib prefix for modules?
21058need_lib_prefix=$need_lib_prefix
21059
21060# Do we need a version for libraries?
21061need_version=$need_version
21062
21063# Whether dlopen is supported.
21064dlopen_support=$enable_dlopen
21065
21066# Whether dlopen of programs is supported.
21067dlopen_self=$enable_dlopen_self
21068
21069# Whether dlopen of statically linked programs is supported.
21070dlopen_self_static=$enable_dlopen_self_static
21071
21072# Compiler flag to prevent dynamic linking.
21073link_static_flag=$lt_lt_prog_compiler_static_F77
21074
21075# Compiler flag to turn off builtin functions.
21076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21077
21078# Compiler flag to allow reflexive dlopens.
21079export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21080
21081# Compiler flag to generate shared objects directly from archives.
21082whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21083
21084# Compiler flag to generate thread-safe objects.
21085thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21086
21087# Library versioning type.
21088version_type=$version_type
21089
21090# Format of library name prefix.
21091libname_spec=$lt_libname_spec
21092
21093# List of archive names. First name is the real one, the rest are links.
21094# The last name is the one that the linker finds with -lNAME.
21095library_names_spec=$lt_library_names_spec
21096
21097# The coded name of the library, if different from the real name.
21098soname_spec=$lt_soname_spec
21099
21100# Commands used to build and install an old-style archive.
21101RANLIB=$lt_RANLIB
21102old_archive_cmds=$lt_old_archive_cmds_F77
21103old_postinstall_cmds=$lt_old_postinstall_cmds
21104old_postuninstall_cmds=$lt_old_postuninstall_cmds
21105
21106# Create an old-style archive from a shared archive.
21107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21108
21109# Create a temporary old-style archive to link instead of a shared archive.
21110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21111
21112# Commands used to build and install a shared archive.
21113archive_cmds=$lt_archive_cmds_F77
21114archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21115postinstall_cmds=$lt_postinstall_cmds
21116postuninstall_cmds=$lt_postuninstall_cmds
21117
21118# Commands used to build a loadable module (assumed same as above if empty)
21119module_cmds=$lt_module_cmds_F77
21120module_expsym_cmds=$lt_module_expsym_cmds_F77
21121
21122# Commands to strip libraries.
21123old_striplib=$lt_old_striplib
21124striplib=$lt_striplib
21125
21126# Dependencies to place before the objects being linked to create a
21127# shared library.
21128predep_objects=$lt_predep_objects_F77
21129
21130# Dependencies to place after the objects being linked to create a
21131# shared library.
21132postdep_objects=$lt_postdep_objects_F77
21133
21134# Dependencies to place before the objects being linked to create a
21135# shared library.
21136predeps=$lt_predeps_F77
21137
21138# Dependencies to place after the objects being linked to create a
21139# shared library.
21140postdeps=$lt_postdeps_F77
21141
21142# The library search path used internally by the compiler when linking
21143# a shared library.
21144compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21145
21146# Method to check whether dependent libraries are shared objects.
21147deplibs_check_method=$lt_deplibs_check_method
21148
21149# Command to use when deplibs_check_method == file_magic.
21150file_magic_cmd=$lt_file_magic_cmd
21151
21152# Flag that allows shared libraries with undefined symbols to be built.
21153allow_undefined_flag=$lt_allow_undefined_flag_F77
21154
21155# Flag that forces no undefined symbols.
21156no_undefined_flag=$lt_no_undefined_flag_F77
21157
21158# Commands used to finish a libtool library installation in a directory.
21159finish_cmds=$lt_finish_cmds
21160
21161# Same as above, but a single script fragment to be evaled but not shown.
21162finish_eval=$lt_finish_eval
21163
21164# Take the output of nm and produce a listing of raw symbols and C names.
21165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21166
21167# Transform the output of nm in a proper C declaration
21168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21169
21170# Transform the output of nm in a C name address pair
21171global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21172
21173# This is the shared library runtime path variable.
21174runpath_var=$runpath_var
21175
21176# This is the shared library path variable.
21177shlibpath_var=$shlibpath_var
21178
21179# Is shlibpath searched before the hard-coded library search path?
21180shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21181
21182# How to hardcode a shared library path into an executable.
21183hardcode_action=$hardcode_action_F77
21184
21185# Whether we should hardcode library paths into libraries.
21186hardcode_into_libs=$hardcode_into_libs
21187
21188# Flag to hardcode \$libdir into a binary during linking.
21189# This must work even if \$libdir does not exist.
21190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21191
21192# If ld is used when linking, flag to hardcode \$libdir into
21193# a binary during linking. This must work even if \$libdir does
21194# not exist.
21195hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21196
21197# Whether we need a single -rpath flag with a separated argument.
21198hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21199
21200# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21201# resulting binary.
21202hardcode_direct=$hardcode_direct_F77
21203
21204# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21205# resulting binary.
21206hardcode_minus_L=$hardcode_minus_L_F77
21207
21208# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21209# the resulting binary.
21210hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21211
21212# Set to yes if building a shared library automatically hardcodes DIR into the library
21213# and all subsequent libraries and executables linked against it.
21214hardcode_automatic=$hardcode_automatic_F77
21215
21216# Variables whose values should be saved in libtool wrapper scripts and
21217# restored at relink time.
21218variables_saved_for_relink="$variables_saved_for_relink"
21219
21220# Whether libtool must link a program against all its dependency libraries.
21221link_all_deplibs=$link_all_deplibs_F77
21222
21223# Compile-time system search path for libraries
21224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21225
21226# Run-time system search path for libraries
21227sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21228
21229# Fix the shell variable \$srcfile for the compiler.
21230fix_srcfile_path="$fix_srcfile_path_F77"
21231
21232# Set to yes if exported symbols are required.
21233always_export_symbols=$always_export_symbols_F77
21234
21235# The commands to list exported symbols.
21236export_symbols_cmds=$lt_export_symbols_cmds_F77
21237
21238# The commands to extract the exported symbol list from a shared archive.
21239extract_expsyms_cmds=$lt_extract_expsyms_cmds
21240
21241# Symbols that should not be listed in the preloaded symbols.
21242exclude_expsyms=$lt_exclude_expsyms_F77
21243
21244# Symbols that must always be exported.
21245include_expsyms=$lt_include_expsyms_F77
21246
21247# ### END LIBTOOL TAG CONFIG: $tagname
21248
21249__EOF__
21250
21251
21252else
21253 # If there is no Makefile yet, we rely on a make rule to execute
21254 # `config.status --recheck' to rerun these tests and create the
21255 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21257 if test -f "$ltmain_in"; then
21258 test -f Makefile && make "$ltmain"
21259 fi
John Criswell47fdd832003-07-14 16:52:07 +000021260fi
21261
21262
21263ac_ext=c
21264ac_cpp='$CPP $CPPFLAGS'
21265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267ac_compiler_gnu=$ac_cv_c_compiler_gnu
21268
21269CC="$lt_save_CC"
21270
21271 else
21272 tagname=""
21273 fi
21274 ;;
21275
21276 GCJ)
21277 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021278 ac_ext=c
21279ac_cpp='$CPP $CPPFLAGS'
21280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021283
21284
21285# Source file extension for Java test sources.
21286ac_ext=java
21287
21288# Object file extension for compiled Java test sources.
21289objext=o
21290objext_GCJ=$objext
21291
21292# Code to be used in simple compile tests
21293lt_simple_compile_test_code="class foo {}\n"
21294
21295# Code to be used in simple link tests
21296lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21297
21298# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21299
21300# If no C compiler was specified, use CC.
21301LTCC=${LTCC-"$CC"}
21302
21303# Allow CC to be a program name with arguments.
21304compiler=$CC
21305
21306
21307# Allow CC to be a program name with arguments.
21308lt_save_CC="$CC"
21309CC=${GCJ-"gcj"}
21310compiler=$CC
21311compiler_GCJ=$CC
21312
21313# GCJ did not exist at the time GCC didn't implicitly link libc in.
21314archive_cmds_need_lc_GCJ=no
21315
John Criswell47fdd832003-07-14 16:52:07 +000021316
21317lt_prog_compiler_no_builtin_flag_GCJ=
21318
21319if test "$GCC" = yes; then
21320 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21321
Reid Spencer2706f8c2004-09-19 23:53:36 +000021322
21323echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021324echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21325if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327else
21328 lt_cv_prog_compiler_rtti_exceptions=no
21329 ac_outfile=conftest.$ac_objext
21330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21331 lt_compiler_flag="-fno-rtti -fno-exceptions"
21332 # Insert the option either (1) after the last *FLAGS variable, or
21333 # (2) before a word containing "conftest.", or (3) at the end.
21334 # Note that $ac_compile itself does not contain backslashes and begins
21335 # with a dollar sign (not a hyphen), so the echo should work correctly.
21336 # The option is referenced via a variable to avoid confusing sed.
21337 lt_compile=`echo "$ac_compile" | $SED \
21338 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21340 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000021341 (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021342 (eval "$lt_compile" 2>conftest.err)
21343 ac_status=$?
21344 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000021345 echo "$as_me:21329: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021346 if (exit $ac_status) && test -s "$ac_outfile"; then
21347 # The compiler can only warn and ignore the option if not recognized
21348 # So say no if there are warnings
21349 if test ! -s conftest.err; then
21350 lt_cv_prog_compiler_rtti_exceptions=yes
21351 fi
21352 fi
21353 $rm conftest*
21354
21355fi
21356echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21357echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21358
21359if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21360 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21361else
21362 :
21363fi
21364
21365fi
21366
21367lt_prog_compiler_wl_GCJ=
21368lt_prog_compiler_pic_GCJ=
21369lt_prog_compiler_static_GCJ=
21370
21371echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21372echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21373
21374 if test "$GCC" = yes; then
21375 lt_prog_compiler_wl_GCJ='-Wl,'
21376 lt_prog_compiler_static_GCJ='-static'
21377
21378 case $host_os in
21379 aix*)
21380 # All AIX code is PIC.
21381 if test "$host_cpu" = ia64; then
21382 # AIX 5 now supports IA64 processor
21383 lt_prog_compiler_static_GCJ='-Bstatic'
21384 fi
21385 ;;
21386
21387 amigaos*)
21388 # FIXME: we need at least 68020 code to build shared libraries, but
21389 # adding the `-m68020' flag to GCC prevents building anything better,
21390 # like `-m68040'.
21391 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21392 ;;
21393
21394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21395 # PIC is the default for these OSes.
21396 ;;
21397
21398 mingw* | pw32* | os2*)
21399 # This hack is so that the source file can tell whether it is being
21400 # built for inclusion in a dll (and should export symbols for example).
21401 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21402 ;;
21403
21404 darwin* | rhapsody*)
21405 # PIC is the default on this platform
21406 # Common symbols not allowed in MH_DYLIB files
21407 lt_prog_compiler_pic_GCJ='-fno-common'
21408 ;;
21409
21410 msdosdjgpp*)
21411 # Just because we use GCC doesn't mean we suddenly get shared libraries
21412 # on systems that don't support them.
21413 lt_prog_compiler_can_build_shared_GCJ=no
21414 enable_shared=no
21415 ;;
21416
21417 sysv4*MP*)
21418 if test -d /usr/nec; then
21419 lt_prog_compiler_pic_GCJ=-Kconform_pic
21420 fi
21421 ;;
21422
21423 hpux*)
21424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21425 # not for PA HP-UX.
21426 case "$host_cpu" in
21427 hppa*64*|ia64*)
21428 # +Z the default
21429 ;;
21430 *)
21431 lt_prog_compiler_pic_GCJ='-fPIC'
21432 ;;
21433 esac
21434 ;;
21435
21436 *)
21437 lt_prog_compiler_pic_GCJ='-fPIC'
21438 ;;
21439 esac
21440 else
21441 # PORTME Check for flag to pass linker flags through the system compiler.
21442 case $host_os in
21443 aix*)
21444 lt_prog_compiler_wl_GCJ='-Wl,'
21445 if test "$host_cpu" = ia64; then
21446 # AIX 5 now supports IA64 processor
21447 lt_prog_compiler_static_GCJ='-Bstatic'
21448 else
21449 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21450 fi
21451 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021452 darwin*)
21453 # PIC is the default on this platform
21454 # Common symbols not allowed in MH_DYLIB files
21455 case "$cc_basename" in
21456 xlc*)
21457 lt_prog_compiler_pic_GCJ='-qnocommon'
21458 lt_prog_compiler_wl_GCJ='-Wl,'
21459 ;;
21460 esac
21461 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021462
21463 mingw* | pw32* | os2*)
21464 # This hack is so that the source file can tell whether it is being
21465 # built for inclusion in a dll (and should export symbols for example).
21466 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21467 ;;
21468
21469 hpux9* | hpux10* | hpux11*)
21470 lt_prog_compiler_wl_GCJ='-Wl,'
21471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21472 # not for PA HP-UX.
21473 case "$host_cpu" in
21474 hppa*64*|ia64*)
21475 # +Z the default
21476 ;;
21477 *)
21478 lt_prog_compiler_pic_GCJ='+Z'
21479 ;;
21480 esac
21481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21482 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21483 ;;
21484
21485 irix5* | irix6* | nonstopux*)
21486 lt_prog_compiler_wl_GCJ='-Wl,'
21487 # PIC (with -KPIC) is the default.
21488 lt_prog_compiler_static_GCJ='-non_shared'
21489 ;;
21490
21491 newsos6)
21492 lt_prog_compiler_pic_GCJ='-KPIC'
21493 lt_prog_compiler_static_GCJ='-Bstatic'
21494 ;;
21495
21496 linux*)
21497 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021498 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021499 lt_prog_compiler_wl_GCJ='-Wl,'
21500 lt_prog_compiler_pic_GCJ='-KPIC'
21501 lt_prog_compiler_static_GCJ='-static'
21502 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021503 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021504 lt_prog_compiler_wl_GCJ='-Wl,'
21505 # All Alpha code is PIC.
21506 lt_prog_compiler_static_GCJ='-non_shared'
21507 ;;
21508 esac
21509 ;;
21510
21511 osf3* | osf4* | osf5*)
21512 lt_prog_compiler_wl_GCJ='-Wl,'
21513 # All OSF/1 code is PIC.
21514 lt_prog_compiler_static_GCJ='-non_shared'
21515 ;;
21516
21517 sco3.2v5*)
21518 lt_prog_compiler_pic_GCJ='-Kpic'
21519 lt_prog_compiler_static_GCJ='-dn'
21520 ;;
21521
21522 solaris*)
21523 lt_prog_compiler_wl_GCJ='-Wl,'
21524 lt_prog_compiler_pic_GCJ='-KPIC'
21525 lt_prog_compiler_static_GCJ='-Bstatic'
21526 ;;
21527
21528 sunos4*)
21529 lt_prog_compiler_wl_GCJ='-Qoption ld '
21530 lt_prog_compiler_pic_GCJ='-PIC'
21531 lt_prog_compiler_static_GCJ='-Bstatic'
21532 ;;
21533
21534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21535 lt_prog_compiler_wl_GCJ='-Wl,'
21536 lt_prog_compiler_pic_GCJ='-KPIC'
21537 lt_prog_compiler_static_GCJ='-Bstatic'
21538 ;;
21539
21540 sysv4*MP*)
21541 if test -d /usr/nec ;then
21542 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21543 lt_prog_compiler_static_GCJ='-Bstatic'
21544 fi
21545 ;;
21546
21547 uts4*)
21548 lt_prog_compiler_pic_GCJ='-pic'
21549 lt_prog_compiler_static_GCJ='-Bstatic'
21550 ;;
21551
21552 *)
21553 lt_prog_compiler_can_build_shared_GCJ=no
21554 ;;
21555 esac
21556 fi
21557
21558echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21559echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21560
21561#
21562# Check to make sure the PIC flag actually works.
21563#
21564if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021565
21566echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021567echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21568if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570else
21571 lt_prog_compiler_pic_works_GCJ=no
21572 ac_outfile=conftest.$ac_objext
21573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21574 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21575 # Insert the option either (1) after the last *FLAGS variable, or
21576 # (2) before a word containing "conftest.", or (3) at the end.
21577 # Note that $ac_compile itself does not contain backslashes and begins
21578 # with a dollar sign (not a hyphen), so the echo should work correctly.
21579 # The option is referenced via a variable to avoid confusing sed.
21580 lt_compile=`echo "$ac_compile" | $SED \
21581 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21583 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000021584 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021585 (eval "$lt_compile" 2>conftest.err)
21586 ac_status=$?
21587 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000021588 echo "$as_me:21572: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021589 if (exit $ac_status) && test -s "$ac_outfile"; then
21590 # The compiler can only warn and ignore the option if not recognized
21591 # So say no if there are warnings
21592 if test ! -s conftest.err; then
21593 lt_prog_compiler_pic_works_GCJ=yes
21594 fi
21595 fi
21596 $rm conftest*
21597
21598fi
21599echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21600echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21601
21602if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21603 case $lt_prog_compiler_pic_GCJ in
21604 "" | " "*) ;;
21605 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21606 esac
21607else
21608 lt_prog_compiler_pic_GCJ=
21609 lt_prog_compiler_can_build_shared_GCJ=no
21610fi
21611
21612fi
21613case "$host_os" in
21614 # For platforms which do not support PIC, -DPIC is meaningless:
21615 *djgpp*)
21616 lt_prog_compiler_pic_GCJ=
21617 ;;
21618 *)
21619 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21620 ;;
21621esac
21622
21623echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21624echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21625if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21627else
21628 lt_cv_prog_compiler_c_o_GCJ=no
21629 $rm -r conftest 2>/dev/null
21630 mkdir conftest
21631 cd conftest
21632 mkdir out
21633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21634
John Criswell47fdd832003-07-14 16:52:07 +000021635 lt_compiler_flag="-o out/conftest2.$ac_objext"
21636 # Insert the option either (1) after the last *FLAGS variable, or
21637 # (2) before a word containing "conftest.", or (3) at the end.
21638 # Note that $ac_compile itself does not contain backslashes and begins
21639 # with a dollar sign (not a hyphen), so the echo should work correctly.
21640 lt_compile=`echo "$ac_compile" | $SED \
21641 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21643 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000021644 (eval echo "\"\$as_me:21628: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021645 (eval "$lt_compile" 2>out/conftest.err)
21646 ac_status=$?
21647 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000021648 echo "$as_me:21632: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21650 then
21651 # The compiler can only warn and ignore the option if not recognized
21652 # So say no if there are warnings
21653 if test ! -s out/conftest.err; then
21654 lt_cv_prog_compiler_c_o_GCJ=yes
21655 fi
21656 fi
21657 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021658 $rm conftest*
21659 # SGI C++ compiler will create directory out/ii_files/ for
21660 # template instantiation
21661 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21662 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021663 cd ..
21664 rmdir conftest
21665 $rm conftest*
21666
21667fi
21668echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21669echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21670
21671
21672hard_links="nottested"
21673if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21674 # do not overwrite the value of need_locks provided by the user
21675 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21676echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21677 hard_links=yes
21678 $rm conftest*
21679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21680 touch conftest.a
21681 ln conftest.a conftest.b 2>&5 || hard_links=no
21682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21683 echo "$as_me:$LINENO: result: $hard_links" >&5
21684echo "${ECHO_T}$hard_links" >&6
21685 if test "$hard_links" = no; then
21686 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21687echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21688 need_locks=warn
21689 fi
21690else
21691 need_locks=no
21692fi
21693
21694echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21695echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21696
21697 runpath_var=
21698 allow_undefined_flag_GCJ=
21699 enable_shared_with_static_runtimes_GCJ=no
21700 archive_cmds_GCJ=
21701 archive_expsym_cmds_GCJ=
21702 old_archive_From_new_cmds_GCJ=
21703 old_archive_from_expsyms_cmds_GCJ=
21704 export_dynamic_flag_spec_GCJ=
21705 whole_archive_flag_spec_GCJ=
21706 thread_safe_flag_spec_GCJ=
21707 hardcode_libdir_flag_spec_GCJ=
21708 hardcode_libdir_flag_spec_ld_GCJ=
21709 hardcode_libdir_separator_GCJ=
21710 hardcode_direct_GCJ=no
21711 hardcode_minus_L_GCJ=no
21712 hardcode_shlibpath_var_GCJ=unsupported
21713 link_all_deplibs_GCJ=unknown
21714 hardcode_automatic_GCJ=no
21715 module_cmds_GCJ=
21716 module_expsym_cmds_GCJ=
21717 always_export_symbols_GCJ=no
21718 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21719 # include_expsyms should be a list of space-separated symbols to be *always*
21720 # included in the symbol list
21721 include_expsyms_GCJ=
21722 # exclude_expsyms can be an extended regexp of symbols to exclude
21723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21725 # as well as any symbol that contains `d'.
21726 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21728 # platforms (ab)use it in PIC code, but their linkers get confused if
21729 # the symbol is explicitly referenced. Since portable code cannot
21730 # rely on this symbol name, it's probably fine to never include it in
21731 # preloaded symbol tables.
21732 extract_expsyms_cmds=
21733
21734 case $host_os in
21735 cygwin* | mingw* | pw32*)
21736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21737 # When not using gcc, we currently assume that we are using
21738 # Microsoft Visual C++.
21739 if test "$GCC" != yes; then
21740 with_gnu_ld=no
21741 fi
21742 ;;
21743 openbsd*)
21744 with_gnu_ld=no
21745 ;;
21746 esac
21747
21748 ld_shlibs_GCJ=yes
21749 if test "$with_gnu_ld" = yes; then
21750 # If archive_cmds runs LD, not CC, wlarc should be empty
21751 wlarc='${wl}'
21752
21753 # See if GNU ld supports shared libraries.
21754 case $host_os in
21755 aix3* | aix4* | aix5*)
21756 # On AIX/PPC, the GNU linker is very broken
21757 if test "$host_cpu" != ia64; then
21758 ld_shlibs_GCJ=no
21759 cat <<EOF 1>&2
21760
21761*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21762*** to be unable to reliably create shared libraries on AIX.
21763*** Therefore, libtool is disabling shared libraries support. If you
21764*** really care for shared libraries, you may want to modify your PATH
21765*** so that a non-GNU linker is found, and then restart.
21766
21767EOF
21768 fi
21769 ;;
21770
21771 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021772 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 +000021773 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21774 hardcode_minus_L_GCJ=yes
21775
21776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21777 # that the semantics of dynamic libraries on AmigaOS, at least up
21778 # to version 4, is to share data among multiple programs linked
21779 # with the same dynamic library. Since this doesn't match the
21780 # behavior of shared libraries on other platforms, we can't use
21781 # them.
21782 ld_shlibs_GCJ=no
21783 ;;
21784
21785 beos*)
21786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21787 allow_undefined_flag_GCJ=unsupported
21788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21789 # support --undefined. This deserves some investigation. FIXME
21790 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21791 else
21792 ld_shlibs_GCJ=no
21793 fi
21794 ;;
21795
21796 cygwin* | mingw* | pw32*)
21797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21798 # as there is no search path for DLLs.
21799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21800 allow_undefined_flag_GCJ=unsupported
21801 always_export_symbols_GCJ=no
21802 enable_shared_with_static_runtimes_GCJ=yes
21803 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21804
21805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21807 # If the export-symbols file already is a .def file (1st line
21808 # is EXPORTS), use it as is; otherwise, prepend...
21809 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21810 cp $export_symbols $output_objdir/$soname.def;
21811 else
21812 echo EXPORTS > $output_objdir/$soname.def;
21813 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021814 fi~
21815 $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 +000021816 else
21817 ld_shlibs=no
21818 fi
21819 ;;
21820
21821 netbsd*)
21822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21823 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21824 wlarc=
21825 else
21826 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21827 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21828 fi
21829 ;;
21830
21831 solaris* | sysv5*)
21832 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21833 ld_shlibs_GCJ=no
21834 cat <<EOF 1>&2
21835
21836*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21837*** create shared libraries on Solaris systems. Therefore, libtool
21838*** is disabling shared libraries support. We urge you to upgrade GNU
21839*** binutils to release 2.9.1 or newer. Another option is to modify
21840*** your PATH or compiler configuration so that the native linker is
21841*** used, and then restart.
21842
21843EOF
21844 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21847 else
21848 ld_shlibs_GCJ=no
21849 fi
21850 ;;
21851
21852 sunos4*)
21853 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21854 wlarc=
21855 hardcode_direct_GCJ=yes
21856 hardcode_shlibpath_var_GCJ=no
21857 ;;
21858
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 linux*)
21860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21861 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21862 archive_cmds_GCJ="$tmp_archive_cmds"
21863 supports_anon_versioning=no
21864 case `$LD -v 2>/dev/null` in
21865 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21868 *\ 2.11.*) ;; # other 2.11 versions
21869 *) supports_anon_versioning=yes ;;
21870 esac
21871 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021872 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21873cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21874$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021875 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21876 else
21877 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21878 fi
21879 else
21880 ld_shlibs_GCJ=no
21881 fi
21882 ;;
21883
John Criswell47fdd832003-07-14 16:52:07 +000021884 *)
21885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21886 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21887 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21888 else
21889 ld_shlibs_GCJ=no
21890 fi
21891 ;;
21892 esac
21893
21894 if test "$ld_shlibs_GCJ" = yes; then
21895 runpath_var=LD_RUN_PATH
21896 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21897 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21898 # ancient GNU ld didn't support --whole-archive et. al.
21899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21900 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21901 else
21902 whole_archive_flag_spec_GCJ=
21903 fi
21904 fi
21905 else
21906 # PORTME fill in a description of your system's linker (not GNU ld)
21907 case $host_os in
21908 aix3*)
21909 allow_undefined_flag_GCJ=unsupported
21910 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021911 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 +000021912 # Note: this linker hardcodes the directories in LIBPATH if there
21913 # are no directories specified by -L.
21914 hardcode_minus_L_GCJ=yes
21915 if test "$GCC" = yes && test -z "$link_static_flag"; then
21916 # Neither direct hardcoding nor static linking is supported with a
21917 # broken collect2.
21918 hardcode_direct_GCJ=unsupported
21919 fi
21920 ;;
21921
21922 aix4* | aix5*)
21923 if test "$host_cpu" = ia64; then
21924 # On IA64, the linker does run time linking by default, so we don't
21925 # have to do anything special.
21926 aix_use_runtimelinking=no
21927 exp_sym_flag='-Bexport'
21928 no_entry_flag=""
21929 else
21930 # If we're using GNU nm, then we don't want the "-C" option.
21931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21933 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'
21934 else
21935 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'
21936 fi
21937 aix_use_runtimelinking=no
21938
21939 # Test if we are trying to use run time linking or normal
21940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21941 # need to do runtime linking.
21942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21943 for ld_flag in $LDFLAGS; do
21944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21945 aix_use_runtimelinking=yes
21946 break
21947 fi
21948 done
21949 esac
21950
21951 exp_sym_flag='-bexport'
21952 no_entry_flag='-bnoentry'
21953 fi
21954
21955 # When large executables or shared objects are built, AIX ld can
21956 # have problems creating the table of contents. If linking a library
21957 # or program results in "error TOC overflow" add -mminimal-toc to
21958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21960
21961 archive_cmds_GCJ=''
21962 hardcode_direct_GCJ=yes
21963 hardcode_libdir_separator_GCJ=':'
21964 link_all_deplibs_GCJ=yes
21965
21966 if test "$GCC" = yes; then
21967 case $host_os in aix4.012|aix4.012.*)
21968 # We only want to do this on AIX 4.2 and lower, the check
21969 # below for broken collect2 doesn't work under 4.3+
21970 collect2name=`${CC} -print-prog-name=collect2`
21971 if test -f "$collect2name" && \
21972 strings "$collect2name" | grep resolve_lib_name >/dev/null
21973 then
21974 # We have reworked collect2
21975 hardcode_direct_GCJ=yes
21976 else
21977 # We have old collect2
21978 hardcode_direct_GCJ=unsupported
21979 # It fails to find uninstalled libraries when the uninstalled
21980 # path is not listed in the libpath. Setting hardcode_minus_L
21981 # to unsupported forces relinking
21982 hardcode_minus_L_GCJ=yes
21983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21984 hardcode_libdir_separator_GCJ=
21985 fi
21986 esac
21987 shared_flag='-shared'
21988 else
21989 # not using gcc
21990 if test "$host_cpu" = ia64; then
21991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21992 # chokes on -Wl,-G. The following line is correct:
21993 shared_flag='-G'
21994 else
21995 if test "$aix_use_runtimelinking" = yes; then
21996 shared_flag='${wl}-G'
21997 else
21998 shared_flag='${wl}-bM:SRE'
21999 fi
22000 fi
22001 fi
22002
22003 # It seems that -bexpall does not export symbols beginning with
22004 # underscore (_), so it is better to generate a list of symbols to export.
22005 always_export_symbols_GCJ=yes
22006 if test "$aix_use_runtimelinking" = yes; then
22007 # Warning - without using the other runtime loading flags (-brtl),
22008 # -berok will link without error, but may produce a broken library.
22009 allow_undefined_flag_GCJ='-berok'
22010 # Determine the default libpath from the value encoded in an empty executable.
22011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022012/* confdefs.h. */
22013_ACEOF
22014cat confdefs.h >>conftest.$ac_ext
22015cat >>conftest.$ac_ext <<_ACEOF
22016/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022017
John Criswell47fdd832003-07-14 16:52:07 +000022018int
22019main ()
22020{
22021
22022 ;
22023 return 0;
22024}
22025_ACEOF
22026rm -f conftest.$ac_objext conftest$ac_exeext
22027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022028 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022035 { ac_try='test -z "$ac_c_werror_flag"
22036 || test ! -s conftest.err'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048
22049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22050}'`
22051# Check for a 64-bit object if we didn't find anything.
22052if 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; }
22053}'`; fi
22054else
22055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022056sed 's/^/| /' conftest.$ac_ext >&5
22057
John Criswell47fdd832003-07-14 16:52:07 +000022058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022059rm -f conftest.err conftest.$ac_objext \
22060 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22062
22063 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22064 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"
22065 else
22066 if test "$host_cpu" = ia64; then
22067 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22068 allow_undefined_flag_GCJ="-z nodefs"
22069 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"
22070 else
22071 # Determine the default libpath from the value encoded in an empty executable.
22072 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022073/* confdefs.h. */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022078
John Criswell47fdd832003-07-14 16:52:07 +000022079int
22080main ()
22081{
22082
22083 ;
22084 return 0;
22085}
22086_ACEOF
22087rm -f conftest.$ac_objext conftest$ac_exeext
22088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022089 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022090 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022096 { ac_try='test -z "$ac_c_werror_flag"
22097 || test ! -s conftest.err'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; } &&
22103 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109
22110aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22111}'`
22112# Check for a 64-bit object if we didn't find anything.
22113if 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; }
22114}'`; fi
22115else
22116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022117sed 's/^/| /' conftest.$ac_ext >&5
22118
John Criswell47fdd832003-07-14 16:52:07 +000022119fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022120rm -f conftest.err conftest.$ac_objext \
22121 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22123
22124 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22125 # Warning - without using the other run time loading flags,
22126 # -berok will link without error, but may produce a broken library.
22127 no_undefined_flag_GCJ=' ${wl}-bernotok'
22128 allow_undefined_flag_GCJ=' ${wl}-berok'
22129 # -bexpall does not export symbols beginning with underscore (_)
22130 always_export_symbols_GCJ=yes
22131 # Exported symbols can be pulled into shared objects from archives
22132 whole_archive_flag_spec_GCJ=' '
22133 archive_cmds_need_lc_GCJ=yes
22134 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022135 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 +000022136 fi
22137 fi
22138 ;;
22139
22140 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022141 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 +000022142 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22143 hardcode_minus_L_GCJ=yes
22144 # see comment about different semantics on the GNU ld section
22145 ld_shlibs_GCJ=no
22146 ;;
22147
Reid Spencer2706f8c2004-09-19 23:53:36 +000022148 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022149 export_dynamic_flag_spec_GCJ=-rdynamic
22150 ;;
22151
22152 cygwin* | mingw* | pw32*)
22153 # When not using gcc, we currently assume that we are using
22154 # Microsoft Visual C++.
22155 # hardcode_libdir_flag_spec is actually meaningless, as there is
22156 # no search path for DLLs.
22157 hardcode_libdir_flag_spec_GCJ=' '
22158 allow_undefined_flag_GCJ=unsupported
22159 # Tell ltmain to make .lib files, not .a files.
22160 libext=lib
22161 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022162 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022163 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022164 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 +000022165 # The linker will automatically build a .lib file if we build a DLL.
22166 old_archive_From_new_cmds_GCJ='true'
22167 # FIXME: Should let the user specify the lib program.
22168 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22169 fix_srcfile_path='`cygpath -w "$srcfile"`'
22170 enable_shared_with_static_runtimes_GCJ=yes
22171 ;;
22172
22173 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022174 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022175 rhapsody* | darwin1.[012])
22176 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22177 ;;
22178 *) # Darwin 1.3 on
22179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22180 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22181 else
22182 case ${MACOSX_DEPLOYMENT_TARGET} in
22183 10.[012])
22184 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22185 ;;
22186 10.*)
22187 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22188 ;;
22189 esac
22190 fi
22191 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022192 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022193 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022194 hardcode_direct_GCJ=no
22195 hardcode_automatic_GCJ=yes
22196 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022197 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022198 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022199 if test "$GCC" = yes ; then
22200 output_verbose_link_cmd='echo'
22201 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22202 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22203 # 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 +000022204 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}'
22205 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 +000022206 else
22207 case "$cc_basename" in
22208 xlc*)
22209 output_verbose_link_cmd='echo'
22210 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22211 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22212 # 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 +000022213 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}'
22214 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 +000022215 ;;
22216 *)
22217 ld_shlibs_GCJ=no
22218 ;;
22219 esac
John Criswell47fdd832003-07-14 16:52:07 +000022220 fi
22221 ;;
22222
22223 dgux*)
22224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22226 hardcode_shlibpath_var_GCJ=no
22227 ;;
22228
22229 freebsd1*)
22230 ld_shlibs_GCJ=no
22231 ;;
22232
22233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22234 # support. Future versions do this automatically, but an explicit c++rt0.o
22235 # does not break anything, and helps significantly (at the cost of a little
22236 # extra space).
22237 freebsd2.2*)
22238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240 hardcode_direct_GCJ=yes
22241 hardcode_shlibpath_var_GCJ=no
22242 ;;
22243
22244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22245 freebsd2*)
22246 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22247 hardcode_direct_GCJ=yes
22248 hardcode_minus_L_GCJ=yes
22249 hardcode_shlibpath_var_GCJ=no
22250 ;;
22251
22252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022253 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022254 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22255 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22256 hardcode_direct_GCJ=yes
22257 hardcode_shlibpath_var_GCJ=no
22258 ;;
22259
22260 hpux9*)
22261 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022262 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 +000022263 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022264 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 +000022265 fi
22266 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22267 hardcode_libdir_separator_GCJ=:
22268 hardcode_direct_GCJ=yes
22269
22270 # hardcode_minus_L: Not really in the search PATH,
22271 # but as the default location of the library.
22272 hardcode_minus_L_GCJ=yes
22273 export_dynamic_flag_spec_GCJ='${wl}-E'
22274 ;;
22275
22276 hpux10* | hpux11*)
22277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22278 case "$host_cpu" in
22279 hppa*64*|ia64*)
22280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22281 ;;
22282 *)
22283 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22284 ;;
22285 esac
22286 else
22287 case "$host_cpu" in
22288 hppa*64*|ia64*)
22289 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22290 ;;
22291 *)
22292 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22293 ;;
22294 esac
22295 fi
22296 if test "$with_gnu_ld" = no; then
22297 case "$host_cpu" in
22298 hppa*64*)
22299 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22300 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22301 hardcode_libdir_separator_GCJ=:
22302 hardcode_direct_GCJ=no
22303 hardcode_shlibpath_var_GCJ=no
22304 ;;
22305 ia64*)
22306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22307 hardcode_direct_GCJ=no
22308 hardcode_shlibpath_var_GCJ=no
22309
22310 # hardcode_minus_L: Not really in the search PATH,
22311 # but as the default location of the library.
22312 hardcode_minus_L_GCJ=yes
22313 ;;
22314 *)
22315 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22316 hardcode_libdir_separator_GCJ=:
22317 hardcode_direct_GCJ=yes
22318 export_dynamic_flag_spec_GCJ='${wl}-E'
22319
22320 # hardcode_minus_L: Not really in the search PATH,
22321 # but as the default location of the library.
22322 hardcode_minus_L_GCJ=yes
22323 ;;
22324 esac
22325 fi
22326 ;;
22327
22328 irix5* | irix6* | nonstopux*)
22329 if test "$GCC" = yes; then
22330 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'
22331 else
22332 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'
22333 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22334 fi
22335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22336 hardcode_libdir_separator_GCJ=:
22337 link_all_deplibs_GCJ=yes
22338 ;;
22339
22340 netbsd*)
22341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22342 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22343 else
22344 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22345 fi
22346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22347 hardcode_direct_GCJ=yes
22348 hardcode_shlibpath_var_GCJ=no
22349 ;;
22350
22351 newsos6)
22352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22353 hardcode_direct_GCJ=yes
22354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22355 hardcode_libdir_separator_GCJ=:
22356 hardcode_shlibpath_var_GCJ=no
22357 ;;
22358
22359 openbsd*)
22360 hardcode_direct_GCJ=yes
22361 hardcode_shlibpath_var_GCJ=no
22362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22363 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022364 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 +000022365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22366 export_dynamic_flag_spec_GCJ='${wl}-E'
22367 else
22368 case $host_os in
22369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22372 ;;
22373 *)
22374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22376 ;;
22377 esac
22378 fi
22379 ;;
22380
22381 os2*)
22382 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22383 hardcode_minus_L_GCJ=yes
22384 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022385 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 +000022386 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22387 ;;
22388
22389 osf3*)
22390 if test "$GCC" = yes; then
22391 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22392 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'
22393 else
22394 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22395 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'
22396 fi
22397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22398 hardcode_libdir_separator_GCJ=:
22399 ;;
22400
22401 osf4* | osf5*) # as osf3* with the addition of -msym flag
22402 if test "$GCC" = yes; then
22403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22404 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'
22405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22406 else
22407 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22408 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 +000022409 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~
22410 $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'
22411
John Criswell47fdd832003-07-14 16:52:07 +000022412 # Both c and cxx compiler support -rpath directly
22413 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22414 fi
22415 hardcode_libdir_separator_GCJ=:
22416 ;;
22417
22418 sco3.2v5*)
22419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420 hardcode_shlibpath_var_GCJ=no
22421 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22422 runpath_var=LD_RUN_PATH
22423 hardcode_runpath_var=yes
22424 ;;
22425
22426 solaris*)
22427 no_undefined_flag_GCJ=' -z text'
22428 if test "$GCC" = yes; then
22429 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022430 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22431 $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 +000022432 else
22433 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022434 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22435 $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 +000022436 fi
22437 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22438 hardcode_shlibpath_var_GCJ=no
22439 case $host_os in
22440 solaris2.[0-5] | solaris2.[0-5].*) ;;
22441 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22442 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22443 esac
22444 link_all_deplibs_GCJ=yes
22445 ;;
22446
22447 sunos4*)
22448 if test "x$host_vendor" = xsequent; then
22449 # Use $CC to link under sequent, because it throws in some extra .o
22450 # files that make .init and .fini sections work.
22451 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22452 else
22453 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22454 fi
22455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22456 hardcode_direct_GCJ=yes
22457 hardcode_minus_L_GCJ=yes
22458 hardcode_shlibpath_var_GCJ=no
22459 ;;
22460
22461 sysv4)
22462 case $host_vendor in
22463 sni)
22464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22465 hardcode_direct_GCJ=yes # is this really true???
22466 ;;
22467 siemens)
22468 ## LD is ld it makes a PLAMLIB
22469 ## CC just makes a GrossModule.
22470 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22471 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22472 hardcode_direct_GCJ=no
22473 ;;
22474 motorola)
22475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22476 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22477 ;;
22478 esac
22479 runpath_var='LD_RUN_PATH'
22480 hardcode_shlibpath_var_GCJ=no
22481 ;;
22482
22483 sysv4.3*)
22484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22485 hardcode_shlibpath_var_GCJ=no
22486 export_dynamic_flag_spec_GCJ='-Bexport'
22487 ;;
22488
22489 sysv4*MP*)
22490 if test -d /usr/nec; then
22491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22492 hardcode_shlibpath_var_GCJ=no
22493 runpath_var=LD_RUN_PATH
22494 hardcode_runpath_var=yes
22495 ld_shlibs_GCJ=yes
22496 fi
22497 ;;
22498
22499 sysv4.2uw2*)
22500 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22501 hardcode_direct_GCJ=yes
22502 hardcode_minus_L_GCJ=no
22503 hardcode_shlibpath_var_GCJ=no
22504 hardcode_runpath_var=yes
22505 runpath_var=LD_RUN_PATH
22506 ;;
22507
22508 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22509 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22510 if test "$GCC" = yes; then
22511 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512 else
22513 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514 fi
22515 runpath_var='LD_RUN_PATH'
22516 hardcode_shlibpath_var_GCJ=no
22517 ;;
22518
22519 sysv5*)
22520 no_undefined_flag_GCJ=' -z text'
22521 # $CC -shared without GNU ld will not create a library from C++
22522 # object files and a static libstdc++, better avoid it by now
22523 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022524 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22525 $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 +000022526 hardcode_libdir_flag_spec_GCJ=
22527 hardcode_shlibpath_var_GCJ=no
22528 runpath_var='LD_RUN_PATH'
22529 ;;
22530
22531 uts4*)
22532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22534 hardcode_shlibpath_var_GCJ=no
22535 ;;
22536
22537 *)
22538 ld_shlibs_GCJ=no
22539 ;;
22540 esac
22541 fi
22542
22543echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22544echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22545test "$ld_shlibs_GCJ" = no && can_build_shared=no
22546
22547variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22548if test "$GCC" = yes; then
22549 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22550fi
22551
22552#
22553# Do we need to explicitly link libc?
22554#
22555case "x$archive_cmds_need_lc_GCJ" in
22556x|xyes)
22557 # Assume -lc should be added
22558 archive_cmds_need_lc_GCJ=yes
22559
22560 if test "$enable_shared" = yes && test "$GCC" = yes; then
22561 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022562 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022563 # FIXME: we may have to deal with multi-command sequences.
22564 ;;
22565 '$CC '*)
22566 # Test whether the compiler implicitly links with -lc since on some
22567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22568 # to ld, don't add -lc before -lgcc.
22569 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22570echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22571 $rm conftest*
22572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22573
22574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22575 (eval $ac_compile) 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } 2>conftest.err; then
22579 soname=conftest
22580 lib=conftest
22581 libobjs=conftest.$ac_objext
22582 deplibs=
22583 wl=$lt_prog_compiler_wl_GCJ
22584 compiler_flags=-v
22585 linker_flags=-v
22586 verstring=
22587 output_objdir=.
22588 libname=conftest
22589 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22590 allow_undefined_flag_GCJ=
22591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22592 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }
22596 then
22597 archive_cmds_need_lc_GCJ=no
22598 else
22599 archive_cmds_need_lc_GCJ=yes
22600 fi
22601 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22602 else
22603 cat conftest.err 1>&5
22604 fi
22605 $rm conftest*
22606 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22607echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22608 ;;
22609 esac
22610 fi
22611 ;;
22612esac
22613
John Criswell47fdd832003-07-14 16:52:07 +000022614echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22616library_names_spec=
22617libname_spec='lib$name'
22618soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022619shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022620postinstall_cmds=
22621postuninstall_cmds=
22622finish_cmds=
22623finish_eval=
22624shlibpath_var=
22625shlibpath_overrides_runpath=unknown
22626version_type=none
22627dynamic_linker="$host_os ld.so"
22628sys_lib_dlsearch_path_spec="/lib /usr/lib"
22629if test "$GCC" = yes; then
22630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22632 # if the path contains ";" then we assume it to be the separator
22633 # otherwise default to the standard path separator (i.e. ":") - it is
22634 # assumed that no part of a normal pathname contains ";" but that should
22635 # okay in the real world where ";" in dirpaths is itself problematic.
22636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22637 else
22638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22639 fi
22640else
22641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22642fi
22643need_lib_prefix=unknown
22644hardcode_into_libs=no
22645
22646# when you set need_version to no, make sure it does not cause -set_version
22647# flags to be left without arguments
22648need_version=unknown
22649
22650case $host_os in
22651aix3*)
22652 version_type=linux
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22654 shlibpath_var=LIBPATH
22655
22656 # AIX 3 has no versioning support, so we append a major version to the name.
22657 soname_spec='${libname}${release}${shared_ext}$major'
22658 ;;
22659
22660aix4* | aix5*)
22661 version_type=linux
22662 need_lib_prefix=no
22663 need_version=no
22664 hardcode_into_libs=yes
22665 if test "$host_cpu" = ia64; then
22666 # AIX 5 supports IA64
22667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22668 shlibpath_var=LD_LIBRARY_PATH
22669 else
22670 # With GCC up to 2.95.x, collect2 would create an import file
22671 # for dependence libraries. The import file would start with
22672 # the line `#! .'. This would cause the generated library to
22673 # depend on `.', always an invalid library. This was fixed in
22674 # development snapshots of GCC prior to 3.0.
22675 case $host_os in
22676 aix4 | aix4.[01] | aix4.[01].*)
22677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22678 echo ' yes '
22679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22680 :
22681 else
22682 can_build_shared=no
22683 fi
22684 ;;
22685 esac
22686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22687 # soname into executable. Probably we can add versioning support to
22688 # collect2, so additional links can be useful in future.
22689 if test "$aix_use_runtimelinking" = yes; then
22690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22691 # instead of lib<name>.a to let people know that these are not
22692 # typical AIX shared libraries.
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694 else
22695 # We preserve .a as extension for shared libraries through AIX4.2
22696 # and later when we are not doing run time linking.
22697 library_names_spec='${libname}${release}.a $libname.a'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 fi
22700 shlibpath_var=LIBPATH
22701 fi
22702 ;;
22703
22704amigaos*)
22705 library_names_spec='$libname.ixlibrary $libname.a'
22706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022707 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 +000022708 ;;
22709
22710beos*)
22711 library_names_spec='${libname}${shared_ext}'
22712 dynamic_linker="$host_os ld.so"
22713 shlibpath_var=LIBRARY_PATH
22714 ;;
22715
Reid Spencer2706f8c2004-09-19 23:53:36 +000022716bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022717 version_type=linux
22718 need_version=no
22719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22725 # the default ld.so.conf also contains /usr/contrib/lib and
22726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22727 # libtool to hard-code these into programs
22728 ;;
22729
22730cygwin* | mingw* | pw32*)
22731 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022732 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022733 need_version=no
22734 need_lib_prefix=no
22735
22736 case $GCC,$host_os in
22737 yes,cygwin* | yes,mingw* | yes,pw32*)
22738 library_names_spec='$libname.dll.a'
22739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022740 postinstall_cmds='base_file=`basename \${file}`~
22741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22742 dldir=$destdir/`dirname \$dlpath`~
22743 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022744 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22746 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022747 $rm \$dlpath'
22748 shlibpath_overrides_runpath=yes
22749
22750 case $host_os in
22751 cygwin*)
22752 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22753 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 +000022754 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022755 ;;
22756 mingw*)
22757 # MinGW DLLs use traditional 'lib' prefix
22758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22760 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22761 # It is most probably a Windows format PATH printed by
22762 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22763 # path with ; separators, and with drive letters. We can handle the
22764 # drive letters (cygwin fileutils understands them), so leave them,
22765 # especially as we might pass files found there to a mingw objdump,
22766 # which wouldn't understand a cygwinified path. Ahh.
22767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22768 else
22769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22770 fi
22771 ;;
22772 pw32*)
22773 # pw32 DLLs use 'pw' prefix rather than 'lib'
22774 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22775 ;;
22776 esac
22777 ;;
22778
22779 *)
22780 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22781 ;;
22782 esac
22783 dynamic_linker='Win32 ld.exe'
22784 # FIXME: first we should search . and the directory the executable is in
22785 shlibpath_var=PATH
22786 ;;
22787
22788darwin* | rhapsody*)
22789 dynamic_linker="$host_os dyld"
22790 version_type=darwin
22791 need_lib_prefix=no
22792 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022793 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022794 soname_spec='${libname}${release}${major}$shared_ext'
22795 shlibpath_overrides_runpath=yes
22796 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022797 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022798 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022799 if test "$GCC" = yes; then
22800 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"`
22801 else
22802 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022803 fi
22804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22805 ;;
22806
22807dgux*)
22808 version_type=linux
22809 need_lib_prefix=no
22810 need_version=no
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 ;;
22815
22816freebsd1*)
22817 dynamic_linker=no
22818 ;;
22819
Reid Spencer2706f8c2004-09-19 23:53:36 +000022820kfreebsd*-gnu)
22821 version_type=linux
22822 need_lib_prefix=no
22823 need_version=no
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 shlibpath_overrides_runpath=no
22828 hardcode_into_libs=yes
22829 dynamic_linker='GNU ld.so'
22830 ;;
22831
John Criswell47fdd832003-07-14 16:52:07 +000022832freebsd*)
22833 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22834 version_type=freebsd-$objformat
22835 case $version_type in
22836 freebsd-elf*)
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22838 need_version=no
22839 need_lib_prefix=no
22840 ;;
22841 freebsd-*)
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22843 need_version=yes
22844 ;;
22845 esac
22846 shlibpath_var=LD_LIBRARY_PATH
22847 case $host_os in
22848 freebsd2*)
22849 shlibpath_overrides_runpath=yes
22850 ;;
22851 freebsd3.01* | freebsdelf3.01*)
22852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22854 ;;
22855 *) # from 3.2 on
22856 shlibpath_overrides_runpath=no
22857 hardcode_into_libs=yes
22858 ;;
22859 esac
22860 ;;
22861
22862gnu*)
22863 version_type=linux
22864 need_lib_prefix=no
22865 need_version=no
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 shlibpath_var=LD_LIBRARY_PATH
22869 hardcode_into_libs=yes
22870 ;;
22871
22872hpux9* | hpux10* | hpux11*)
22873 # Give a soname corresponding to the major version so that dld.sl refuses to
22874 # link against other versions.
22875 version_type=sunos
22876 need_lib_prefix=no
22877 need_version=no
22878 case "$host_cpu" in
22879 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022880 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022881 hardcode_into_libs=yes
22882 dynamic_linker="$host_os dld.so"
22883 shlibpath_var=LD_LIBRARY_PATH
22884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 if test "X$HPUX_IA64_MODE" = X32; then
22888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22889 else
22890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22891 fi
22892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22893 ;;
22894 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022895 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022896 hardcode_into_libs=yes
22897 dynamic_linker="$host_os dld.sl"
22898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901 soname_spec='${libname}${release}${shared_ext}$major'
22902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22904 ;;
22905 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022906 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022907 dynamic_linker="$host_os dld.sl"
22908 shlibpath_var=SHLIB_PATH
22909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22911 soname_spec='${libname}${release}${shared_ext}$major'
22912 ;;
22913 esac
22914 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22915 postinstall_cmds='chmod 555 $lib'
22916 ;;
22917
22918irix5* | irix6* | nonstopux*)
22919 case $host_os in
22920 nonstopux*) version_type=nonstopux ;;
22921 *)
22922 if test "$lt_cv_prog_gnu_ld" = yes; then
22923 version_type=linux
22924 else
22925 version_type=irix
22926 fi ;;
22927 esac
22928 need_lib_prefix=no
22929 need_version=no
22930 soname_spec='${libname}${release}${shared_ext}$major'
22931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22932 case $host_os in
22933 irix5* | nonstopux*)
22934 libsuff= shlibsuff=
22935 ;;
22936 *)
22937 case $LD in # libtool.m4 will add one of these switches to LD
22938 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22939 libsuff= shlibsuff= libmagic=32-bit;;
22940 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22941 libsuff=32 shlibsuff=N32 libmagic=N32;;
22942 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22943 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22944 *) libsuff= shlibsuff= libmagic=never-match;;
22945 esac
22946 ;;
22947 esac
22948 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22949 shlibpath_overrides_runpath=no
22950 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22951 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22952 hardcode_into_libs=yes
22953 ;;
22954
22955# No shared lib support for Linux oldld, aout, or coff.
22956linux*oldld* | linux*aout* | linux*coff*)
22957 dynamic_linker=no
22958 ;;
22959
22960# This must be Linux ELF.
22961linux*)
22962 version_type=linux
22963 need_lib_prefix=no
22964 need_version=no
22965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22966 soname_spec='${libname}${release}${shared_ext}$major'
22967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22968 shlibpath_var=LD_LIBRARY_PATH
22969 shlibpath_overrides_runpath=no
22970 # This implies no fast_install, which is unacceptable.
22971 # Some rework will be needed to allow for fast_install
22972 # before this can be enabled.
22973 hardcode_into_libs=yes
22974
Reid Spencer2706f8c2004-09-19 23:53:36 +000022975 # Append ld.so.conf contents to the search path
22976 if test -f /etc/ld.so.conf; then
22977 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22979 fi
22980
John Criswell47fdd832003-07-14 16:52:07 +000022981 # We used to test for /lib/ld.so.1 and disable shared libraries on
22982 # powerpc, because MkLinux only supported shared libraries with the
22983 # GNU dynamic linker. Since this was broken with cross compilers,
22984 # most powerpc-linux boxes support dynamic linking these days and
22985 # people can always --disable-shared, the test was removed, and we
22986 # assume the GNU/Linux dynamic linker is in use.
22987 dynamic_linker='GNU/Linux ld.so'
22988 ;;
22989
Reid Spencer2706f8c2004-09-19 23:53:36 +000022990knetbsd*-gnu)
22991 version_type=linux
22992 need_lib_prefix=no
22993 need_version=no
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22995 soname_spec='${libname}${release}${shared_ext}$major'
22996 shlibpath_var=LD_LIBRARY_PATH
22997 shlibpath_overrides_runpath=no
22998 hardcode_into_libs=yes
22999 dynamic_linker='GNU ld.so'
23000 ;;
23001
John Criswell47fdd832003-07-14 16:52:07 +000023002netbsd*)
23003 version_type=sunos
23004 need_lib_prefix=no
23005 need_version=no
23006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23009 dynamic_linker='NetBSD (a.out) ld.so'
23010 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023012 soname_spec='${libname}${release}${shared_ext}$major'
23013 dynamic_linker='NetBSD ld.elf_so'
23014 fi
23015 shlibpath_var=LD_LIBRARY_PATH
23016 shlibpath_overrides_runpath=yes
23017 hardcode_into_libs=yes
23018 ;;
23019
23020newsos6)
23021 version_type=linux
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23023 shlibpath_var=LD_LIBRARY_PATH
23024 shlibpath_overrides_runpath=yes
23025 ;;
23026
Reid Spencer2706f8c2004-09-19 23:53:36 +000023027nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023028 version_type=linux
23029 need_lib_prefix=no
23030 need_version=no
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 soname_spec='${libname}${release}${shared_ext}$major'
23033 shlibpath_var=LD_LIBRARY_PATH
23034 shlibpath_overrides_runpath=yes
23035 ;;
23036
23037openbsd*)
23038 version_type=sunos
23039 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000023040 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000023041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23043 shlibpath_var=LD_LIBRARY_PATH
23044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23045 case $host_os in
23046 openbsd2.[89] | openbsd2.[89].*)
23047 shlibpath_overrides_runpath=no
23048 ;;
23049 *)
23050 shlibpath_overrides_runpath=yes
23051 ;;
23052 esac
23053 else
23054 shlibpath_overrides_runpath=yes
23055 fi
23056 ;;
23057
23058os2*)
23059 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023060 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023061 need_lib_prefix=no
23062 library_names_spec='$libname${shared_ext} $libname.a'
23063 dynamic_linker='OS/2 ld.exe'
23064 shlibpath_var=LIBPATH
23065 ;;
23066
23067osf3* | osf4* | osf5*)
23068 version_type=osf
23069 need_lib_prefix=no
23070 need_version=no
23071 soname_spec='${libname}${release}${shared_ext}$major'
23072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23073 shlibpath_var=LD_LIBRARY_PATH
23074 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23075 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23076 ;;
23077
23078sco3.2v5*)
23079 version_type=osf
23080 soname_spec='${libname}${release}${shared_ext}$major'
23081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23082 shlibpath_var=LD_LIBRARY_PATH
23083 ;;
23084
23085solaris*)
23086 version_type=linux
23087 need_lib_prefix=no
23088 need_version=no
23089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23090 soname_spec='${libname}${release}${shared_ext}$major'
23091 shlibpath_var=LD_LIBRARY_PATH
23092 shlibpath_overrides_runpath=yes
23093 hardcode_into_libs=yes
23094 # ldd complains unless libraries are executable
23095 postinstall_cmds='chmod +x $lib'
23096 ;;
23097
23098sunos4*)
23099 version_type=sunos
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23104 if test "$with_gnu_ld" = yes; then
23105 need_lib_prefix=no
23106 fi
23107 need_version=yes
23108 ;;
23109
23110sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23111 version_type=linux
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113 soname_spec='${libname}${release}${shared_ext}$major'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 case $host_vendor in
23116 sni)
23117 shlibpath_overrides_runpath=no
23118 need_lib_prefix=no
23119 export_dynamic_flag_spec='${wl}-Blargedynsym'
23120 runpath_var=LD_RUN_PATH
23121 ;;
23122 siemens)
23123 need_lib_prefix=no
23124 ;;
23125 motorola)
23126 need_lib_prefix=no
23127 need_version=no
23128 shlibpath_overrides_runpath=no
23129 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23130 ;;
23131 esac
23132 ;;
23133
23134sysv4*MP*)
23135 if test -d /usr/nec ;then
23136 version_type=linux
23137 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23138 soname_spec='$libname${shared_ext}.$major'
23139 shlibpath_var=LD_LIBRARY_PATH
23140 fi
23141 ;;
23142
23143uts4*)
23144 version_type=linux
23145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23146 soname_spec='${libname}${release}${shared_ext}$major'
23147 shlibpath_var=LD_LIBRARY_PATH
23148 ;;
23149
23150*)
23151 dynamic_linker=no
23152 ;;
23153esac
23154echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23155echo "${ECHO_T}$dynamic_linker" >&6
23156test "$dynamic_linker" = no && can_build_shared=no
23157
Reid Spencer2706f8c2004-09-19 23:53:36 +000023158echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23159echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23160hardcode_action_GCJ=
23161if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23162 test -n "$runpath_var_GCJ" || \
23163 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23164
23165 # We can hardcode non-existant directories.
23166 if test "$hardcode_direct_GCJ" != no &&
23167 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23168 # have to relink, otherwise we might link with an installed library
23169 # when we should be linking with a yet-to-be-installed one
23170 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23171 test "$hardcode_minus_L_GCJ" != no; then
23172 # Linking always hardcodes the temporary library directory.
23173 hardcode_action_GCJ=relink
23174 else
23175 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23176 hardcode_action_GCJ=immediate
23177 fi
23178else
23179 # We cannot hardcode anything, or else we can only hardcode existing
23180 # directories.
23181 hardcode_action_GCJ=unsupported
23182fi
23183echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23184echo "${ECHO_T}$hardcode_action_GCJ" >&6
23185
23186if test "$hardcode_action_GCJ" = relink; then
23187 # Fast installation is not supported
23188 enable_fast_install=no
23189elif test "$shlibpath_overrides_runpath" = yes ||
23190 test "$enable_shared" = no; then
23191 # Fast installation is not necessary
23192 enable_fast_install=needless
23193fi
23194
23195striplib=
23196old_striplib=
23197echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23198echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23199if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23200 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23201 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23202 echo "$as_me:$LINENO: result: yes" >&5
23203echo "${ECHO_T}yes" >&6
23204else
23205# FIXME - insert some real tests, host_os isn't really good enough
23206 case $host_os in
23207 darwin*)
23208 if test -n "$STRIP" ; then
23209 striplib="$STRIP -x"
23210 echo "$as_me:$LINENO: result: yes" >&5
23211echo "${ECHO_T}yes" >&6
23212 else
23213 echo "$as_me:$LINENO: result: no" >&5
23214echo "${ECHO_T}no" >&6
23215fi
23216 ;;
23217 *)
23218 echo "$as_me:$LINENO: result: no" >&5
23219echo "${ECHO_T}no" >&6
23220 ;;
23221 esac
23222fi
23223
John Criswell47fdd832003-07-14 16:52:07 +000023224if test "x$enable_dlopen" != xyes; then
23225 enable_dlopen=unknown
23226 enable_dlopen_self=unknown
23227 enable_dlopen_self_static=unknown
23228else
23229 lt_cv_dlopen=no
23230 lt_cv_dlopen_libs=
23231
23232 case $host_os in
23233 beos*)
23234 lt_cv_dlopen="load_add_on"
23235 lt_cv_dlopen_libs=
23236 lt_cv_dlopen_self=yes
23237 ;;
23238
23239 mingw* | pw32*)
23240 lt_cv_dlopen="LoadLibrary"
23241 lt_cv_dlopen_libs=
23242 ;;
23243
23244 cygwin*)
23245 lt_cv_dlopen="dlopen"
23246 lt_cv_dlopen_libs=
23247 ;;
23248
23249 darwin*)
23250 # if libdl is installed we need to link against it
23251 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23252echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23253if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23254 echo $ECHO_N "(cached) $ECHO_C" >&6
23255else
23256 ac_check_lib_save_LIBS=$LIBS
23257LIBS="-ldl $LIBS"
23258cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023259/* confdefs.h. */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023264
23265/* Override any gcc2 internal prototype to avoid an error. */
23266#ifdef __cplusplus
23267extern "C"
23268#endif
23269/* We use char because int might match the return type of a gcc2
23270 builtin and then its argument prototype would still apply. */
23271char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023272int
23273main ()
23274{
23275dlopen ();
23276 ;
23277 return 0;
23278}
23279_ACEOF
23280rm -f conftest.$ac_objext conftest$ac_exeext
23281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023282 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023283 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023289 { ac_try='test -z "$ac_c_werror_flag"
23290 || test ! -s conftest.err'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; } &&
23296 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_lib_dl_dlopen=yes
23303else
23304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023305sed 's/^/| /' conftest.$ac_ext >&5
23306
John Criswell47fdd832003-07-14 16:52:07 +000023307ac_cv_lib_dl_dlopen=no
23308fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023309rm -f conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023311LIBS=$ac_check_lib_save_LIBS
23312fi
23313echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23314echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23315if test $ac_cv_lib_dl_dlopen = yes; then
23316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23317else
23318
23319 lt_cv_dlopen="dyld"
23320 lt_cv_dlopen_libs=
23321 lt_cv_dlopen_self=yes
23322
23323fi
23324
23325 ;;
23326
23327 *)
23328 echo "$as_me:$LINENO: checking for shl_load" >&5
23329echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23330if test "${ac_cv_func_shl_load+set}" = set; then
23331 echo $ECHO_N "(cached) $ECHO_C" >&6
23332else
23333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023334/* confdefs.h. */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023339/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23341#define shl_load innocuous_shl_load
23342
John Criswell47fdd832003-07-14 16:52:07 +000023343/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023344 which can conflict with char shl_load (); below.
23345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23346 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023347
John Criswell0c38eaf2003-09-10 15:17:25 +000023348#ifdef __STDC__
23349# include <limits.h>
23350#else
23351# include <assert.h>
23352#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023353
23354#undef shl_load
23355
John Criswell47fdd832003-07-14 16:52:07 +000023356/* Override any gcc2 internal prototype to avoid an error. */
23357#ifdef __cplusplus
23358extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023359{
John Criswell47fdd832003-07-14 16:52:07 +000023360#endif
23361/* We use char because int might match the return type of a gcc2
23362 builtin and then its argument prototype would still apply. */
23363char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023364/* The GNU C library defines this for functions which it implements
23365 to always fail with ENOSYS. Some functions are actually named
23366 something starting with __ and the normal name is an alias. */
23367#if defined (__stub_shl_load) || defined (__stub___shl_load)
23368choke me
23369#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023370char (*f) () = shl_load;
23371#endif
23372#ifdef __cplusplus
23373}
John Criswell47fdd832003-07-14 16:52:07 +000023374#endif
23375
John Criswell0c38eaf2003-09-10 15:17:25 +000023376int
23377main ()
23378{
23379return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023380 ;
23381 return 0;
23382}
23383_ACEOF
23384rm -f conftest.$ac_objext conftest$ac_exeext
23385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023386 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023393 { ac_try='test -z "$ac_c_werror_flag"
23394 || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_cv_func_shl_load=yes
23407else
23408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023409sed 's/^/| /' conftest.$ac_ext >&5
23410
John Criswell47fdd832003-07-14 16:52:07 +000023411ac_cv_func_shl_load=no
23412fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023413rm -f conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023415fi
23416echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23417echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23418if test $ac_cv_func_shl_load = yes; then
23419 lt_cv_dlopen="shl_load"
23420else
23421 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23422echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23423if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23425else
23426 ac_check_lib_save_LIBS=$LIBS
23427LIBS="-ldld $LIBS"
23428cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023429/* confdefs.h. */
23430_ACEOF
23431cat confdefs.h >>conftest.$ac_ext
23432cat >>conftest.$ac_ext <<_ACEOF
23433/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023434
23435/* Override any gcc2 internal prototype to avoid an error. */
23436#ifdef __cplusplus
23437extern "C"
23438#endif
23439/* We use char because int might match the return type of a gcc2
23440 builtin and then its argument prototype would still apply. */
23441char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023442int
23443main ()
23444{
23445shl_load ();
23446 ;
23447 return 0;
23448}
23449_ACEOF
23450rm -f conftest.$ac_objext conftest$ac_exeext
23451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023452 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454 grep -v '^ *+' conftest.er1 >conftest.err
23455 rm -f conftest.er1
23456 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023459 { ac_try='test -z "$ac_c_werror_flag"
23460 || test ! -s conftest.err'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; } &&
23466 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23469 ac_status=$?
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23472 ac_cv_lib_dld_shl_load=yes
23473else
23474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023475sed 's/^/| /' conftest.$ac_ext >&5
23476
John Criswell47fdd832003-07-14 16:52:07 +000023477ac_cv_lib_dld_shl_load=no
23478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023479rm -f conftest.err conftest.$ac_objext \
23480 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023481LIBS=$ac_check_lib_save_LIBS
23482fi
23483echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23484echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23485if test $ac_cv_lib_dld_shl_load = yes; then
23486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23487else
23488 echo "$as_me:$LINENO: checking for dlopen" >&5
23489echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23490if test "${ac_cv_func_dlopen+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492else
23493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023494/* confdefs.h. */
23495_ACEOF
23496cat confdefs.h >>conftest.$ac_ext
23497cat >>conftest.$ac_ext <<_ACEOF
23498/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023499/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23501#define dlopen innocuous_dlopen
23502
John Criswell47fdd832003-07-14 16:52:07 +000023503/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023504 which can conflict with char dlopen (); below.
23505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023507
John Criswell0c38eaf2003-09-10 15:17:25 +000023508#ifdef __STDC__
23509# include <limits.h>
23510#else
23511# include <assert.h>
23512#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023513
23514#undef dlopen
23515
John Criswell47fdd832003-07-14 16:52:07 +000023516/* Override any gcc2 internal prototype to avoid an error. */
23517#ifdef __cplusplus
23518extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023519{
John Criswell47fdd832003-07-14 16:52:07 +000023520#endif
23521/* We use char because int might match the return type of a gcc2
23522 builtin and then its argument prototype would still apply. */
23523char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023524/* The GNU C library defines this for functions which it implements
23525 to always fail with ENOSYS. Some functions are actually named
23526 something starting with __ and the normal name is an alias. */
23527#if defined (__stub_dlopen) || defined (__stub___dlopen)
23528choke me
23529#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023530char (*f) () = dlopen;
23531#endif
23532#ifdef __cplusplus
23533}
John Criswell47fdd832003-07-14 16:52:07 +000023534#endif
23535
John Criswell0c38eaf2003-09-10 15:17:25 +000023536int
23537main ()
23538{
23539return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023540 ;
23541 return 0;
23542}
23543_ACEOF
23544rm -f conftest.$ac_objext conftest$ac_exeext
23545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023546 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023547 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023553 { ac_try='test -z "$ac_c_werror_flag"
23554 || test ! -s conftest.err'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23557 ac_status=$?
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; } &&
23560 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 ac_cv_func_dlopen=yes
23567else
23568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023569sed 's/^/| /' conftest.$ac_ext >&5
23570
John Criswell47fdd832003-07-14 16:52:07 +000023571ac_cv_func_dlopen=no
23572fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573rm -f conftest.err conftest.$ac_objext \
23574 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023575fi
23576echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23577echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23578if test $ac_cv_func_dlopen = yes; then
23579 lt_cv_dlopen="dlopen"
23580else
23581 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23582echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23583if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23585else
23586 ac_check_lib_save_LIBS=$LIBS
23587LIBS="-ldl $LIBS"
23588cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023589/* confdefs.h. */
23590_ACEOF
23591cat confdefs.h >>conftest.$ac_ext
23592cat >>conftest.$ac_ext <<_ACEOF
23593/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023594
23595/* Override any gcc2 internal prototype to avoid an error. */
23596#ifdef __cplusplus
23597extern "C"
23598#endif
23599/* We use char because int might match the return type of a gcc2
23600 builtin and then its argument prototype would still apply. */
23601char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023602int
23603main ()
23604{
23605dlopen ();
23606 ;
23607 return 0;
23608}
23609_ACEOF
23610rm -f conftest.$ac_objext conftest$ac_exeext
23611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023612 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023614 grep -v '^ *+' conftest.er1 >conftest.err
23615 rm -f conftest.er1
23616 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023619 { ac_try='test -z "$ac_c_werror_flag"
23620 || test ! -s conftest.err'
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23623 ac_status=$?
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; } &&
23626 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628 (eval $ac_try) 2>&5
23629 ac_status=$?
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; }; then
23632 ac_cv_lib_dl_dlopen=yes
23633else
23634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023635sed 's/^/| /' conftest.$ac_ext >&5
23636
John Criswell47fdd832003-07-14 16:52:07 +000023637ac_cv_lib_dl_dlopen=no
23638fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023639rm -f conftest.err conftest.$ac_objext \
23640 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023641LIBS=$ac_check_lib_save_LIBS
23642fi
23643echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23645if test $ac_cv_lib_dl_dlopen = yes; then
23646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23647else
23648 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23649echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23650if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23652else
23653 ac_check_lib_save_LIBS=$LIBS
23654LIBS="-lsvld $LIBS"
23655cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023656/* confdefs.h. */
23657_ACEOF
23658cat confdefs.h >>conftest.$ac_ext
23659cat >>conftest.$ac_ext <<_ACEOF
23660/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023661
23662/* Override any gcc2 internal prototype to avoid an error. */
23663#ifdef __cplusplus
23664extern "C"
23665#endif
23666/* We use char because int might match the return type of a gcc2
23667 builtin and then its argument prototype would still apply. */
23668char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023669int
23670main ()
23671{
23672dlopen ();
23673 ;
23674 return 0;
23675}
23676_ACEOF
23677rm -f conftest.$ac_objext conftest$ac_exeext
23678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023679 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023686 { ac_try='test -z "$ac_c_werror_flag"
23687 || test ! -s conftest.err'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23696 ac_status=$?
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ac_cv_lib_svld_dlopen=yes
23700else
23701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023702sed 's/^/| /' conftest.$ac_ext >&5
23703
John Criswell47fdd832003-07-14 16:52:07 +000023704ac_cv_lib_svld_dlopen=no
23705fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023706rm -f conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023708LIBS=$ac_check_lib_save_LIBS
23709fi
23710echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23711echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23712if test $ac_cv_lib_svld_dlopen = yes; then
23713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23714else
23715 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23716echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23717if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23719else
23720 ac_check_lib_save_LIBS=$LIBS
23721LIBS="-ldld $LIBS"
23722cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023723/* confdefs.h. */
23724_ACEOF
23725cat confdefs.h >>conftest.$ac_ext
23726cat >>conftest.$ac_ext <<_ACEOF
23727/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023728
23729/* Override any gcc2 internal prototype to avoid an error. */
23730#ifdef __cplusplus
23731extern "C"
23732#endif
23733/* We use char because int might match the return type of a gcc2
23734 builtin and then its argument prototype would still apply. */
23735char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023736int
23737main ()
23738{
23739dld_link ();
23740 ;
23741 return 0;
23742}
23743_ACEOF
23744rm -f conftest.$ac_objext conftest$ac_exeext
23745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023746 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023747 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023748 grep -v '^ *+' conftest.er1 >conftest.err
23749 rm -f conftest.er1
23750 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023753 { ac_try='test -z "$ac_c_werror_flag"
23754 || test ! -s conftest.err'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 ac_cv_lib_dld_dld_link=yes
23767else
23768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023769sed 's/^/| /' conftest.$ac_ext >&5
23770
John Criswell47fdd832003-07-14 16:52:07 +000023771ac_cv_lib_dld_dld_link=no
23772fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023773rm -f conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023775LIBS=$ac_check_lib_save_LIBS
23776fi
23777echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23778echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23779if test $ac_cv_lib_dld_dld_link = yes; then
23780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23781fi
23782
23783
23784fi
23785
23786
23787fi
23788
23789
23790fi
23791
23792
23793fi
23794
23795
23796fi
23797
23798 ;;
23799 esac
23800
23801 if test "x$lt_cv_dlopen" != xno; then
23802 enable_dlopen=yes
23803 else
23804 enable_dlopen=no
23805 fi
23806
23807 case $lt_cv_dlopen in
23808 dlopen)
23809 save_CPPFLAGS="$CPPFLAGS"
23810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23811
23812 save_LDFLAGS="$LDFLAGS"
23813 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23814
23815 save_LIBS="$LIBS"
23816 LIBS="$lt_cv_dlopen_libs $LIBS"
23817
23818 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23819echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23820if test "${lt_cv_dlopen_self+set}" = set; then
23821 echo $ECHO_N "(cached) $ECHO_C" >&6
23822else
23823 if test "$cross_compiling" = yes; then :
23824 lt_cv_dlopen_self=cross
23825else
23826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23827 lt_status=$lt_dlunknown
23828 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000023829#line 23813 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023830#include "confdefs.h"
23831
23832#if HAVE_DLFCN_H
23833#include <dlfcn.h>
23834#endif
23835
23836#include <stdio.h>
23837
23838#ifdef RTLD_GLOBAL
23839# define LT_DLGLOBAL RTLD_GLOBAL
23840#else
23841# ifdef DL_GLOBAL
23842# define LT_DLGLOBAL DL_GLOBAL
23843# else
23844# define LT_DLGLOBAL 0
23845# endif
23846#endif
23847
23848/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23849 find out it does not work in some platform. */
23850#ifndef LT_DLLAZY_OR_NOW
23851# ifdef RTLD_LAZY
23852# define LT_DLLAZY_OR_NOW RTLD_LAZY
23853# else
23854# ifdef DL_LAZY
23855# define LT_DLLAZY_OR_NOW DL_LAZY
23856# else
23857# ifdef RTLD_NOW
23858# define LT_DLLAZY_OR_NOW RTLD_NOW
23859# else
23860# ifdef DL_NOW
23861# define LT_DLLAZY_OR_NOW DL_NOW
23862# else
23863# define LT_DLLAZY_OR_NOW 0
23864# endif
23865# endif
23866# endif
23867# endif
23868#endif
23869
23870#ifdef __cplusplus
23871extern "C" void exit (int);
23872#endif
23873
23874void fnord() { int i=42;}
23875int main ()
23876{
23877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23878 int status = $lt_dlunknown;
23879
23880 if (self)
23881 {
23882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23884 /* dlclose (self); */
23885 }
23886
23887 exit (status);
23888}
23889EOF
23890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23891 (eval $ac_link) 2>&5
23892 ac_status=$?
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23895 (./conftest; exit; ) 2>/dev/null
23896 lt_status=$?
23897 case x$lt_status in
23898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23900 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23901 esac
23902 else :
23903 # compilation failed
23904 lt_cv_dlopen_self=no
23905 fi
23906fi
23907rm -fr conftest*
23908
23909
23910fi
23911echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23912echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23913
23914 if test "x$lt_cv_dlopen_self" = xyes; then
23915 LDFLAGS="$LDFLAGS $link_static_flag"
23916 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23917echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23918if test "${lt_cv_dlopen_self_static+set}" = set; then
23919 echo $ECHO_N "(cached) $ECHO_C" >&6
23920else
23921 if test "$cross_compiling" = yes; then :
23922 lt_cv_dlopen_self_static=cross
23923else
23924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23925 lt_status=$lt_dlunknown
23926 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000023927#line 23911 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023928#include "confdefs.h"
23929
23930#if HAVE_DLFCN_H
23931#include <dlfcn.h>
23932#endif
23933
23934#include <stdio.h>
23935
23936#ifdef RTLD_GLOBAL
23937# define LT_DLGLOBAL RTLD_GLOBAL
23938#else
23939# ifdef DL_GLOBAL
23940# define LT_DLGLOBAL DL_GLOBAL
23941# else
23942# define LT_DLGLOBAL 0
23943# endif
23944#endif
23945
23946/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23947 find out it does not work in some platform. */
23948#ifndef LT_DLLAZY_OR_NOW
23949# ifdef RTLD_LAZY
23950# define LT_DLLAZY_OR_NOW RTLD_LAZY
23951# else
23952# ifdef DL_LAZY
23953# define LT_DLLAZY_OR_NOW DL_LAZY
23954# else
23955# ifdef RTLD_NOW
23956# define LT_DLLAZY_OR_NOW RTLD_NOW
23957# else
23958# ifdef DL_NOW
23959# define LT_DLLAZY_OR_NOW DL_NOW
23960# else
23961# define LT_DLLAZY_OR_NOW 0
23962# endif
23963# endif
23964# endif
23965# endif
23966#endif
23967
23968#ifdef __cplusplus
23969extern "C" void exit (int);
23970#endif
23971
23972void fnord() { int i=42;}
23973int main ()
23974{
23975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23976 int status = $lt_dlunknown;
23977
23978 if (self)
23979 {
23980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23981 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23982 /* dlclose (self); */
23983 }
23984
23985 exit (status);
23986}
23987EOF
23988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23989 (eval $ac_link) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23993 (./conftest; exit; ) 2>/dev/null
23994 lt_status=$?
23995 case x$lt_status in
23996 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23997 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23998 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23999 esac
24000 else :
24001 # compilation failed
24002 lt_cv_dlopen_self_static=no
24003 fi
24004fi
24005rm -fr conftest*
24006
24007
24008fi
24009echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24010echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24011 fi
24012
24013 CPPFLAGS="$save_CPPFLAGS"
24014 LDFLAGS="$save_LDFLAGS"
24015 LIBS="$save_LIBS"
24016 ;;
24017 esac
24018
24019 case $lt_cv_dlopen_self in
24020 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24021 *) enable_dlopen_self=unknown ;;
24022 esac
24023
24024 case $lt_cv_dlopen_self_static in
24025 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24026 *) enable_dlopen_self_static=unknown ;;
24027 esac
24028fi
24029
24030
24031# The else clause should only fire when bootstrapping the
24032# libtool distribution, otherwise you forgot to ship ltmain.sh
24033# with your package, and you will get complaints that there are
24034# no rules to generate ltmain.sh.
24035if test -f "$ltmain"; then
24036 # See if we are running on zsh, and set the options which allow our commands through
24037 # without removal of \ escapes.
24038 if test -n "${ZSH_VERSION+set}" ; then
24039 setopt NO_GLOB_SUBST
24040 fi
24041 # Now quote all the things that may contain metacharacters while being
24042 # careful not to overquote the AC_SUBSTed values. We take copies of the
24043 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024044 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24045 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024046 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24047 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24048 deplibs_check_method reload_flag reload_cmds need_locks \
24049 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24050 lt_cv_sys_global_symbol_to_c_name_address \
24051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24052 old_postinstall_cmds old_postuninstall_cmds \
24053 compiler_GCJ \
24054 CC_GCJ \
24055 LD_GCJ \
24056 lt_prog_compiler_wl_GCJ \
24057 lt_prog_compiler_pic_GCJ \
24058 lt_prog_compiler_static_GCJ \
24059 lt_prog_compiler_no_builtin_flag_GCJ \
24060 export_dynamic_flag_spec_GCJ \
24061 thread_safe_flag_spec_GCJ \
24062 whole_archive_flag_spec_GCJ \
24063 enable_shared_with_static_runtimes_GCJ \
24064 old_archive_cmds_GCJ \
24065 old_archive_from_new_cmds_GCJ \
24066 predep_objects_GCJ \
24067 postdep_objects_GCJ \
24068 predeps_GCJ \
24069 postdeps_GCJ \
24070 compiler_lib_search_path_GCJ \
24071 archive_cmds_GCJ \
24072 archive_expsym_cmds_GCJ \
24073 postinstall_cmds_GCJ \
24074 postuninstall_cmds_GCJ \
24075 old_archive_from_expsyms_cmds_GCJ \
24076 allow_undefined_flag_GCJ \
24077 no_undefined_flag_GCJ \
24078 export_symbols_cmds_GCJ \
24079 hardcode_libdir_flag_spec_GCJ \
24080 hardcode_libdir_flag_spec_ld_GCJ \
24081 hardcode_libdir_separator_GCJ \
24082 hardcode_automatic_GCJ \
24083 module_cmds_GCJ \
24084 module_expsym_cmds_GCJ \
24085 lt_cv_prog_compiler_c_o_GCJ \
24086 exclude_expsyms_GCJ \
24087 include_expsyms_GCJ; do
24088
24089 case $var in
24090 old_archive_cmds_GCJ | \
24091 old_archive_from_new_cmds_GCJ | \
24092 archive_cmds_GCJ | \
24093 archive_expsym_cmds_GCJ | \
24094 module_cmds_GCJ | \
24095 module_expsym_cmds_GCJ | \
24096 old_archive_from_expsyms_cmds_GCJ | \
24097 export_symbols_cmds_GCJ | \
24098 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24099 postinstall_cmds | postuninstall_cmds | \
24100 old_postinstall_cmds | old_postuninstall_cmds | \
24101 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24102 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024103 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 +000024104 ;;
24105 *)
24106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24107 ;;
24108 esac
24109 done
24110
24111 case $lt_echo in
24112 *'\$0 --fallback-echo"')
24113 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24114 ;;
24115 esac
24116
24117cfgfile="$ofile"
24118
24119 cat <<__EOF__ >> "$cfgfile"
24120# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24121
24122# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24123
24124# Shell to use when invoking shell scripts.
24125SHELL=$lt_SHELL
24126
24127# Whether or not to build shared libraries.
24128build_libtool_libs=$enable_shared
24129
24130# Whether or not to build static libraries.
24131build_old_libs=$enable_static
24132
24133# Whether or not to add -lc for building shared libraries.
24134build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24135
24136# Whether or not to disallow shared libs when runtime libs are static
24137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24138
24139# Whether or not to optimize for fast installation.
24140fast_install=$enable_fast_install
24141
24142# The host system.
24143host_alias=$host_alias
24144host=$host
24145
24146# An echo program that does not interpret backslashes.
24147echo=$lt_echo
24148
24149# The archiver.
24150AR=$lt_AR
24151AR_FLAGS=$lt_AR_FLAGS
24152
24153# A C compiler.
24154LTCC=$lt_LTCC
24155
24156# A language-specific compiler.
24157CC=$lt_compiler_GCJ
24158
24159# Is the compiler the GNU C compiler?
24160with_gcc=$GCC_GCJ
24161
24162# An ERE matcher.
24163EGREP=$lt_EGREP
24164
24165# The linker used to build libraries.
24166LD=$lt_LD_GCJ
24167
24168# Whether we need hard or soft links.
24169LN_S=$lt_LN_S
24170
24171# A BSD-compatible nm program.
24172NM=$lt_NM
24173
24174# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024175STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024176
24177# Used to examine libraries when file_magic_cmd begins "file"
24178MAGIC_CMD=$MAGIC_CMD
24179
24180# Used on cygwin: DLL creation program.
24181DLLTOOL="$DLLTOOL"
24182
24183# Used on cygwin: object dumper.
24184OBJDUMP="$OBJDUMP"
24185
24186# Used on cygwin: assembler.
24187AS="$AS"
24188
24189# The name of the directory that contains temporary libtool files.
24190objdir=$objdir
24191
24192# How to create reloadable object files.
24193reload_flag=$lt_reload_flag
24194reload_cmds=$lt_reload_cmds
24195
24196# How to pass a linker flag through the compiler.
24197wl=$lt_lt_prog_compiler_wl_GCJ
24198
24199# Object file suffix (normally "o").
24200objext="$ac_objext"
24201
24202# Old archive suffix (normally "a").
24203libext="$libext"
24204
24205# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024206shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024207
24208# Executable file suffix (normally "").
24209exeext="$exeext"
24210
24211# Additional compiler flags for building library objects.
24212pic_flag=$lt_lt_prog_compiler_pic_GCJ
24213pic_mode=$pic_mode
24214
24215# What is the maximum length of a command?
24216max_cmd_len=$lt_cv_sys_max_cmd_len
24217
24218# Does compiler simultaneously support -c and -o options?
24219compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24220
24221# Must we lock files when doing compilation ?
24222need_locks=$lt_need_locks
24223
24224# Do we need the lib prefix for modules?
24225need_lib_prefix=$need_lib_prefix
24226
24227# Do we need a version for libraries?
24228need_version=$need_version
24229
24230# Whether dlopen is supported.
24231dlopen_support=$enable_dlopen
24232
24233# Whether dlopen of programs is supported.
24234dlopen_self=$enable_dlopen_self
24235
24236# Whether dlopen of statically linked programs is supported.
24237dlopen_self_static=$enable_dlopen_self_static
24238
24239# Compiler flag to prevent dynamic linking.
24240link_static_flag=$lt_lt_prog_compiler_static_GCJ
24241
24242# Compiler flag to turn off builtin functions.
24243no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24244
24245# Compiler flag to allow reflexive dlopens.
24246export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24247
24248# Compiler flag to generate shared objects directly from archives.
24249whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24250
24251# Compiler flag to generate thread-safe objects.
24252thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24253
24254# Library versioning type.
24255version_type=$version_type
24256
24257# Format of library name prefix.
24258libname_spec=$lt_libname_spec
24259
24260# List of archive names. First name is the real one, the rest are links.
24261# The last name is the one that the linker finds with -lNAME.
24262library_names_spec=$lt_library_names_spec
24263
24264# The coded name of the library, if different from the real name.
24265soname_spec=$lt_soname_spec
24266
24267# Commands used to build and install an old-style archive.
24268RANLIB=$lt_RANLIB
24269old_archive_cmds=$lt_old_archive_cmds_GCJ
24270old_postinstall_cmds=$lt_old_postinstall_cmds
24271old_postuninstall_cmds=$lt_old_postuninstall_cmds
24272
24273# Create an old-style archive from a shared archive.
24274old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24275
24276# Create a temporary old-style archive to link instead of a shared archive.
24277old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24278
24279# Commands used to build and install a shared archive.
24280archive_cmds=$lt_archive_cmds_GCJ
24281archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24282postinstall_cmds=$lt_postinstall_cmds
24283postuninstall_cmds=$lt_postuninstall_cmds
24284
24285# Commands used to build a loadable module (assumed same as above if empty)
24286module_cmds=$lt_module_cmds_GCJ
24287module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24288
24289# Commands to strip libraries.
24290old_striplib=$lt_old_striplib
24291striplib=$lt_striplib
24292
24293# Dependencies to place before the objects being linked to create a
24294# shared library.
24295predep_objects=$lt_predep_objects_GCJ
24296
24297# Dependencies to place after the objects being linked to create a
24298# shared library.
24299postdep_objects=$lt_postdep_objects_GCJ
24300
24301# Dependencies to place before the objects being linked to create a
24302# shared library.
24303predeps=$lt_predeps_GCJ
24304
24305# Dependencies to place after the objects being linked to create a
24306# shared library.
24307postdeps=$lt_postdeps_GCJ
24308
24309# The library search path used internally by the compiler when linking
24310# a shared library.
24311compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24312
24313# Method to check whether dependent libraries are shared objects.
24314deplibs_check_method=$lt_deplibs_check_method
24315
24316# Command to use when deplibs_check_method == file_magic.
24317file_magic_cmd=$lt_file_magic_cmd
24318
24319# Flag that allows shared libraries with undefined symbols to be built.
24320allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24321
24322# Flag that forces no undefined symbols.
24323no_undefined_flag=$lt_no_undefined_flag_GCJ
24324
24325# Commands used to finish a libtool library installation in a directory.
24326finish_cmds=$lt_finish_cmds
24327
24328# Same as above, but a single script fragment to be evaled but not shown.
24329finish_eval=$lt_finish_eval
24330
24331# Take the output of nm and produce a listing of raw symbols and C names.
24332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24333
24334# Transform the output of nm in a proper C declaration
24335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24336
24337# Transform the output of nm in a C name address pair
24338global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24339
24340# This is the shared library runtime path variable.
24341runpath_var=$runpath_var
24342
24343# This is the shared library path variable.
24344shlibpath_var=$shlibpath_var
24345
24346# Is shlibpath searched before the hard-coded library search path?
24347shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24348
24349# How to hardcode a shared library path into an executable.
24350hardcode_action=$hardcode_action_GCJ
24351
24352# Whether we should hardcode library paths into libraries.
24353hardcode_into_libs=$hardcode_into_libs
24354
24355# Flag to hardcode \$libdir into a binary during linking.
24356# This must work even if \$libdir does not exist.
24357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24358
24359# If ld is used when linking, flag to hardcode \$libdir into
24360# a binary during linking. This must work even if \$libdir does
24361# not exist.
24362hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24363
24364# Whether we need a single -rpath flag with a separated argument.
24365hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24366
24367# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24368# resulting binary.
24369hardcode_direct=$hardcode_direct_GCJ
24370
24371# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24372# resulting binary.
24373hardcode_minus_L=$hardcode_minus_L_GCJ
24374
24375# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24376# the resulting binary.
24377hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24378
24379# Set to yes if building a shared library automatically hardcodes DIR into the library
24380# and all subsequent libraries and executables linked against it.
24381hardcode_automatic=$hardcode_automatic_GCJ
24382
24383# Variables whose values should be saved in libtool wrapper scripts and
24384# restored at relink time.
24385variables_saved_for_relink="$variables_saved_for_relink"
24386
24387# Whether libtool must link a program against all its dependency libraries.
24388link_all_deplibs=$link_all_deplibs_GCJ
24389
24390# Compile-time system search path for libraries
24391sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24392
24393# Run-time system search path for libraries
24394sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24395
24396# Fix the shell variable \$srcfile for the compiler.
24397fix_srcfile_path="$fix_srcfile_path_GCJ"
24398
24399# Set to yes if exported symbols are required.
24400always_export_symbols=$always_export_symbols_GCJ
24401
24402# The commands to list exported symbols.
24403export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24404
24405# The commands to extract the exported symbol list from a shared archive.
24406extract_expsyms_cmds=$lt_extract_expsyms_cmds
24407
24408# Symbols that should not be listed in the preloaded symbols.
24409exclude_expsyms=$lt_exclude_expsyms_GCJ
24410
24411# Symbols that must always be exported.
24412include_expsyms=$lt_include_expsyms_GCJ
24413
24414# ### END LIBTOOL TAG CONFIG: $tagname
24415
24416__EOF__
24417
24418
24419else
24420 # If there is no Makefile yet, we rely on a make rule to execute
24421 # `config.status --recheck' to rerun these tests and create the
24422 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024423 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24424 if test -f "$ltmain_in"; then
24425 test -f Makefile && make "$ltmain"
24426 fi
John Criswell47fdd832003-07-14 16:52:07 +000024427fi
24428
24429
24430ac_ext=c
24431ac_cpp='$CPP $CPPFLAGS'
24432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24434ac_compiler_gnu=$ac_cv_c_compiler_gnu
24435
24436CC="$lt_save_CC"
24437
24438 else
24439 tagname=""
24440 fi
24441 ;;
24442
24443 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024444 ac_ext=c
24445ac_cpp='$CPP $CPPFLAGS'
24446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024449
24450
24451# Source file extension for RC test sources.
24452ac_ext=rc
24453
24454# Object file extension for compiled RC test sources.
24455objext=o
24456objext_RC=$objext
24457
24458# Code to be used in simple compile tests
24459lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24460
24461# Code to be used in simple link tests
24462lt_simple_link_test_code="$lt_simple_compile_test_code"
24463
24464# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24465
24466# If no C compiler was specified, use CC.
24467LTCC=${LTCC-"$CC"}
24468
24469# Allow CC to be a program name with arguments.
24470compiler=$CC
24471
24472
24473# Allow CC to be a program name with arguments.
24474lt_save_CC="$CC"
24475CC=${RC-"windres"}
24476compiler=$CC
24477compiler_RC=$CC
24478lt_cv_prog_compiler_c_o_RC=yes
24479
24480# The else clause should only fire when bootstrapping the
24481# libtool distribution, otherwise you forgot to ship ltmain.sh
24482# with your package, and you will get complaints that there are
24483# no rules to generate ltmain.sh.
24484if test -f "$ltmain"; then
24485 # See if we are running on zsh, and set the options which allow our commands through
24486 # without removal of \ escapes.
24487 if test -n "${ZSH_VERSION+set}" ; then
24488 setopt NO_GLOB_SUBST
24489 fi
24490 # Now quote all the things that may contain metacharacters while being
24491 # careful not to overquote the AC_SUBSTed values. We take copies of the
24492 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24494 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24497 deplibs_check_method reload_flag reload_cmds need_locks \
24498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24499 lt_cv_sys_global_symbol_to_c_name_address \
24500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24501 old_postinstall_cmds old_postuninstall_cmds \
24502 compiler_RC \
24503 CC_RC \
24504 LD_RC \
24505 lt_prog_compiler_wl_RC \
24506 lt_prog_compiler_pic_RC \
24507 lt_prog_compiler_static_RC \
24508 lt_prog_compiler_no_builtin_flag_RC \
24509 export_dynamic_flag_spec_RC \
24510 thread_safe_flag_spec_RC \
24511 whole_archive_flag_spec_RC \
24512 enable_shared_with_static_runtimes_RC \
24513 old_archive_cmds_RC \
24514 old_archive_from_new_cmds_RC \
24515 predep_objects_RC \
24516 postdep_objects_RC \
24517 predeps_RC \
24518 postdeps_RC \
24519 compiler_lib_search_path_RC \
24520 archive_cmds_RC \
24521 archive_expsym_cmds_RC \
24522 postinstall_cmds_RC \
24523 postuninstall_cmds_RC \
24524 old_archive_from_expsyms_cmds_RC \
24525 allow_undefined_flag_RC \
24526 no_undefined_flag_RC \
24527 export_symbols_cmds_RC \
24528 hardcode_libdir_flag_spec_RC \
24529 hardcode_libdir_flag_spec_ld_RC \
24530 hardcode_libdir_separator_RC \
24531 hardcode_automatic_RC \
24532 module_cmds_RC \
24533 module_expsym_cmds_RC \
24534 lt_cv_prog_compiler_c_o_RC \
24535 exclude_expsyms_RC \
24536 include_expsyms_RC; do
24537
24538 case $var in
24539 old_archive_cmds_RC | \
24540 old_archive_from_new_cmds_RC | \
24541 archive_cmds_RC | \
24542 archive_expsym_cmds_RC | \
24543 module_cmds_RC | \
24544 module_expsym_cmds_RC | \
24545 old_archive_from_expsyms_cmds_RC | \
24546 export_symbols_cmds_RC | \
24547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24548 postinstall_cmds | postuninstall_cmds | \
24549 old_postinstall_cmds | old_postuninstall_cmds | \
24550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24551 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024552 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 +000024553 ;;
24554 *)
24555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24556 ;;
24557 esac
24558 done
24559
24560 case $lt_echo in
24561 *'\$0 --fallback-echo"')
24562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24563 ;;
24564 esac
24565
24566cfgfile="$ofile"
24567
24568 cat <<__EOF__ >> "$cfgfile"
24569# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24570
24571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24572
24573# Shell to use when invoking shell scripts.
24574SHELL=$lt_SHELL
24575
24576# Whether or not to build shared libraries.
24577build_libtool_libs=$enable_shared
24578
24579# Whether or not to build static libraries.
24580build_old_libs=$enable_static
24581
24582# Whether or not to add -lc for building shared libraries.
24583build_libtool_need_lc=$archive_cmds_need_lc_RC
24584
24585# Whether or not to disallow shared libs when runtime libs are static
24586allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24587
24588# Whether or not to optimize for fast installation.
24589fast_install=$enable_fast_install
24590
24591# The host system.
24592host_alias=$host_alias
24593host=$host
24594
24595# An echo program that does not interpret backslashes.
24596echo=$lt_echo
24597
24598# The archiver.
24599AR=$lt_AR
24600AR_FLAGS=$lt_AR_FLAGS
24601
24602# A C compiler.
24603LTCC=$lt_LTCC
24604
24605# A language-specific compiler.
24606CC=$lt_compiler_RC
24607
24608# Is the compiler the GNU C compiler?
24609with_gcc=$GCC_RC
24610
24611# An ERE matcher.
24612EGREP=$lt_EGREP
24613
24614# The linker used to build libraries.
24615LD=$lt_LD_RC
24616
24617# Whether we need hard or soft links.
24618LN_S=$lt_LN_S
24619
24620# A BSD-compatible nm program.
24621NM=$lt_NM
24622
24623# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024624STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024625
24626# Used to examine libraries when file_magic_cmd begins "file"
24627MAGIC_CMD=$MAGIC_CMD
24628
24629# Used on cygwin: DLL creation program.
24630DLLTOOL="$DLLTOOL"
24631
24632# Used on cygwin: object dumper.
24633OBJDUMP="$OBJDUMP"
24634
24635# Used on cygwin: assembler.
24636AS="$AS"
24637
24638# The name of the directory that contains temporary libtool files.
24639objdir=$objdir
24640
24641# How to create reloadable object files.
24642reload_flag=$lt_reload_flag
24643reload_cmds=$lt_reload_cmds
24644
24645# How to pass a linker flag through the compiler.
24646wl=$lt_lt_prog_compiler_wl_RC
24647
24648# Object file suffix (normally "o").
24649objext="$ac_objext"
24650
24651# Old archive suffix (normally "a").
24652libext="$libext"
24653
24654# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024655shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024656
24657# Executable file suffix (normally "").
24658exeext="$exeext"
24659
24660# Additional compiler flags for building library objects.
24661pic_flag=$lt_lt_prog_compiler_pic_RC
24662pic_mode=$pic_mode
24663
24664# What is the maximum length of a command?
24665max_cmd_len=$lt_cv_sys_max_cmd_len
24666
24667# Does compiler simultaneously support -c and -o options?
24668compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24669
24670# Must we lock files when doing compilation ?
24671need_locks=$lt_need_locks
24672
24673# Do we need the lib prefix for modules?
24674need_lib_prefix=$need_lib_prefix
24675
24676# Do we need a version for libraries?
24677need_version=$need_version
24678
24679# Whether dlopen is supported.
24680dlopen_support=$enable_dlopen
24681
24682# Whether dlopen of programs is supported.
24683dlopen_self=$enable_dlopen_self
24684
24685# Whether dlopen of statically linked programs is supported.
24686dlopen_self_static=$enable_dlopen_self_static
24687
24688# Compiler flag to prevent dynamic linking.
24689link_static_flag=$lt_lt_prog_compiler_static_RC
24690
24691# Compiler flag to turn off builtin functions.
24692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24693
24694# Compiler flag to allow reflexive dlopens.
24695export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24696
24697# Compiler flag to generate shared objects directly from archives.
24698whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24699
24700# Compiler flag to generate thread-safe objects.
24701thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24702
24703# Library versioning type.
24704version_type=$version_type
24705
24706# Format of library name prefix.
24707libname_spec=$lt_libname_spec
24708
24709# List of archive names. First name is the real one, the rest are links.
24710# The last name is the one that the linker finds with -lNAME.
24711library_names_spec=$lt_library_names_spec
24712
24713# The coded name of the library, if different from the real name.
24714soname_spec=$lt_soname_spec
24715
24716# Commands used to build and install an old-style archive.
24717RANLIB=$lt_RANLIB
24718old_archive_cmds=$lt_old_archive_cmds_RC
24719old_postinstall_cmds=$lt_old_postinstall_cmds
24720old_postuninstall_cmds=$lt_old_postuninstall_cmds
24721
24722# Create an old-style archive from a shared archive.
24723old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24724
24725# Create a temporary old-style archive to link instead of a shared archive.
24726old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24727
24728# Commands used to build and install a shared archive.
24729archive_cmds=$lt_archive_cmds_RC
24730archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24731postinstall_cmds=$lt_postinstall_cmds
24732postuninstall_cmds=$lt_postuninstall_cmds
24733
24734# Commands used to build a loadable module (assumed same as above if empty)
24735module_cmds=$lt_module_cmds_RC
24736module_expsym_cmds=$lt_module_expsym_cmds_RC
24737
24738# Commands to strip libraries.
24739old_striplib=$lt_old_striplib
24740striplib=$lt_striplib
24741
24742# Dependencies to place before the objects being linked to create a
24743# shared library.
24744predep_objects=$lt_predep_objects_RC
24745
24746# Dependencies to place after the objects being linked to create a
24747# shared library.
24748postdep_objects=$lt_postdep_objects_RC
24749
24750# Dependencies to place before the objects being linked to create a
24751# shared library.
24752predeps=$lt_predeps_RC
24753
24754# Dependencies to place after the objects being linked to create a
24755# shared library.
24756postdeps=$lt_postdeps_RC
24757
24758# The library search path used internally by the compiler when linking
24759# a shared library.
24760compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24761
24762# Method to check whether dependent libraries are shared objects.
24763deplibs_check_method=$lt_deplibs_check_method
24764
24765# Command to use when deplibs_check_method == file_magic.
24766file_magic_cmd=$lt_file_magic_cmd
24767
24768# Flag that allows shared libraries with undefined symbols to be built.
24769allow_undefined_flag=$lt_allow_undefined_flag_RC
24770
24771# Flag that forces no undefined symbols.
24772no_undefined_flag=$lt_no_undefined_flag_RC
24773
24774# Commands used to finish a libtool library installation in a directory.
24775finish_cmds=$lt_finish_cmds
24776
24777# Same as above, but a single script fragment to be evaled but not shown.
24778finish_eval=$lt_finish_eval
24779
24780# Take the output of nm and produce a listing of raw symbols and C names.
24781global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24782
24783# Transform the output of nm in a proper C declaration
24784global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24785
24786# Transform the output of nm in a C name address pair
24787global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24788
24789# This is the shared library runtime path variable.
24790runpath_var=$runpath_var
24791
24792# This is the shared library path variable.
24793shlibpath_var=$shlibpath_var
24794
24795# Is shlibpath searched before the hard-coded library search path?
24796shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24797
24798# How to hardcode a shared library path into an executable.
24799hardcode_action=$hardcode_action_RC
24800
24801# Whether we should hardcode library paths into libraries.
24802hardcode_into_libs=$hardcode_into_libs
24803
24804# Flag to hardcode \$libdir into a binary during linking.
24805# This must work even if \$libdir does not exist.
24806hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24807
24808# If ld is used when linking, flag to hardcode \$libdir into
24809# a binary during linking. This must work even if \$libdir does
24810# not exist.
24811hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24812
24813# Whether we need a single -rpath flag with a separated argument.
24814hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24815
24816# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24817# resulting binary.
24818hardcode_direct=$hardcode_direct_RC
24819
24820# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24821# resulting binary.
24822hardcode_minus_L=$hardcode_minus_L_RC
24823
24824# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24825# the resulting binary.
24826hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24827
24828# Set to yes if building a shared library automatically hardcodes DIR into the library
24829# and all subsequent libraries and executables linked against it.
24830hardcode_automatic=$hardcode_automatic_RC
24831
24832# Variables whose values should be saved in libtool wrapper scripts and
24833# restored at relink time.
24834variables_saved_for_relink="$variables_saved_for_relink"
24835
24836# Whether libtool must link a program against all its dependency libraries.
24837link_all_deplibs=$link_all_deplibs_RC
24838
24839# Compile-time system search path for libraries
24840sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24841
24842# Run-time system search path for libraries
24843sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24844
24845# Fix the shell variable \$srcfile for the compiler.
24846fix_srcfile_path="$fix_srcfile_path_RC"
24847
24848# Set to yes if exported symbols are required.
24849always_export_symbols=$always_export_symbols_RC
24850
24851# The commands to list exported symbols.
24852export_symbols_cmds=$lt_export_symbols_cmds_RC
24853
24854# The commands to extract the exported symbol list from a shared archive.
24855extract_expsyms_cmds=$lt_extract_expsyms_cmds
24856
24857# Symbols that should not be listed in the preloaded symbols.
24858exclude_expsyms=$lt_exclude_expsyms_RC
24859
24860# Symbols that must always be exported.
24861include_expsyms=$lt_include_expsyms_RC
24862
24863# ### END LIBTOOL TAG CONFIG: $tagname
24864
24865__EOF__
24866
24867
24868else
24869 # If there is no Makefile yet, we rely on a make rule to execute
24870 # `config.status --recheck' to rerun these tests and create the
24871 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024872 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24873 if test -f "$ltmain_in"; then
24874 test -f Makefile && make "$ltmain"
24875 fi
John Criswell47fdd832003-07-14 16:52:07 +000024876fi
24877
24878
24879ac_ext=c
24880ac_cpp='$CPP $CPPFLAGS'
24881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883ac_compiler_gnu=$ac_cv_c_compiler_gnu
24884
24885CC="$lt_save_CC"
24886
24887 ;;
24888
24889 *)
24890 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24891echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24892 { (exit 1); exit 1; }; }
24893 ;;
24894 esac
24895
24896 # Append the new tag name to the list of available tags.
24897 if test -n "$tagname" ; then
24898 available_tags="$available_tags $tagname"
24899 fi
24900 fi
24901 done
24902 IFS="$lt_save_ifs"
24903
24904 # Now substitute the updated list of available tags.
24905 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24906 mv "${ofile}T" "$ofile"
24907 chmod +x "$ofile"
24908 else
24909 rm -f "${ofile}T"
24910 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24911echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24912 { (exit 1); exit 1; }; }
24913 fi
24914fi
John Criswell7a73b802003-06-30 21:59:07 +000024915
24916
24917
24918# This can be used to rebuild libtool when needed
24919LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24920
24921# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024922LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024923
24924# Prevent multiple expansion
24925
24926
24927
John Criswell47fdd832003-07-14 16:52:07 +000024928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024945
Reid Spencer582a23c2004-12-29 07:07:57 +000024946if test "$lt_cv_dlopen_self" = "yes" ; then
24947
24948cat >>confdefs.h <<\_ACEOF
24949#define CAN_DLOPEN_SELF 1
24950_ACEOF
24951
24952fi
24953
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024954etags_version=`$ETAGS --version 2>&1`
24955case "$etags_version" in
24956 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24957 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24958 *) ETAGSFLAGS="" ;;
24959esac
24960ETAGSFLAGS=$ETAGSFLAGS
24961
24962
Reid Spencer7931a782004-12-27 06:15:02 +000024963if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024964 LLVMGCC="llvm-gcc${EXEEXT}"
24965 LLVMGXX="llvm-g++${EXEEXT}"
24966 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24967set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024968echo "$as_me:$LINENO: checking for $ac_word" >&5
24969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24970if test "${ac_cv_path_LLVMGCC+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972else
24973 case $LLVMGCC in
24974 [\\/]* | ?:[\\/]*)
24975 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24976 ;;
24977 *)
24978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24979for as_dir in $PATH
24980do
24981 IFS=$as_save_IFS
24982 test -z "$as_dir" && as_dir=.
24983 for ac_exec_ext in '' $ac_executable_extensions; do
24984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24985 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24987 break 2
24988 fi
24989done
24990done
24991
Reid Spencer59473af2004-12-25 07:31:29 +000024992 ;;
24993esac
24994fi
24995LLVMGCC=$ac_cv_path_LLVMGCC
24996
24997if test -n "$LLVMGCC"; then
24998 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24999echo "${ECHO_T}$LLVMGCC" >&6
25000else
25001 echo "$as_me:$LINENO: result: no" >&5
25002echo "${ECHO_T}no" >&6
25003fi
25004
Reid Spencerc84492c2005-06-02 22:34:49 +000025005 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25006set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000025007echo "$as_me:$LINENO: checking for $ac_word" >&5
25008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25009if test "${ac_cv_path_LLVMGXX+set}" = set; then
25010 echo $ECHO_N "(cached) $ECHO_C" >&6
25011else
25012 case $LLVMGXX in
25013 [\\/]* | ?:[\\/]*)
25014 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25015 ;;
25016 *)
25017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25018for as_dir in $PATH
25019do
25020 IFS=$as_save_IFS
25021 test -z "$as_dir" && as_dir=.
25022 for ac_exec_ext in '' $ac_executable_extensions; do
25023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25024 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25026 break 2
25027 fi
25028done
25029done
25030
Reid Spencer59473af2004-12-25 07:31:29 +000025031 ;;
25032esac
25033fi
25034LLVMGXX=$ac_cv_path_LLVMGXX
25035
25036if test -n "$LLVMGXX"; then
25037 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25038echo "${ECHO_T}$LLVMGXX" >&6
25039else
25040 echo "$as_me:$LINENO: result: no" >&5
25041echo "${ECHO_T}no" >&6
25042fi
25043
25044else
Reid Spencerc84492c2005-06-02 22:34:49 +000025045 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25046 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000025047 LLVMGCC=$LLVMGCC
25048
25049 LLVMGXX=$LLVMGXX
25050
25051fi
25052
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025053echo "$as_me:$LINENO: checking tool compatibility" >&5
25054echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25055
Reid Spencer86901802004-12-08 23:07:27 +000025056ICC=no
25057IXX=no
25058case $CC in
25059 icc*|icpc*)
25060 ICC=yes
25061 IXX=yes
25062 ;;
25063 *)
25064 ;;
25065esac
25066
Duraid Madina937c60a2006-02-15 07:57:42 +000025067if test "$GCC" != "yes" && test "$ICC" != "yes"
25068then
25069 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25070echo "$as_me: error: gcc|icc required but not found" >&2;}
25071 { (exit 1); exit 1; }; }
25072fi
25073
25074if test "$GXX" != "yes" && test "$IXX" != "yes"
25075then
25076 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25077echo "$as_me: error: g++|icc required but not found" >&2;}
25078 { (exit 1); exit 1; }; }
25079fi
25080
Reid Spencer86901802004-12-08 23:07:27 +000025081if test "$GCC" = "yes"
25082then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025083 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025084 if test "$gccmajor" -lt "3"
25085 then
25086 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025087echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25088 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025089 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025090fi
25091
25092if test -z "$llvm_cv_gnu_make_command"
25093then
25094 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25095echo "$as_me: error: GNU Make required but not found" >&2;}
25096 { (exit 1); exit 1; }; }
25097fi
25098
25099echo "$as_me:$LINENO: result: ok" >&5
25100echo "${ECHO_T}ok" >&6
25101
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025102
John Criswell7a73b802003-06-30 21:59:07 +000025103
John Criswell7a73b802003-06-30 21:59:07 +000025104echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25105echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25106if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25108else
25109 ac_check_lib_save_LIBS=$LIBS
25110LIBS="-lelf $LIBS"
25111cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025112/* confdefs.h. */
25113_ACEOF
25114cat confdefs.h >>conftest.$ac_ext
25115cat >>conftest.$ac_ext <<_ACEOF
25116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025117
25118/* Override any gcc2 internal prototype to avoid an error. */
25119#ifdef __cplusplus
25120extern "C"
25121#endif
25122/* We use char because int might match the return type of a gcc2
25123 builtin and then its argument prototype would still apply. */
25124char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025125int
25126main ()
25127{
25128elf_begin ();
25129 ;
25130 return 0;
25131}
25132_ACEOF
25133rm -f conftest.$ac_objext conftest$ac_exeext
25134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025135 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025136 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025142 { ac_try='test -z "$ac_c_werror_flag"
25143 || test ! -s conftest.err'
25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); }; } &&
25149 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; }; then
25155 ac_cv_lib_elf_elf_begin=yes
25156else
25157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025158sed 's/^/| /' conftest.$ac_ext >&5
25159
John Criswell7a73b802003-06-30 21:59:07 +000025160ac_cv_lib_elf_elf_begin=no
25161fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025162rm -f conftest.err conftest.$ac_objext \
25163 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025164LIBS=$ac_check_lib_save_LIBS
25165fi
25166echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25167echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25168if test $ac_cv_lib_elf_elf_begin = yes; then
25169 cat >>confdefs.h <<_ACEOF
25170#define HAVE_LIBELF 1
25171_ACEOF
25172
25173 LIBS="-lelf $LIBS"
25174
25175fi
25176
25177
Reid Spencer3484a992006-01-19 08:31:08 +000025178echo "$as_me:$LINENO: checking for sin in -lm" >&5
25179echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25180if test "${ac_cv_lib_m_sin+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25182else
25183 ac_check_lib_save_LIBS=$LIBS
25184LIBS="-lm $LIBS"
25185cat >conftest.$ac_ext <<_ACEOF
25186/* confdefs.h. */
25187_ACEOF
25188cat confdefs.h >>conftest.$ac_ext
25189cat >>conftest.$ac_ext <<_ACEOF
25190/* end confdefs.h. */
25191
25192/* Override any gcc2 internal prototype to avoid an error. */
25193#ifdef __cplusplus
25194extern "C"
25195#endif
25196/* We use char because int might match the return type of a gcc2
25197 builtin and then its argument prototype would still apply. */
25198char sin ();
25199int
25200main ()
25201{
25202sin ();
25203 ;
25204 return 0;
25205}
25206_ACEOF
25207rm -f conftest.$ac_objext conftest$ac_exeext
25208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209 (eval $ac_link) 2>conftest.er1
25210 ac_status=$?
25211 grep -v '^ *+' conftest.er1 >conftest.err
25212 rm -f conftest.er1
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
25216 { ac_try='test -z "$ac_c_werror_flag"
25217 || test ! -s conftest.err'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest$ac_exeext'
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25226 ac_status=$?
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 ac_cv_lib_m_sin=yes
25230else
25231 echo "$as_me: failed program was:" >&5
25232sed 's/^/| /' conftest.$ac_ext >&5
25233
25234ac_cv_lib_m_sin=no
25235fi
25236rm -f conftest.err conftest.$ac_objext \
25237 conftest$ac_exeext conftest.$ac_ext
25238LIBS=$ac_check_lib_save_LIBS
25239fi
25240echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25241echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25242if test $ac_cv_lib_m_sin = yes; then
25243 cat >>confdefs.h <<_ACEOF
25244#define HAVE_LIBM 1
25245_ACEOF
25246
25247 LIBS="-lm $LIBS"
25248
25249fi
25250
Reid Spencer484fc8e2006-06-01 16:55:59 +000025251if test "$llvm_cv_os_type" == "MingW" ; then
25252
Reid Spencer48fdf912006-06-01 19:03:21 +000025253echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25254echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25255if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025256 echo $ECHO_N "(cached) $ECHO_C" >&6
25257else
25258 ac_check_lib_save_LIBS=$LIBS
25259LIBS="-limagehlp $LIBS"
25260cat >conftest.$ac_ext <<_ACEOF
25261/* confdefs.h. */
25262_ACEOF
25263cat confdefs.h >>conftest.$ac_ext
25264cat >>conftest.$ac_ext <<_ACEOF
25265/* end confdefs.h. */
25266
Reid Spencer48fdf912006-06-01 19:03:21 +000025267
Reid Spencer484fc8e2006-06-01 16:55:59 +000025268int
25269main ()
25270{
Reid Spencer48fdf912006-06-01 19:03:21 +000025271main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025272 ;
25273 return 0;
25274}
25275_ACEOF
25276rm -f conftest.$ac_objext conftest$ac_exeext
25277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25278 (eval $ac_link) 2>conftest.er1
25279 ac_status=$?
25280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
25285 { ac_try='test -z "$ac_c_werror_flag"
25286 || test ! -s conftest.err'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; } &&
25292 { ac_try='test -s conftest$ac_exeext'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025298 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025299else
25300 echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
Reid Spencer48fdf912006-06-01 19:03:21 +000025303ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025304fi
25305rm -f conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
25307LIBS=$ac_check_lib_save_LIBS
25308fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025309echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25310echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25311if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025312 cat >>confdefs.h <<_ACEOF
25313#define HAVE_LIBIMAGEHLP 1
25314_ACEOF
25315
25316 LIBS="-limagehlp $LIBS"
25317
25318fi
25319
25320
Reid Spencer48fdf912006-06-01 19:03:21 +000025321echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25322echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25323if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025324 echo $ECHO_N "(cached) $ECHO_C" >&6
25325else
25326 ac_check_lib_save_LIBS=$LIBS
25327LIBS="-lpsapi $LIBS"
25328cat >conftest.$ac_ext <<_ACEOF
25329/* confdefs.h. */
25330_ACEOF
25331cat confdefs.h >>conftest.$ac_ext
25332cat >>conftest.$ac_ext <<_ACEOF
25333/* end confdefs.h. */
25334
Reid Spencer48fdf912006-06-01 19:03:21 +000025335
Reid Spencer484fc8e2006-06-01 16:55:59 +000025336int
25337main ()
25338{
Reid Spencer48fdf912006-06-01 19:03:21 +000025339main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025340 ;
25341 return 0;
25342}
25343_ACEOF
25344rm -f conftest.$ac_objext conftest$ac_exeext
25345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25346 (eval $ac_link) 2>conftest.er1
25347 ac_status=$?
25348 grep -v '^ *+' conftest.er1 >conftest.err
25349 rm -f conftest.er1
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
25353 { ac_try='test -z "$ac_c_werror_flag"
25354 || test ! -s conftest.err'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest$ac_exeext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025366 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025367else
25368 echo "$as_me: failed program was:" >&5
25369sed 's/^/| /' conftest.$ac_ext >&5
25370
Reid Spencer48fdf912006-06-01 19:03:21 +000025371ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025372fi
25373rm -f conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
25375LIBS=$ac_check_lib_save_LIBS
25376fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025377echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25378echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25379if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025380 cat >>confdefs.h <<_ACEOF
25381#define HAVE_LIBPSAPI 1
25382_ACEOF
25383
25384 LIBS="-lpsapi $LIBS"
25385
25386fi
25387
25388fi
Reid Spencer22177fe2005-07-12 15:24:20 +000025389
Reid Spencer17795972004-11-18 09:47:37 +000025390echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25391echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25392if test "${ac_cv_search_lt_dlopen+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25394else
25395 ac_func_search_save_LIBS=$LIBS
25396ac_cv_search_lt_dlopen=no
25397cat >conftest.$ac_ext <<_ACEOF
25398/* confdefs.h. */
25399_ACEOF
25400cat confdefs.h >>conftest.$ac_ext
25401cat >>conftest.$ac_ext <<_ACEOF
25402/* end confdefs.h. */
25403
25404/* Override any gcc2 internal prototype to avoid an error. */
25405#ifdef __cplusplus
25406extern "C"
25407#endif
25408/* We use char because int might match the return type of a gcc2
25409 builtin and then its argument prototype would still apply. */
25410char lt_dlopen ();
25411int
25412main ()
25413{
25414lt_dlopen ();
25415 ;
25416 return 0;
25417}
25418_ACEOF
25419rm -f conftest.$ac_objext conftest$ac_exeext
25420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421 (eval $ac_link) 2>conftest.er1
25422 ac_status=$?
25423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
25428 { ac_try='test -z "$ac_c_werror_flag"
25429 || test ! -s conftest.err'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest$ac_exeext'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441 ac_cv_search_lt_dlopen="none required"
25442else
25443 echo "$as_me: failed program was:" >&5
25444sed 's/^/| /' conftest.$ac_ext >&5
25445
25446fi
25447rm -f conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
25449if test "$ac_cv_search_lt_dlopen" = no; then
25450 for ac_lib in ltdl; do
25451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25452 cat >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 lt_dlopen ();
25466int
25467main ()
25468{
25469lt_dlopen ();
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_lt_dlopen="-l$ac_lib"
25497break
25498else
25499 echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502fi
25503rm -f conftest.err conftest.$ac_objext \
25504 conftest$ac_exeext conftest.$ac_ext
25505 done
25506fi
25507LIBS=$ac_func_search_save_LIBS
25508fi
25509echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25510echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25511if test "$ac_cv_search_lt_dlopen" != no; then
25512 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25513
25514cat >>confdefs.h <<\_ACEOF
25515#define HAVE_LT_DLOPEN 1
25516_ACEOF
25517
25518else
25519 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25520 not be available" >&5
25521echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25522 not be available" >&2;}
25523fi
25524
25525
John Criswell7a73b802003-06-30 21:59:07 +000025526echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25527echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25528if test "${ac_cv_search_dlopen+set}" = set; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
25530else
25531 ac_func_search_save_LIBS=$LIBS
25532ac_cv_search_dlopen=no
25533cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025534/* confdefs.h. */
25535_ACEOF
25536cat confdefs.h >>conftest.$ac_ext
25537cat >>conftest.$ac_ext <<_ACEOF
25538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025539
25540/* Override any gcc2 internal prototype to avoid an error. */
25541#ifdef __cplusplus
25542extern "C"
25543#endif
25544/* We use char because int might match the return type of a gcc2
25545 builtin and then its argument prototype would still apply. */
25546char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025547int
25548main ()
25549{
25550dlopen ();
25551 ;
25552 return 0;
25553}
25554_ACEOF
25555rm -f conftest.$ac_objext conftest$ac_exeext
25556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025557 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025559 grep -v '^ *+' conftest.er1 >conftest.err
25560 rm -f conftest.er1
25561 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025564 { ac_try='test -z "$ac_c_werror_flag"
25565 || test ! -s conftest.err'
25566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); }; } &&
25571 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); }; }; then
25577 ac_cv_search_dlopen="none required"
25578else
25579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025580sed 's/^/| /' conftest.$ac_ext >&5
25581
John Criswell7a73b802003-06-30 21:59:07 +000025582fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025583rm -f conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025585if test "$ac_cv_search_dlopen" = no; then
25586 for ac_lib in dl; do
25587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25588 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025589/* confdefs.h. */
25590_ACEOF
25591cat confdefs.h >>conftest.$ac_ext
25592cat >>conftest.$ac_ext <<_ACEOF
25593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025594
25595/* Override any gcc2 internal prototype to avoid an error. */
25596#ifdef __cplusplus
25597extern "C"
25598#endif
25599/* We use char because int might match the return type of a gcc2
25600 builtin and then its argument prototype would still apply. */
25601char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025602int
25603main ()
25604{
25605dlopen ();
25606 ;
25607 return 0;
25608}
25609_ACEOF
25610rm -f conftest.$ac_objext conftest$ac_exeext
25611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025612 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025614 grep -v '^ *+' conftest.er1 >conftest.err
25615 rm -f conftest.er1
25616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025619 { ac_try='test -z "$ac_c_werror_flag"
25620 || test ! -s conftest.err'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; } &&
25626 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 ac_cv_search_dlopen="-l$ac_lib"
25633break
25634else
25635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025636sed 's/^/| /' conftest.$ac_ext >&5
25637
John Criswell7a73b802003-06-30 21:59:07 +000025638fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025639rm -f conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025641 done
25642fi
25643LIBS=$ac_func_search_save_LIBS
25644fi
25645echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25646echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25647if test "$ac_cv_search_dlopen" != no; then
25648 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025649
25650cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025651#define HAVE_DLOPEN 1
25652_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025653
25654else
Brian Gaekec45be042003-10-07 06:01:34 +000025655 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25656echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025657fi
25658
25659
25660echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25661echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25662if test "${ac_cv_search_mallinfo+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25664else
25665 ac_func_search_save_LIBS=$LIBS
25666ac_cv_search_mallinfo=no
25667cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025668/* confdefs.h. */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025673
25674/* Override any gcc2 internal prototype to avoid an error. */
25675#ifdef __cplusplus
25676extern "C"
25677#endif
25678/* We use char because int might match the return type of a gcc2
25679 builtin and then its argument prototype would still apply. */
25680char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025681int
25682main ()
25683{
25684mallinfo ();
25685 ;
25686 return 0;
25687}
25688_ACEOF
25689rm -f conftest.$ac_objext conftest$ac_exeext
25690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025691 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025693 grep -v '^ *+' conftest.er1 >conftest.err
25694 rm -f conftest.er1
25695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025698 { ac_try='test -z "$ac_c_werror_flag"
25699 || test ! -s conftest.err'
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; }; then
25711 ac_cv_search_mallinfo="none required"
25712else
25713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025714sed 's/^/| /' conftest.$ac_ext >&5
25715
John Criswell7a73b802003-06-30 21:59:07 +000025716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025717rm -f conftest.err conftest.$ac_objext \
25718 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025719if test "$ac_cv_search_mallinfo" = no; then
25720 for ac_lib in malloc; do
25721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25722 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025723/* confdefs.h. */
25724_ACEOF
25725cat confdefs.h >>conftest.$ac_ext
25726cat >>conftest.$ac_ext <<_ACEOF
25727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025728
25729/* Override any gcc2 internal prototype to avoid an error. */
25730#ifdef __cplusplus
25731extern "C"
25732#endif
25733/* We use char because int might match the return type of a gcc2
25734 builtin and then its argument prototype would still apply. */
25735char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025736int
25737main ()
25738{
25739mallinfo ();
25740 ;
25741 return 0;
25742}
25743_ACEOF
25744rm -f conftest.$ac_objext conftest$ac_exeext
25745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025746 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025747 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025748 grep -v '^ *+' conftest.er1 >conftest.err
25749 rm -f conftest.er1
25750 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025753 { ac_try='test -z "$ac_c_werror_flag"
25754 || test ! -s conftest.err'
25755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756 (eval $ac_try) 2>&5
25757 ac_status=$?
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; } &&
25760 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 ac_cv_search_mallinfo="-l$ac_lib"
25767break
25768else
25769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025770sed 's/^/| /' conftest.$ac_ext >&5
25771
John Criswell7a73b802003-06-30 21:59:07 +000025772fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025773rm -f conftest.err conftest.$ac_objext \
25774 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025775 done
25776fi
25777LIBS=$ac_func_search_save_LIBS
25778fi
25779echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25780echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25781if test "$ac_cv_search_mallinfo" != no; then
25782 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025783
25784cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025785#define HAVE_MALLINFO 1
25786_ACEOF
25787
25788fi
25789
25790
Reid Spencer0a262ba2005-08-24 10:07:20 +000025791if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025792
25793echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25794echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25795if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25797else
25798 ac_check_lib_save_LIBS=$LIBS
25799LIBS="-lpthread $LIBS"
25800cat >conftest.$ac_ext <<_ACEOF
25801/* confdefs.h. */
25802_ACEOF
25803cat confdefs.h >>conftest.$ac_ext
25804cat >>conftest.$ac_ext <<_ACEOF
25805/* end confdefs.h. */
25806
25807/* Override any gcc2 internal prototype to avoid an error. */
25808#ifdef __cplusplus
25809extern "C"
25810#endif
25811/* We use char because int might match the return type of a gcc2
25812 builtin and then its argument prototype would still apply. */
25813char pthread_mutex_init ();
25814int
25815main ()
25816{
25817pthread_mutex_init ();
25818 ;
25819 return 0;
25820}
25821_ACEOF
25822rm -f conftest.$ac_objext conftest$ac_exeext
25823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25824 (eval $ac_link) 2>conftest.er1
25825 ac_status=$?
25826 grep -v '^ *+' conftest.er1 >conftest.err
25827 rm -f conftest.er1
25828 cat conftest.err >&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest$ac_exeext'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_cv_lib_pthread_pthread_mutex_init=yes
25845else
25846 echo "$as_me: failed program was:" >&5
25847sed 's/^/| /' conftest.$ac_ext >&5
25848
25849ac_cv_lib_pthread_pthread_mutex_init=no
25850fi
25851rm -f conftest.err conftest.$ac_objext \
25852 conftest$ac_exeext conftest.$ac_ext
25853LIBS=$ac_check_lib_save_LIBS
25854fi
25855echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25856echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25857if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25858 cat >>confdefs.h <<_ACEOF
25859#define HAVE_LIBPTHREAD 1
25860_ACEOF
25861
25862 LIBS="-lpthread $LIBS"
25863
25864fi
25865
Reid Spencer0a262ba2005-08-24 10:07:20 +000025866 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025867echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25868if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25869 echo $ECHO_N "(cached) $ECHO_C" >&6
25870else
25871 ac_func_search_save_LIBS=$LIBS
25872ac_cv_search_pthread_mutex_lock=no
25873cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025874/* confdefs.h. */
25875_ACEOF
25876cat confdefs.h >>conftest.$ac_ext
25877cat >>conftest.$ac_ext <<_ACEOF
25878/* end confdefs.h. */
25879
25880/* Override any gcc2 internal prototype to avoid an error. */
25881#ifdef __cplusplus
25882extern "C"
25883#endif
25884/* We use char because int might match the return type of a gcc2
25885 builtin and then its argument prototype would still apply. */
25886char pthread_mutex_lock ();
25887int
25888main ()
25889{
25890pthread_mutex_lock ();
25891 ;
25892 return 0;
25893}
25894_ACEOF
25895rm -f conftest.$ac_objext conftest$ac_exeext
25896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025897 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025899 grep -v '^ *+' conftest.er1 >conftest.err
25900 rm -f conftest.er1
25901 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025904 { ac_try='test -z "$ac_c_werror_flag"
25905 || test ! -s conftest.err'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25908 ac_status=$?
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; } &&
25911 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 ac_cv_search_pthread_mutex_lock="none required"
25918else
25919 echo "$as_me: failed program was:" >&5
25920sed 's/^/| /' conftest.$ac_ext >&5
25921
25922fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025923rm -f conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025925if test "$ac_cv_search_pthread_mutex_lock" = no; then
25926 for ac_lib in pthread; do
25927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25928 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025929/* confdefs.h. */
25930_ACEOF
25931cat confdefs.h >>conftest.$ac_ext
25932cat >>conftest.$ac_ext <<_ACEOF
25933/* end confdefs.h. */
25934
25935/* Override any gcc2 internal prototype to avoid an error. */
25936#ifdef __cplusplus
25937extern "C"
25938#endif
25939/* We use char because int might match the return type of a gcc2
25940 builtin and then its argument prototype would still apply. */
25941char pthread_mutex_lock ();
25942int
25943main ()
25944{
25945pthread_mutex_lock ();
25946 ;
25947 return 0;
25948}
25949_ACEOF
25950rm -f conftest.$ac_objext conftest$ac_exeext
25951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025952 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025953 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025954 grep -v '^ *+' conftest.er1 >conftest.err
25955 rm -f conftest.er1
25956 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025959 { ac_try='test -z "$ac_c_werror_flag"
25960 || test ! -s conftest.err'
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25973break
25974else
25975 echo "$as_me: failed program was:" >&5
25976sed 's/^/| /' conftest.$ac_ext >&5
25977
25978fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025979rm -f conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025981 done
25982fi
25983LIBS=$ac_func_search_save_LIBS
25984fi
25985echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25986echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25987if test "$ac_cv_search_pthread_mutex_lock" != no; then
25988 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025989
John Criswell40468462004-09-24 21:19:06 +000025990cat >>confdefs.h <<\_ACEOF
25991#define HAVE_PTHREAD_MUTEX_LOCK 1
25992_ACEOF
25993
25994fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025995
Reid Spencer0a262ba2005-08-24 10:07:20 +000025996fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025998
Reid Spencer59473af2004-12-25 07:31:29 +000025999
26000
26001
26002
26003
26004ac_header_dirent=no
26005for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26006 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26007echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26008echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26009if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26011else
26012 cat >conftest.$ac_ext <<_ACEOF
26013/* confdefs.h. */
26014_ACEOF
26015cat confdefs.h >>conftest.$ac_ext
26016cat >>conftest.$ac_ext <<_ACEOF
26017/* end confdefs.h. */
26018#include <sys/types.h>
26019#include <$ac_hdr>
26020
26021int
26022main ()
26023{
26024if ((DIR *) 0)
26025return 0;
26026 ;
26027 return 0;
26028}
26029_ACEOF
26030rm -f conftest.$ac_objext
26031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26033 ac_status=$?
26034 grep -v '^ *+' conftest.er1 >conftest.err
26035 rm -f conftest.er1
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { 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'
26047 { (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 eval "$as_ac_Header=yes"
26053else
26054 echo "$as_me: failed program was:" >&5
26055sed 's/^/| /' conftest.$ac_ext >&5
26056
26057eval "$as_ac_Header=no"
26058fi
26059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060fi
26061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26063if test `eval echo '${'$as_ac_Header'}'` = yes; then
26064 cat >>confdefs.h <<_ACEOF
26065#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26066_ACEOF
26067
26068ac_header_dirent=$ac_hdr; break
26069fi
26070
26071done
26072# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26073if test $ac_header_dirent = dirent.h; then
26074 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26075echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26076if test "${ac_cv_search_opendir+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26078else
26079 ac_func_search_save_LIBS=$LIBS
26080ac_cv_search_opendir=no
26081cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
26087
26088/* Override any gcc2 internal prototype to avoid an error. */
26089#ifdef __cplusplus
26090extern "C"
26091#endif
26092/* We use char because int might match the return type of a gcc2
26093 builtin and then its argument prototype would still apply. */
26094char opendir ();
26095int
26096main ()
26097{
26098opendir ();
26099 ;
26100 return 0;
26101}
26102_ACEOF
26103rm -f conftest.$ac_objext conftest$ac_exeext
26104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105 (eval $ac_link) 2>conftest.er1
26106 ac_status=$?
26107 grep -v '^ *+' conftest.er1 >conftest.err
26108 rm -f conftest.er1
26109 cat conftest.err >&5
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } &&
26112 { ac_try='test -z "$ac_c_werror_flag"
26113 || test ! -s conftest.err'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; } &&
26119 { ac_try='test -s conftest$ac_exeext'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 ac_cv_search_opendir="none required"
26126else
26127 echo "$as_me: failed program was:" >&5
26128sed 's/^/| /' conftest.$ac_ext >&5
26129
26130fi
26131rm -f conftest.err conftest.$ac_objext \
26132 conftest$ac_exeext conftest.$ac_ext
26133if test "$ac_cv_search_opendir" = no; then
26134 for ac_lib in dir; do
26135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26136 cat >conftest.$ac_ext <<_ACEOF
26137/* confdefs.h. */
26138_ACEOF
26139cat confdefs.h >>conftest.$ac_ext
26140cat >>conftest.$ac_ext <<_ACEOF
26141/* end confdefs.h. */
26142
26143/* Override any gcc2 internal prototype to avoid an error. */
26144#ifdef __cplusplus
26145extern "C"
26146#endif
26147/* We use char because int might match the return type of a gcc2
26148 builtin and then its argument prototype would still apply. */
26149char opendir ();
26150int
26151main ()
26152{
26153opendir ();
26154 ;
26155 return 0;
26156}
26157_ACEOF
26158rm -f conftest.$ac_objext conftest$ac_exeext
26159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26160 (eval $ac_link) 2>conftest.er1
26161 ac_status=$?
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
26167 { ac_try='test -z "$ac_c_werror_flag"
26168 || test ! -s conftest.err'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; } &&
26174 { ac_try='test -s conftest$ac_exeext'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26180 ac_cv_search_opendir="-l$ac_lib"
26181break
26182else
26183 echo "$as_me: failed program was:" >&5
26184sed 's/^/| /' conftest.$ac_ext >&5
26185
26186fi
26187rm -f conftest.err conftest.$ac_objext \
26188 conftest$ac_exeext conftest.$ac_ext
26189 done
26190fi
26191LIBS=$ac_func_search_save_LIBS
26192fi
26193echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26194echo "${ECHO_T}$ac_cv_search_opendir" >&6
26195if test "$ac_cv_search_opendir" != no; then
26196 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26197
26198fi
26199
26200else
26201 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26202echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26203if test "${ac_cv_search_opendir+set}" = set; then
26204 echo $ECHO_N "(cached) $ECHO_C" >&6
26205else
26206 ac_func_search_save_LIBS=$LIBS
26207ac_cv_search_opendir=no
26208cat >conftest.$ac_ext <<_ACEOF
26209/* confdefs.h. */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h. */
26214
26215/* Override any gcc2 internal prototype to avoid an error. */
26216#ifdef __cplusplus
26217extern "C"
26218#endif
26219/* We use char because int might match the return type of a gcc2
26220 builtin and then its argument prototype would still apply. */
26221char opendir ();
26222int
26223main ()
26224{
26225opendir ();
26226 ;
26227 return 0;
26228}
26229_ACEOF
26230rm -f conftest.$ac_objext conftest$ac_exeext
26231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26232 (eval $ac_link) 2>conftest.er1
26233 ac_status=$?
26234 grep -v '^ *+' conftest.er1 >conftest.err
26235 rm -f conftest.er1
26236 cat conftest.err >&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
26239 { ac_try='test -z "$ac_c_werror_flag"
26240 || test ! -s conftest.err'
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
26246 { ac_try='test -s conftest$ac_exeext'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 ac_cv_search_opendir="none required"
26253else
26254 echo "$as_me: failed program was:" >&5
26255sed 's/^/| /' conftest.$ac_ext >&5
26256
26257fi
26258rm -f conftest.err conftest.$ac_objext \
26259 conftest$ac_exeext conftest.$ac_ext
26260if test "$ac_cv_search_opendir" = no; then
26261 for ac_lib in x; do
26262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26263 cat >conftest.$ac_ext <<_ACEOF
26264/* confdefs.h. */
26265_ACEOF
26266cat confdefs.h >>conftest.$ac_ext
26267cat >>conftest.$ac_ext <<_ACEOF
26268/* end confdefs.h. */
26269
26270/* Override any gcc2 internal prototype to avoid an error. */
26271#ifdef __cplusplus
26272extern "C"
26273#endif
26274/* We use char because int might match the return type of a gcc2
26275 builtin and then its argument prototype would still apply. */
26276char opendir ();
26277int
26278main ()
26279{
26280opendir ();
26281 ;
26282 return 0;
26283}
26284_ACEOF
26285rm -f conftest.$ac_objext conftest$ac_exeext
26286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26287 (eval $ac_link) 2>conftest.er1
26288 ac_status=$?
26289 grep -v '^ *+' conftest.er1 >conftest.err
26290 rm -f conftest.er1
26291 cat conftest.err >&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
26294 { ac_try='test -z "$ac_c_werror_flag"
26295 || test ! -s conftest.err'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26298 ac_status=$?
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; } &&
26301 { ac_try='test -s conftest$ac_exeext'
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; }; then
26307 ac_cv_search_opendir="-l$ac_lib"
26308break
26309else
26310 echo "$as_me: failed program was:" >&5
26311sed 's/^/| /' conftest.$ac_ext >&5
26312
26313fi
26314rm -f conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
26316 done
26317fi
26318LIBS=$ac_func_search_save_LIBS
26319fi
26320echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26321echo "${ECHO_T}$ac_cv_search_opendir" >&6
26322if test "$ac_cv_search_opendir" != no; then
26323 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26324
26325fi
26326
26327fi
26328
26329echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26330echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26331if test "${ac_cv_header_mmap_anon+set}" = set; then
26332 echo $ECHO_N "(cached) $ECHO_C" >&6
26333else
26334 ac_ext=c
26335ac_cpp='$CPP $CPPFLAGS'
26336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338ac_compiler_gnu=$ac_cv_c_compiler_gnu
26339
26340 cat >conftest.$ac_ext <<_ACEOF
26341/* confdefs.h. */
26342_ACEOF
26343cat confdefs.h >>conftest.$ac_ext
26344cat >>conftest.$ac_ext <<_ACEOF
26345/* end confdefs.h. */
26346#include <sys/mman.h>
26347#include <unistd.h>
26348#include <fcntl.h>
26349int
26350main ()
26351{
26352mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26353 ;
26354 return 0;
26355}
26356_ACEOF
26357rm -f conftest.$ac_objext
26358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26359 (eval $ac_compile) 2>conftest.er1
26360 ac_status=$?
26361 grep -v '^ *+' conftest.er1 >conftest.err
26362 rm -f conftest.er1
26363 cat conftest.err >&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } &&
26366 { ac_try='test -z "$ac_c_werror_flag"
26367 || test ! -s conftest.err'
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26370 ac_status=$?
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; } &&
26373 { ac_try='test -s conftest.$ac_objext'
26374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26375 (eval $ac_try) 2>&5
26376 ac_status=$?
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); }; }; then
26379 ac_cv_header_mmap_anon=yes
26380else
26381 echo "$as_me: failed program was:" >&5
26382sed 's/^/| /' conftest.$ac_ext >&5
26383
26384ac_cv_header_mmap_anon=no
26385fi
26386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387 ac_ext=c
26388ac_cpp='$CPP $CPPFLAGS'
26389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26391ac_compiler_gnu=$ac_cv_c_compiler_gnu
26392
26393
26394fi
26395echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26396echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26397if test "$ac_cv_header_mmap_anon" = yes; then
26398
26399cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026400#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026401_ACEOF
26402
26403fi
26404
26405echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26406echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26407if test "${ac_cv_header_stat_broken+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26409else
26410 cat >conftest.$ac_ext <<_ACEOF
26411/* confdefs.h. */
26412_ACEOF
26413cat confdefs.h >>conftest.$ac_ext
26414cat >>conftest.$ac_ext <<_ACEOF
26415/* end confdefs.h. */
26416#include <sys/types.h>
26417#include <sys/stat.h>
26418
26419#if defined(S_ISBLK) && defined(S_IFDIR)
26420# if S_ISBLK (S_IFDIR)
26421You lose.
26422# endif
26423#endif
26424
26425#if defined(S_ISBLK) && defined(S_IFCHR)
26426# if S_ISBLK (S_IFCHR)
26427You lose.
26428# endif
26429#endif
26430
26431#if defined(S_ISLNK) && defined(S_IFREG)
26432# if S_ISLNK (S_IFREG)
26433You lose.
26434# endif
26435#endif
26436
26437#if defined(S_ISSOCK) && defined(S_IFREG)
26438# if S_ISSOCK (S_IFREG)
26439You lose.
26440# endif
26441#endif
26442
26443_ACEOF
26444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26445 $EGREP "You lose" >/dev/null 2>&1; then
26446 ac_cv_header_stat_broken=yes
26447else
26448 ac_cv_header_stat_broken=no
26449fi
26450rm -f conftest*
26451
26452fi
26453echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26454echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26455if test $ac_cv_header_stat_broken = yes; then
26456
26457cat >>confdefs.h <<\_ACEOF
26458#define STAT_MACROS_BROKEN 1
26459_ACEOF
26460
26461fi
26462
John Criswell7a73b802003-06-30 21:59:07 +000026463echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26464echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26465if test "${ac_cv_header_stdc+set}" = set; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26467else
26468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026469/* confdefs.h. */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026474#include <stdlib.h>
26475#include <stdarg.h>
26476#include <string.h>
26477#include <float.h>
26478
John Criswell0c38eaf2003-09-10 15:17:25 +000026479int
26480main ()
26481{
26482
26483 ;
26484 return 0;
26485}
John Criswell7a73b802003-06-30 21:59:07 +000026486_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026487rm -f conftest.$ac_objext
26488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026489 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026495 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026496 { ac_try='test -z "$ac_c_werror_flag"
26497 || test ! -s conftest.err'
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; } &&
26503 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026509 ac_cv_header_stdc=yes
26510else
26511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026512sed 's/^/| /' conftest.$ac_ext >&5
26513
26514ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026515fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026517
26518if test $ac_cv_header_stdc = yes; then
26519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026526#include <string.h>
26527
26528_ACEOF
26529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026530 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026531 :
26532else
26533 ac_cv_header_stdc=no
26534fi
26535rm -f conftest*
26536
26537fi
26538
26539if test $ac_cv_header_stdc = yes; then
26540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26541 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026542/* confdefs.h. */
26543_ACEOF
26544cat confdefs.h >>conftest.$ac_ext
26545cat >>conftest.$ac_ext <<_ACEOF
26546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026547#include <stdlib.h>
26548
26549_ACEOF
26550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026551 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026552 :
26553else
26554 ac_cv_header_stdc=no
26555fi
26556rm -f conftest*
26557
26558fi
26559
26560if test $ac_cv_header_stdc = yes; then
26561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26562 if test "$cross_compiling" = yes; then
26563 :
26564else
26565 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026566/* confdefs.h. */
26567_ACEOF
26568cat confdefs.h >>conftest.$ac_ext
26569cat >>conftest.$ac_ext <<_ACEOF
26570/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026571#include <ctype.h>
26572#if ((' ' & 0x0FF) == 0x020)
26573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26575#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026576# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026577 (('a' <= (c) && (c) <= 'i') \
26578 || ('j' <= (c) && (c) <= 'r') \
26579 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26581#endif
26582
26583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26584int
26585main ()
26586{
26587 int i;
26588 for (i = 0; i < 256; i++)
26589 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026590 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026591 exit(2);
26592 exit (0);
26593}
26594_ACEOF
26595rm -f conftest$ac_exeext
26596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26597 (eval $ac_link) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 :
26607else
26608 echo "$as_me: program exited with status $ac_status" >&5
26609echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026610sed 's/^/| /' conftest.$ac_ext >&5
26611
John Criswell7a73b802003-06-30 21:59:07 +000026612( exit $ac_status )
26613ac_cv_header_stdc=no
26614fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026616fi
26617fi
26618fi
26619echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26620echo "${ECHO_T}$ac_cv_header_stdc" >&6
26621if test $ac_cv_header_stdc = yes; then
26622
26623cat >>confdefs.h <<\_ACEOF
26624#define STDC_HEADERS 1
26625_ACEOF
26626
26627fi
26628
26629echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26630echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26631if test "${ac_cv_header_sys_wait_h+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26633else
26634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026635/* confdefs.h. */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026640#include <sys/types.h>
26641#include <sys/wait.h>
26642#ifndef WEXITSTATUS
26643# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26644#endif
26645#ifndef WIFEXITED
26646# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26647#endif
26648
John Criswell7a73b802003-06-30 21:59:07 +000026649int
26650main ()
26651{
26652 int s;
26653 wait (&s);
26654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26655 ;
26656 return 0;
26657}
26658_ACEOF
26659rm -f conftest.$ac_objext
26660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026661 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026663 grep -v '^ *+' conftest.er1 >conftest.err
26664 rm -f conftest.er1
26665 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026668 { ac_try='test -z "$ac_c_werror_flag"
26669 || test ! -s conftest.err'
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; } &&
26675 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677 (eval $ac_try) 2>&5
26678 ac_status=$?
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); }; }; then
26681 ac_cv_header_sys_wait_h=yes
26682else
26683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026684sed 's/^/| /' conftest.$ac_ext >&5
26685
John Criswell7a73b802003-06-30 21:59:07 +000026686ac_cv_header_sys_wait_h=no
26687fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026689fi
26690echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26691echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26692if test $ac_cv_header_sys_wait_h = yes; then
26693
26694cat >>confdefs.h <<\_ACEOF
26695#define HAVE_SYS_WAIT_H 1
26696_ACEOF
26697
26698fi
26699
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026700echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26701echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26702if test "${ac_cv_header_time+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705 cat >conftest.$ac_ext <<_ACEOF
26706/* confdefs.h. */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026711#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026712#include <sys/time.h>
26713#include <time.h>
26714
26715int
26716main ()
26717{
26718if ((struct tm *) 0)
26719return 0;
26720 ;
26721 return 0;
26722}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026723_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026724rm -f conftest.$ac_objext
26725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26726 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026727 ac_status=$?
26728 grep -v '^ *+' conftest.er1 >conftest.err
26729 rm -f conftest.er1
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026732 (exit $ac_status); } &&
26733 { ac_try='test -z "$ac_c_werror_flag"
26734 || test ! -s conftest.err'
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26737 ac_status=$?
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; } &&
26740 { ac_try='test -s conftest.$ac_objext'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26743 ac_status=$?
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026747else
26748 echo "$as_me: failed program was:" >&5
26749sed 's/^/| /' conftest.$ac_ext >&5
26750
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026751ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026752fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26754fi
26755echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26756echo "${ECHO_T}$ac_cv_header_time" >&6
26757if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026758
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026759cat >>confdefs.h <<\_ACEOF
26760#define TIME_WITH_SYS_TIME 1
26761_ACEOF
26762
26763fi
26764
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026765
Reid Spencer59473af2004-12-25 07:31:29 +000026766
26767
26768
26769
26770
26771
26772for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26773do
26774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26775if eval "test \"\${$as_ac_Header+set}\" = set"; then
26776 echo "$as_me:$LINENO: checking for $ac_header" >&5
26777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26778if eval "test \"\${$as_ac_Header+set}\" = set"; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26780fi
26781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26783else
26784 # Is the header compilable?
26785echo "$as_me:$LINENO: checking $ac_header usability" >&5
26786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26787cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026793$ac_includes_default
26794#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026795_ACEOF
26796rm -f conftest.$ac_objext
26797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26798 (eval $ac_compile) 2>conftest.er1
26799 ac_status=$?
26800 grep -v '^ *+' conftest.er1 >conftest.err
26801 rm -f conftest.er1
26802 cat conftest.err >&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
26805 { ac_try='test -z "$ac_c_werror_flag"
26806 || test ! -s conftest.err'
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest.$ac_objext'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026818 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026819else
26820 echo "$as_me: failed program was:" >&5
26821sed 's/^/| /' conftest.$ac_ext >&5
26822
Reid Spencer59473af2004-12-25 07:31:29 +000026823ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026824fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26827echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026828
Reid Spencer59473af2004-12-25 07:31:29 +000026829# Is the header present?
26830echo "$as_me:$LINENO: checking $ac_header presence" >&5
26831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26832cat >conftest.$ac_ext <<_ACEOF
26833/* confdefs.h. */
26834_ACEOF
26835cat confdefs.h >>conftest.$ac_ext
26836cat >>conftest.$ac_ext <<_ACEOF
26837/* end confdefs.h. */
26838#include <$ac_header>
26839_ACEOF
26840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26842 ac_status=$?
26843 grep -v '^ *+' conftest.er1 >conftest.err
26844 rm -f conftest.er1
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } >/dev/null; then
26848 if test -s conftest.err; then
26849 ac_cpp_err=$ac_c_preproc_warn_flag
26850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26851 else
26852 ac_cpp_err=
26853 fi
26854else
26855 ac_cpp_err=yes
26856fi
26857if test -z "$ac_cpp_err"; then
26858 ac_header_preproc=yes
26859else
26860 echo "$as_me: failed program was:" >&5
26861sed 's/^/| /' conftest.$ac_ext >&5
26862
26863 ac_header_preproc=no
26864fi
26865rm -f conftest.err conftest.$ac_ext
26866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26867echo "${ECHO_T}$ac_header_preproc" >&6
26868
26869# So? What about this header?
26870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26871 yes:no: )
26872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26876 ac_header_preproc=yes
26877 ;;
26878 no:yes:* )
26879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26891 (
26892 cat <<\_ASBOX
26893## ----------------------------------- ##
26894## Report this to llvmbugs@cs.uiuc.edu ##
26895## ----------------------------------- ##
26896_ASBOX
26897 ) |
26898 sed "s/^/$as_me: WARNING: /" >&2
26899 ;;
26900esac
26901echo "$as_me:$LINENO: checking for $ac_header" >&5
26902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26903if eval "test \"\${$as_ac_Header+set}\" = set"; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26905else
26906 eval "$as_ac_Header=\$ac_header_preproc"
26907fi
26908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026910
26911fi
Reid Spencer59473af2004-12-25 07:31:29 +000026912if test `eval echo '${'$as_ac_Header'}'` = yes; then
26913 cat >>confdefs.h <<_ACEOF
26914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026915_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026916
26917fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026918
Reid Spencer59473af2004-12-25 07:31:29 +000026919done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026920
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026921
26922
Reid Spencer59473af2004-12-25 07:31:29 +000026923
26924
26925
26926
Reid Spencercdb08a32006-06-05 16:11:07 +000026927for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000026928do
26929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26930if eval "test \"\${$as_ac_Header+set}\" = set"; then
26931 echo "$as_me:$LINENO: checking for $ac_header" >&5
26932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26933if eval "test \"\${$as_ac_Header+set}\" = set"; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935fi
26936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26938else
26939 # Is the header compilable?
26940echo "$as_me:$LINENO: checking $ac_header usability" >&5
26941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26942cat >conftest.$ac_ext <<_ACEOF
26943/* confdefs.h. */
26944_ACEOF
26945cat confdefs.h >>conftest.$ac_ext
26946cat >>conftest.$ac_ext <<_ACEOF
26947/* end confdefs.h. */
26948$ac_includes_default
26949#include <$ac_header>
26950_ACEOF
26951rm -f conftest.$ac_objext
26952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26953 (eval $ac_compile) 2>conftest.er1
26954 ac_status=$?
26955 grep -v '^ *+' conftest.er1 >conftest.err
26956 rm -f conftest.er1
26957 cat conftest.err >&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } &&
26960 { ac_try='test -z "$ac_c_werror_flag"
26961 || test ! -s conftest.err'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest.$ac_objext'
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; }; then
26973 ac_header_compiler=yes
26974else
26975 echo "$as_me: failed program was:" >&5
26976sed 's/^/| /' conftest.$ac_ext >&5
26977
26978ac_header_compiler=no
26979fi
26980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26982echo "${ECHO_T}$ac_header_compiler" >&6
26983
26984# Is the header present?
26985echo "$as_me:$LINENO: checking $ac_header presence" >&5
26986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26987cat >conftest.$ac_ext <<_ACEOF
26988/* confdefs.h. */
26989_ACEOF
26990cat confdefs.h >>conftest.$ac_ext
26991cat >>conftest.$ac_ext <<_ACEOF
26992/* end confdefs.h. */
26993#include <$ac_header>
26994_ACEOF
26995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26997 ac_status=$?
26998 grep -v '^ *+' conftest.er1 >conftest.err
26999 rm -f conftest.er1
27000 cat conftest.err >&5
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } >/dev/null; then
27003 if test -s conftest.err; then
27004 ac_cpp_err=$ac_c_preproc_warn_flag
27005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27006 else
27007 ac_cpp_err=
27008 fi
27009else
27010 ac_cpp_err=yes
27011fi
27012if test -z "$ac_cpp_err"; then
27013 ac_header_preproc=yes
27014else
27015 echo "$as_me: failed program was:" >&5
27016sed 's/^/| /' conftest.$ac_ext >&5
27017
27018 ac_header_preproc=no
27019fi
27020rm -f conftest.err conftest.$ac_ext
27021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27022echo "${ECHO_T}$ac_header_preproc" >&6
27023
27024# So? What about this header?
27025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27026 yes:no: )
27027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27031 ac_header_preproc=yes
27032 ;;
27033 no:yes:* )
27034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27046 (
27047 cat <<\_ASBOX
27048## ----------------------------------- ##
27049## Report this to llvmbugs@cs.uiuc.edu ##
27050## ----------------------------------- ##
27051_ASBOX
27052 ) |
27053 sed "s/^/$as_me: WARNING: /" >&2
27054 ;;
27055esac
27056echo "$as_me:$LINENO: checking for $ac_header" >&5
27057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27058if eval "test \"\${$as_ac_Header+set}\" = set"; then
27059 echo $ECHO_N "(cached) $ECHO_C" >&6
27060else
27061 eval "$as_ac_Header=\$ac_header_preproc"
27062fi
27063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27065
27066fi
27067if test `eval echo '${'$as_ac_Header'}'` = yes; then
27068 cat >>confdefs.h <<_ACEOF
27069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27070_ACEOF
27071
27072fi
27073
27074done
27075
27076
27077
27078
27079
27080
Reid Spencercdb08a32006-06-05 16:11:07 +000027081for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027082do
27083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27084if eval "test \"\${$as_ac_Header+set}\" = set"; then
27085 echo "$as_me:$LINENO: checking for $ac_header" >&5
27086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27087if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027092else
27093 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027094echo "$as_me:$LINENO: checking $ac_header usability" >&5
27095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027096cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027097/* confdefs.h. */
27098_ACEOF
27099cat confdefs.h >>conftest.$ac_ext
27100cat >>conftest.$ac_ext <<_ACEOF
27101/* end confdefs.h. */
27102$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027103#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027104_ACEOF
27105rm -f conftest.$ac_objext
27106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027107 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027114 { ac_try='test -z "$ac_c_werror_flag"
27115 || test ! -s conftest.err'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27118 ac_status=$?
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; } &&
27121 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123 (eval $ac_try) 2>&5
27124 ac_status=$?
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; }; then
27127 ac_header_compiler=yes
27128else
27129 echo "$as_me: failed program was:" >&5
27130sed 's/^/| /' conftest.$ac_ext >&5
27131
27132ac_header_compiler=no
27133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27136echo "${ECHO_T}$ac_header_compiler" >&6
27137
27138# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027139echo "$as_me:$LINENO: checking $ac_header presence" >&5
27140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027141cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027142/* confdefs.h. */
27143_ACEOF
27144cat confdefs.h >>conftest.$ac_ext
27145cat >>conftest.$ac_ext <<_ACEOF
27146/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027147#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027148_ACEOF
27149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27151 ac_status=$?
27152 grep -v '^ *+' conftest.er1 >conftest.err
27153 rm -f conftest.er1
27154 cat conftest.err >&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); } >/dev/null; then
27157 if test -s conftest.err; then
27158 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000027159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027160 else
27161 ac_cpp_err=
27162 fi
27163else
27164 ac_cpp_err=yes
27165fi
27166if test -z "$ac_cpp_err"; then
27167 ac_header_preproc=yes
27168else
27169 echo "$as_me: failed program was:" >&5
27170sed 's/^/| /' conftest.$ac_ext >&5
27171
27172 ac_header_preproc=no
27173fi
27174rm -f conftest.err conftest.$ac_ext
27175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176echo "${ECHO_T}$ac_header_preproc" >&6
27177
27178# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27180 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027185 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027186 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027187 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000027200 (
27201 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027202## ----------------------------------- ##
27203## Report this to llvmbugs@cs.uiuc.edu ##
27204## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027205_ASBOX
27206 ) |
27207 sed "s/^/$as_me: WARNING: /" >&2
27208 ;;
27209esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027210echo "$as_me:$LINENO: checking for $ac_header" >&5
27211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27212if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027213 echo $ECHO_N "(cached) $ECHO_C" >&6
27214else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027215 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027216fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027219
27220fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027221if test `eval echo '${'$as_ac_Header'}'` = yes; then
27222 cat >>confdefs.h <<_ACEOF
27223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027224_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027225
27226fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027227
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027228done
27229
John Criswell7ed43ad2004-07-19 16:12:29 +000027230
Reid Spencercdb08a32006-06-05 16:11:07 +000027231
27232for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000027233do
27234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27235if eval "test \"\${$as_ac_Header+set}\" = set"; then
27236 echo "$as_me:$LINENO: checking for $ac_header" >&5
27237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27240fi
27241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27243else
27244 # Is the header compilable?
27245echo "$as_me:$LINENO: checking $ac_header usability" >&5
27246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27247cat >conftest.$ac_ext <<_ACEOF
27248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
27253$ac_includes_default
27254#include <$ac_header>
27255_ACEOF
27256rm -f conftest.$ac_objext
27257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27258 (eval $ac_compile) 2>conftest.er1
27259 ac_status=$?
27260 grep -v '^ *+' conftest.er1 >conftest.err
27261 rm -f conftest.er1
27262 cat conftest.err >&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } &&
27265 { ac_try='test -z "$ac_c_werror_flag"
27266 || test ! -s conftest.err'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; } &&
27272 { ac_try='test -s conftest.$ac_objext'
27273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274 (eval $ac_try) 2>&5
27275 ac_status=$?
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; }; then
27278 ac_header_compiler=yes
27279else
27280 echo "$as_me: failed program was:" >&5
27281sed 's/^/| /' conftest.$ac_ext >&5
27282
27283ac_header_compiler=no
27284fi
27285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27287echo "${ECHO_T}$ac_header_compiler" >&6
27288
27289# Is the header present?
27290echo "$as_me:$LINENO: checking $ac_header presence" >&5
27291echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27292cat >conftest.$ac_ext <<_ACEOF
27293/* confdefs.h. */
27294_ACEOF
27295cat confdefs.h >>conftest.$ac_ext
27296cat >>conftest.$ac_ext <<_ACEOF
27297/* end confdefs.h. */
27298#include <$ac_header>
27299_ACEOF
27300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27302 ac_status=$?
27303 grep -v '^ *+' conftest.er1 >conftest.err
27304 rm -f conftest.er1
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } >/dev/null; then
27308 if test -s conftest.err; then
27309 ac_cpp_err=$ac_c_preproc_warn_flag
27310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27311 else
27312 ac_cpp_err=
27313 fi
27314else
27315 ac_cpp_err=yes
27316fi
27317if test -z "$ac_cpp_err"; then
27318 ac_header_preproc=yes
27319else
27320 echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 ac_header_preproc=no
27324fi
27325rm -f conftest.err conftest.$ac_ext
27326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27327echo "${ECHO_T}$ac_header_preproc" >&6
27328
27329# So? What about this header?
27330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27331 yes:no: )
27332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27336 ac_header_preproc=yes
27337 ;;
27338 no:yes:* )
27339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27351 (
27352 cat <<\_ASBOX
27353## ----------------------------------- ##
27354## Report this to llvmbugs@cs.uiuc.edu ##
27355## ----------------------------------- ##
27356_ASBOX
27357 ) |
27358 sed "s/^/$as_me: WARNING: /" >&2
27359 ;;
27360esac
27361echo "$as_me:$LINENO: checking for $ac_header" >&5
27362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27363if eval "test \"\${$as_ac_Header+set}\" = set"; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27365else
27366 eval "$as_ac_Header=\$ac_header_preproc"
27367fi
27368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27370
27371fi
27372if test `eval echo '${'$as_ac_Header'}'` = yes; then
27373 cat >>confdefs.h <<_ACEOF
27374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27375_ACEOF
27376
27377fi
27378
27379done
27380
Reid Spencer0a262ba2005-08-24 10:07:20 +000027381if test "$ENABLE_THREADS" -eq 1 ; then
27382
27383for ac_header in pthread.h
27384do
27385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27386if eval "test \"\${$as_ac_Header+set}\" = set"; then
27387 echo "$as_me:$LINENO: checking for $ac_header" >&5
27388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27389if eval "test \"\${$as_ac_Header+set}\" = set"; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27391fi
27392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27394else
27395 # Is the header compilable?
27396echo "$as_me:$LINENO: checking $ac_header usability" >&5
27397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27398cat >conftest.$ac_ext <<_ACEOF
27399/* confdefs.h. */
27400_ACEOF
27401cat confdefs.h >>conftest.$ac_ext
27402cat >>conftest.$ac_ext <<_ACEOF
27403/* end confdefs.h. */
27404$ac_includes_default
27405#include <$ac_header>
27406_ACEOF
27407rm -f conftest.$ac_objext
27408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27409 (eval $ac_compile) 2>conftest.er1
27410 ac_status=$?
27411 grep -v '^ *+' conftest.er1 >conftest.err
27412 rm -f conftest.er1
27413 cat conftest.err >&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } &&
27416 { ac_try='test -z "$ac_c_werror_flag"
27417 || test ! -s conftest.err'
27418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419 (eval $ac_try) 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest.$ac_objext'
27424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27425 (eval $ac_try) 2>&5
27426 ac_status=$?
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; }; then
27429 ac_header_compiler=yes
27430else
27431 echo "$as_me: failed program was:" >&5
27432sed 's/^/| /' conftest.$ac_ext >&5
27433
27434ac_header_compiler=no
27435fi
27436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27438echo "${ECHO_T}$ac_header_compiler" >&6
27439
27440# Is the header present?
27441echo "$as_me:$LINENO: checking $ac_header presence" >&5
27442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27443cat >conftest.$ac_ext <<_ACEOF
27444/* confdefs.h. */
27445_ACEOF
27446cat confdefs.h >>conftest.$ac_ext
27447cat >>conftest.$ac_ext <<_ACEOF
27448/* end confdefs.h. */
27449#include <$ac_header>
27450_ACEOF
27451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27453 ac_status=$?
27454 grep -v '^ *+' conftest.er1 >conftest.err
27455 rm -f conftest.er1
27456 cat conftest.err >&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } >/dev/null; then
27459 if test -s conftest.err; then
27460 ac_cpp_err=$ac_c_preproc_warn_flag
27461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27462 else
27463 ac_cpp_err=
27464 fi
27465else
27466 ac_cpp_err=yes
27467fi
27468if test -z "$ac_cpp_err"; then
27469 ac_header_preproc=yes
27470else
27471 echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
27474 ac_header_preproc=no
27475fi
27476rm -f conftest.err conftest.$ac_ext
27477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27478echo "${ECHO_T}$ac_header_preproc" >&6
27479
27480# So? What about this header?
27481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27482 yes:no: )
27483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27487 ac_header_preproc=yes
27488 ;;
27489 no:yes:* )
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27502 (
27503 cat <<\_ASBOX
27504## ----------------------------------- ##
27505## Report this to llvmbugs@cs.uiuc.edu ##
27506## ----------------------------------- ##
27507_ASBOX
27508 ) |
27509 sed "s/^/$as_me: WARNING: /" >&2
27510 ;;
27511esac
27512echo "$as_me:$LINENO: checking for $ac_header" >&5
27513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27514if eval "test \"\${$as_ac_Header+set}\" = set"; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27516else
27517 eval "$as_ac_Header=\$ac_header_preproc"
27518fi
27519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27521
27522fi
27523if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27526_ACEOF
27527
27528fi
27529
27530done
27531
27532fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027533
27534
John Criswell7a73b802003-06-30 21:59:07 +000027535echo "$as_me:$LINENO: checking for pid_t" >&5
27536echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27537if test "${ac_cv_type_pid_t+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27539else
27540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027541/* confdefs.h. */
27542_ACEOF
27543cat confdefs.h >>conftest.$ac_ext
27544cat >>conftest.$ac_ext <<_ACEOF
27545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027546$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027547int
27548main ()
27549{
27550if ((pid_t *) 0)
27551 return 0;
27552if (sizeof (pid_t))
27553 return 0;
27554 ;
27555 return 0;
27556}
27557_ACEOF
27558rm -f conftest.$ac_objext
27559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027560 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027561 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027562 grep -v '^ *+' conftest.er1 >conftest.err
27563 rm -f conftest.er1
27564 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027567 { ac_try='test -z "$ac_c_werror_flag"
27568 || test ! -s conftest.err'
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27571 ac_status=$?
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; } &&
27574 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
27580 ac_cv_type_pid_t=yes
27581else
27582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027583sed 's/^/| /' conftest.$ac_ext >&5
27584
John Criswell7a73b802003-06-30 21:59:07 +000027585ac_cv_type_pid_t=no
27586fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027588fi
27589echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27590echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27591if test $ac_cv_type_pid_t = yes; then
27592 :
27593else
27594
27595cat >>confdefs.h <<_ACEOF
27596#define pid_t int
27597_ACEOF
27598
27599fi
27600
27601echo "$as_me:$LINENO: checking for size_t" >&5
27602echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27603if test "${ac_cv_type_size_t+set}" = set; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27605else
27606 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027607/* confdefs.h. */
27608_ACEOF
27609cat confdefs.h >>conftest.$ac_ext
27610cat >>conftest.$ac_ext <<_ACEOF
27611/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027612$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027613int
27614main ()
27615{
27616if ((size_t *) 0)
27617 return 0;
27618if (sizeof (size_t))
27619 return 0;
27620 ;
27621 return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext
27625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027626 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027633 { ac_try='test -z "$ac_c_werror_flag"
27634 || test ! -s conftest.err'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; } &&
27640 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
27646 ac_cv_type_size_t=yes
27647else
27648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027649sed 's/^/| /' conftest.$ac_ext >&5
27650
John Criswell7a73b802003-06-30 21:59:07 +000027651ac_cv_type_size_t=no
27652fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027654fi
27655echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27656echo "${ECHO_T}$ac_cv_type_size_t" >&6
27657if test $ac_cv_type_size_t = yes; then
27658 :
27659else
27660
27661cat >>confdefs.h <<_ACEOF
27662#define size_t unsigned
27663_ACEOF
27664
27665fi
27666
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027667echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27668echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27669if test "${ac_cv_type_signal+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27671else
27672 cat >conftest.$ac_ext <<_ACEOF
27673/* confdefs.h. */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h. */
27678#include <sys/types.h>
27679#include <signal.h>
27680#ifdef signal
27681# undef signal
27682#endif
27683#ifdef __cplusplus
27684extern "C" void (*signal (int, void (*)(int)))(int);
27685#else
27686void (*signal ()) ();
27687#endif
27688
27689int
27690main ()
27691{
27692int i;
27693 ;
27694 return 0;
27695}
27696_ACEOF
27697rm -f conftest.$ac_objext
27698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27699 (eval $ac_compile) 2>conftest.er1
27700 ac_status=$?
27701 grep -v '^ *+' conftest.er1 >conftest.err
27702 rm -f conftest.er1
27703 cat conftest.err >&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } &&
27706 { ac_try='test -z "$ac_c_werror_flag"
27707 || test ! -s conftest.err'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest.$ac_objext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 ac_cv_type_signal=void
27720else
27721 echo "$as_me: failed program was:" >&5
27722sed 's/^/| /' conftest.$ac_ext >&5
27723
27724ac_cv_type_signal=int
27725fi
27726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27727fi
27728echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27729echo "${ECHO_T}$ac_cv_type_signal" >&6
27730
27731cat >>confdefs.h <<_ACEOF
27732#define RETSIGTYPE $ac_cv_type_signal
27733_ACEOF
27734
27735
27736echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27737echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27738if test "${ac_cv_struct_tm+set}" = set; then
27739 echo $ECHO_N "(cached) $ECHO_C" >&6
27740else
27741 cat >conftest.$ac_ext <<_ACEOF
27742/* confdefs.h. */
27743_ACEOF
27744cat confdefs.h >>conftest.$ac_ext
27745cat >>conftest.$ac_ext <<_ACEOF
27746/* end confdefs.h. */
27747#include <sys/types.h>
27748#include <time.h>
27749
27750int
27751main ()
27752{
27753struct tm *tp; tp->tm_sec;
27754 ;
27755 return 0;
27756}
27757_ACEOF
27758rm -f conftest.$ac_objext
27759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27760 (eval $ac_compile) 2>conftest.er1
27761 ac_status=$?
27762 grep -v '^ *+' conftest.er1 >conftest.err
27763 rm -f conftest.er1
27764 cat conftest.err >&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } &&
27767 { ac_try='test -z "$ac_c_werror_flag"
27768 || test ! -s conftest.err'
27769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest.$ac_objext'
27775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776 (eval $ac_try) 2>&5
27777 ac_status=$?
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
27780 ac_cv_struct_tm=time.h
27781else
27782 echo "$as_me: failed program was:" >&5
27783sed 's/^/| /' conftest.$ac_ext >&5
27784
27785ac_cv_struct_tm=sys/time.h
27786fi
27787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27788fi
27789echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27790echo "${ECHO_T}$ac_cv_struct_tm" >&6
27791if test $ac_cv_struct_tm = sys/time.h; then
27792
27793cat >>confdefs.h <<\_ACEOF
27794#define TM_IN_SYS_TIME 1
27795_ACEOF
27796
27797fi
27798
John Criswell7a73b802003-06-30 21:59:07 +000027799echo "$as_me:$LINENO: checking for int64_t" >&5
27800echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27801if test "${ac_cv_type_int64_t+set}" = set; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27803else
27804 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027805/* confdefs.h. */
27806_ACEOF
27807cat confdefs.h >>conftest.$ac_ext
27808cat >>conftest.$ac_ext <<_ACEOF
27809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027810$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027811int
27812main ()
27813{
27814if ((int64_t *) 0)
27815 return 0;
27816if (sizeof (int64_t))
27817 return 0;
27818 ;
27819 return 0;
27820}
27821_ACEOF
27822rm -f conftest.$ac_objext
27823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027824 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027825 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027826 grep -v '^ *+' conftest.er1 >conftest.err
27827 rm -f conftest.er1
27828 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027831 { ac_try='test -z "$ac_c_werror_flag"
27832 || test ! -s conftest.err'
27833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834 (eval $ac_try) 2>&5
27835 ac_status=$?
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; } &&
27838 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
27844 ac_cv_type_int64_t=yes
27845else
27846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027847sed 's/^/| /' conftest.$ac_ext >&5
27848
John Criswell7a73b802003-06-30 21:59:07 +000027849ac_cv_type_int64_t=no
27850fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027852fi
27853echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27854echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27855if test $ac_cv_type_int64_t = yes; then
27856
27857cat >>confdefs.h <<_ACEOF
27858#define HAVE_INT64_T 1
27859_ACEOF
27860
27861
27862else
27863 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27864echo "$as_me: error: Type int64_t required but not found" >&2;}
27865 { (exit 1); exit 1; }; }
27866fi
27867
27868echo "$as_me:$LINENO: checking for uint64_t" >&5
27869echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27870if test "${ac_cv_type_uint64_t+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27872else
27873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027874/* confdefs.h. */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027879$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027880int
27881main ()
27882{
27883if ((uint64_t *) 0)
27884 return 0;
27885if (sizeof (uint64_t))
27886 return 0;
27887 ;
27888 return 0;
27889}
27890_ACEOF
27891rm -f conftest.$ac_objext
27892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027893 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027894 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027895 grep -v '^ *+' conftest.er1 >conftest.err
27896 rm -f conftest.er1
27897 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027900 { ac_try='test -z "$ac_c_werror_flag"
27901 || test ! -s conftest.err'
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27904 ac_status=$?
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; } &&
27907 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27910 ac_status=$?
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; }; then
27913 ac_cv_type_uint64_t=yes
27914else
27915 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027916sed 's/^/| /' conftest.$ac_ext >&5
27917
John Criswell7a73b802003-06-30 21:59:07 +000027918ac_cv_type_uint64_t=no
27919fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027921fi
27922echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27923echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27924if test $ac_cv_type_uint64_t = yes; then
27925
27926cat >>confdefs.h <<_ACEOF
27927#define HAVE_UINT64_T 1
27928_ACEOF
27929
27930
27931else
Misha Brukmanceca9042004-09-02 23:02:30 +000027932 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027933echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27934if test "${ac_cv_type_u_int64_t+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27936else
27937 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027938/* confdefs.h. */
27939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
27942/* end confdefs.h. */
27943$ac_includes_default
27944int
27945main ()
27946{
27947if ((u_int64_t *) 0)
27948 return 0;
27949if (sizeof (u_int64_t))
27950 return 0;
27951 ;
27952 return 0;
27953}
27954_ACEOF
27955rm -f conftest.$ac_objext
27956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027957 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027959 grep -v '^ *+' conftest.er1 >conftest.err
27960 rm -f conftest.er1
27961 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027964 { ac_try='test -z "$ac_c_werror_flag"
27965 || test ! -s conftest.err'
27966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967 (eval $ac_try) 2>&5
27968 ac_status=$?
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); }; } &&
27971 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973 (eval $ac_try) 2>&5
27974 ac_status=$?
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); }; }; then
27977 ac_cv_type_u_int64_t=yes
27978else
27979 echo "$as_me: failed program was:" >&5
27980sed 's/^/| /' conftest.$ac_ext >&5
27981
27982ac_cv_type_u_int64_t=no
27983fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027985fi
27986echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27987echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27988if test $ac_cv_type_u_int64_t = yes; then
27989
27990cat >>confdefs.h <<_ACEOF
27991#define HAVE_U_INT64_T 1
27992_ACEOF
27993
27994
Misha Brukmanceca9042004-09-02 23:02:30 +000027995else
27996 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27997echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27998 { (exit 1); exit 1; }; }
27999fi
28000
John Criswell679ff312004-09-02 18:44:44 +000028001fi
28002
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028003
28004
28005
28006
28007
28008
28009
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028010
28011
Reid Spencerdf3be822006-01-23 08:15:53 +000028012for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028013do
28014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28015echo "$as_me:$LINENO: checking for $ac_func" >&5
28016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28017if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028018 echo $ECHO_N "(cached) $ECHO_C" >&6
28019else
28020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028021/* confdefs.h. */
28022_ACEOF
28023cat confdefs.h >>conftest.$ac_ext
28024cat >>conftest.$ac_ext <<_ACEOF
28025/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28028#define $ac_func innocuous_$ac_func
28029
28030/* System header to define __stub macros and hopefully few prototypes,
28031 which can conflict with char $ac_func (); below.
28032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28033 <limits.h> exists even on freestanding compilers. */
28034
28035#ifdef __STDC__
28036# include <limits.h>
28037#else
28038# include <assert.h>
28039#endif
28040
28041#undef $ac_func
28042
28043/* Override any gcc2 internal prototype to avoid an error. */
28044#ifdef __cplusplus
28045extern "C"
28046{
28047#endif
28048/* We use char because int might match the return type of a gcc2
28049 builtin and then its argument prototype would still apply. */
28050char $ac_func ();
28051/* The GNU C library defines this for functions which it implements
28052 to always fail with ENOSYS. Some functions are actually named
28053 something starting with __ and the normal name is an alias. */
28054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28055choke me
28056#else
28057char (*f) () = $ac_func;
28058#endif
28059#ifdef __cplusplus
28060}
28061#endif
John Criswell7a73b802003-06-30 21:59:07 +000028062
John Criswell7a73b802003-06-30 21:59:07 +000028063int
28064main ()
28065{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028066return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028067 ;
28068 return 0;
28069}
28070_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028071rm -f conftest.$ac_objext conftest$ac_exeext
28072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28073 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028075 grep -v '^ *+' conftest.er1 >conftest.err
28076 rm -f conftest.er1
28077 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028080 { ac_try='test -z "$ac_c_werror_flag"
28081 || test ! -s conftest.err'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028087 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028093 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028094else
28095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028096sed 's/^/| /' conftest.$ac_ext >&5
28097
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028098eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028099fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028100rm -f conftest.err conftest.$ac_objext \
28101 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028102fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28105if test `eval echo '${'$as_ac_var'}'` = yes; then
28106 cat >>confdefs.h <<_ACEOF
28107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028108_ACEOF
28109
28110fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028111done
John Criswell7a73b802003-06-30 21:59:07 +000028112
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028113
28114
28115
Reid Spencer6af3d262004-12-15 04:01:48 +000028116
28117
Reid Spencer59473af2004-12-25 07:31:29 +000028118
Reid Spencerdf3be822006-01-23 08:15:53 +000028119for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28120do
28121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28122echo "$as_me:$LINENO: checking for $ac_func" >&5
28123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28124if eval "test \"\${$as_ac_var+set}\" = set"; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28126else
28127 cat >conftest.$ac_ext <<_ACEOF
28128/* confdefs.h. */
28129_ACEOF
28130cat confdefs.h >>conftest.$ac_ext
28131cat >>conftest.$ac_ext <<_ACEOF
28132/* end confdefs.h. */
28133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28135#define $ac_func innocuous_$ac_func
28136
28137/* System header to define __stub macros and hopefully few prototypes,
28138 which can conflict with char $ac_func (); below.
28139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28140 <limits.h> exists even on freestanding compilers. */
28141
28142#ifdef __STDC__
28143# include <limits.h>
28144#else
28145# include <assert.h>
28146#endif
28147
28148#undef $ac_func
28149
28150/* Override any gcc2 internal prototype to avoid an error. */
28151#ifdef __cplusplus
28152extern "C"
28153{
28154#endif
28155/* We use char because int might match the return type of a gcc2
28156 builtin and then its argument prototype would still apply. */
28157char $ac_func ();
28158/* The GNU C library defines this for functions which it implements
28159 to always fail with ENOSYS. Some functions are actually named
28160 something starting with __ and the normal name is an alias. */
28161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28162choke me
28163#else
28164char (*f) () = $ac_func;
28165#endif
28166#ifdef __cplusplus
28167}
28168#endif
28169
28170int
28171main ()
28172{
28173return f != $ac_func;
28174 ;
28175 return 0;
28176}
28177_ACEOF
28178rm -f conftest.$ac_objext conftest$ac_exeext
28179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28180 (eval $ac_link) 2>conftest.er1
28181 ac_status=$?
28182 grep -v '^ *+' conftest.er1 >conftest.err
28183 rm -f conftest.er1
28184 cat conftest.err >&5
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); } &&
28187 { ac_try='test -z "$ac_c_werror_flag"
28188 || test ! -s conftest.err'
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
28194 { ac_try='test -s conftest$ac_exeext'
28195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196 (eval $ac_try) 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 eval "$as_ac_var=yes"
28201else
28202 echo "$as_me: failed program was:" >&5
28203sed 's/^/| /' conftest.$ac_ext >&5
28204
28205eval "$as_ac_var=no"
28206fi
28207rm -f conftest.err conftest.$ac_objext \
28208 conftest$ac_exeext conftest.$ac_ext
28209fi
28210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28212if test `eval echo '${'$as_ac_var'}'` = yes; then
28213 cat >>confdefs.h <<_ACEOF
28214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28215_ACEOF
28216
28217fi
28218done
28219
28220
28221
28222
28223
28224
28225
28226
28227for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000028228do
28229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28230echo "$as_me:$LINENO: checking for $ac_func" >&5
28231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28232if eval "test \"\${$as_ac_var+set}\" = set"; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28234else
28235 cat >conftest.$ac_ext <<_ACEOF
28236/* confdefs.h. */
28237_ACEOF
28238cat confdefs.h >>conftest.$ac_ext
28239cat >>conftest.$ac_ext <<_ACEOF
28240/* end confdefs.h. */
28241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28243#define $ac_func innocuous_$ac_func
28244
28245/* System header to define __stub macros and hopefully few prototypes,
28246 which can conflict with char $ac_func (); below.
28247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28248 <limits.h> exists even on freestanding compilers. */
28249
28250#ifdef __STDC__
28251# include <limits.h>
28252#else
28253# include <assert.h>
28254#endif
28255
28256#undef $ac_func
28257
28258/* Override any gcc2 internal prototype to avoid an error. */
28259#ifdef __cplusplus
28260extern "C"
28261{
28262#endif
28263/* We use char because int might match the return type of a gcc2
28264 builtin and then its argument prototype would still apply. */
28265char $ac_func ();
28266/* The GNU C library defines this for functions which it implements
28267 to always fail with ENOSYS. Some functions are actually named
28268 something starting with __ and the normal name is an alias. */
28269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28270choke me
28271#else
28272char (*f) () = $ac_func;
28273#endif
28274#ifdef __cplusplus
28275}
28276#endif
28277
28278int
28279main ()
28280{
28281return f != $ac_func;
28282 ;
28283 return 0;
28284}
28285_ACEOF
28286rm -f conftest.$ac_objext conftest$ac_exeext
28287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28288 (eval $ac_link) 2>conftest.er1
28289 ac_status=$?
28290 grep -v '^ *+' conftest.er1 >conftest.err
28291 rm -f conftest.er1
28292 cat conftest.err >&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } &&
28295 { ac_try='test -z "$ac_c_werror_flag"
28296 || test ! -s conftest.err'
28297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; } &&
28302 { ac_try='test -s conftest$ac_exeext'
28303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304 (eval $ac_try) 2>&5
28305 ac_status=$?
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; }; then
28308 eval "$as_ac_var=yes"
28309else
28310 echo "$as_me: failed program was:" >&5
28311sed 's/^/| /' conftest.$ac_ext >&5
28312
28313eval "$as_ac_var=no"
28314fi
28315rm -f conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
28317fi
28318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28320if test `eval echo '${'$as_ac_var'}'` = yes; then
28321 cat >>confdefs.h <<_ACEOF
28322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28323_ACEOF
28324
28325fi
28326done
28327
28328
Reid Spencerba46ca32004-12-31 05:49:15 +000028329
28330
Chris Lattner0b142592005-11-14 06:57:34 +000028331
Chris Lattner511f11d2005-11-14 07:25:50 +000028332for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028333do
28334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28335echo "$as_me:$LINENO: checking for $ac_func" >&5
28336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28337if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028338 echo $ECHO_N "(cached) $ECHO_C" >&6
28339else
28340 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28348#define $ac_func innocuous_$ac_func
28349
28350/* System header to define __stub macros and hopefully few prototypes,
28351 which can conflict with char $ac_func (); below.
28352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28353 <limits.h> exists even on freestanding compilers. */
28354
28355#ifdef __STDC__
28356# include <limits.h>
28357#else
28358# include <assert.h>
28359#endif
28360
28361#undef $ac_func
28362
28363/* Override any gcc2 internal prototype to avoid an error. */
28364#ifdef __cplusplus
28365extern "C"
28366{
28367#endif
28368/* We use char because int might match the return type of a gcc2
28369 builtin and then its argument prototype would still apply. */
28370char $ac_func ();
28371/* The GNU C library defines this for functions which it implements
28372 to always fail with ENOSYS. Some functions are actually named
28373 something starting with __ and the normal name is an alias. */
28374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28375choke me
28376#else
28377char (*f) () = $ac_func;
28378#endif
28379#ifdef __cplusplus
28380}
28381#endif
John Criswell7a73b802003-06-30 21:59:07 +000028382
John Criswell7a73b802003-06-30 21:59:07 +000028383int
28384main ()
28385{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028386return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028387 ;
28388 return 0;
28389}
28390_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028391rm -f conftest.$ac_objext conftest$ac_exeext
28392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28393 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028395 grep -v '^ *+' conftest.er1 >conftest.err
28396 rm -f conftest.er1
28397 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028400 { ac_try='test -z "$ac_c_werror_flag"
28401 || test ! -s conftest.err'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28404 ac_status=$?
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028407 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028413 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028414else
28415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028416sed 's/^/| /' conftest.$ac_ext >&5
28417
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028418eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028419fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028420rm -f conftest.err conftest.$ac_objext \
28421 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028422fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28425if test `eval echo '${'$as_ac_var'}'` = yes; then
28426 cat >>confdefs.h <<_ACEOF
28427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028428_ACEOF
28429
28430fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028431done
John Criswell7a73b802003-06-30 21:59:07 +000028432
Reid Spencercdb08a32006-06-05 16:11:07 +000028433
28434
28435
28436
28437
28438
28439for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28440do
28441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28442echo "$as_me:$LINENO: checking for $ac_func" >&5
28443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28444if eval "test \"\${$as_ac_var+set}\" = set"; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28446else
28447 cat >conftest.$ac_ext <<_ACEOF
28448/* confdefs.h. */
28449_ACEOF
28450cat confdefs.h >>conftest.$ac_ext
28451cat >>conftest.$ac_ext <<_ACEOF
28452/* end confdefs.h. */
28453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28455#define $ac_func innocuous_$ac_func
28456
28457/* System header to define __stub macros and hopefully few prototypes,
28458 which can conflict with char $ac_func (); below.
28459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28460 <limits.h> exists even on freestanding compilers. */
28461
28462#ifdef __STDC__
28463# include <limits.h>
28464#else
28465# include <assert.h>
28466#endif
28467
28468#undef $ac_func
28469
28470/* Override any gcc2 internal prototype to avoid an error. */
28471#ifdef __cplusplus
28472extern "C"
28473{
28474#endif
28475/* We use char because int might match the return type of a gcc2
28476 builtin and then its argument prototype would still apply. */
28477char $ac_func ();
28478/* The GNU C library defines this for functions which it implements
28479 to always fail with ENOSYS. Some functions are actually named
28480 something starting with __ and the normal name is an alias. */
28481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28482choke me
28483#else
28484char (*f) () = $ac_func;
28485#endif
28486#ifdef __cplusplus
28487}
28488#endif
28489
28490int
28491main ()
28492{
28493return f != $ac_func;
28494 ;
28495 return 0;
28496}
28497_ACEOF
28498rm -f conftest.$ac_objext conftest$ac_exeext
28499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28500 (eval $ac_link) 2>conftest.er1
28501 ac_status=$?
28502 grep -v '^ *+' conftest.er1 >conftest.err
28503 rm -f conftest.er1
28504 cat conftest.err >&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } &&
28507 { ac_try='test -z "$ac_c_werror_flag"
28508 || test ! -s conftest.err'
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest$ac_exeext'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 eval "$as_ac_var=yes"
28521else
28522 echo "$as_me: failed program was:" >&5
28523sed 's/^/| /' conftest.$ac_ext >&5
28524
28525eval "$as_ac_var=no"
28526fi
28527rm -f conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
28529fi
28530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28532if test `eval echo '${'$as_ac_var'}'` = yes; then
28533 cat >>confdefs.h <<_ACEOF
28534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28535_ACEOF
28536
28537fi
28538done
28539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028540echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28541echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028542if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028545 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028546ac_cpp='$CPP $CPPFLAGS'
28547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549ac_compiler_gnu=$ac_cv_c_compiler_gnu
28550
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028551 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028552 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028553else
28554 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028555
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028556 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028561
John Criswella0137d32003-10-13 16:22:01 +000028562#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028563#include <stdlib.h>
28564
John Criswella0137d32003-10-13 16:22:01 +000028565int
28566main ()
28567{
28568
Reid Spencer2706f8c2004-09-19 23:53:36 +000028569volatile double A, B;
28570char Buffer[100];
28571A = 1;
28572A /= 10.0;
28573sprintf(Buffer, "%a", A);
28574B = atof(Buffer);
28575if (A != B)
28576 return (1);
28577if (A != 0x1.999999999999ap-4)
28578 return (1);
28579return (0);
John Criswella0137d32003-10-13 16:22:01 +000028580 ;
28581 return 0;
28582}
28583_ACEOF
28584rm -f conftest$ac_exeext
28585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28586 (eval $ac_link) 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028595 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028596else
28597 echo "$as_me: program exited with status $ac_status" >&5
28598echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028602llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028603fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028604rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028605fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028606 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028607ac_cpp='$CPP $CPPFLAGS'
28608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028612fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028613echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28614echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28615 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028616
28617cat >>confdefs.h <<\_ACEOF
28618#define HAVE_PRINTF_A 1
28619_ACEOF
28620
Reid Spencer2706f8c2004-09-19 23:53:36 +000028621 fi
John Criswella0137d32003-10-13 16:22:01 +000028622
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028623# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28624# for constant arguments. Useless!
28625echo "$as_me:$LINENO: checking for working alloca.h" >&5
28626echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28627if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028628 echo $ECHO_N "(cached) $ECHO_C" >&6
28629else
John Criswell0021c312004-02-13 21:57:29 +000028630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028631/* confdefs.h. */
28632_ACEOF
28633cat confdefs.h >>conftest.$ac_ext
28634cat >>conftest.$ac_ext <<_ACEOF
28635/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028636#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028637int
28638main ()
28639{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028640char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028641 ;
28642 return 0;
28643}
28644_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028645rm -f conftest.$ac_objext conftest$ac_exeext
28646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28647 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028654 { ac_try='test -z "$ac_c_werror_flag"
28655 || test ! -s conftest.err'
28656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657 (eval $ac_try) 2>&5
28658 ac_status=$?
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028661 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663 (eval $ac_try) 2>&5
28664 ac_status=$?
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028667 ac_cv_working_alloca_h=yes
28668else
28669 echo "$as_me: failed program was:" >&5
28670sed 's/^/| /' conftest.$ac_ext >&5
28671
28672ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028673fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028674rm -f conftest.err conftest.$ac_objext \
28675 conftest$ac_exeext conftest.$ac_ext
28676fi
28677echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28678echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28679if test $ac_cv_working_alloca_h = yes; then
28680
28681cat >>confdefs.h <<\_ACEOF
28682#define HAVE_ALLOCA_H 1
28683_ACEOF
28684
28685fi
28686
28687echo "$as_me:$LINENO: checking for alloca" >&5
28688echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28689if test "${ac_cv_func_alloca_works+set}" = set; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691else
28692 cat >conftest.$ac_ext <<_ACEOF
28693/* confdefs.h. */
28694_ACEOF
28695cat confdefs.h >>conftest.$ac_ext
28696cat >>conftest.$ac_ext <<_ACEOF
28697/* end confdefs.h. */
28698#ifdef __GNUC__
28699# define alloca __builtin_alloca
28700#else
28701# ifdef _MSC_VER
28702# include <malloc.h>
28703# define alloca _alloca
28704# else
28705# if HAVE_ALLOCA_H
28706# include <alloca.h>
28707# else
28708# ifdef _AIX
28709 #pragma alloca
28710# else
28711# ifndef alloca /* predefined by HP cc +Olibcalls */
28712char *alloca ();
28713# endif
28714# endif
28715# endif
28716# endif
28717#endif
28718
28719int
28720main ()
28721{
28722char *p = (char *) alloca (1);
28723 ;
28724 return 0;
28725}
28726_ACEOF
28727rm -f conftest.$ac_objext conftest$ac_exeext
28728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28729 (eval $ac_link) 2>conftest.er1
28730 ac_status=$?
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } &&
28736 { ac_try='test -z "$ac_c_werror_flag"
28737 || test ! -s conftest.err'
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; } &&
28743 { ac_try='test -s conftest$ac_exeext'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 ac_cv_func_alloca_works=yes
28750else
28751 echo "$as_me: failed program was:" >&5
28752sed 's/^/| /' conftest.$ac_ext >&5
28753
28754ac_cv_func_alloca_works=no
28755fi
28756rm -f conftest.err conftest.$ac_objext \
28757 conftest$ac_exeext conftest.$ac_ext
28758fi
28759echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28760echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28761
28762if test $ac_cv_func_alloca_works = yes; then
28763
28764cat >>confdefs.h <<\_ACEOF
28765#define HAVE_ALLOCA 1
28766_ACEOF
28767
28768else
28769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28770# that cause trouble. Some versions do not even contain alloca or
28771# contain a buggy version. If you still want to use their alloca,
28772# use ar to extract alloca.o from them instead of compiling alloca.c.
28773
28774ALLOCA=alloca.$ac_objext
28775
28776cat >>confdefs.h <<\_ACEOF
28777#define C_ALLOCA 1
28778_ACEOF
28779
28780
28781echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28782echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28783if test "${ac_cv_os_cray+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28785else
28786 cat >conftest.$ac_ext <<_ACEOF
28787/* confdefs.h. */
28788_ACEOF
28789cat confdefs.h >>conftest.$ac_ext
28790cat >>conftest.$ac_ext <<_ACEOF
28791/* end confdefs.h. */
28792#if defined(CRAY) && ! defined(CRAY2)
28793webecray
28794#else
28795wenotbecray
28796#endif
28797
28798_ACEOF
28799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28800 $EGREP "webecray" >/dev/null 2>&1; then
28801 ac_cv_os_cray=yes
28802else
28803 ac_cv_os_cray=no
28804fi
28805rm -f conftest*
28806
28807fi
28808echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28809echo "${ECHO_T}$ac_cv_os_cray" >&6
28810if test $ac_cv_os_cray = yes; then
28811 for ac_func in _getb67 GETB67 getb67; do
28812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813echo "$as_me:$LINENO: checking for $ac_func" >&5
28814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28815if eval "test \"\${$as_ac_var+set}\" = set"; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
28818 cat >conftest.$ac_ext <<_ACEOF
28819/* confdefs.h. */
28820_ACEOF
28821cat confdefs.h >>conftest.$ac_ext
28822cat >>conftest.$ac_ext <<_ACEOF
28823/* end confdefs.h. */
28824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28826#define $ac_func innocuous_$ac_func
28827
28828/* System header to define __stub macros and hopefully few prototypes,
28829 which can conflict with char $ac_func (); below.
28830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28831 <limits.h> exists even on freestanding compilers. */
28832
28833#ifdef __STDC__
28834# include <limits.h>
28835#else
28836# include <assert.h>
28837#endif
28838
28839#undef $ac_func
28840
28841/* Override any gcc2 internal prototype to avoid an error. */
28842#ifdef __cplusplus
28843extern "C"
28844{
28845#endif
28846/* We use char because int might match the return type of a gcc2
28847 builtin and then its argument prototype would still apply. */
28848char $ac_func ();
28849/* The GNU C library defines this for functions which it implements
28850 to always fail with ENOSYS. Some functions are actually named
28851 something starting with __ and the normal name is an alias. */
28852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28853choke me
28854#else
28855char (*f) () = $ac_func;
28856#endif
28857#ifdef __cplusplus
28858}
28859#endif
28860
28861int
28862main ()
28863{
28864return f != $ac_func;
28865 ;
28866 return 0;
28867}
28868_ACEOF
28869rm -f conftest.$ac_objext conftest$ac_exeext
28870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28871 (eval $ac_link) 2>conftest.er1
28872 ac_status=$?
28873 grep -v '^ *+' conftest.er1 >conftest.err
28874 rm -f conftest.er1
28875 cat conftest.err >&5
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
28878 { ac_try='test -z "$ac_c_werror_flag"
28879 || test ! -s conftest.err'
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest$ac_exeext'
28886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887 (eval $ac_try) 2>&5
28888 ac_status=$?
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); }; }; then
28891 eval "$as_ac_var=yes"
28892else
28893 echo "$as_me: failed program was:" >&5
28894sed 's/^/| /' conftest.$ac_ext >&5
28895
28896eval "$as_ac_var=no"
28897fi
28898rm -f conftest.err conftest.$ac_objext \
28899 conftest$ac_exeext conftest.$ac_ext
28900fi
28901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28902echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28903if test `eval echo '${'$as_ac_var'}'` = yes; then
28904
28905cat >>confdefs.h <<_ACEOF
28906#define CRAY_STACKSEG_END $ac_func
28907_ACEOF
28908
28909 break
28910fi
28911
28912 done
28913fi
28914
28915echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28916echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28917if test "${ac_cv_c_stack_direction+set}" = set; then
28918 echo $ECHO_N "(cached) $ECHO_C" >&6
28919else
28920 if test "$cross_compiling" = yes; then
28921 ac_cv_c_stack_direction=0
28922else
28923 cat >conftest.$ac_ext <<_ACEOF
28924/* confdefs.h. */
28925_ACEOF
28926cat confdefs.h >>conftest.$ac_ext
28927cat >>conftest.$ac_ext <<_ACEOF
28928/* end confdefs.h. */
28929int
28930find_stack_direction ()
28931{
28932 static char *addr = 0;
28933 auto char dummy;
28934 if (addr == 0)
28935 {
28936 addr = &dummy;
28937 return find_stack_direction ();
28938 }
John Criswell0021c312004-02-13 21:57:29 +000028939 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028940 return (&dummy > addr) ? 1 : -1;
28941}
John Criswell0021c312004-02-13 21:57:29 +000028942
John Criswell0021c312004-02-13 21:57:29 +000028943int
28944main ()
28945{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028946 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028947}
28948_ACEOF
28949rm -f conftest$ac_exeext
28950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28951 (eval $ac_link) 2>&5
28952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28956 (eval $ac_try) 2>&5
28957 ac_status=$?
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028960 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028961else
28962 echo "$as_me: program exited with status $ac_status" >&5
28963echo "$as_me: failed program was:" >&5
28964sed 's/^/| /' conftest.$ac_ext >&5
28965
28966( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028967ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028968fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028969rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028970fi
28971fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028972echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28973echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28974
28975cat >>confdefs.h <<_ACEOF
28976#define STACK_DIRECTION $ac_cv_c_stack_direction
28977_ACEOF
28978
28979
John Criswell0021c312004-02-13 21:57:29 +000028980fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028981
28982
28983echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28984echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28985if test "${ac_cv_func_rand48+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988 ac_ext=cc
28989ac_cpp='$CXXCPP $CPPFLAGS'
28990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28993
28994 cat >conftest.$ac_ext <<_ACEOF
28995/* confdefs.h. */
28996_ACEOF
28997cat confdefs.h >>conftest.$ac_ext
28998cat >>conftest.$ac_ext <<_ACEOF
28999/* end confdefs.h. */
29000#include <stdlib.h>
29001int
29002main ()
29003{
29004srand48(0);lrand48();drand48();
29005 ;
29006 return 0;
29007}
29008_ACEOF
29009rm -f conftest.$ac_objext
29010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29011 (eval $ac_compile) 2>conftest.er1
29012 ac_status=$?
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
29018 { ac_try='test -z "$ac_cxx_werror_flag"
29019 || test ! -s conftest.err'
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest.$ac_objext'
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_func_rand48=yes
29032else
29033 echo "$as_me: failed program was:" >&5
29034sed 's/^/| /' conftest.$ac_ext >&5
29035
29036ac_cv_func_rand48=no
29037fi
29038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29039 ac_ext=c
29040ac_cpp='$CPP $CPPFLAGS'
29041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29043ac_compiler_gnu=$ac_cv_c_compiler_gnu
29044
29045fi
29046echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29047echo "${ECHO_T}$ac_cv_func_rand48" >&6
29048
29049if test "$ac_cv_func_rand48" = "yes" ; then
29050
29051cat >>confdefs.h <<\_ACEOF
29052#define HAVE_RAND48 1
29053_ACEOF
29054
29055fi
John Criswell0021c312004-02-13 21:57:29 +000029056
29057
John Criswell7a73b802003-06-30 21:59:07 +000029058echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29059echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29060if test "${ac_cv_cxx_namespaces+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029063 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000029064ac_cpp='$CXXCPP $CPPFLAGS'
29065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29068
29069 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029070/* confdefs.h. */
29071_ACEOF
29072cat confdefs.h >>conftest.$ac_ext
29073cat >>conftest.$ac_ext <<_ACEOF
29074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029075namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029076int
29077main ()
29078{
29079using namespace Outer::Inner; return i;
29080 ;
29081 return 0;
29082}
29083_ACEOF
29084rm -f conftest.$ac_objext
29085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029086 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029088 grep -v '^ *+' conftest.er1 >conftest.err
29089 rm -f conftest.er1
29090 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029093 { ac_try='test -z "$ac_cxx_werror_flag"
29094 || test ! -s conftest.err'
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; } &&
29100 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
29106 ac_cv_cxx_namespaces=yes
29107else
29108 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029109sed 's/^/| /' conftest.$ac_ext >&5
29110
John Criswell7a73b802003-06-30 21:59:07 +000029111ac_cv_cxx_namespaces=no
29112fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029114 ac_ext=c
29115ac_cpp='$CPP $CPPFLAGS'
29116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29118ac_compiler_gnu=$ac_cv_c_compiler_gnu
29119
29120
29121fi
29122echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29123echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29124if test "$ac_cv_cxx_namespaces" = yes; then
29125
29126cat >>confdefs.h <<\_ACEOF
29127#define HAVE_NAMESPACES
29128_ACEOF
29129
29130fi
29131
Brian Gaeke90583492003-11-10 03:06:28 +000029132echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29133echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29134if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029135 echo $ECHO_N "(cached) $ECHO_C" >&6
29136else
29137
John Criswell7a73b802003-06-30 21:59:07 +000029138 ac_ext=cc
29139ac_cpp='$CXXCPP $CPPFLAGS'
29140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29143
29144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029145/* confdefs.h. */
29146_ACEOF
29147cat confdefs.h >>conftest.$ac_ext
29148cat >>conftest.$ac_ext <<_ACEOF
29149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029150#include <ext/hash_map>
29151#ifdef HAVE_NAMESPACES
29152using namespace std;
29153#endif
John Criswell7a73b802003-06-30 21:59:07 +000029154int
29155main ()
29156{
Brian Gaeke90583492003-11-10 03:06:28 +000029157hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029158 ;
29159 return 0;
29160}
29161_ACEOF
29162rm -f conftest.$ac_objext
29163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029164 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029166 grep -v '^ *+' conftest.er1 >conftest.err
29167 rm -f conftest.er1
29168 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029171 { ac_try='test -z "$ac_cxx_werror_flag"
29172 || test ! -s conftest.err'
29173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29174 (eval $ac_try) 2>&5
29175 ac_status=$?
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; } &&
29178 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180 (eval $ac_try) 2>&5
29181 ac_status=$?
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029184 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029185else
29186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029187sed 's/^/| /' conftest.$ac_ext >&5
29188
Brian Gaeke90583492003-11-10 03:06:28 +000029189ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029190fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029192 ac_ext=c
29193ac_cpp='$CPP $CPPFLAGS'
29194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29196ac_compiler_gnu=$ac_cv_c_compiler_gnu
29197
John Criswell7a73b802003-06-30 21:59:07 +000029198fi
Brian Gaeke90583492003-11-10 03:06:28 +000029199echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29200echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029201 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29202 then
John Criswell9f011862004-09-24 18:28:00 +000029203
29204cat >>confdefs.h <<\_ACEOF
29205#define HAVE_STD_EXT_HASH_MAP 1
29206_ACEOF
29207
29208 else
29209
29210cat >>confdefs.h <<\_ACEOF
29211#define HAVE_STD_EXT_HASH_MAP 0
29212_ACEOF
29213
Brian Gaeke90583492003-11-10 03:06:28 +000029214 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029215
Brian Gaeke90583492003-11-10 03:06:28 +000029216 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29217echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29218if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221
Brian Gaeke90583492003-11-10 03:06:28 +000029222 ac_ext=cc
29223ac_cpp='$CXXCPP $CPPFLAGS'
29224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29227
29228 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029229/* confdefs.h. */
29230_ACEOF
29231cat confdefs.h >>conftest.$ac_ext
29232cat >>conftest.$ac_ext <<_ACEOF
29233/* end confdefs.h. */
29234#include <ext/hash_map>
29235#ifdef HAVE_NAMESPACES
29236using namespace __gnu_cxx;
29237#endif
29238int
29239main ()
29240{
29241hash_map<int,int> t;
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext
29247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029248 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029255 { ac_try='test -z "$ac_cxx_werror_flag"
29256 || test ! -s conftest.err'
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; }; then
29268 ac_cv_cxx_have_gnu_ext_hash_map=yes
29269else
29270 echo "$as_me: failed program was:" >&5
29271sed 's/^/| /' conftest.$ac_ext >&5
29272
29273ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029274fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029276 ac_ext=c
29277ac_cpp='$CPP $CPPFLAGS'
29278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29280ac_compiler_gnu=$ac_cv_c_compiler_gnu
29281
29282fi
29283echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29284echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029285 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29286 then
John Criswell9f011862004-09-24 18:28:00 +000029287
29288cat >>confdefs.h <<\_ACEOF
29289#define HAVE_GNU_EXT_HASH_MAP 1
29290_ACEOF
29291
29292 else
29293
29294cat >>confdefs.h <<\_ACEOF
29295#define HAVE_GNU_EXT_HASH_MAP 0
29296_ACEOF
29297
Brian Gaeke90583492003-11-10 03:06:28 +000029298 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029299
Brian Gaeke90583492003-11-10 03:06:28 +000029300 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29301echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29302if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29304else
John Criswell7a73b802003-06-30 21:59:07 +000029305
Brian Gaeke90583492003-11-10 03:06:28 +000029306 ac_ext=cc
29307ac_cpp='$CXXCPP $CPPFLAGS'
29308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29311
29312 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029313/* confdefs.h. */
29314_ACEOF
29315cat confdefs.h >>conftest.$ac_ext
29316cat >>conftest.$ac_ext <<_ACEOF
29317/* end confdefs.h. */
29318#include <hash_map>
29319int
29320main ()
29321{
29322hash_map<int,int> t;
29323 ;
29324 return 0;
29325}
29326_ACEOF
29327rm -f conftest.$ac_objext
29328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029329 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029336 { ac_try='test -z "$ac_cxx_werror_flag"
29337 || test ! -s conftest.err'
29338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; } &&
29343 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345 (eval $ac_try) 2>&5
29346 ac_status=$?
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; }; then
29349 ac_cv_cxx_have_global_hash_map=yes
29350else
29351 echo "$as_me: failed program was:" >&5
29352sed 's/^/| /' conftest.$ac_ext >&5
29353
29354ac_cv_cxx_have_global_hash_map=no
29355fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029357 ac_ext=c
29358ac_cpp='$CPP $CPPFLAGS'
29359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361ac_compiler_gnu=$ac_cv_c_compiler_gnu
29362
29363fi
29364echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29365echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029366 if test "$ac_cv_cxx_have_global_hash_map" = yes
29367 then
John Criswell9f011862004-09-24 18:28:00 +000029368
29369cat >>confdefs.h <<\_ACEOF
29370#define HAVE_GLOBAL_HASH_MAP 1
29371_ACEOF
29372
29373 else
29374
29375cat >>confdefs.h <<\_ACEOF
29376#define HAVE_GLOBAL_HASH_MAP 0
29377_ACEOF
29378
Brian Gaeke90583492003-11-10 03:06:28 +000029379 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029380
Brian Gaeke90583492003-11-10 03:06:28 +000029381echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29382echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29383if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029384 echo $ECHO_N "(cached) $ECHO_C" >&6
29385else
29386
John Criswell7a73b802003-06-30 21:59:07 +000029387 ac_ext=cc
29388ac_cpp='$CXXCPP $CPPFLAGS'
29389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29392
29393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029394/* confdefs.h. */
29395_ACEOF
29396cat confdefs.h >>conftest.$ac_ext
29397cat >>conftest.$ac_ext <<_ACEOF
29398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029399#include <ext/hash_set>
29400#ifdef HAVE_NAMESPACES
29401using namespace std;
29402#endif
John Criswell7a73b802003-06-30 21:59:07 +000029403int
29404main ()
29405{
Brian Gaeke90583492003-11-10 03:06:28 +000029406hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029407 ;
29408 return 0;
29409}
29410_ACEOF
29411rm -f conftest.$ac_objext
29412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029413 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029415 grep -v '^ *+' conftest.er1 >conftest.err
29416 rm -f conftest.er1
29417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029420 { ac_try='test -z "$ac_cxx_werror_flag"
29421 || test ! -s conftest.err'
29422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423 (eval $ac_try) 2>&5
29424 ac_status=$?
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); }; } &&
29427 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029433 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029434else
29435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029436sed 's/^/| /' conftest.$ac_ext >&5
29437
Brian Gaeke90583492003-11-10 03:06:28 +000029438ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029441 ac_ext=c
29442ac_cpp='$CPP $CPPFLAGS'
29443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29445ac_compiler_gnu=$ac_cv_c_compiler_gnu
29446
29447fi
29448echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29449echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029450 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29451 then
John Criswell9f011862004-09-24 18:28:00 +000029452
29453cat >>confdefs.h <<\_ACEOF
29454#define HAVE_STD_EXT_HASH_SET 1
29455_ACEOF
29456
29457 else
29458
29459cat >>confdefs.h <<\_ACEOF
29460#define HAVE_STD_EXT_HASH_SET 0
29461_ACEOF
29462
Brian Gaeke90583492003-11-10 03:06:28 +000029463 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029464
Brian Gaeke90583492003-11-10 03:06:28 +000029465 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29466echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29467if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29469else
29470
Brian Gaeke90583492003-11-10 03:06:28 +000029471 ac_ext=cc
29472ac_cpp='$CXXCPP $CPPFLAGS'
29473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29476
John Criswell7a73b802003-06-30 21:59:07 +000029477 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029478/* confdefs.h. */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029483#include <ext/hash_set>
29484#ifdef HAVE_NAMESPACES
29485using namespace __gnu_cxx;
29486#endif
John Criswell7a73b802003-06-30 21:59:07 +000029487int
29488main ()
29489{
Brian Gaeke90583492003-11-10 03:06:28 +000029490hash_set<int> t;
29491 ;
29492 return 0;
29493}
29494_ACEOF
29495rm -f conftest.$ac_objext
29496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029497 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029499 grep -v '^ *+' conftest.er1 >conftest.err
29500 rm -f conftest.er1
29501 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029504 { ac_try='test -z "$ac_cxx_werror_flag"
29505 || test ! -s conftest.err'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29508 ac_status=$?
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; } &&
29511 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29514 ac_status=$?
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29517 ac_cv_cxx_have_gnu_ext_hash_set=yes
29518else
29519 echo "$as_me: failed program was:" >&5
29520sed 's/^/| /' conftest.$ac_ext >&5
29521
29522ac_cv_cxx_have_gnu_ext_hash_set=no
29523fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029525 ac_ext=c
29526ac_cpp='$CPP $CPPFLAGS'
29527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529ac_compiler_gnu=$ac_cv_c_compiler_gnu
29530
29531fi
29532echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29533echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029534 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29535 then
John Criswell9f011862004-09-24 18:28:00 +000029536
29537cat >>confdefs.h <<\_ACEOF
29538#define HAVE_GNU_EXT_HASH_SET 1
29539_ACEOF
29540
29541 else
29542
29543cat >>confdefs.h <<\_ACEOF
29544#define HAVE_GNU_EXT_HASH_SET 0
29545_ACEOF
29546
Brian Gaeke90583492003-11-10 03:06:28 +000029547 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029548
Brian Gaeke90583492003-11-10 03:06:28 +000029549 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29550echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29551if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29553else
29554
Brian Gaeke90583492003-11-10 03:06:28 +000029555 ac_ext=cc
29556ac_cpp='$CXXCPP $CPPFLAGS'
29557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29560
29561 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029562/* confdefs.h. */
29563_ACEOF
29564cat confdefs.h >>conftest.$ac_ext
29565cat >>conftest.$ac_ext <<_ACEOF
29566/* end confdefs.h. */
29567#include <hash_set>
29568int
29569main ()
29570{
John Criswell7a73b802003-06-30 21:59:07 +000029571hash_set<int> t; return 0;
29572 ;
29573 return 0;
29574}
29575_ACEOF
29576rm -f conftest.$ac_objext
29577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029578 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029580 grep -v '^ *+' conftest.er1 >conftest.err
29581 rm -f conftest.er1
29582 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029585 { ac_try='test -z "$ac_cxx_werror_flag"
29586 || test ! -s conftest.err'
29587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29589 ac_status=$?
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; } &&
29592 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594 (eval $ac_try) 2>&5
29595 ac_status=$?
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029598 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029599else
29600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029601sed 's/^/| /' conftest.$ac_ext >&5
29602
Brian Gaeke90583492003-11-10 03:06:28 +000029603ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029604fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029606 ac_ext=c
29607ac_cpp='$CPP $CPPFLAGS'
29608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29610ac_compiler_gnu=$ac_cv_c_compiler_gnu
29611
John Criswell7a73b802003-06-30 21:59:07 +000029612fi
Brian Gaeke90583492003-11-10 03:06:28 +000029613echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29614echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029615 if test "$ac_cv_cxx_have_global_hash_set" = yes
29616 then
John Criswell9f011862004-09-24 18:28:00 +000029617
29618cat >>confdefs.h <<\_ACEOF
29619#define HAVE_GLOBAL_HASH_SET 1
29620_ACEOF
29621
29622 else
29623
29624cat >>confdefs.h <<\_ACEOF
29625#define HAVE_GLOBAL_HASH_SET 0
29626_ACEOF
29627
Brian Gaeke90583492003-11-10 03:06:28 +000029628 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029629
John Criswell7a73b802003-06-30 21:59:07 +000029630echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29631echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29632if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29633 echo $ECHO_N "(cached) $ECHO_C" >&6
29634else
29635
John Criswell7a73b802003-06-30 21:59:07 +000029636 ac_ext=cc
29637ac_cpp='$CXXCPP $CPPFLAGS'
29638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29641
29642 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029643/* confdefs.h. */
29644_ACEOF
29645cat confdefs.h >>conftest.$ac_ext
29646cat >>conftest.$ac_ext <<_ACEOF
29647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029648#include <iterator>
29649#ifdef HAVE_NAMESPACES
29650using namespace std;
29651#endif
John Criswell7a73b802003-06-30 21:59:07 +000029652int
29653main ()
29654{
29655iterator<int,int,int> t; return 0;
29656 ;
29657 return 0;
29658}
29659_ACEOF
29660rm -f conftest.$ac_objext
29661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029662 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029664 grep -v '^ *+' conftest.er1 >conftest.err
29665 rm -f conftest.er1
29666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029669 { ac_try='test -z "$ac_cxx_werror_flag"
29670 || test ! -s conftest.err'
29671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672 (eval $ac_try) 2>&5
29673 ac_status=$?
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; } &&
29676 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678 (eval $ac_try) 2>&5
29679 ac_status=$?
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; }; then
29682 ac_cv_cxx_have_std_iterator=yes
29683else
29684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029685sed 's/^/| /' conftest.$ac_ext >&5
29686
John Criswell7a73b802003-06-30 21:59:07 +000029687ac_cv_cxx_have_std_iterator=no
29688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029690 ac_ext=c
29691ac_cpp='$CPP $CPPFLAGS'
29692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694ac_compiler_gnu=$ac_cv_c_compiler_gnu
29695
29696
29697fi
29698echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29699echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029700if test "$ac_cv_cxx_have_std_iterator" = yes
29701then
John Criswell40468462004-09-24 21:19:06 +000029702
29703cat >>confdefs.h <<\_ACEOF
29704#define HAVE_STD_ITERATOR 1
29705_ACEOF
29706
29707else
29708
29709cat >>confdefs.h <<\_ACEOF
29710#define HAVE_STD_ITERATOR 0
29711_ACEOF
29712
John Criswell7a73b802003-06-30 21:59:07 +000029713fi
29714
29715echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29716echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29717if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29718 echo $ECHO_N "(cached) $ECHO_C" >&6
29719else
29720
John Criswell7a73b802003-06-30 21:59:07 +000029721 ac_ext=cc
29722ac_cpp='$CXXCPP $CPPFLAGS'
29723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29726
29727 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029728/* confdefs.h. */
29729_ACEOF
29730cat confdefs.h >>conftest.$ac_ext
29731cat >>conftest.$ac_ext <<_ACEOF
29732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029733#include <iterator>
29734#ifdef HAVE_NAMESPACES
29735using namespace std;
29736#endif
John Criswell7a73b802003-06-30 21:59:07 +000029737int
29738main ()
29739{
John Criswellc78022e2003-07-29 19:11:58 +000029740bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029741 ;
29742 return 0;
29743}
29744_ACEOF
29745rm -f conftest.$ac_objext
29746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029747 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029749 grep -v '^ *+' conftest.er1 >conftest.err
29750 rm -f conftest.er1
29751 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029754 { ac_try='test -z "$ac_cxx_werror_flag"
29755 || test ! -s conftest.err'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29758 ac_status=$?
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29764 ac_status=$?
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; }; then
29767 ac_cv_cxx_have_bi_iterator=yes
29768else
29769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029770sed 's/^/| /' conftest.$ac_ext >&5
29771
John Criswell7a73b802003-06-30 21:59:07 +000029772ac_cv_cxx_have_bi_iterator=no
29773fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029775 ac_ext=c
29776ac_cpp='$CPP $CPPFLAGS'
29777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779ac_compiler_gnu=$ac_cv_c_compiler_gnu
29780
29781
29782fi
29783echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29784echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029785if test "$ac_cv_cxx_have_bi_iterator" = yes
29786then
John Criswell40468462004-09-24 21:19:06 +000029787
29788cat >>confdefs.h <<\_ACEOF
29789#define HAVE_BI_ITERATOR 1
29790_ACEOF
29791
29792else
29793
29794cat >>confdefs.h <<\_ACEOF
29795#define HAVE_BI_ITERATOR 0
29796_ACEOF
29797
John Criswell7a73b802003-06-30 21:59:07 +000029798fi
29799
29800echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29801echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29802if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29804else
29805
John Criswell7a73b802003-06-30 21:59:07 +000029806 ac_ext=cc
29807ac_cpp='$CXXCPP $CPPFLAGS'
29808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29811
29812 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029813/* confdefs.h. */
29814_ACEOF
29815cat confdefs.h >>conftest.$ac_ext
29816cat >>conftest.$ac_ext <<_ACEOF
29817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029818#include <iterator>
29819#ifdef HAVE_NAMESPACES
29820using namespace std;
29821#endif
John Criswell7a73b802003-06-30 21:59:07 +000029822int
29823main ()
29824{
John Criswellc78022e2003-07-29 19:11:58 +000029825forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029826 ;
29827 return 0;
29828}
29829_ACEOF
29830rm -f conftest.$ac_objext
29831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029832 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029833 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029834 grep -v '^ *+' conftest.er1 >conftest.err
29835 rm -f conftest.er1
29836 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029839 { ac_try='test -z "$ac_cxx_werror_flag"
29840 || test ! -s conftest.err'
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29849 ac_status=$?
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29852 ac_cv_cxx_have_fwd_iterator=yes
29853else
29854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029855sed 's/^/| /' conftest.$ac_ext >&5
29856
John Criswell7a73b802003-06-30 21:59:07 +000029857ac_cv_cxx_have_fwd_iterator=no
29858fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029860 ac_ext=c
29861ac_cpp='$CPP $CPPFLAGS'
29862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864ac_compiler_gnu=$ac_cv_c_compiler_gnu
29865
29866
29867fi
29868echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29869echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029870if test "$ac_cv_cxx_have_fwd_iterator" = yes
29871then
John Criswell40468462004-09-24 21:19:06 +000029872
29873cat >>confdefs.h <<\_ACEOF
29874#define HAVE_FWD_ITERATOR 1
29875_ACEOF
29876
29877else
29878
29879cat >>confdefs.h <<\_ACEOF
29880#define HAVE_FWD_ITERATOR 0
29881_ACEOF
29882
John Criswell7a73b802003-06-30 21:59:07 +000029883fi
29884
29885
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029886echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29887echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29888if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29889 echo $ECHO_N "(cached) $ECHO_C" >&6
29890else
29891 ac_ext=cc
29892ac_cpp='$CXXCPP $CPPFLAGS'
29893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29896
Reid Spencerabec8f92004-10-27 23:03:44 +000029897 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029898/* confdefs.h. */
29899_ACEOF
29900cat confdefs.h >>conftest.$ac_ext
29901cat >>conftest.$ac_ext <<_ACEOF
29902/* end confdefs.h. */
29903#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029904int
29905main ()
29906{
29907float f; isnan(f);
29908 ;
29909 return 0;
29910}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029911_ACEOF
29912rm -f conftest.$ac_objext
29913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029914 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029916 grep -v '^ *+' conftest.er1 >conftest.err
29917 rm -f conftest.er1
29918 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029921 { ac_try='test -z "$ac_cxx_werror_flag"
29922 || test ! -s conftest.err'
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; } &&
29928 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29931 ac_status=$?
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; }; then
29934 ac_cv_func_isnan_in_math_h=yes
29935else
29936 echo "$as_me: failed program was:" >&5
29937sed 's/^/| /' conftest.$ac_ext >&5
29938
29939ac_cv_func_isnan_in_math_h=no
29940fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029942 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029943ac_cpp='$CPP $CPPFLAGS'
29944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946ac_compiler_gnu=$ac_cv_c_compiler_gnu
29947
29948fi
29949echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29950echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029951
29952
29953if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029954
29955cat >>confdefs.h <<\_ACEOF
29956#define HAVE_ISNAN_IN_MATH_H 1
29957_ACEOF
29958
Reid Spencerabec8f92004-10-27 23:03:44 +000029959fi
29960
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029961echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29962echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29963if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29965else
29966 ac_ext=cc
29967ac_cpp='$CXXCPP $CPPFLAGS'
29968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29971
Reid Spencerabec8f92004-10-27 23:03:44 +000029972 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029973/* confdefs.h. */
29974_ACEOF
29975cat confdefs.h >>conftest.$ac_ext
29976cat >>conftest.$ac_ext <<_ACEOF
29977/* end confdefs.h. */
29978#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029979int
29980main ()
29981{
29982float f; isnan(f);
29983 ;
29984 return 0;
29985}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029986_ACEOF
29987rm -f conftest.$ac_objext
29988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029989 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029990 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029991 grep -v '^ *+' conftest.er1 >conftest.err
29992 rm -f conftest.er1
29993 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029996 { ac_try='test -z "$ac_cxx_werror_flag"
29997 || test ! -s conftest.err'
29998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999 (eval $ac_try) 2>&5
30000 ac_status=$?
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
30009 ac_cv_func_isnan_in_cmath=yes
30010else
30011 echo "$as_me: failed program was:" >&5
30012sed 's/^/| /' conftest.$ac_ext >&5
30013
30014ac_cv_func_isnan_in_cmath=no
30015fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030017 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030018ac_cpp='$CPP $CPPFLAGS'
30019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30021ac_compiler_gnu=$ac_cv_c_compiler_gnu
30022
30023fi
30024echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30025echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030026
30027if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030028
30029cat >>confdefs.h <<\_ACEOF
30030#define HAVE_ISNAN_IN_CMATH 1
30031_ACEOF
30032
Reid Spencerabec8f92004-10-27 23:03:44 +000030033fi
30034
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030035echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30036echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30037if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30039else
30040 ac_ext=cc
30041ac_cpp='$CXXCPP $CPPFLAGS'
30042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30045
Reid Spencerabec8f92004-10-27 23:03:44 +000030046 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030047/* confdefs.h. */
30048_ACEOF
30049cat confdefs.h >>conftest.$ac_ext
30050cat >>conftest.$ac_ext <<_ACEOF
30051/* end confdefs.h. */
30052#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030053int
30054main ()
30055{
30056float f; std::isnan(f);
30057 ;
30058 return 0;
30059}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030060_ACEOF
30061rm -f conftest.$ac_objext
30062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030063 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030065 grep -v '^ *+' conftest.er1 >conftest.err
30066 rm -f conftest.er1
30067 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030070 { ac_try='test -z "$ac_cxx_werror_flag"
30071 || test ! -s conftest.err'
30072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073 (eval $ac_try) 2>&5
30074 ac_status=$?
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; } &&
30077 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079 (eval $ac_try) 2>&5
30080 ac_status=$?
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); }; }; then
30083 ac_cv_func_std_isnan_in_cmath=yes
30084else
30085 echo "$as_me: failed program was:" >&5
30086sed 's/^/| /' conftest.$ac_ext >&5
30087
30088ac_cv_func_std_isnan_in_cmath=no
30089fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030091 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030092ac_cpp='$CPP $CPPFLAGS'
30093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30095ac_compiler_gnu=$ac_cv_c_compiler_gnu
30096
30097fi
30098echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30099echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030100
30101if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030102
30103cat >>confdefs.h <<\_ACEOF
30104#define HAVE_STD_ISNAN_IN_CMATH 1
30105_ACEOF
30106
Reid Spencerabec8f92004-10-27 23:03:44 +000030107fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030108
30109
Brian Gaeke52a551d2004-07-21 03:14:12 +000030110echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30111echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30112if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30113 echo $ECHO_N "(cached) $ECHO_C" >&6
30114else
30115 ac_ext=cc
30116ac_cpp='$CXXCPP $CPPFLAGS'
30117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30120
Reid Spencerabec8f92004-10-27 23:03:44 +000030121 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030122/* confdefs.h. */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h. */
30127#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030128int
30129main ()
30130{
30131float f; isinf(f);
30132 ;
30133 return 0;
30134}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030135_ACEOF
30136rm -f conftest.$ac_objext
30137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030138 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030139 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030140 grep -v '^ *+' conftest.er1 >conftest.err
30141 rm -f conftest.er1
30142 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030145 { ac_try='test -z "$ac_cxx_werror_flag"
30146 || test ! -s conftest.err'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 ac_cv_func_isinf_in_math_h=yes
30159else
30160 echo "$as_me: failed program was:" >&5
30161sed 's/^/| /' conftest.$ac_ext >&5
30162
30163ac_cv_func_isinf_in_math_h=no
30164fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030166 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030167ac_cpp='$CPP $CPPFLAGS'
30168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30170ac_compiler_gnu=$ac_cv_c_compiler_gnu
30171
30172fi
30173echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30174echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030175
30176if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030177
30178cat >>confdefs.h <<\_ACEOF
30179#define HAVE_ISINF_IN_MATH_H 1
30180_ACEOF
30181
Reid Spencerabec8f92004-10-27 23:03:44 +000030182fi
30183
Brian Gaeke52a551d2004-07-21 03:14:12 +000030184echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30185echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30186if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30187 echo $ECHO_N "(cached) $ECHO_C" >&6
30188else
30189 ac_ext=cc
30190ac_cpp='$CXXCPP $CPPFLAGS'
30191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30194
Reid Spencerabec8f92004-10-27 23:03:44 +000030195 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030196/* confdefs.h. */
30197_ACEOF
30198cat confdefs.h >>conftest.$ac_ext
30199cat >>conftest.$ac_ext <<_ACEOF
30200/* end confdefs.h. */
30201#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030202int
30203main ()
30204{
30205float f; isinf(f);
30206 ;
30207 return 0;
30208}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030209_ACEOF
30210rm -f conftest.$ac_objext
30211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030212 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030214 grep -v '^ *+' conftest.er1 >conftest.err
30215 rm -f conftest.er1
30216 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030219 { ac_try='test -z "$ac_cxx_werror_flag"
30220 || test ! -s conftest.err'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; } &&
30226 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228 (eval $ac_try) 2>&5
30229 ac_status=$?
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; }; then
30232 ac_cv_func_isinf_in_cmath=yes
30233else
30234 echo "$as_me: failed program was:" >&5
30235sed 's/^/| /' conftest.$ac_ext >&5
30236
30237ac_cv_func_isinf_in_cmath=no
30238fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030240 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030241ac_cpp='$CPP $CPPFLAGS'
30242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30244ac_compiler_gnu=$ac_cv_c_compiler_gnu
30245
30246fi
30247echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30248echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030249
30250if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030251
30252cat >>confdefs.h <<\_ACEOF
30253#define HAVE_ISINF_IN_CMATH 1
30254_ACEOF
30255
Reid Spencerabec8f92004-10-27 23:03:44 +000030256fi
30257
Brian Gaeke52a551d2004-07-21 03:14:12 +000030258echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30259echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30260if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30261 echo $ECHO_N "(cached) $ECHO_C" >&6
30262else
30263 ac_ext=cc
30264ac_cpp='$CXXCPP $CPPFLAGS'
30265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30268
Reid Spencerabec8f92004-10-27 23:03:44 +000030269 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030270/* confdefs.h. */
30271_ACEOF
30272cat confdefs.h >>conftest.$ac_ext
30273cat >>conftest.$ac_ext <<_ACEOF
30274/* end confdefs.h. */
30275#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030276int
30277main ()
30278{
30279float f; std::isinf(f)}
30280 ;
30281 return 0;
30282}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030283_ACEOF
30284rm -f conftest.$ac_objext
30285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030286 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030288 grep -v '^ *+' conftest.er1 >conftest.err
30289 rm -f conftest.er1
30290 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030293 { ac_try='test -z "$ac_cxx_werror_flag"
30294 || test ! -s conftest.err'
30295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30296 (eval $ac_try) 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; } &&
30300 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302 (eval $ac_try) 2>&5
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 ac_cv_func_std_isinf_in_cmath=yes
30307else
30308 echo "$as_me: failed program was:" >&5
30309sed 's/^/| /' conftest.$ac_ext >&5
30310
30311ac_cv_func_std_isinf_in_cmath=no
30312fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030314 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030315ac_cpp='$CPP $CPPFLAGS'
30316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30318ac_compiler_gnu=$ac_cv_c_compiler_gnu
30319
30320fi
30321echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30322echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030323
30324if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030325
30326cat >>confdefs.h <<\_ACEOF
30327#define HAVE_STD_ISINF_IN_CMATH 1
30328_ACEOF
30329
Reid Spencerabec8f92004-10-27 23:03:44 +000030330fi
30331
Brian Gaeked59a6472004-07-21 03:33:58 +000030332echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30333echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30334if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30335 echo $ECHO_N "(cached) $ECHO_C" >&6
30336else
30337 ac_ext=cc
30338ac_cpp='$CXXCPP $CPPFLAGS'
30339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30342
Reid Spencerabec8f92004-10-27 23:03:44 +000030343 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000030344/* confdefs.h. */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h. */
30349#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030350int
30351main ()
30352{
30353float f; finite(f);
30354 ;
30355 return 0;
30356}
Brian Gaeked59a6472004-07-21 03:33:58 +000030357_ACEOF
30358rm -f conftest.$ac_objext
30359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030360 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030361 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030367 { ac_try='test -z "$ac_cxx_werror_flag"
30368 || test ! -s conftest.err'
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 ac_cv_func_finite_in_ieeefp_h=yes
30381else
30382 echo "$as_me: failed program was:" >&5
30383sed 's/^/| /' conftest.$ac_ext >&5
30384
30385ac_cv_func_finite_in_ieeefp_h=no
30386fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030388 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030389ac_cpp='$CPP $CPPFLAGS'
30390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392ac_compiler_gnu=$ac_cv_c_compiler_gnu
30393
30394fi
30395echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30396echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030397
Brian Gaeke6802b552004-10-28 05:06:45 +000030398if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030399
30400cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030401#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030402_ACEOF
30403
Reid Spencerabec8f92004-10-27 23:03:44 +000030404fi
30405
30406
30407
John Criswell7a73b802003-06-30 21:59:07 +000030408
30409
30410for ac_header in stdlib.h unistd.h
30411do
30412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30413if eval "test \"\${$as_ac_Header+set}\" = set"; then
30414 echo "$as_me:$LINENO: checking for $ac_header" >&5
30415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30416if eval "test \"\${$as_ac_Header+set}\" = set"; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418fi
30419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30421else
30422 # Is the header compilable?
30423echo "$as_me:$LINENO: checking $ac_header usability" >&5
30424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30425cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030426/* confdefs.h. */
30427_ACEOF
30428cat confdefs.h >>conftest.$ac_ext
30429cat >>conftest.$ac_ext <<_ACEOF
30430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030431$ac_includes_default
30432#include <$ac_header>
30433_ACEOF
30434rm -f conftest.$ac_objext
30435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030436 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030438 grep -v '^ *+' conftest.er1 >conftest.err
30439 rm -f conftest.er1
30440 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030443 { ac_try='test -z "$ac_c_werror_flag"
30444 || test ! -s conftest.err'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; } &&
30450 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; }; then
30456 ac_header_compiler=yes
30457else
30458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030459sed 's/^/| /' conftest.$ac_ext >&5
30460
John Criswell7a73b802003-06-30 21:59:07 +000030461ac_header_compiler=no
30462fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30465echo "${ECHO_T}$ac_header_compiler" >&6
30466
30467# Is the header present?
30468echo "$as_me:$LINENO: checking $ac_header presence" >&5
30469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30470cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030471/* confdefs.h. */
30472_ACEOF
30473cat confdefs.h >>conftest.$ac_ext
30474cat >>conftest.$ac_ext <<_ACEOF
30475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030476#include <$ac_header>
30477_ACEOF
30478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30480 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030481 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030482 rm -f conftest.er1
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } >/dev/null; then
30486 if test -s conftest.err; then
30487 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030489 else
30490 ac_cpp_err=
30491 fi
30492else
30493 ac_cpp_err=yes
30494fi
30495if test -z "$ac_cpp_err"; then
30496 ac_header_preproc=yes
30497else
30498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030499sed 's/^/| /' conftest.$ac_ext >&5
30500
John Criswell7a73b802003-06-30 21:59:07 +000030501 ac_header_preproc=no
30502fi
30503rm -f conftest.err conftest.$ac_ext
30504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30505echo "${ECHO_T}$ac_header_preproc" >&6
30506
30507# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30509 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30514 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030515 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030516 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030529 (
30530 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030531## ----------------------------------- ##
30532## Report this to llvmbugs@cs.uiuc.edu ##
30533## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030534_ASBOX
30535 ) |
30536 sed "s/^/$as_me: WARNING: /" >&2
30537 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030538esac
30539echo "$as_me:$LINENO: checking for $ac_header" >&5
30540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30541if eval "test \"\${$as_ac_Header+set}\" = set"; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030544 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030545fi
30546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30548
30549fi
30550if test `eval echo '${'$as_ac_Header'}'` = yes; then
30551 cat >>confdefs.h <<_ACEOF
30552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30553_ACEOF
30554
30555fi
30556
30557done
30558
30559
30560for ac_func in getpagesize
30561do
30562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30563echo "$as_me:$LINENO: checking for $ac_func" >&5
30564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30565if eval "test \"\${$as_ac_var+set}\" = set"; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30567else
30568 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030569/* confdefs.h. */
30570_ACEOF
30571cat confdefs.h >>conftest.$ac_ext
30572cat >>conftest.$ac_ext <<_ACEOF
30573/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30576#define $ac_func innocuous_$ac_func
30577
John Criswell7a73b802003-06-30 21:59:07 +000030578/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030579 which can conflict with char $ac_func (); below.
30580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30581 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030582
John Criswell0c38eaf2003-09-10 15:17:25 +000030583#ifdef __STDC__
30584# include <limits.h>
30585#else
30586# include <assert.h>
30587#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030588
30589#undef $ac_func
30590
John Criswell7a73b802003-06-30 21:59:07 +000030591/* Override any gcc2 internal prototype to avoid an error. */
30592#ifdef __cplusplus
30593extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030594{
John Criswell7a73b802003-06-30 21:59:07 +000030595#endif
30596/* We use char because int might match the return type of a gcc2
30597 builtin and then its argument prototype would still apply. */
30598char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030599/* The GNU C library defines this for functions which it implements
30600 to always fail with ENOSYS. Some functions are actually named
30601 something starting with __ and the normal name is an alias. */
30602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30603choke me
30604#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030605char (*f) () = $ac_func;
30606#endif
30607#ifdef __cplusplus
30608}
John Criswell7a73b802003-06-30 21:59:07 +000030609#endif
30610
John Criswell0c38eaf2003-09-10 15:17:25 +000030611int
30612main ()
30613{
30614return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030615 ;
30616 return 0;
30617}
30618_ACEOF
30619rm -f conftest.$ac_objext conftest$ac_exeext
30620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030621 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030622 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030623 grep -v '^ *+' conftest.er1 >conftest.err
30624 rm -f conftest.er1
30625 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030628 { ac_try='test -z "$ac_c_werror_flag"
30629 || test ! -s conftest.err'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; } &&
30635 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30637 (eval $ac_try) 2>&5
30638 ac_status=$?
30639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30640 (exit $ac_status); }; }; then
30641 eval "$as_ac_var=yes"
30642else
30643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030644sed 's/^/| /' conftest.$ac_ext >&5
30645
John Criswell7a73b802003-06-30 21:59:07 +000030646eval "$as_ac_var=no"
30647fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030648rm -f conftest.err conftest.$ac_objext \
30649 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030650fi
30651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30653if test `eval echo '${'$as_ac_var'}'` = yes; then
30654 cat >>confdefs.h <<_ACEOF
30655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30656_ACEOF
30657
30658fi
30659done
30660
30661echo "$as_me:$LINENO: checking for working mmap" >&5
30662echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30663if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30664 echo $ECHO_N "(cached) $ECHO_C" >&6
30665else
30666 if test "$cross_compiling" = yes; then
30667 ac_cv_func_mmap_fixed_mapped=no
30668else
30669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030670/* confdefs.h. */
30671_ACEOF
30672cat confdefs.h >>conftest.$ac_ext
30673cat >>conftest.$ac_ext <<_ACEOF
30674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030675$ac_includes_default
30676/* malloc might have been renamed as rpl_malloc. */
30677#undef malloc
30678
30679/* Thanks to Mike Haertel and Jim Avera for this test.
30680 Here is a matrix of mmap possibilities:
30681 mmap private not fixed
30682 mmap private fixed at somewhere currently unmapped
30683 mmap private fixed at somewhere already mapped
30684 mmap shared not fixed
30685 mmap shared fixed at somewhere currently unmapped
30686 mmap shared fixed at somewhere already mapped
30687 For private mappings, we should verify that changes cannot be read()
30688 back from the file, nor mmap's back from the file at a different
30689 address. (There have been systems where private was not correctly
30690 implemented like the infamous i386 svr4.0, and systems where the
30691 VM page cache was not coherent with the file system buffer cache
30692 like early versions of FreeBSD and possibly contemporary NetBSD.)
30693 For shared mappings, we should conversely verify that changes get
30694 propagated back to all the places they're supposed to be.
30695
30696 Grep wants private fixed already mapped.
30697 The main things grep needs to know about mmap are:
30698 * does it exist and is it safe to write into the mmap'd area
30699 * how to use it (BSD variants) */
30700
30701#include <fcntl.h>
30702#include <sys/mman.h>
30703
30704#if !STDC_HEADERS && !HAVE_STDLIB_H
30705char *malloc ();
30706#endif
30707
30708/* This mess was copied from the GNU getpagesize.h. */
30709#if !HAVE_GETPAGESIZE
30710/* Assume that all systems that can run configure have sys/param.h. */
30711# if !HAVE_SYS_PARAM_H
30712# define HAVE_SYS_PARAM_H 1
30713# endif
30714
30715# ifdef _SC_PAGESIZE
30716# define getpagesize() sysconf(_SC_PAGESIZE)
30717# else /* no _SC_PAGESIZE */
30718# if HAVE_SYS_PARAM_H
30719# include <sys/param.h>
30720# ifdef EXEC_PAGESIZE
30721# define getpagesize() EXEC_PAGESIZE
30722# else /* no EXEC_PAGESIZE */
30723# ifdef NBPG
30724# define getpagesize() NBPG * CLSIZE
30725# ifndef CLSIZE
30726# define CLSIZE 1
30727# endif /* no CLSIZE */
30728# else /* no NBPG */
30729# ifdef NBPC
30730# define getpagesize() NBPC
30731# else /* no NBPC */
30732# ifdef PAGESIZE
30733# define getpagesize() PAGESIZE
30734# endif /* PAGESIZE */
30735# endif /* no NBPC */
30736# endif /* no NBPG */
30737# endif /* no EXEC_PAGESIZE */
30738# else /* no HAVE_SYS_PARAM_H */
30739# define getpagesize() 8192 /* punt totally */
30740# endif /* no HAVE_SYS_PARAM_H */
30741# endif /* no _SC_PAGESIZE */
30742
30743#endif /* no HAVE_GETPAGESIZE */
30744
30745int
30746main ()
30747{
30748 char *data, *data2, *data3;
30749 int i, pagesize;
30750 int fd;
30751
30752 pagesize = getpagesize ();
30753
30754 /* First, make a file with some known garbage in it. */
30755 data = (char *) malloc (pagesize);
30756 if (!data)
30757 exit (1);
30758 for (i = 0; i < pagesize; ++i)
30759 *(data + i) = rand ();
30760 umask (0);
30761 fd = creat ("conftest.mmap", 0600);
30762 if (fd < 0)
30763 exit (1);
30764 if (write (fd, data, pagesize) != pagesize)
30765 exit (1);
30766 close (fd);
30767
30768 /* Next, try to mmap the file at a fixed address which already has
30769 something else allocated at it. If we can, also make sure that
30770 we see the same garbage. */
30771 fd = open ("conftest.mmap", O_RDWR);
30772 if (fd < 0)
30773 exit (1);
30774 data2 = (char *) malloc (2 * pagesize);
30775 if (!data2)
30776 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030777 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030778 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030779 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030780 exit (1);
30781 for (i = 0; i < pagesize; ++i)
30782 if (*(data + i) != *(data2 + i))
30783 exit (1);
30784
30785 /* Finally, make sure that changes to the mapped area do not
30786 percolate back to the file as seen by read(). (This is a bug on
30787 some variants of i386 svr4.0.) */
30788 for (i = 0; i < pagesize; ++i)
30789 *(data2 + i) = *(data2 + i) + 1;
30790 data3 = (char *) malloc (pagesize);
30791 if (!data3)
30792 exit (1);
30793 if (read (fd, data3, pagesize) != pagesize)
30794 exit (1);
30795 for (i = 0; i < pagesize; ++i)
30796 if (*(data + i) != *(data3 + i))
30797 exit (1);
30798 close (fd);
30799 exit (0);
30800}
30801_ACEOF
30802rm -f conftest$ac_exeext
30803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30804 (eval $ac_link) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30810 ac_status=$?
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30813 ac_cv_func_mmap_fixed_mapped=yes
30814else
30815 echo "$as_me: program exited with status $ac_status" >&5
30816echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030817sed 's/^/| /' conftest.$ac_ext >&5
30818
John Criswell7a73b802003-06-30 21:59:07 +000030819( exit $ac_status )
30820ac_cv_func_mmap_fixed_mapped=no
30821fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030822rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030823fi
30824fi
30825echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30826echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30827if test $ac_cv_func_mmap_fixed_mapped = yes; then
30828
30829cat >>confdefs.h <<\_ACEOF
30830#define HAVE_MMAP 1
30831_ACEOF
30832
30833fi
30834rm -f conftest.mmap
30835
30836echo "$as_me:$LINENO: checking for mmap of files" >&5
30837echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30838if test "${ac_cv_func_mmap_file+set}" = set; then
30839 echo $ECHO_N "(cached) $ECHO_C" >&6
30840else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030841 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030842ac_cpp='$CPP $CPPFLAGS'
30843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30845ac_compiler_gnu=$ac_cv_c_compiler_gnu
30846
30847 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030848 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030849else
30850 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030851
Reid Spencer777ce172004-09-20 04:09:56 +000030852 /* confdefs.h. */
30853_ACEOF
30854cat confdefs.h >>conftest.$ac_ext
30855cat >>conftest.$ac_ext <<_ACEOF
30856/* end confdefs.h. */
30857
John Criswell7a73b802003-06-30 21:59:07 +000030858#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030859#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030860#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030861
30862int
30863main ()
30864{
John Criswell7a73b802003-06-30 21:59:07 +000030865
30866 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030867 fd = creat ("foo",0777);
30868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30869 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030870 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030871 ;
30872 return 0;
30873}
John Criswell7a73b802003-06-30 21:59:07 +000030874_ACEOF
30875rm -f conftest$ac_exeext
30876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877 (eval $ac_link) 2>&5
30878 ac_status=$?
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; }; then
30886 ac_cv_func_mmap_file=yes
30887else
30888 echo "$as_me: program exited with status $ac_status" >&5
30889echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030890sed 's/^/| /' conftest.$ac_ext >&5
30891
John Criswell7a73b802003-06-30 21:59:07 +000030892( exit $ac_status )
30893ac_cv_func_mmap_file=no
30894fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030896fi
30897 ac_ext=c
30898ac_cpp='$CPP $CPPFLAGS'
30899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30901ac_compiler_gnu=$ac_cv_c_compiler_gnu
30902
30903
30904fi
30905echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30906echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30907if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030908
30909cat >>confdefs.h <<\_ACEOF
30910#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030911_ACEOF
30912
30913 MMAP_FILE=yes
30914
30915fi
30916
Reid Spencer7931a782004-12-27 06:15:02 +000030917echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30918echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30919if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
Reid Spencer582a23c2004-12-29 07:07:57 +000030922 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030923 ac_cv_need_dev_zero_for_mmap=yes
30924 else
30925 ac_cv_need_dev_zero_for_mmap=no
30926 fi
30927
30928fi
30929echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30930echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30931if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30932
30933cat >>confdefs.h <<\_ACEOF
30934#define NEED_DEV_ZERO_FOR_MMAP 1
30935_ACEOF
30936
30937fi
John Criswell7a73b802003-06-30 21:59:07 +000030938echo "$as_me:$LINENO: checking for mprotect" >&5
30939echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30940if test "${ac_cv_func_mprotect+set}" = set; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30942else
30943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030944/* confdefs.h. */
30945_ACEOF
30946cat confdefs.h >>conftest.$ac_ext
30947cat >>conftest.$ac_ext <<_ACEOF
30948/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030949/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30951#define mprotect innocuous_mprotect
30952
John Criswell7a73b802003-06-30 21:59:07 +000030953/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030954 which can conflict with char mprotect (); below.
30955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30956 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030957
John Criswell0c38eaf2003-09-10 15:17:25 +000030958#ifdef __STDC__
30959# include <limits.h>
30960#else
30961# include <assert.h>
30962#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030963
30964#undef mprotect
30965
John Criswell7a73b802003-06-30 21:59:07 +000030966/* Override any gcc2 internal prototype to avoid an error. */
30967#ifdef __cplusplus
30968extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030969{
John Criswell7a73b802003-06-30 21:59:07 +000030970#endif
30971/* We use char because int might match the return type of a gcc2
30972 builtin and then its argument prototype would still apply. */
30973char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030974/* The GNU C library defines this for functions which it implements
30975 to always fail with ENOSYS. Some functions are actually named
30976 something starting with __ and the normal name is an alias. */
30977#if defined (__stub_mprotect) || defined (__stub___mprotect)
30978choke me
30979#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030980char (*f) () = mprotect;
30981#endif
30982#ifdef __cplusplus
30983}
John Criswell7a73b802003-06-30 21:59:07 +000030984#endif
30985
John Criswell0c38eaf2003-09-10 15:17:25 +000030986int
30987main ()
30988{
30989return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030990 ;
30991 return 0;
30992}
30993_ACEOF
30994rm -f conftest.$ac_objext conftest$ac_exeext
30995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030996 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030997 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030998 grep -v '^ *+' conftest.er1 >conftest.err
30999 rm -f conftest.er1
31000 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000031003 { ac_try='test -z "$ac_c_werror_flag"
31004 || test ! -s conftest.err'
31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 (eval $ac_try) 2>&5
31007 ac_status=$?
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; } &&
31010 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000031011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; }; then
31016 ac_cv_func_mprotect=yes
31017else
31018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031019sed 's/^/| /' conftest.$ac_ext >&5
31020
John Criswell7a73b802003-06-30 21:59:07 +000031021ac_cv_func_mprotect=no
31022fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031023rm -f conftest.err conftest.$ac_objext \
31024 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031025fi
31026echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31027echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31028if test $ac_cv_func_mprotect = yes; then
31029 :
31030else
31031 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31032echo "$as_me: error: Function mprotect() required but not found" >&2;}
31033 { (exit 1); exit 1; }; }
31034fi
31035
31036
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031037if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031038then
Reid Spencer582a23c2004-12-29 07:07:57 +000031039 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31040echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031041fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031042if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031043then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031044 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31045echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031046fi
John Criswell7a73b802003-06-30 21:59:07 +000031047
31048
Brian Gaekef3b24102003-11-16 18:38:14 +000031049echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31050echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031051if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31053else
31054 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031055if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031056 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000031057 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031058 if test $? -eq 0 ; then
31059 llvm_cv_llvmgcc_sanity="yes"
31060 fi
31061 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031062fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063fi
31064echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31065echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31066
31067if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031068 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031069 LLVMCC1=$llvmcc1path
31070
Reid Spencer502935f2004-12-22 05:56:56 +000031071 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031072 LLVMCC1PLUS=$llvmcc1pluspath
31073
Reid Spencer502935f2004-12-22 05:56:56 +000031074 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31075 LLVMGCCDIR=$llvmgccdir
31076
Reid Spencerb5d75b82006-05-09 00:31:01 +000031077 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031078 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31079 LLVMGCC_VERSION=$llvmgccversion
31080
31081 LLVMGCC_MAJVERS=$llvmgccmajvers
31082
Brian Gaekef3b24102003-11-16 18:38:14 +000031083fi
31084
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031085SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031086
31087
Reid Spencere9de0912004-08-20 09:03:57 +000031088# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031089# information into substitutions that will end up in Makefile.config.in
31090# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000031091if test "${prefix}" == "NONE" ; then
31092 prefix="/usr/local"
31093fi
Reid Spencere9de0912004-08-20 09:03:57 +000031094eval LLVM_PREFIX="${prefix}";
31095eval LLVM_BINDIR="${prefix}/bin";
31096eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031097eval LLVM_DATADIR="${prefix}/share/llvm";
31098eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31099eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031100eval LLVM_INCLUDEDIR="${prefix}/include";
31101eval LLVM_INFODIR="${prefix}/info";
31102eval LLVM_MANDIR="${prefix}/man";
31103LLVM_CONFIGTIME=`date`
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031115# Place the various directores into the config.h file as #defines so that we
31116# can know about the installation paths within LLVM.
31117
Reid Spencere9de0912004-08-20 09:03:57 +000031118cat >>confdefs.h <<_ACEOF
31119#define LLVM_PREFIX "$LLVM_PREFIX"
31120_ACEOF
31121
31122
31123cat >>confdefs.h <<_ACEOF
31124#define LLVM_BINDIR "$LLVM_BINDIR"
31125_ACEOF
31126
31127
31128cat >>confdefs.h <<_ACEOF
31129#define LLVM_LIBDIR "$LLVM_LIBDIR"
31130_ACEOF
31131
31132
31133cat >>confdefs.h <<_ACEOF
31134#define LLVM_DATADIR "$LLVM_DATADIR"
31135_ACEOF
31136
31137
31138cat >>confdefs.h <<_ACEOF
31139#define LLVM_DATADIR "$LLVM_DOCSDIR"
31140_ACEOF
31141
31142
31143cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031144#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031145_ACEOF
31146
31147
31148cat >>confdefs.h <<_ACEOF
31149#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31150_ACEOF
31151
31152
31153cat >>confdefs.h <<_ACEOF
31154#define LLVM_INFODIR "$LLVM_INFODIR"
31155_ACEOF
31156
31157
31158cat >>confdefs.h <<_ACEOF
31159#define LLVM_MANDIR "$LLVM_MANDIR"
31160_ACEOF
31161
31162
31163cat >>confdefs.h <<_ACEOF
31164#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31165_ACEOF
31166
31167
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031168
31169 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31170
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031171 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31172
31173 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31174
31175 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31176
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031177 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31178
31179
31180 ac_config_files="$ac_config_files Makefile.config"
31181
31182
Reid Spencer1f319422004-11-29 04:56:35 +000031183 ac_config_files="$ac_config_files docs/doxygen.cfg"
31184
31185
Reid Spencere198afc2006-04-20 22:15:30 +000031186 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000031187
31188
Reid Spencerc0682832005-02-24 19:05:19 +000031189 ac_config_commands="$ac_config_commands setup"
31190
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031191 ac_config_commands="$ac_config_commands Makefile"
31192
31193
31194 ac_config_commands="$ac_config_commands Makefile.common"
31195
31196
31197 ac_config_commands="$ac_config_commands examples/Makefile"
31198
31199
31200 ac_config_commands="$ac_config_commands lib/Makefile"
31201
31202
31203 ac_config_commands="$ac_config_commands runtime/Makefile"
31204
31205
31206 ac_config_commands="$ac_config_commands test/Makefile"
31207
31208
31209 ac_config_commands="$ac_config_commands test/Makefile.tests"
31210
31211
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031212 ac_config_commands="$ac_config_commands tools/Makefile"
31213
31214
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215 ac_config_commands="$ac_config_commands utils/Makefile"
31216
31217
31218 ac_config_commands="$ac_config_commands projects/Makefile"
31219
31220
31221
John Criswell7a73b802003-06-30 21:59:07 +000031222cat >confcache <<\_ACEOF
31223# This file is a shell script that caches the results of configure
31224# tests run on this system so they can be shared between configure
31225# scripts and configure runs, see configure's option --config-cache.
31226# It is not useful on other systems. If it contains results you don't
31227# want to keep, you may remove or edit it.
31228#
31229# config.status only pays attention to the cache file if you give it
31230# the --recheck option to rerun configure.
31231#
John Criswell0c38eaf2003-09-10 15:17:25 +000031232# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000031233# loading this file, other *unset* `ac_cv_foo' will be assigned the
31234# following values.
31235
31236_ACEOF
31237
31238# The following way of writing the cache mishandles newlines in values,
31239# but we know of no workaround that is simple, portable, and efficient.
31240# So, don't put newlines in cache variables' values.
31241# Ultrix sh set writes to stderr and can't be redirected directly,
31242# and sets the high bit in the cache file unless we assign to the vars.
31243{
31244 (set) 2>&1 |
31245 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31246 *ac_space=\ *)
31247 # `set' does not quote correctly, so add quotes (double-quote
31248 # substitution turns \\\\ into \\, and sed turns \\ into \).
31249 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031250 "s/'/'\\\\''/g;
31251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000031252 ;;
31253 *)
31254 # `set' quotes correctly as required by POSIX, so do not add quotes.
31255 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031256 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000031257 ;;
31258 esac;
31259} |
31260 sed '
31261 t clear
31262 : clear
31263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31264 t end
31265 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31266 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000031267if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000031268 if test -w $cache_file; then
31269 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31270 cat confcache >$cache_file
31271 else
31272 echo "not updating unwritable cache $cache_file"
31273 fi
31274fi
31275rm -f confcache
31276
31277test "x$prefix" = xNONE && prefix=$ac_default_prefix
31278# Let make expand exec_prefix.
31279test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31280
31281# VPATH may cause trouble with some makes, so we remove $(srcdir),
31282# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31283# trailing colons and then remove the whole line if VPATH becomes empty
31284# (actually we leave an empty line to preserve line numbers).
31285if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031286 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000031287s/:*\$(srcdir):*/:/;
31288s/:*\${srcdir}:*/:/;
31289s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000031291s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031292s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000031293}'
31294fi
31295
31296DEFS=-DHAVE_CONFIG_H
31297
John Criswell0c38eaf2003-09-10 15:17:25 +000031298ac_libobjs=
31299ac_ltlibobjs=
31300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31301 # 1. Remove the extension, and $U if already installed.
31302 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031303 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031304 # 2. Add them.
31305 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31306 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31307done
31308LIBOBJS=$ac_libobjs
31309
31310LTLIBOBJS=$ac_ltlibobjs
31311
31312
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031313if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31314 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31315Usually this means the macro was only invoked conditionally." >&5
31316echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31317Usually this means the macro was only invoked conditionally." >&2;}
31318 { (exit 1); exit 1; }; }
31319fi
31320if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31321 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31322Usually this means the macro was only invoked conditionally." >&5
31323echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31324Usually this means the macro was only invoked conditionally." >&2;}
31325 { (exit 1); exit 1; }; }
31326fi
John Criswell7a73b802003-06-30 21:59:07 +000031327
31328: ${CONFIG_STATUS=./config.status}
31329ac_clean_files_save=$ac_clean_files
31330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31331{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31332echo "$as_me: creating $CONFIG_STATUS" >&6;}
31333cat >$CONFIG_STATUS <<_ACEOF
31334#! $SHELL
31335# Generated by $as_me.
31336# Run this file to recreate the current configuration.
31337# Compiler output produced by configure, useful for debugging
31338# configure, is in config.log if it exists.
31339
31340debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000031341ac_cs_recheck=false
31342ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000031343SHELL=\${CONFIG_SHELL-$SHELL}
31344_ACEOF
31345
31346cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031347## --------------------- ##
31348## M4sh Initialization. ##
31349## --------------------- ##
31350
31351# Be Bourne compatible
31352if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31353 emulate sh
31354 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031355 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31356 # is contrary to our usage. Disable this feature.
31357 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031358elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31359 set -o posix
31360fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031361DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031362
John Criswell7a73b802003-06-30 21:59:07 +000031363# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031364if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031365 as_unset=unset
31366else
31367 as_unset=false
31368fi
31369
John Criswell0c38eaf2003-09-10 15:17:25 +000031370
31371# Work around bugs in pre-3.0 UWIN ksh.
31372$as_unset ENV MAIL MAILPATH
31373PS1='$ '
31374PS2='> '
31375PS4='+ '
31376
31377# NLS nuisances.
31378for as_var in \
31379 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31380 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31381 LC_TELEPHONE LC_TIME
31382do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031383 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031384 eval $as_var=C; export $as_var
31385 else
31386 $as_unset $as_var
31387 fi
31388done
31389
31390# Required to use basename.
31391if expr a : '\(a\)' >/dev/null 2>&1; then
31392 as_expr=expr
31393else
31394 as_expr=false
31395fi
31396
31397if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31398 as_basename=basename
31399else
31400 as_basename=false
31401fi
John Criswell7a73b802003-06-30 21:59:07 +000031402
31403
31404# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031405as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31407 X"$0" : 'X\(//\)$' \| \
31408 X"$0" : 'X\(/\)$' \| \
31409 . : '\(.\)' 2>/dev/null ||
31410echo X/"$0" |
31411 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31412 /^X\/\(\/\/\)$/{ s//\1/; q; }
31413 /^X\/\(\/\).*/{ s//\1/; q; }
31414 s/.*/./; q'`
31415
John Criswell0c38eaf2003-09-10 15:17:25 +000031416
John Criswell7a73b802003-06-30 21:59:07 +000031417# PATH needs CR, and LINENO needs CR and PATH.
31418# Avoid depending upon Character Ranges.
31419as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31421as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31422as_cr_digits='0123456789'
31423as_cr_alnum=$as_cr_Letters$as_cr_digits
31424
31425# The user is always right.
31426if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031427 echo "#! /bin/sh" >conf$$.sh
31428 echo "exit 0" >>conf$$.sh
31429 chmod +x conf$$.sh
31430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031431 PATH_SEPARATOR=';'
31432 else
31433 PATH_SEPARATOR=:
31434 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031435 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031436fi
31437
31438
31439 as_lineno_1=$LINENO
31440 as_lineno_2=$LINENO
31441 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31442 test "x$as_lineno_1" != "x$as_lineno_2" &&
31443 test "x$as_lineno_3" = "x$as_lineno_2" || {
31444 # Find who we are. Look in the path if we contain no path at all
31445 # relative or not.
31446 case $0 in
31447 *[\\/]* ) as_myself=$0 ;;
31448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31449for as_dir in $PATH
31450do
31451 IFS=$as_save_IFS
31452 test -z "$as_dir" && as_dir=.
31453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31454done
31455
31456 ;;
31457 esac
31458 # We did not find ourselves, most probably we were run as `sh COMMAND'
31459 # in which case we are not to be found in the path.
31460 if test "x$as_myself" = x; then
31461 as_myself=$0
31462 fi
31463 if test ! -f "$as_myself"; then
31464 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31465echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31466 { (exit 1); exit 1; }; }
31467 fi
31468 case $CONFIG_SHELL in
31469 '')
31470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31471for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31472do
31473 IFS=$as_save_IFS
31474 test -z "$as_dir" && as_dir=.
31475 for as_base in sh bash ksh sh5; do
31476 case $as_dir in
31477 /*)
31478 if ("$as_dir/$as_base" -c '
31479 as_lineno_1=$LINENO
31480 as_lineno_2=$LINENO
31481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31482 test "x$as_lineno_1" != "x$as_lineno_2" &&
31483 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031484 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31485 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031486 CONFIG_SHELL=$as_dir/$as_base
31487 export CONFIG_SHELL
31488 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31489 fi;;
31490 esac
31491 done
31492done
31493;;
31494 esac
31495
31496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31497 # uniformly replaced by the line number. The first 'sed' inserts a
31498 # line-number line before each line; the second 'sed' does the real
31499 # work. The second script uses 'N' to pair each line-number line
31500 # with the numbered line, and appends trailing '-' during
31501 # substitution so that $LINENO is not a special case at line end.
31502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31503 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31504 sed '=' <$as_myself |
31505 sed '
31506 N
31507 s,$,-,
31508 : loop
31509 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31510 t loop
31511 s,-$,,
31512 s,^['$as_cr_digits']*\n,,
31513 ' >$as_me.lineno &&
31514 chmod +x $as_me.lineno ||
31515 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31516echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31517 { (exit 1); exit 1; }; }
31518
31519 # Don't try to exec as it changes $[0], causing all sort of problems
31520 # (the dirname of $[0] is not the place where we might find the
31521 # original and so on. Autoconf is especially sensible to this).
31522 . ./$as_me.lineno
31523 # Exit status is that of the last command.
31524 exit
31525}
31526
31527
31528case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31529 *c*,-n*) ECHO_N= ECHO_C='
31530' ECHO_T=' ' ;;
31531 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31532 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31533esac
31534
31535if expr a : '\(a\)' >/dev/null 2>&1; then
31536 as_expr=expr
31537else
31538 as_expr=false
31539fi
31540
31541rm -f conf$$ conf$$.exe conf$$.file
31542echo >conf$$.file
31543if ln -s conf$$.file conf$$ 2>/dev/null; then
31544 # We could just check for DJGPP; but this test a) works b) is more generic
31545 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31546 if test -f conf$$.exe; then
31547 # Don't use ln at all; we don't have any links
31548 as_ln_s='cp -p'
31549 else
31550 as_ln_s='ln -s'
31551 fi
31552elif ln conf$$.file conf$$ 2>/dev/null; then
31553 as_ln_s=ln
31554else
31555 as_ln_s='cp -p'
31556fi
31557rm -f conf$$ conf$$.exe conf$$.file
31558
John Criswell0c38eaf2003-09-10 15:17:25 +000031559if mkdir -p . 2>/dev/null; then
31560 as_mkdir_p=:
31561else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031562 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031563 as_mkdir_p=false
31564fi
31565
John Criswell7a73b802003-06-30 21:59:07 +000031566as_executable_p="test -f"
31567
31568# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031570
31571# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031573
31574
31575# IFS
31576# We need space, tab and new line, in precisely that order.
31577as_nl='
31578'
31579IFS=" $as_nl"
31580
31581# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031582$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031583
31584exec 6>&1
31585
31586# Open the log real soon, to keep \$[0] and so on meaningful, and to
31587# report actual input values of CONFIG_FILES etc. instead of their
31588# values after options handling. Logging --version etc. is OK.
31589exec 5>>config.log
31590{
31591 echo
31592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31593## Running $as_me. ##
31594_ASBOX
31595} >&5
31596cat >&5 <<_CSEOF
31597
Reid Spencer57d37252006-04-14 03:01:27 +000031598This file was extended by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031599generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031600
31601 CONFIG_FILES = $CONFIG_FILES
31602 CONFIG_HEADERS = $CONFIG_HEADERS
31603 CONFIG_LINKS = $CONFIG_LINKS
31604 CONFIG_COMMANDS = $CONFIG_COMMANDS
31605 $ $0 $@
31606
31607_CSEOF
31608echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31609echo >&5
31610_ACEOF
31611
31612# Files that config.status was made for.
31613if test -n "$ac_config_files"; then
31614 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31615fi
31616
31617if test -n "$ac_config_headers"; then
31618 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31619fi
31620
31621if test -n "$ac_config_links"; then
31622 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31623fi
31624
31625if test -n "$ac_config_commands"; then
31626 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31627fi
31628
31629cat >>$CONFIG_STATUS <<\_ACEOF
31630
31631ac_cs_usage="\
31632\`$as_me' instantiates files from templates according to the
31633current configuration.
31634
31635Usage: $0 [OPTIONS] [FILE]...
31636
31637 -h, --help print this help, then exit
31638 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031639 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031640 -d, --debug don't remove temporary files
31641 --recheck update $as_me by reconfiguring in the same conditions
31642 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031643 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031644 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031645 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031646
31647Configuration files:
31648$config_files
31649
31650Configuration headers:
31651$config_headers
31652
John Criswellc764fbc2003-09-06 15:17:13 +000031653Configuration commands:
31654$config_commands
31655
John Criswell7a73b802003-06-30 21:59:07 +000031656Report bugs to <bug-autoconf@gnu.org>."
31657_ACEOF
31658
31659cat >>$CONFIG_STATUS <<_ACEOF
31660ac_cs_version="\\
Reid Spencer57d37252006-04-14 03:01:27 +000031661llvm config.status 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031662configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031663 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31664
Reid Spencer2706f8c2004-09-19 23:53:36 +000031665Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031666This config.status script is free software; the Free Software Foundation
31667gives unlimited permission to copy, distribute and modify it."
31668srcdir=$srcdir
31669INSTALL="$INSTALL"
31670_ACEOF
31671
31672cat >>$CONFIG_STATUS <<\_ACEOF
31673# If no file are specified by the user, then we need to provide default
31674# value. By we need to know if files were specified by the user.
31675ac_need_defaults=:
31676while test $# != 0
31677do
31678 case $1 in
31679 --*=*)
31680 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31681 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031682 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031683 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031684 -*)
31685 ac_option=$1
31686 ac_optarg=$2
31687 ac_shift=shift
31688 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031689 *) # This is not an option, so the user has probably given explicit
31690 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031691 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031692 ac_need_defaults=false;;
31693 esac
31694
John Criswell0c38eaf2003-09-10 15:17:25 +000031695 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031696 # Handling of the options.
31697_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031698cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31700 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031701 --version | --vers* | -V )
31702 echo "$ac_cs_version"; exit 0 ;;
31703 --he | --h)
31704 # Conflict between --help and --header
31705 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31706Try \`$0 --help' for more information." >&5
31707echo "$as_me: error: ambiguous option: $1
31708Try \`$0 --help' for more information." >&2;}
31709 { (exit 1); exit 1; }; };;
31710 --help | --hel | -h )
31711 echo "$ac_cs_usage"; exit 0 ;;
31712 --debug | --d* | -d )
31713 debug=: ;;
31714 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031715 $ac_shift
31716 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031717 ac_need_defaults=false;;
31718 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031719 $ac_shift
31720 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031721 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31724 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031725
31726 # This is an error.
31727 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31728Try \`$0 --help' for more information." >&5
31729echo "$as_me: error: unrecognized option: $1
31730Try \`$0 --help' for more information." >&2;}
31731 { (exit 1); exit 1; }; } ;;
31732
31733 *) ac_config_targets="$ac_config_targets $1" ;;
31734
31735 esac
31736 shift
31737done
31738
John Criswell0c38eaf2003-09-10 15:17:25 +000031739ac_configure_extra_args=
31740
31741if $ac_cs_silent; then
31742 exec 6>/dev/null
31743 ac_configure_extra_args="$ac_configure_extra_args --silent"
31744fi
31745
31746_ACEOF
31747cat >>$CONFIG_STATUS <<_ACEOF
31748if \$ac_cs_recheck; then
31749 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31750 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31751fi
31752
John Criswell7a73b802003-06-30 21:59:07 +000031753_ACEOF
31754
John Criswellc764fbc2003-09-06 15:17:13 +000031755cat >>$CONFIG_STATUS <<_ACEOF
31756#
31757# INIT-COMMANDS section.
31758#
John Criswell7a73b802003-06-30 21:59:07 +000031759
Reid Spencerc0682832005-02-24 19:05:19 +000031760llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031761
31762_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031763
31764
31765
31766cat >>$CONFIG_STATUS <<\_ACEOF
31767for ac_config_target in $ac_config_targets
31768do
31769 case "$ac_config_target" in
31770 # Handling of arguments.
31771 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031772 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencere198afc2006-04-20 22:15:30 +000031773 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031774 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031775 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31776 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031777 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031778 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031779 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031780 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31781 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031782 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031783 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031784 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031785 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031786 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031787 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31788 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031789 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031790 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31791echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31792 { (exit 1); exit 1; }; };;
31793 esac
31794done
31795
31796# If the user did not use the arguments to specify the items to instantiate,
31797# then the envvar interface is used. Set only those that are not.
31798# We use the long form for the default assignment because of an extremely
31799# bizarre bug on SunOS 4.1.3.
31800if $ac_need_defaults; then
31801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031804fi
31805
John Criswell0c38eaf2003-09-10 15:17:25 +000031806# Have a temporary directory for convenience. Make it in the build tree
31807# simply because there is no reason to put it here, and in addition,
31808# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031809# Create a temporary directory, and hook for its removal unless debugging.
31810$debug ||
31811{
31812 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31813 trap '{ (exit 1); exit 1; }' 1 2 13 15
31814}
31815
31816# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031817
John Criswell7a73b802003-06-30 21:59:07 +000031818{
John Criswell0c38eaf2003-09-10 15:17:25 +000031819 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031820 test -n "$tmp" && test -d "$tmp"
31821} ||
31822{
John Criswell0c38eaf2003-09-10 15:17:25 +000031823 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031824 (umask 077 && mkdir $tmp)
31825} ||
31826{
John Criswell0c38eaf2003-09-10 15:17:25 +000031827 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031828 { (exit 1); exit 1; }
31829}
31830
31831_ACEOF
31832
31833cat >>$CONFIG_STATUS <<_ACEOF
31834
31835#
31836# CONFIG_FILES section.
31837#
31838
31839# No need to generate the scripts if there are no CONFIG_FILES.
31840# This happens for instance when ./config.status config.h
31841if test -n "\$CONFIG_FILES"; then
31842 # Protect against being on the right side of a sed subst in config.status.
31843 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31844 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31845s,@SHELL@,$SHELL,;t t
31846s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31847s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31848s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31849s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31850s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31851s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31852s,@exec_prefix@,$exec_prefix,;t t
31853s,@prefix@,$prefix,;t t
31854s,@program_transform_name@,$program_transform_name,;t t
31855s,@bindir@,$bindir,;t t
31856s,@sbindir@,$sbindir,;t t
31857s,@libexecdir@,$libexecdir,;t t
31858s,@datadir@,$datadir,;t t
31859s,@sysconfdir@,$sysconfdir,;t t
31860s,@sharedstatedir@,$sharedstatedir,;t t
31861s,@localstatedir@,$localstatedir,;t t
31862s,@libdir@,$libdir,;t t
31863s,@includedir@,$includedir,;t t
31864s,@oldincludedir@,$oldincludedir,;t t
31865s,@infodir@,$infodir,;t t
31866s,@mandir@,$mandir,;t t
31867s,@build_alias@,$build_alias,;t t
31868s,@host_alias@,$host_alias,;t t
31869s,@target_alias@,$target_alias,;t t
31870s,@DEFS@,$DEFS,;t t
31871s,@ECHO_C@,$ECHO_C,;t t
31872s,@ECHO_N@,$ECHO_N,;t t
31873s,@ECHO_T@,$ECHO_T,;t t
31874s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031875s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031876s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031877s,@build@,$build,;t t
31878s,@build_cpu@,$build_cpu,;t t
31879s,@build_vendor@,$build_vendor,;t t
31880s,@build_os@,$build_os,;t t
31881s,@host@,$host,;t t
31882s,@host_cpu@,$host_cpu,;t t
31883s,@host_vendor@,$host_vendor,;t t
31884s,@host_os@,$host_os,;t t
31885s,@target@,$target,;t t
31886s,@target_cpu@,$target_cpu,;t t
31887s,@target_vendor@,$target_vendor,;t t
31888s,@target_os@,$target_os,;t t
31889s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031890s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31891s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031892s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031893s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031894s,@CC@,$CC,;t t
31895s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031896s,@LDFLAGS@,$LDFLAGS,;t t
31897s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031898s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031899s,@EXEEXT@,$EXEEXT,;t t
31900s,@OBJEXT@,$OBJEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031901s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031902s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000031903s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031904s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031905s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031906s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031907s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031908s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031909s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
Evan Chengcf9be262006-06-20 22:16:32 +000031910s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031911s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031912s,@CXX@,$CXX,;t t
31913s,@CXXFLAGS@,$CXXFLAGS,;t t
31914s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031915s,@LEX@,$LEX,;t t
31916s,@LEXLIB@,$LEXLIB,;t t
31917s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031918s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031919s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031920s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031921s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031922s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031923s,@CMP@,$CMP,;t t
31924s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031925s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031926s,@FIND@,$FIND,;t t
31927s,@GREP@,$GREP,;t t
31928s,@MKDIR@,$MKDIR,;t t
31929s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031930s,@RANLIB@,$RANLIB,;t t
31931s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031932s,@RM@,$RM,;t t
31933s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031934s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031935s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencercaf0ece2006-06-05 15:54:38 +000031936s,@DOT@,$DOT,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031937s,@GV@,$GV,;t t
Reid Spencerecbd2422006-06-02 23:13:18 +000031938s,@DOTTY@,$DOTTY,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031939s,@PERL@,$PERL,;t t
31940s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031941s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31942s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31943s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031944s,@BZIP2@,$BZIP2,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031945s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031946s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031947s,@GROFF@,$GROFF,;t t
31948s,@GZIP@,$GZIP,;t t
31949s,@POD2HTML@,$POD2HTML,;t t
31950s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031951s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031952s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031953s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031954s,@EGREP@,$EGREP,;t t
31955s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31956s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31957s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31958s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31959s,@LIBADD_DL@,$LIBADD_DL,;t t
31960s,@ECHO@,$ECHO,;t t
31961s,@AR@,$AR,;t t
31962s,@ac_ct_AR@,$ac_ct_AR,;t t
31963s,@STRIP@,$STRIP,;t t
31964s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31965s,@CXXCPP@,$CXXCPP,;t t
31966s,@F77@,$F77,;t t
31967s,@FFLAGS@,$FFLAGS,;t t
31968s,@ac_ct_F77@,$ac_ct_F77,;t t
31969s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031970s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031971s,@LLVMGCC@,$LLVMGCC,;t t
31972s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031973s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031974s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031975s,@LLVMCC1@,$LLVMCC1,;t t
31976s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031977s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031978s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31979s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031980s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031981s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31982s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31983s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31984s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31985s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31986s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31987s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31988s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31989s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31990s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031991s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031992s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031993CEOF
31994
31995_ACEOF
31996
31997 cat >>$CONFIG_STATUS <<\_ACEOF
31998 # Split the substitutions into bite-sized pieces for seds with
31999 # small command number limits, like on Digital OSF/1 and HP-UX.
32000 ac_max_sed_lines=48
32001 ac_sed_frag=1 # Number of current file.
32002 ac_beg=1 # First line for current file.
32003 ac_end=$ac_max_sed_lines # Line after last line for current file.
32004 ac_more_lines=:
32005 ac_sed_cmds=
32006 while $ac_more_lines; do
32007 if test $ac_beg -gt 1; then
32008 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32009 else
32010 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32011 fi
32012 if test ! -s $tmp/subs.frag; then
32013 ac_more_lines=false
32014 else
32015 # The purpose of the label and of the branching condition is to
32016 # speed up the sed processing (if there are no `@' at all, there
32017 # is no need to browse any of the substitutions).
32018 # These are the two extra sed commands mentioned above.
32019 (echo ':t
32020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32021 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000032022 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032023 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032024 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032025 fi
32026 ac_sed_frag=`expr $ac_sed_frag + 1`
32027 ac_beg=$ac_end
32028 ac_end=`expr $ac_end + $ac_max_sed_lines`
32029 fi
32030 done
32031 if test -z "$ac_sed_cmds"; then
32032 ac_sed_cmds=cat
32033 fi
32034fi # test -n "$CONFIG_FILES"
32035
32036_ACEOF
32037cat >>$CONFIG_STATUS <<\_ACEOF
32038for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32040 case $ac_file in
32041 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032042 cat >$tmp/stdin
32043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032047 * ) ac_file_in=$ac_file.in ;;
32048 esac
32049
32050 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032053 X"$ac_file" : 'X\(//\)[^/]' \| \
32054 X"$ac_file" : 'X\(//\)$' \| \
32055 X"$ac_file" : 'X\(/\)' \| \
32056 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032057echo X"$ac_file" |
32058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32060 /^X\(\/\/\)$/{ s//\1/; q; }
32061 /^X\(\/\).*/{ s//\1/; q; }
32062 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032063 { if $as_mkdir_p; then
32064 mkdir -p "$ac_dir"
32065 else
32066 as_dir="$ac_dir"
32067 as_dirs=
32068 while test ! -d "$as_dir"; do
32069 as_dirs="$as_dir $as_dirs"
32070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032072 X"$as_dir" : 'X\(//\)[^/]' \| \
32073 X"$as_dir" : 'X\(//\)$' \| \
32074 X"$as_dir" : 'X\(/\)' \| \
32075 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032076echo X"$as_dir" |
32077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32079 /^X\(\/\/\)$/{ s//\1/; q; }
32080 /^X\(\/\).*/{ s//\1/; q; }
32081 s/.*/./; q'`
32082 done
32083 test ! -n "$as_dirs" || mkdir $as_dirs
32084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32086 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032087
32088 ac_builddir=.
32089
32090if test "$ac_dir" != .; then
32091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32092 # A "../" for each directory in $ac_dir_suffix.
32093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32094else
32095 ac_dir_suffix= ac_top_builddir=
32096fi
32097
32098case $srcdir in
32099 .) # No --srcdir option. We are building in place.
32100 ac_srcdir=.
32101 if test -z "$ac_top_builddir"; then
32102 ac_top_srcdir=.
32103 else
32104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32105 fi ;;
32106 [\\/]* | ?:[\\/]* ) # Absolute path.
32107 ac_srcdir=$srcdir$ac_dir_suffix;
32108 ac_top_srcdir=$srcdir ;;
32109 *) # Relative path.
32110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32112esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032113
32114# Do not use `cd foo && pwd` to compute absolute paths, because
32115# the directories may not exist.
32116case `pwd` in
32117.) ac_abs_builddir="$ac_dir";;
32118*)
32119 case "$ac_dir" in
32120 .) ac_abs_builddir=`pwd`;;
32121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32123 esac;;
32124esac
32125case $ac_abs_builddir in
32126.) ac_abs_top_builddir=${ac_top_builddir}.;;
32127*)
32128 case ${ac_top_builddir}. in
32129 .) ac_abs_top_builddir=$ac_abs_builddir;;
32130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32132 esac;;
32133esac
32134case $ac_abs_builddir in
32135.) ac_abs_srcdir=$ac_srcdir;;
32136*)
32137 case $ac_srcdir in
32138 .) ac_abs_srcdir=$ac_abs_builddir;;
32139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32141 esac;;
32142esac
32143case $ac_abs_builddir in
32144.) ac_abs_top_srcdir=$ac_top_srcdir;;
32145*)
32146 case $ac_top_srcdir in
32147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32150 esac;;
32151esac
John Criswell7a73b802003-06-30 21:59:07 +000032152
32153
32154 case $INSTALL in
32155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32156 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32157 esac
32158
32159 if test x"$ac_file" != x-; then
32160 { echo "$as_me:$LINENO: creating $ac_file" >&5
32161echo "$as_me: creating $ac_file" >&6;}
32162 rm -f "$ac_file"
32163 fi
32164 # Let's still pretend it is `configure' which instantiates (i.e., don't
32165 # use $as_me), people would be surprised to read:
32166 # /* config.h. Generated by config.status. */
32167 if test x"$ac_file" = x-; then
32168 configure_input=
32169 else
32170 configure_input="$ac_file. "
32171 fi
32172 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000032173 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000032174
32175 # First look for the input files in the build tree, otherwise in the
32176 # src tree.
32177 ac_file_inputs=`IFS=:
32178 for f in $ac_file_in; do
32179 case $f in
32180 -) echo $tmp/stdin ;;
32181 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032182 # Absolute (can't be DOS-style, as IFS=:)
32183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032184echo "$as_me: error: cannot find input file: $f" >&2;}
32185 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032186 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032187 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032188 if test -f "$f"; then
32189 # Build tree
32190 echo "$f"
32191 elif test -f "$srcdir/$f"; then
32192 # Source tree
32193 echo "$srcdir/$f"
32194 else
32195 # /dev/null tree
32196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032197echo "$as_me: error: cannot find input file: $f" >&2;}
32198 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032199 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032200 esac
32201 done` || { (exit 1); exit 1; }
32202_ACEOF
32203cat >>$CONFIG_STATUS <<_ACEOF
32204 sed "$ac_vpsub
32205$extrasub
32206_ACEOF
32207cat >>$CONFIG_STATUS <<\_ACEOF
32208:t
32209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32210s,@configure_input@,$configure_input,;t t
32211s,@srcdir@,$ac_srcdir,;t t
32212s,@abs_srcdir@,$ac_abs_srcdir,;t t
32213s,@top_srcdir@,$ac_top_srcdir,;t t
32214s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32215s,@builddir@,$ac_builddir,;t t
32216s,@abs_builddir@,$ac_abs_builddir,;t t
32217s,@top_builddir@,$ac_top_builddir,;t t
32218s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32219s,@INSTALL@,$ac_INSTALL,;t t
32220" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32221 rm -f $tmp/stdin
32222 if test x"$ac_file" != x-; then
32223 mv $tmp/out $ac_file
32224 else
32225 cat $tmp/out
32226 rm -f $tmp/out
32227 fi
32228
32229done
32230_ACEOF
32231cat >>$CONFIG_STATUS <<\_ACEOF
32232
32233#
32234# CONFIG_HEADER section.
32235#
32236
32237# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32238# NAME is the cpp macro being defined and VALUE is the value it is being given.
32239#
32240# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032241ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32242ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000032243ac_dC=' '
32244ac_dD=',;t'
32245# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000032246ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000032247ac_uB='$,\1#\2define\3'
32248ac_uC=' '
32249ac_uD=',;t'
32250
32251for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32253 case $ac_file in
32254 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032255 cat >$tmp/stdin
32256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032260 * ) ac_file_in=$ac_file.in ;;
32261 esac
32262
32263 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32264echo "$as_me: creating $ac_file" >&6;}
32265
32266 # First look for the input files in the build tree, otherwise in the
32267 # src tree.
32268 ac_file_inputs=`IFS=:
32269 for f in $ac_file_in; do
32270 case $f in
32271 -) echo $tmp/stdin ;;
32272 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032273 # Absolute (can't be DOS-style, as IFS=:)
32274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032275echo "$as_me: error: cannot find input file: $f" >&2;}
32276 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032277 # Do quote $f, to prevent DOS paths from being IFS'd.
32278 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032279 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032280 if test -f "$f"; then
32281 # Build tree
32282 echo "$f"
32283 elif test -f "$srcdir/$f"; then
32284 # Source tree
32285 echo "$srcdir/$f"
32286 else
32287 # /dev/null tree
32288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032289echo "$as_me: error: cannot find input file: $f" >&2;}
32290 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032291 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032292 esac
32293 done` || { (exit 1); exit 1; }
32294 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032295 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000032296
32297_ACEOF
32298
32299# Transform confdefs.h into two sed scripts, `conftest.defines' and
32300# `conftest.undefs', that substitutes the proper values into
32301# config.h.in to produce config.h. The first handles `#define'
32302# templates, and the second `#undef' templates.
32303# And first: Protect against being on the right side of a sed subst in
32304# config.status. Protect against being in an unquoted here document
32305# in config.status.
32306rm -f conftest.defines conftest.undefs
32307# Using a here document instead of a string reduces the quoting nightmare.
32308# Putting comments in sed scripts is not portable.
32309#
32310# `end' is used to avoid that the second main sed command (meant for
32311# 0-ary CPP macros) applies to n-ary macro definitions.
32312# See the Autoconf documentation for `clear'.
32313cat >confdef2sed.sed <<\_ACEOF
32314s/[\\&,]/\\&/g
32315s,[\\$`],\\&,g
32316t clear
32317: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000032318s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032319t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000032320s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032321: end
32322_ACEOF
32323# If some macros were called several times there might be several times
32324# the same #defines, which is useless. Nevertheless, we may not want to
32325# sort them, since we want the *last* AC-DEFINE to be honored.
32326uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32327sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32328rm -f confdef2sed.sed
32329
32330# This sed command replaces #undef with comments. This is necessary, for
32331# example, in the case of _POSIX_SOURCE, which is predefined and required
32332# on some systems where configure will not decide to define it.
32333cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032334s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000032335_ACEOF
32336
32337# Break up conftest.defines because some shells have a limit on the size
32338# of here documents, and old seds have small limits too (100 cmds).
32339echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000032340echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032341echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32342echo ' :' >>$CONFIG_STATUS
32343rm -f conftest.tail
32344while grep . conftest.defines >/dev/null
32345do
32346 # Write a limited-size here document to $tmp/defines.sed.
32347 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32348 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032349 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032350 # Work around the forget-to-reset-the-flag bug.
32351 echo 't clr' >>$CONFIG_STATUS
32352 echo ': clr' >>$CONFIG_STATUS
32353 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32354 echo 'CEOF
32355 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32356 rm -f $tmp/in
32357 mv $tmp/out $tmp/in
32358' >>$CONFIG_STATUS
32359 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32360 rm -f conftest.defines
32361 mv conftest.tail conftest.defines
32362done
32363rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032364echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032365echo >>$CONFIG_STATUS
32366
32367# Break up conftest.undefs because some shells have a limit on the size
32368# of here documents, and old seds have small limits too (100 cmds).
32369echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32370rm -f conftest.tail
32371while grep . conftest.undefs >/dev/null
32372do
32373 # Write a limited-size here document to $tmp/undefs.sed.
32374 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32375 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032376 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032377 # Work around the forget-to-reset-the-flag bug.
32378 echo 't clr' >>$CONFIG_STATUS
32379 echo ': clr' >>$CONFIG_STATUS
32380 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32381 echo 'CEOF
32382 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32383 rm -f $tmp/in
32384 mv $tmp/out $tmp/in
32385' >>$CONFIG_STATUS
32386 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32387 rm -f conftest.undefs
32388 mv conftest.tail conftest.undefs
32389done
32390rm -f conftest.undefs
32391
32392cat >>$CONFIG_STATUS <<\_ACEOF
32393 # Let's still pretend it is `configure' which instantiates (i.e., don't
32394 # use $as_me), people would be surprised to read:
32395 # /* config.h. Generated by config.status. */
32396 if test x"$ac_file" = x-; then
32397 echo "/* Generated by configure. */" >$tmp/config.h
32398 else
32399 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32400 fi
32401 cat $tmp/in >>$tmp/config.h
32402 rm -f $tmp/in
32403 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032404 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32406echo "$as_me: $ac_file is unchanged" >&6;}
32407 else
32408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032410 X"$ac_file" : 'X\(//\)[^/]' \| \
32411 X"$ac_file" : 'X\(//\)$' \| \
32412 X"$ac_file" : 'X\(/\)' \| \
32413 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032414echo X"$ac_file" |
32415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32417 /^X\(\/\/\)$/{ s//\1/; q; }
32418 /^X\(\/\).*/{ s//\1/; q; }
32419 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032420 { if $as_mkdir_p; then
32421 mkdir -p "$ac_dir"
32422 else
32423 as_dir="$ac_dir"
32424 as_dirs=
32425 while test ! -d "$as_dir"; do
32426 as_dirs="$as_dir $as_dirs"
32427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032429 X"$as_dir" : 'X\(//\)[^/]' \| \
32430 X"$as_dir" : 'X\(//\)$' \| \
32431 X"$as_dir" : 'X\(/\)' \| \
32432 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032433echo X"$as_dir" |
32434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32436 /^X\(\/\/\)$/{ s//\1/; q; }
32437 /^X\(\/\).*/{ s//\1/; q; }
32438 s/.*/./; q'`
32439 done
32440 test ! -n "$as_dirs" || mkdir $as_dirs
32441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32443 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032444
32445 rm -f $ac_file
32446 mv $tmp/config.h $ac_file
32447 fi
32448 else
32449 cat $tmp/config.h
32450 rm -f $tmp/config.h
32451 fi
32452done
32453_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032454cat >>$CONFIG_STATUS <<\_ACEOF
32455
32456#
32457# CONFIG_COMMANDS section.
32458#
32459for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32462 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32463$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032464 X"$ac_dest" : 'X\(//\)[^/]' \| \
32465 X"$ac_dest" : 'X\(//\)$' \| \
32466 X"$ac_dest" : 'X\(/\)' \| \
32467 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032468echo X"$ac_dest" |
32469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32471 /^X\(\/\/\)$/{ s//\1/; q; }
32472 /^X\(\/\).*/{ s//\1/; q; }
32473 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032474 { if $as_mkdir_p; then
32475 mkdir -p "$ac_dir"
32476 else
32477 as_dir="$ac_dir"
32478 as_dirs=
32479 while test ! -d "$as_dir"; do
32480 as_dirs="$as_dir $as_dirs"
32481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32483 X"$as_dir" : 'X\(//\)[^/]' \| \
32484 X"$as_dir" : 'X\(//\)$' \| \
32485 X"$as_dir" : 'X\(/\)' \| \
32486 . : '\(.\)' 2>/dev/null ||
32487echo X"$as_dir" |
32488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32490 /^X\(\/\/\)$/{ s//\1/; q; }
32491 /^X\(\/\).*/{ s//\1/; q; }
32492 s/.*/./; q'`
32493 done
32494 test ! -n "$as_dirs" || mkdir $as_dirs
32495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32496echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32497 { (exit 1); exit 1; }; }; }
32498
John Criswellc764fbc2003-09-06 15:17:13 +000032499 ac_builddir=.
32500
32501if test "$ac_dir" != .; then
32502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32503 # A "../" for each directory in $ac_dir_suffix.
32504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32505else
32506 ac_dir_suffix= ac_top_builddir=
32507fi
32508
32509case $srcdir in
32510 .) # No --srcdir option. We are building in place.
32511 ac_srcdir=.
32512 if test -z "$ac_top_builddir"; then
32513 ac_top_srcdir=.
32514 else
32515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32516 fi ;;
32517 [\\/]* | ?:[\\/]* ) # Absolute path.
32518 ac_srcdir=$srcdir$ac_dir_suffix;
32519 ac_top_srcdir=$srcdir ;;
32520 *) # Relative path.
32521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32523esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032524
32525# Do not use `cd foo && pwd` to compute absolute paths, because
32526# the directories may not exist.
32527case `pwd` in
32528.) ac_abs_builddir="$ac_dir";;
32529*)
32530 case "$ac_dir" in
32531 .) ac_abs_builddir=`pwd`;;
32532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32534 esac;;
32535esac
32536case $ac_abs_builddir in
32537.) ac_abs_top_builddir=${ac_top_builddir}.;;
32538*)
32539 case ${ac_top_builddir}. in
32540 .) ac_abs_top_builddir=$ac_abs_builddir;;
32541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32543 esac;;
32544esac
32545case $ac_abs_builddir in
32546.) ac_abs_srcdir=$ac_srcdir;;
32547*)
32548 case $ac_srcdir in
32549 .) ac_abs_srcdir=$ac_abs_builddir;;
32550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32552 esac;;
32553esac
32554case $ac_abs_builddir in
32555.) ac_abs_top_srcdir=$ac_top_srcdir;;
32556*)
32557 case $ac_top_srcdir in
32558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32561 esac;;
32562esac
John Criswellc764fbc2003-09-06 15:17:13 +000032563
32564
32565 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32566echo "$as_me: executing $ac_dest commands" >&6;}
32567 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032568 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32569 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32570 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32571 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32572 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32573 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32574 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32575 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32576 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32577 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32578 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32579 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32580 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32582 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32583 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32584 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32586 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032588 esac
32589done
32590_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032591
32592cat >>$CONFIG_STATUS <<\_ACEOF
32593
32594{ (exit 0); exit 0; }
32595_ACEOF
32596chmod +x $CONFIG_STATUS
32597ac_clean_files=$ac_clean_files_save
32598
32599
32600# configure is writing to config.log, and then calls config.status.
32601# config.status does its own redirection, appending to config.log.
32602# Unfortunately, on DOS this fails, as config.log is still kept open
32603# by configure, so config.status won't be able to write to it; its
32604# output is simply discarded. So we exec the FD to /dev/null,
32605# effectively closing config.log, so it can be properly (re)opened and
32606# appended to by config.status. When coming back to configure, we
32607# need to make the FD available again.
32608if test "$no_create" != yes; then
32609 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032610 ac_config_status_args=
32611 test "$silent" = yes &&
32612 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032613 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032615 exec 5>>config.log
32616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32617 # would make configure fail if this is the last instruction.
32618 $ac_cs_success || { (exit 1); exit 1; }
32619fi
32620
John Criswell12399a12003-09-30 15:55:44 +000032621#
32622# CONFIG_SUBDIRS section.
32623#
32624if test "$no_recursion" != yes; then
32625
32626 # Remove --cache-file and --srcdir arguments so they do not pile up.
32627 ac_sub_configure_args=
32628 ac_prev=
32629 for ac_arg in $ac_configure_args; do
32630 if test -n "$ac_prev"; then
32631 ac_prev=
32632 continue
32633 fi
32634 case $ac_arg in
32635 -cache-file | --cache-file | --cache-fil | --cache-fi \
32636 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32637 ac_prev=cache_file ;;
32638 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32639 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32640 | --c=*)
32641 ;;
32642 --config-cache | -C)
32643 ;;
32644 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32645 ac_prev=srcdir ;;
32646 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32647 ;;
32648 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32649 ac_prev=prefix ;;
32650 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32651 ;;
32652 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32653 esac
32654 done
32655
32656 # Always prepend --prefix to ensure using the same prefix
32657 # in subdir configurations.
32658 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32659
32660 ac_popdir=`pwd`
32661 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32662
32663 # Do not complain, so a configure script can configure whichever
32664 # parts of a large source tree are present.
32665 test -d $srcdir/$ac_dir || continue
32666
32667 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32668echo "$as_me: configuring in $ac_dir" >&6;}
32669 { if $as_mkdir_p; then
32670 mkdir -p "$ac_dir"
32671 else
32672 as_dir="$ac_dir"
32673 as_dirs=
32674 while test ! -d "$as_dir"; do
32675 as_dirs="$as_dir $as_dirs"
32676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032678 X"$as_dir" : 'X\(//\)[^/]' \| \
32679 X"$as_dir" : 'X\(//\)$' \| \
32680 X"$as_dir" : 'X\(/\)' \| \
32681 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032682echo X"$as_dir" |
32683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32685 /^X\(\/\/\)$/{ s//\1/; q; }
32686 /^X\(\/\).*/{ s//\1/; q; }
32687 s/.*/./; q'`
32688 done
32689 test ! -n "$as_dirs" || mkdir $as_dirs
32690 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32691echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32692 { (exit 1); exit 1; }; }; }
32693
32694 ac_builddir=.
32695
32696if test "$ac_dir" != .; then
32697 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32698 # A "../" for each directory in $ac_dir_suffix.
32699 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32700else
32701 ac_dir_suffix= ac_top_builddir=
32702fi
32703
32704case $srcdir in
32705 .) # No --srcdir option. We are building in place.
32706 ac_srcdir=.
32707 if test -z "$ac_top_builddir"; then
32708 ac_top_srcdir=.
32709 else
32710 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32711 fi ;;
32712 [\\/]* | ?:[\\/]* ) # Absolute path.
32713 ac_srcdir=$srcdir$ac_dir_suffix;
32714 ac_top_srcdir=$srcdir ;;
32715 *) # Relative path.
32716 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32717 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32718esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032719
32720# Do not use `cd foo && pwd` to compute absolute paths, because
32721# the directories may not exist.
32722case `pwd` in
32723.) ac_abs_builddir="$ac_dir";;
32724*)
32725 case "$ac_dir" in
32726 .) ac_abs_builddir=`pwd`;;
32727 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32728 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32729 esac;;
32730esac
32731case $ac_abs_builddir in
32732.) ac_abs_top_builddir=${ac_top_builddir}.;;
32733*)
32734 case ${ac_top_builddir}. in
32735 .) ac_abs_top_builddir=$ac_abs_builddir;;
32736 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32737 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32738 esac;;
32739esac
32740case $ac_abs_builddir in
32741.) ac_abs_srcdir=$ac_srcdir;;
32742*)
32743 case $ac_srcdir in
32744 .) ac_abs_srcdir=$ac_abs_builddir;;
32745 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32746 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32747 esac;;
32748esac
32749case $ac_abs_builddir in
32750.) ac_abs_top_srcdir=$ac_top_srcdir;;
32751*)
32752 case $ac_top_srcdir in
32753 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32754 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32755 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32756 esac;;
32757esac
John Criswell12399a12003-09-30 15:55:44 +000032758
32759
32760 cd $ac_dir
32761
32762 # Check for guested configure; otherwise get Cygnus style configure.
32763 if test -f $ac_srcdir/configure.gnu; then
32764 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32765 elif test -f $ac_srcdir/configure; then
32766 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32767 elif test -f $ac_srcdir/configure.in; then
32768 ac_sub_configure=$ac_configure
32769 else
32770 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32771echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32772 ac_sub_configure=
32773 fi
32774
32775 # The recursion is here.
32776 if test -n "$ac_sub_configure"; then
32777 # Make the cache file name correct relative to the subdirectory.
32778 case $cache_file in
32779 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32780 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032781 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032782 esac
32783
32784 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32785echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32786 # The eval makes quoting arguments work.
32787 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032788 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32789 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032790echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32791 { (exit 1); exit 1; }; }
32792 fi
32793
32794 cd $ac_popdir
32795 done
32796fi
32797
Brian Gaekef3b24102003-11-16 18:38:14 +000032798
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032799if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032800 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32801echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032802 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32803echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32804 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32805echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32806 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32807echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32808 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32809echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032810fi