blob: c9685252cd3339602f0c19a4bc44914ff81a6515 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer1bc68642006-07-27 23:00:30 +00003# Generated by GNU Autoconf 2.59 for llvm 1.9cvs.
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 Spencer1bc68642006-07-27 23:00:30 +0000428PACKAGE_VERSION='1.9cvs'
429PACKAGE_STRING='llvm 1.9cvs'
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
Reid Spenceraea7fe42006-07-28 05:05:00 +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 LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT 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 NM ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR BINPWD 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 Spencer1bc68642006-07-27 23:00:30 +0000969\`configure' configures llvm 1.9cvs 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 Spencer1bc68642006-07-27 23:00:30 +00001031 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
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 Spencer1bc68642006-07-27 23:00:30 +00001181llvm configure 1.9cvs
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 Spencer1bc68642006-07-27 23:00:30 +00001197It was created by llvm $as_me 1.9cvs, 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 Spencere2cfe5d2006-07-26 21:14:56 +00001713echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
Reid Spencer7b3e8512004-12-24 06:29:05 +00001715if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00001718 case $host 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 Spencere2cfe5d2006-07-26 21:14:56 +00002980if test "$cross_compiling" = yes; then
2981 LLVM_CROSS_COMPILING=1
2982
2983
2984echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986if test "${ac_cv_build_exeext+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990 ac_cv_build_exeext=.exe
2991else
2992 ac_build_prefix=${build_alias}-
2993
2994 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995set dummy ${ac_build_prefix}gcc; ac_word=$2
2996echo "$as_me:$LINENO: checking for $ac_word" >&5
2997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 if test -n "$BUILD_CC"; then
3002 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016done
3017
3018fi
3019fi
3020BUILD_CC=$ac_cv_prog_BUILD_CC
3021if test -n "$BUILD_CC"; then
3022 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023echo "${ECHO_T}$BUILD_CC" >&6
3024else
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027fi
3028
3029 if test -z "$BUILD_CC"; then
3030 # Extract the first word of "gcc", so it can be a program name with args.
3031set dummy gcc; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 if test -n "$BUILD_CC"; then
3038 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_BUILD_CC="gcc"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052done
3053
3054fi
3055fi
3056BUILD_CC=$ac_cv_prog_BUILD_CC
3057if test -n "$BUILD_CC"; then
3058 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059echo "${ECHO_T}$BUILD_CC" >&6
3060else
3061 echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
3063fi
3064
3065 if test -z "$BUILD_CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067set dummy cc; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if test -n "$BUILD_CC"; then
3074 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3075else
3076 ac_prog_rejected=no
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3086 continue
3087 fi
3088 ac_cv_prog_BUILD_CC="cc"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
3095if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_BUILD_CC
3098 shift
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set BUILD_CC to just the basename; use the full file name.
3103 shift
3104 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3105 fi
3106fi
3107fi
3108fi
3109BUILD_CC=$ac_cv_prog_BUILD_CC
3110if test -n "$BUILD_CC"; then
3111 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112echo "${ECHO_T}$BUILD_CC" >&6
3113else
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117
3118 fi
3119 fi
3120 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122 { (exit 1); exit 1; }; }
3123 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3124 rm -f conftest*
3125 echo 'int main () { return 0; }' > conftest.$ac_ext
3126 ac_cv_build_exeext=
3127 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128 (eval $ac_build_link) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for file in conftest.*; do
3133 case $file in
3134 *.c | *.o | *.obj) ;;
3135 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3136 esac
3137 done
3138 else
3139 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141 { (exit 1); exit 1; }; }
3142 fi
3143 rm -f conftest*
3144 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3145fi
3146fi
3147
3148BUILD_EXEEXT=""
3149test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152ac_build_exeext=$BUILD_EXEEXT
3153
3154else
3155 LLVM_CROSS_COMPILING=0
3156
3157fi
3158
Reid Spencer4ebf3312006-04-08 01:41:26 +00003159if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00003160 cvsbuild="yes"
3161 optimize="no"
Reid Spencer54d14482006-04-07 16:01:51 +00003162 CVSBUILD=CVSBUILD=1
3163
3164else
3165 cvsbuild="no"
3166 optimize="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003167fi
3168
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003169
3170# Check whether --enable-optimized or --disable-optimized was given.
3171if test "${enable_optimized+set}" = set; then
3172 enableval="$enable_optimized"
3173
3174else
Reid Spencer54d14482006-04-07 16:01:51 +00003175 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003176fi;
3177if test ${enableval} = "no" ; then
3178 ENABLE_OPTIMIZED=
3179
3180else
3181 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3182
3183fi
3184
Reid Spencer54d14482006-04-07 16:01:51 +00003185# Check whether --enable-assertions or --disable-assertions was given.
3186if test "${enable_assertions+set}" = set; then
3187 enableval="$enable_assertions"
3188
3189else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003190 enableval="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003191fi;
Reid Spencerc28ccd82006-04-09 20:42:14 +00003192if test ${enableval} = "yes" ; then
3193 DISABLE_ASSERTIONS=
Reid Spencer54d14482006-04-07 16:01:51 +00003194
3195else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003196 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
Reid Spencer54d14482006-04-07 16:01:51 +00003197
3198fi
3199
Reid Spencer6e96d812005-12-21 03:31:53 +00003200# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201if test "${enable_debug_runtime+set}" = set; then
3202 enableval="$enable_debug_runtime"
3203
3204else
3205 enableval=no
3206fi;
3207if test ${enableval} = "no" ; then
3208 DEBUG_RUNTIME=
3209
3210else
3211 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3212
3213fi
3214
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215# Check whether --enable-jit or --disable-jit was given.
3216if test "${enable_jit+set}" = set; then
3217 enableval="$enable_jit"
3218
3219else
3220 enableval=default
3221fi;
3222if test ${enableval} = "no"
3223then
3224 JIT=
3225
3226else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003227 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003228 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003230 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003232 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003234 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003235 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003236 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003237 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003238 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003239 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003240 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 ;;
3242 esac
3243fi
3244
Reid Spencer1f319422004-11-29 04:56:35 +00003245# Check whether --enable-doxygen or --disable-doxygen was given.
3246if test "${enable_doxygen+set}" = set; then
3247 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003248
Reid Spencer1f319422004-11-29 04:56:35 +00003249else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003250 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003251fi;
3252case "$enableval" in
3253 yes) ENABLE_DOXYGEN=1
3254 ;;
3255 no) ENABLE_DOXYGEN=0
3256 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003257 default) ENABLE_DOXYGEN=0
3258 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261 { (exit 1); exit 1; }; } ;;
3262esac
3263
Reid Spencer0a262ba2005-08-24 10:07:20 +00003264# Check whether --enable-threads or --disable-threads was given.
3265if test "${enable_threads+set}" = set; then
3266 enableval="$enable_threads"
3267
3268else
3269 enableval=yes
3270fi;
3271case "$enableval" in
3272 yes) ENABLE_THREADS=1
3273 ;;
3274 no) ENABLE_THREADS=0
3275 ;;
3276 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278 { (exit 1); exit 1; }; } ;;
3279esac
3280
3281cat >>confdefs.h <<_ACEOF
3282#define ENABLE_THREADS $ENABLE_THREADS
3283_ACEOF
3284
3285
Reid Spencer945de9b2005-04-22 07:27:28 +00003286TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003287# Check whether --enable-targets or --disable-targets was given.
3288if test "${enable_targets+set}" = set; then
3289 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003290
3291else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003292 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003293fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003294case "$enableval" in
Rafael Espindola7bc59bc2006-05-14 22:18:28 +00003295 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003296 host-only)
3297 case "$llvm_cv_target_arch" in
3298 x86) TARGETS_TO_BUILD="X86" ;;
3299 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003300 Sparc) TARGETS_TO_BUILD="Sparc" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003301 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3303 IA64) TARGETS_TO_BUILD="IA64" ;;
3304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003305echo "$as_me: error: Can not set target to build" >&2;}
3306 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003307 esac
3308 ;;
3309 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3310 case "$a_target" in
3311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003313 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003314 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003317 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319 { (exit 1); exit 1; }; } ;;
3320 esac
3321 done
3322 ;;
3323esac
Reid Spencer675f0922005-04-22 17:06:18 +00003324TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003325TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3326
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328
Reid Spencer59473af2004-12-25 07:31:29 +00003329# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330if test "${with_llvmgccdir+set}" = set; then
3331 withval="$with_llvmgccdir"
3332
3333else
3334 withval=default
3335fi;
3336case "$withval" in
3337 default) WITH_LLVMGCCDIR=default ;;
Reid Spencer0fa145d2006-05-21 10:40:20 +00003338 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Reid Spencer59473af2004-12-25 07:31:29 +00003339 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3342esac
3343
3344
Evan Chengcf9be262006-06-20 22:16:32 +00003345# Check whether --with-extra-options or --without-extra-options was given.
3346if test "${with_extra_options+set}" = set; then
Reid Spencere2cfe5d2006-07-26 21:14:56 +00003347 withval="$with_extra_options"
Evan Chengcf9be262006-06-20 22:16:32 +00003348
3349else
3350 extraopts=default
3351fi;
3352case "$extraopts" in
3353 default) EXTRA_OPTIONS= ;;
3354 *) EXTRA_OPTIONS=$extraopts ;;
3355esac
3356EXTRA_OPTIONS=$EXTRA_OPTIONS
3357
3358
3359
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367# On Suns, sometimes $CPP names a directory.
3368if test -n "$CPP" && test -d "$CPP"; then
3369 CPP=
3370fi
3371if test -z "$CPP"; then
3372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377 do
3378 ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h. */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h. */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398 Syntax error
3399_ACEOF
3400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 else
3412 ac_cpp_err=
3413 fi
3414else
3415 ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418 :
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427
3428 # OK, works on sane cases. Now check whether non-existent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#include <ac_nonexistent.h>
3437_ACEOF
3438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3457continue
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
3471if $ac_preproc_ok; then
3472 break
3473fi
3474
3475 done
3476 ac_cv_prog_CPP=$CPP
3477
3478fi
3479 CPP=$ac_cv_prog_CPP
3480else
3481 ac_cv_prog_CPP=$CPP
3482fi
3483echo "$as_me:$LINENO: result: $CPP" >&5
3484echo "${ECHO_T}$CPP" >&6
3485ac_preproc_ok=false
3486for ac_c_preproc_warn_flag in '' yes
3487do
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h. */
3500#ifdef __STDC__
3501# include <limits.h>
3502#else
3503# include <assert.h>
3504#endif
3505 Syntax error
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 else
3519 ac_cpp_err=
3520 fi
3521else
3522 ac_cpp_err=yes
3523fi
3524if test -z "$ac_cpp_err"; then
3525 :
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 # Broken: fails on valid input.
3531continue
3532fi
3533rm -f conftest.err conftest.$ac_ext
3534
3535 # OK, works on sane cases. Now check whether non-existent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h. */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h. */
3543#include <ac_nonexistent.h>
3544_ACEOF
3545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556 else
3557 ac_cpp_err=
3558 fi
3559else
3560 ac_cpp_err=yes
3561fi
3562if test -z "$ac_cpp_err"; then
3563 # Broken: success on invalid input.
3564continue
3565else
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 # Passes both tests.
3570ac_preproc_ok=:
3571break
3572fi
3573rm -f conftest.err conftest.$ac_ext
3574
3575done
3576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577rm -f conftest.err conftest.$ac_ext
3578if $ac_preproc_ok; then
3579 :
3580else
3581 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582See \`config.log' for more details." >&5
3583echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }
3586fi
3587
John Criswell7a73b802003-06-30 21:59:07 +00003588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599if test -n "$ac_tool_prefix"; then
3600 for ac_prog in gcc
3601 do
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_CC+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623done
3624done
3625
3626fi
3627fi
3628CC=$ac_cv_prog_CC
3629if test -n "$CC"; then
3630 echo "$as_me:$LINENO: result: $CC" >&5
3631echo "${ECHO_T}$CC" >&6
3632else
3633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635fi
3636
3637 test -n "$CC" && break
3638 done
3639fi
3640if test -z "$CC"; then
3641 ac_ct_CC=$CC
3642 for ac_prog in gcc
3643do
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645set dummy $ac_prog; ac_word=$2
3646echo "$as_me:$LINENO: checking for $ac_word" >&5
3647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666done
3667
3668fi
3669fi
3670ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671if test -n "$ac_ct_CC"; then
3672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673echo "${ECHO_T}$ac_ct_CC" >&6
3674else
3675 echo "$as_me:$LINENO: result: no" >&5
3676echo "${ECHO_T}no" >&6
3677fi
3678
3679 test -n "$ac_ct_CC" && break
3680done
3681
3682 CC=$ac_ct_CC
3683fi
3684
3685
John Criswell0c38eaf2003-09-10 15:17:25 +00003686test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687See \`config.log' for more details." >&5
3688echo "$as_me: error: no acceptable C compiler found in \$PATH
3689See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003690 { (exit 1); exit 1; }; }
3691
3692# Provide some information about the compiler.
3693echo "$as_me:$LINENO:" \
3694 "checking for C compiler version" >&5
3695ac_compiler=`set X $ac_compile; echo $2`
3696{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697 (eval $ac_compiler --version </dev/null >&5) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }
3701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702 (eval $ac_compiler -v </dev/null >&5) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }
3706{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707 (eval $ac_compiler -V </dev/null >&5) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3711
3712echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003718/* confdefs.h. */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003723
John Criswell7a73b802003-06-30 21:59:07 +00003724int
3725main ()
3726{
3727#ifndef __GNUC__
3728 choke me
3729#endif
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735rm -f conftest.$ac_objext
3736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003737 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_compiler_gnu=yes
3758else
3759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003760sed 's/^/| /' conftest.$ac_ext >&5
3761
John Criswell7a73b802003-06-30 21:59:07 +00003762ac_compiler_gnu=no
3763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003765ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770GCC=`test $ac_compiler_gnu = yes && echo yes`
3771ac_test_CFLAGS=${CFLAGS+set}
3772ac_save_CFLAGS=$CFLAGS
3773CFLAGS="-g"
3774echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776if test "${ac_cv_prog_cc_g+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003785
John Criswell7a73b802003-06-30 21:59:07 +00003786int
3787main ()
3788{
3789
3790 ;
3791 return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext
3795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003796 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003797 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003803 { ac_try='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (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); }; } &&
3810 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_cv_prog_cc_g=yes
3817else
3818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003819sed 's/^/| /' conftest.$ac_ext >&5
3820
John Criswell7a73b802003-06-30 21:59:07 +00003821ac_cv_prog_cc_g=no
3822fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003824fi
3825echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003842echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 ac_cv_prog_cc_stdc=no
3848ac_save_CC=$CC
3849cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
3855#include <stdarg.h>
3856#include <stdio.h>
3857#include <sys/types.h>
3858#include <sys/stat.h>
3859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860struct buf { int x; };
3861FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862static char *e (p, i)
3863 char **p;
3864 int i;
3865{
3866 return p[i];
3867}
3868static char *f (char * (*g) (char **, int), char **p, ...)
3869{
3870 char *s;
3871 va_list v;
3872 va_start (v,p);
3873 s = g (p, va_arg (v,int));
3874 va_end (v);
3875 return s;
3876}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003877
3878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std1 is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std1. */
3885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
John Criswell0c38eaf2003-09-10 15:17:25 +00003887int test (int i, double x);
3888struct s1 {int (*f) (int a);};
3889struct s2 {int (*f) (double a);};
3890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891int argc;
3892char **argv;
3893int
3894main ()
3895{
3896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901# Don't try gcc -ansi; that turns off useful extensions and
3902# breaks some systems' header files.
3903# AIX -qlanglvl=ansi
3904# Ultrix and OSF/1 -std1
3905# HP-UX 10.20 and later -Ae
3906# HP-UX older versions -Aa -D_HPUX_SOURCE
3907# SVR4 -Xc -D__EXTENSIONS__
3908for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909do
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003913 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003914 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_cv_prog_cc_stdc=$ac_arg
3934break
3935else
3936 echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003940rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003941done
3942rm -f conftest.$ac_ext conftest.$ac_objext
3943CC=$ac_save_CC
3944
3945fi
3946
3947case "x$ac_cv_prog_cc_stdc" in
3948 x|xno)
3949 echo "$as_me:$LINENO: result: none needed" >&5
3950echo "${ECHO_T}none needed" >&6 ;;
3951 *)
3952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954 CC="$CC $ac_cv_prog_cc_stdc" ;;
3955esac
3956
John Criswell7a73b802003-06-30 21:59:07 +00003957# Some people use a C++ compiler to compile C. Since we use `exit',
3958# in C++ we need to declare it. In case someone uses the same compiler
3959# for both compiling C and C++ we need to have the C++ compiler decide
3960# the declaration of exit, since it's the most demanding environment.
3961cat >conftest.$ac_ext <<_ACEOF
3962#ifndef __cplusplus
3963 choke me
3964#endif
3965_ACEOF
3966rm -f conftest.$ac_objext
3967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003968 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003975 { ac_try='test -z "$ac_c_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003989 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003990 'extern "C" void std::exit (int) throw (); using std::exit;' \
3991 'extern "C" void std::exit (int); using std::exit;' \
3992 'extern "C" void exit (int) throw ();' \
3993 'extern "C" void exit (int);' \
3994 'void exit (int);'
3995do
3996 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00004002$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00004003#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004004int
4005main ()
4006{
4007exit (42);
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004014 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004015 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004021 { ac_try='test -z "$ac_c_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 :
4035else
4036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004037sed 's/^/| /' conftest.$ac_ext >&5
4038
John Criswell7a73b802003-06-30 21:59:07 +00004039continue
4040fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004042 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004048$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00004049int
4050main ()
4051{
4052exit (42);
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext
4058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004059 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 break
4080else
4081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004082sed 's/^/| /' conftest.$ac_ext >&5
4083
John Criswell7a73b802003-06-30 21:59:07 +00004084fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004086done
4087rm -f conftest*
4088if test -n "$ac_declaration"; then
4089 echo '#ifdef __cplusplus' >>confdefs.h
4090 echo $ac_declaration >>confdefs.h
4091 echo '#endif' >>confdefs.h
4092fi
4093
4094else
4095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004096sed 's/^/| /' conftest.$ac_ext >&5
4097
John Criswell7a73b802003-06-30 21:59:07 +00004098fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004106ac_ext=cc
4107ac_cpp='$CXXCPP $CPPFLAGS'
4108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111if test -n "$ac_tool_prefix"; then
4112 for ac_prog in $CCC g++
4113 do
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116echo "$as_me:$LINENO: checking for $ac_word" >&5
4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004121 if test -n "$CXX"; then
4122 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00004126do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135done
4136done
4137
4138fi
4139fi
4140CXX=$ac_cv_prog_CXX
4141if test -n "$CXX"; then
4142 echo "$as_me:$LINENO: result: $CXX" >&5
4143echo "${ECHO_T}$CXX" >&6
4144else
4145 echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147fi
4148
4149 test -n "$CXX" && break
4150 done
4151fi
4152if test -z "$CXX"; then
4153 ac_ct_CXX=$CXX
4154 for ac_prog in $CCC g++
4155do
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157set dummy $ac_prog; ac_word=$2
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 if test -n "$ac_ct_CXX"; then
4164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CXX="$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178done
4179
4180fi
4181fi
4182ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183if test -n "$ac_ct_CXX"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185echo "${ECHO_T}$ac_ct_CXX" >&6
4186else
4187 echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189fi
4190
4191 test -n "$ac_ct_CXX" && break
4192done
4193test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4194
4195 CXX=$ac_ct_CXX
4196fi
4197
4198
4199# Provide some information about the compiler.
4200echo "$as_me:$LINENO:" \
4201 "checking for C++ compiler version" >&5
4202ac_compiler=`set X $ac_compile; echo $2`
4203{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204 (eval $ac_compiler --version </dev/null >&5) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }
4208{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209 (eval $ac_compiler -v </dev/null >&5) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }
4213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214 (eval $ac_compiler -V </dev/null >&5) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }
4218
4219echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
John Criswell7a73b802003-06-30 21:59:07 +00004224 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004230
4231int
4232main ()
4233{
4234#ifndef __GNUC__
4235 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004236#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004237
4238 ;
4239 return 0;
4240}
John Criswell7a73b802003-06-30 21:59:07 +00004241_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004242rm -f conftest.$ac_objext
4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004245 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004246 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_cxx_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_compiler_gnu=yes
4265else
4266 echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269ac_compiler_gnu=no
4270fi
4271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4273
4274fi
4275echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277GXX=`test $ac_compiler_gnu = yes && echo yes`
4278ac_test_CXXFLAGS=${CXXFLAGS+set}
4279ac_save_CXXFLAGS=$CXXFLAGS
4280CXXFLAGS="-g"
4281echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283if test "${ac_cv_prog_cxx_g+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292
4293int
4294main ()
4295{
4296
4297 ;
4298 return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303 (eval $ac_compile) 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_cxx_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_prog_cxx_g=yes
4324else
4325 echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328ac_cv_prog_cxx_g=no
4329fi
4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334if test "$ac_test_CXXFLAGS" = set; then
4335 CXXFLAGS=$ac_save_CXXFLAGS
4336elif test $ac_cv_prog_cxx_g = yes; then
4337 if test "$GXX" = yes; then
4338 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004339 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004340 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004341 fi
4342else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004343 if test "$GXX" = yes; then
4344 CXXFLAGS="-O2"
4345 else
4346 CXXFLAGS=
4347 fi
John Criswell7a73b802003-06-30 21:59:07 +00004348fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004349for ac_declaration in \
4350 '' \
4351 'extern "C" void std::exit (int) throw (); using std::exit;' \
4352 'extern "C" void std::exit (int); using std::exit;' \
4353 'extern "C" void exit (int) throw ();' \
4354 'extern "C" void exit (int);' \
4355 'void exit (int);'
4356do
4357 cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363$ac_declaration
4364#include <stdlib.h>
4365int
4366main ()
4367{
4368exit (42);
4369 ;
4370 return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext
4374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_cxx_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004395 :
4396else
4397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004398sed 's/^/| /' conftest.$ac_ext >&5
4399
John Criswell7a73b802003-06-30 21:59:07 +00004400continue
4401fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004404/* confdefs.h. */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004409$ac_declaration
4410int
4411main ()
4412{
4413exit (42);
4414 ;
4415 return 0;
4416}
John Criswell7a73b802003-06-30 21:59:07 +00004417_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004418rm -f conftest.$ac_objext
4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004421 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004422 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_cxx_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004440 break
John Criswell7a73b802003-06-30 21:59:07 +00004441else
4442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004443sed 's/^/| /' conftest.$ac_ext >&5
4444
John Criswell7a73b802003-06-30 21:59:07 +00004445fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004447done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004448rm -f conftest*
4449if test -n "$ac_declaration"; then
4450 echo '#ifdef __cplusplus' >>confdefs.h
4451 echo $ac_declaration >>confdefs.h
4452 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004453fi
4454
4455ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
John Criswell7a73b802003-06-30 21:59:07 +00004461echo "$as_me:$LINENO: checking " >&5
4462echo $ECHO_N "checking ... $ECHO_C" >&6
4463if test "${ac_cv_has_flex+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 for ac_prog in flex lex
4467do
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469set dummy $ac_prog; ac_word=$2
4470echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472if test "${ac_cv_prog_LEX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475 if test -n "$LEX"; then
4476 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_LEX="$ac_prog"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489done
4490done
4491
4492fi
4493fi
4494LEX=$ac_cv_prog_LEX
4495if test -n "$LEX"; then
4496 echo "$as_me:$LINENO: result: $LEX" >&5
4497echo "${ECHO_T}$LEX" >&6
4498else
4499 echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6
4501fi
4502
4503 test -n "$LEX" && break
4504done
4505test -n "$LEX" || LEX=":"
4506
4507if test -z "$LEXLIB"
4508then
4509 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514 ac_check_lib_save_LIBS=$LIBS
4515LIBS="-lfl $LIBS"
4516cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004522
4523/* Override any gcc2 internal prototype to avoid an error. */
4524#ifdef __cplusplus
4525extern "C"
4526#endif
4527/* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004530int
4531main ()
4532{
4533yywrap ();
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004540 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004541 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_fl_yywrap=yes
4561else
4562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004563sed 's/^/| /' conftest.$ac_ext >&5
4564
John Criswell7a73b802003-06-30 21:59:07 +00004565ac_cv_lib_fl_yywrap=no
4566fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004567rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004569LIBS=$ac_check_lib_save_LIBS
4570fi
4571echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573if test $ac_cv_lib_fl_yywrap = yes; then
4574 LEXLIB="-lfl"
4575else
4576 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 ac_check_lib_save_LIBS=$LIBS
4582LIBS="-ll $LIBS"
4583cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004589
4590/* Override any gcc2 internal prototype to avoid an error. */
4591#ifdef __cplusplus
4592extern "C"
4593#endif
4594/* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4596char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004597int
4598main ()
4599{
4600yywrap ();
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext conftest$ac_exeext
4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004607 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_lib_l_yywrap=yes
4628else
4629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
John Criswell7a73b802003-06-30 21:59:07 +00004632ac_cv_lib_l_yywrap=no
4633fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004634rm -f conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004636LIBS=$ac_check_lib_save_LIBS
4637fi
4638echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640if test $ac_cv_lib_l_yywrap = yes; then
4641 LEXLIB="-ll"
4642fi
4643
4644fi
4645
4646fi
4647
4648if test "x$LEX" != "x:"; then
4649 echo "$as_me:$LINENO: checking lex output file root" >&5
4650echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651if test "${ac_cv_prog_lex_root+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 # The minimal lex program is just a single line: %%. But some broken lexes
4655# (Solaris, I think it was) want two %% lines, so accommodate them.
4656cat >conftest.l <<_ACEOF
4657%%
4658%%
4659_ACEOF
4660{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661 (eval $LEX conftest.l) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }
4665if test -f lex.yy.c; then
4666 ac_cv_prog_lex_root=lex.yy
4667elif test -f lexyy.c; then
4668 ac_cv_prog_lex_root=lexyy
4669else
4670 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672 { (exit 1); exit 1; }; }
4673fi
4674fi
4675echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4677rm -f conftest.l
4678LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4679
4680echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685 # POSIX says lex can declare yytext either as a pointer or an array; the
4686# default is implementation-dependent. Figure out which it is, since
4687# not all implementations provide the %pointer and %array declarations.
4688ac_cv_prog_lex_yytext_pointer=no
4689echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4690ac_save_LIBS=$LIBS
4691LIBS="$LIBS $LEXLIB"
4692cat >conftest.$ac_ext <<_ACEOF
4693`cat $LEX_OUTPUT_ROOT.c`
4694_ACEOF
4695rm -f conftest.$ac_objext conftest$ac_exeext
4696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004697 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_prog_lex_yytext_pointer=yes
4718else
4719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004720sed 's/^/| /' conftest.$ac_ext >&5
4721
John Criswell7a73b802003-06-30 21:59:07 +00004722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004723rm -f conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004725LIBS=$ac_save_LIBS
4726rm -f "${LEX_OUTPUT_ROOT}.c"
4727
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731if test $ac_cv_prog_lex_yytext_pointer = yes; then
4732
4733cat >>confdefs.h <<\_ACEOF
4734#define YYTEXT_POINTER 1
4735_ACEOF
4736
4737fi
4738
4739fi
4740
4741fi
4742echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743echo "${ECHO_T}$ac_cv_has_flex" >&6
4744if test "$LEX" != "flex"; then
4745 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746echo "$as_me: error: flex not found but required" >&2;}
4747 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004748else
4749 FLEX=flex
4750
John Criswell7a73b802003-06-30 21:59:07 +00004751fi
4752
4753echo "$as_me:$LINENO: checking " >&5
4754echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004755if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 for ac_prog in 'bison -y' byacc
4759do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761set dummy $ac_prog; ac_word=$2
4762echo "$as_me:$LINENO: checking for $ac_word" >&5
4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764if test "${ac_cv_prog_YACC+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 if test -n "$YACC"; then
4768 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_YACC="$ac_prog"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781done
4782done
4783
4784fi
4785fi
4786YACC=$ac_cv_prog_YACC
4787if test -n "$YACC"; then
4788 echo "$as_me:$LINENO: result: $YACC" >&5
4789echo "${ECHO_T}$YACC" >&6
4790else
4791 echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793fi
4794
4795 test -n "$YACC" && break
4796done
4797test -n "$YACC" || YACC="yacc"
4798
John Criswell7a73b802003-06-30 21:59:07 +00004799fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004800echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004802if test "$YACC" != "bison -y"; then
4803 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804echo "$as_me: error: bison not found but required" >&2;}
4805 { (exit 1); exit 1; }; }
4806else
Brian Gaeke12810632004-01-13 06:52:10 +00004807 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004808
4809fi
4810
Reid Spencer1bc68642006-07-27 23:00:30 +00004811echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4812echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4813if test "${lt_cv_path_NM+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$NM"; then
4817 # Let the user override the test.
4818 lt_cv_path_NM="$NM"
4819else
4820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4821 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4822 IFS="$lt_save_ifs"
4823 test -z "$ac_dir" && ac_dir=.
4824 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4825 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4826 # Check to see if the nm accepts a BSD-compat flag.
4827 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4828 # nm: unknown option "B" ignored
4829 # Tru64's nm complains that /dev/null is an invalid object file
4830 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4831 */dev/null* | *'Invalid file or object type'*)
4832 lt_cv_path_NM="$tmp_nm -B"
4833 break
4834 ;;
4835 *)
4836 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4837 */dev/null*)
4838 lt_cv_path_NM="$tmp_nm -p"
4839 break
4840 ;;
4841 *)
4842 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4843 continue # so that we can try to find one that supports BSD flags
4844 ;;
4845 esac
4846 esac
4847 fi
4848 done
4849 IFS="$lt_save_ifs"
4850 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4851fi
4852fi
4853echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4854echo "${ECHO_T}$lt_cv_path_NM" >&6
4855NM="$lt_cv_path_NM"
4856
4857
4858
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004859echo "$as_me:$LINENO: checking for GNU make" >&5
4860echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4861if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004864 llvm_cv_gnu_make_command=''
4865 for a in "$MAKE" make gmake gnumake ; do
4866 if test -z "$a" ; then continue ; fi ;
4867 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4868 then
4869 llvm_cv_gnu_make_command=$a ;
4870 break;
John Criswell47fdd832003-07-14 16:52:07 +00004871 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004872 done
John Criswell7a73b802003-06-30 21:59:07 +00004873fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004874echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4875echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4876 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4877 ifGNUmake='' ;
4878 else
4879 ifGNUmake='#' ;
4880 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4881echo "${ECHO_T}\"Not found\"" >&6;
4882 fi
John Criswell7a73b802003-06-30 21:59:07 +00004883
John Criswell7a73b802003-06-30 21:59:07 +00004884
4885echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4887LN_S=$as_ln_s
4888if test "$LN_S" = "ln -s"; then
4889 echo "$as_me:$LINENO: result: yes" >&5
4890echo "${ECHO_T}yes" >&6
4891else
4892 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893echo "${ECHO_T}no, using $LN_S" >&6
4894fi
4895
Reid Spencer8a2d4712004-12-16 17:48:14 +00004896# Extract the first word of "cmp", so it can be a program name with args.
4897set dummy cmp; ac_word=$2
4898echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900if test "${ac_cv_path_CMP+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 case $CMP in
4904 [\\/]* | ?:[\\/]*)
4905 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4906 ;;
4907 *)
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920done
4921
4922 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4923 ;;
4924esac
4925fi
4926CMP=$ac_cv_path_CMP
4927
4928if test -n "$CMP"; then
4929 echo "$as_me:$LINENO: result: $CMP" >&5
4930echo "${ECHO_T}$CMP" >&6
4931else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934fi
4935
4936# Extract the first word of "cp", so it can be a program name with args.
4937set dummy cp; ac_word=$2
4938echo "$as_me:$LINENO: checking for $ac_word" >&5
4939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940if test "${ac_cv_path_CP+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943 case $CP in
4944 [\\/]* | ?:[\\/]*)
4945 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4946 ;;
4947 *)
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960done
4961
4962 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4963 ;;
4964esac
4965fi
4966CP=$ac_cv_path_CP
4967
4968if test -n "$CP"; then
4969 echo "$as_me:$LINENO: result: $CP" >&5
4970echo "${ECHO_T}$CP" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004976# Extract the first word of "date", so it can be a program name with args.
4977set dummy date; ac_word=$2
4978echo "$as_me:$LINENO: checking for $ac_word" >&5
4979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004983 case $DATE in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004986 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004987 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004998 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004999done
5000done
John Criswell7a73b802003-06-30 21:59:07 +00005001
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005002 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00005003 ;;
John Criswell7a73b802003-06-30 21:59:07 +00005004esac
John Criswell7a73b802003-06-30 21:59:07 +00005005fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005006DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00005007
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005008if test -n "$DATE"; then
5009 echo "$as_me:$LINENO: result: $DATE" >&5
5010echo "${ECHO_T}$DATE" >&6
5011else
5012 echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014fi
John Criswell7a73b802003-06-30 21:59:07 +00005015
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005016# Extract the first word of "find", so it can be a program name with args.
5017set dummy find; ac_word=$2
5018echo "$as_me:$LINENO: checking for $ac_word" >&5
5019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00005021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005023 case $FIND in
5024 [\\/]* | ?:[\\/]*)
5025 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5026 ;;
5027 *)
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039done
5040done
5041
5042 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5043 ;;
5044esac
5045fi
5046FIND=$ac_cv_path_FIND
5047
5048if test -n "$FIND"; then
5049 echo "$as_me:$LINENO: result: $FIND" >&5
5050echo "${ECHO_T}$FIND" >&6
5051else
5052 echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
5054fi
5055
5056# Extract the first word of "grep", so it can be a program name with args.
5057set dummy grep; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_path_GREP+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 case $GREP in
5064 [\\/]* | ?:[\\/]*)
5065 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5066 ;;
5067 *)
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079done
5080done
5081
5082 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5083 ;;
5084esac
5085fi
5086GREP=$ac_cv_path_GREP
5087
5088if test -n "$GREP"; then
5089 echo "$as_me:$LINENO: result: $GREP" >&5
5090echo "${ECHO_T}$GREP" >&6
5091else
5092 echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
5094fi
5095
5096# Extract the first word of "mkdir", so it can be a program name with args.
5097set dummy mkdir; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_path_MKDIR+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103 case $MKDIR in
5104 [\\/]* | ?:[\\/]*)
5105 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5106 ;;
5107 *)
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
5121
5122 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5123 ;;
5124esac
5125fi
5126MKDIR=$ac_cv_path_MKDIR
5127
5128if test -n "$MKDIR"; then
5129 echo "$as_me:$LINENO: result: $MKDIR" >&5
5130echo "${ECHO_T}$MKDIR" >&6
5131else
5132 echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
5134fi
5135
5136# Extract the first word of "mv", so it can be a program name with args.
5137set dummy mv; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_path_MV+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143 case $MV in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160done
5161
5162 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5163 ;;
5164esac
5165fi
5166MV=$ac_cv_path_MV
5167
5168if test -n "$MV"; then
5169 echo "$as_me:$LINENO: result: $MV" >&5
5170echo "${ECHO_T}$MV" >&6
5171else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174fi
5175
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005176if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5178set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5179echo "$as_me:$LINENO: checking for $ac_word" >&5
5180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181if test "${ac_cv_prog_RANLIB+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 if test -n "$RANLIB"; then
5185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5186else
5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198done
5199done
5200
5201fi
5202fi
5203RANLIB=$ac_cv_prog_RANLIB
5204if test -n "$RANLIB"; then
5205 echo "$as_me:$LINENO: result: $RANLIB" >&5
5206echo "${ECHO_T}$RANLIB" >&6
5207else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210fi
5211
5212fi
5213if test -z "$ac_cv_prog_RANLIB"; then
5214 ac_ct_RANLIB=$RANLIB
5215 # Extract the first word of "ranlib", so it can be a program name with args.
5216set dummy ranlib; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 if test -n "$ac_ct_RANLIB"; then
5223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_RANLIB="ranlib"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236done
5237done
5238
5239 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5240fi
5241fi
5242ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5243if test -n "$ac_ct_RANLIB"; then
5244 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5245echo "${ECHO_T}$ac_ct_RANLIB" >&6
5246else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249fi
5250
5251 RANLIB=$ac_ct_RANLIB
5252else
5253 RANLIB="$ac_cv_prog_RANLIB"
5254fi
5255
5256# Extract the first word of "rm", so it can be a program name with args.
5257set dummy rm; ac_word=$2
5258echo "$as_me:$LINENO: checking for $ac_word" >&5
5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260if test "${ac_cv_path_RM+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 case $RM in
5264 [\\/]* | ?:[\\/]*)
5265 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5266 ;;
5267 *)
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279done
5280done
5281
5282 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5283 ;;
5284esac
5285fi
5286RM=$ac_cv_path_RM
5287
5288if test -n "$RM"; then
5289 echo "$as_me:$LINENO: result: $RM" >&5
5290echo "${ECHO_T}$RM" >&6
5291else
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294fi
5295
5296# Extract the first word of "sed", so it can be a program name with args.
5297set dummy sed; ac_word=$2
5298echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300if test "${ac_cv_path_SED+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 case $SED in
5304 [\\/]* | ?:[\\/]*)
5305 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5306 ;;
5307 *)
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH
5310do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5318 fi
5319done
5320done
5321
5322 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5323 ;;
5324esac
5325fi
5326SED=$ac_cv_path_SED
5327
5328if test -n "$SED"; then
5329 echo "$as_me:$LINENO: result: $SED" >&5
5330echo "${ECHO_T}$SED" >&6
5331else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334fi
5335
5336# Extract the first word of "tar", so it can be a program name with args.
5337set dummy tar; ac_word=$2
5338echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340if test "${ac_cv_path_TAR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 case $TAR in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359done
5360done
5361
5362 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5363 ;;
5364esac
5365fi
5366TAR=$ac_cv_path_TAR
5367
5368if test -n "$TAR"; then
5369 echo "$as_me:$LINENO: result: $TAR" >&5
5370echo "${ECHO_T}$TAR" >&6
5371else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374fi
5375
Reid Spenceraea7fe42006-07-28 05:05:00 +00005376# Extract the first word of "pwd", so it can be a program name with args.
5377set dummy pwd; ac_word=$2
5378echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380if test "${ac_cv_path_BINPWD+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 case $BINPWD in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399done
5400done
5401
5402 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
5403 ;;
5404esac
5405fi
5406BINPWD=$ac_cv_path_BINPWD
5407
5408if test -n "$BINPWD"; then
5409 echo "$as_me:$LINENO: result: $BINPWD" >&5
5410echo "${ECHO_T}$BINPWD" >&6
5411else
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
5414fi
5415
Reid Spencerecbd2422006-06-02 23:13:18 +00005416
Reid Spencer8a2246f2005-07-13 03:20:14 +00005417# Extract the first word of "Graphviz", so it can be a program name with args.
5418set dummy Graphviz; ac_word=$2
5419echo "$as_me:$LINENO: checking for $ac_word" >&5
5420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424 case $GRAPHVIZ in
5425 [\\/]* | ?:[\\/]*)
5426 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5427 ;;
5428 *)
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440done
5441done
5442
Reid Spencerc232a652005-07-14 02:25:12 +00005443 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005444 ;;
5445esac
5446fi
5447GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5448
5449if test -n "$GRAPHVIZ"; then
5450 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5451echo "${ECHO_T}$GRAPHVIZ" >&6
5452else
5453 echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
5455fi
5456
Reid Spencerc232a652005-07-14 02:25:12 +00005457if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005458
5459cat >>confdefs.h <<\_ACEOF
5460#define HAVE_GRAPHVIZ 1
5461_ACEOF
5462
Reid Spencercaf0ece2006-06-05 15:54:38 +00005463 if test "$llvm_cv_os_type" == "MingW" ; then
5464 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5465 fi
Reid Spencerc232a652005-07-14 02:25:12 +00005466
Reid Spencerbe130282005-07-14 05:19:12 +00005467cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005468#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
Reid Spencerc232a652005-07-14 02:25:12 +00005469_ACEOF
5470
Reid Spencer8a2246f2005-07-13 03:20:14 +00005471fi
Reid Spencercaf0ece2006-06-05 15:54:38 +00005472# Extract the first word of "dot", so it can be a program name with args.
5473set dummy dot; ac_word=$2
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476if test "${ac_cv_path_DOT+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 case $DOT in
5480 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5482 ;;
5483 *)
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495done
5496done
5497
5498 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5499 ;;
5500esac
5501fi
5502DOT=$ac_cv_path_DOT
5503
5504if test -n "$DOT"; then
5505 echo "$as_me:$LINENO: result: $DOT" >&5
5506echo "${ECHO_T}$DOT" >&6
5507else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510fi
5511
5512if test "$DOT" != "echo dot" ; then
5513
5514cat >>confdefs.h <<\_ACEOF
5515#define HAVE_DOT 1
5516_ACEOF
5517
5518 if test "$llvm_cv_os_type" == "MingW" ; then
5519 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5520 fi
5521
5522cat >>confdefs.h <<_ACEOF
5523#define LLVM_PATH_DOT "$DOT${EXEEXT}"
5524_ACEOF
5525
5526fi
5527for ac_prog in gv gsview32
5528do
5529 # Extract the first word of "$ac_prog", so it can be a program name with args.
5530set dummy $ac_prog; ac_word=$2
Reid Spencerbe130282005-07-14 05:19:12 +00005531echo "$as_me:$LINENO: checking for $ac_word" >&5
5532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533if test "${ac_cv_path_GV+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536 case $GV in
5537 [\\/]* | ?:[\\/]*)
5538 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5539 ;;
5540 *)
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552done
5553done
5554
Reid Spencerbe130282005-07-14 05:19:12 +00005555 ;;
5556esac
5557fi
5558GV=$ac_cv_path_GV
5559
5560if test -n "$GV"; then
5561 echo "$as_me:$LINENO: result: $GV" >&5
5562echo "${ECHO_T}$GV" >&6
5563else
5564 echo "$as_me:$LINENO: result: no" >&5
5565echo "${ECHO_T}no" >&6
5566fi
5567
Reid Spencercaf0ece2006-06-05 15:54:38 +00005568 test -n "$GV" && break
5569done
5570test -n "$GV" || GV="echo gv"
5571
Misha Brukmanf83d4062005-11-01 21:00:49 +00005572if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005573
5574cat >>confdefs.h <<\_ACEOF
5575#define HAVE_GV 1
5576_ACEOF
5577
Reid Spencercaf0ece2006-06-05 15:54:38 +00005578 if test "$llvm_cv_os_type" == "MingW" ; then
5579 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5580 fi
Reid Spencerbe130282005-07-14 05:19:12 +00005581
5582cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005583#define LLVM_PATH_GV "$GV${EXEEXT}"
Reid Spencerbe130282005-07-14 05:19:12 +00005584_ACEOF
5585
5586fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005587# Extract the first word of "dotty", so it can be a program name with args.
5588set dummy dotty; ac_word=$2
5589echo "$as_me:$LINENO: checking for $ac_word" >&5
5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5591if test "${ac_cv_path_DOTTY+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 case $DOTTY in
5595 [\\/]* | ?:[\\/]*)
5596 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5597 ;;
5598 *)
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610done
5611done
5612
5613 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5614 ;;
5615esac
5616fi
5617DOTTY=$ac_cv_path_DOTTY
5618
5619if test -n "$DOTTY"; then
5620 echo "$as_me:$LINENO: result: $DOTTY" >&5
5621echo "${ECHO_T}$DOTTY" >&6
5622else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625fi
5626
5627if test "$DOTTY" != "echo dotty" ; then
5628
5629cat >>confdefs.h <<\_ACEOF
5630#define HAVE_DOTTY 1
5631_ACEOF
5632
Reid Spencercaf0ece2006-06-05 15:54:38 +00005633 if test "$llvm_cv_os_type" == "MingW" ; then
5634 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5635 fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005636
5637cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005638#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
Reid Spencerecbd2422006-06-02 23:13:18 +00005639_ACEOF
5640
5641fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005642
Reid Spencerb195d9d2006-03-23 23:21:29 +00005643
5644# Extract the first word of "perl", so it can be a program name with args.
5645set dummy perl; ac_word=$2
5646echo "$as_me:$LINENO: checking for $ac_word" >&5
5647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648if test "${ac_cv_path_PERL+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651 case $PERL in
5652 [\\/]* | ?:[\\/]*)
5653 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5654 ;;
5655 *)
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657for as_dir in $PATH
5658do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667done
5668done
5669
5670 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5671 ;;
5672esac
5673fi
5674PERL=$ac_cv_path_PERL
5675
5676if test -n "$PERL"; then
5677 echo "$as_me:$LINENO: result: $PERL" >&5
5678echo "${ECHO_T}$PERL" >&6
5679else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682fi
5683
5684if test "$PERL" != "none"; then
5685 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5686echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5687 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690 else
5691 PERL=none
5692 echo "$as_me:$LINENO: result: not found" >&5
5693echo "${ECHO_T}not found" >&6
5694 fi
5695fi
5696
5697
5698if test x"$PERL" = xnone; then
5699 HAVE_PERL=0
5700
5701else
5702 HAVE_PERL=1
5703
5704fi
5705
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005706# Find a good install program. We prefer a C program (faster),
5707# so one script is as good as another. But avoid the broken or
5708# incompatible versions:
5709# SysV /etc/install, /usr/sbin/install
5710# SunOS /usr/etc/install
5711# IRIX /sbin/install
5712# AIX /bin/install
5713# AmigaOS /C/install, which installs bootblocks on floppy discs
5714# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5715# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5716# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5717# OS/2's system install, which has a completely different semantic
5718# ./install, which can be erroneously created by make from ./install.sh.
5719echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5720echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5721if test -z "$INSTALL"; then
5722if test "${ac_cv_path_install+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 # Account for people who put trailing slashes in PATH elements.
5731case $as_dir/ in
5732 ./ | .// | /cC/* | \
5733 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5734 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5735 /usr/ucb/* ) ;;
5736 *)
5737 # OSF1 and SCO ODT 3.0 have their own names for install.
5738 # Don't use installbsd from OSF since it installs stuff as root
5739 # by default.
5740 for ac_prog in ginstall scoinst install; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5743 if test $ac_prog = install &&
5744 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5745 # AIX install. It has an incompatible calling convention.
5746 :
5747 elif test $ac_prog = install &&
5748 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749 # program-specific install script used by HP pwplus--don't use.
5750 :
5751 else
5752 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5753 break 3
5754 fi
5755 fi
5756 done
5757 done
5758 ;;
5759esac
5760done
5761
5762
5763fi
5764 if test "${ac_cv_path_install+set}" = set; then
5765 INSTALL=$ac_cv_path_install
5766 else
5767 # As a last resort, use the slow shell script. We don't cache a
5768 # path for INSTALL within a source directory, because that will
5769 # break other packages using the cache if that directory is
5770 # removed, or if the path is relative.
5771 INSTALL=$ac_install_sh
5772 fi
5773fi
5774echo "$as_me:$LINENO: result: $INSTALL" >&5
5775echo "${ECHO_T}$INSTALL" >&6
5776
5777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5778# It thinks the first close brace ends the variable substitution.
5779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5780
5781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5782
5783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5784
5785
5786# Extract the first word of "bzip2", so it can be a program name with args.
5787set dummy bzip2; ac_word=$2
5788echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790if test "${ac_cv_path_BZIP2+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 case $BZIP2 in
5794 [\\/]* | ?:[\\/]*)
5795 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5796 ;;
5797 *)
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809done
5810done
5811
Reid Spencerf9b458c2006-04-27 07:49:24 +00005812 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005813 ;;
5814esac
5815fi
5816BZIP2=$ac_cv_path_BZIP2
5817
5818if test -n "$BZIP2"; then
5819 echo "$as_me:$LINENO: result: $BZIP2" >&5
5820echo "${ECHO_T}$BZIP2" >&6
5821else
5822 echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6
5824fi
5825
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005826# Extract the first word of "doxygen", so it can be a program name with args.
5827set dummy doxygen; ac_word=$2
5828echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830if test "${ac_cv_path_DOXYGEN+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 case $DOXYGEN in
5834 [\\/]* | ?:[\\/]*)
5835 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5836 ;;
5837 *)
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849done
5850done
5851
Reid Spencerf9b458c2006-04-27 07:49:24 +00005852 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005853 ;;
5854esac
5855fi
5856DOXYGEN=$ac_cv_path_DOXYGEN
5857
5858if test -n "$DOXYGEN"; then
5859 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5860echo "${ECHO_T}$DOXYGEN" >&6
5861else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864fi
5865
5866# Extract the first word of "etags", so it can be a program name with args.
5867set dummy etags; ac_word=$2
5868echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870if test "${ac_cv_path_ETAGS+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873 case $ETAGS in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890done
5891
Reid Spencerf9b458c2006-04-27 07:49:24 +00005892 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005893 ;;
5894esac
5895fi
5896ETAGS=$ac_cv_path_ETAGS
5897
5898if test -n "$ETAGS"; then
5899 echo "$as_me:$LINENO: result: $ETAGS" >&5
5900echo "${ECHO_T}$ETAGS" >&6
5901else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906# Extract the first word of "groff", so it can be a program name with args.
5907set dummy groff; ac_word=$2
5908echo "$as_me:$LINENO: checking for $ac_word" >&5
5909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910if test "${ac_cv_path_GROFF+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 case $GROFF in
5914 [\\/]* | ?:[\\/]*)
5915 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5916 ;;
5917 *)
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930done
5931
Reid Spencerf9b458c2006-04-27 07:49:24 +00005932 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005933 ;;
5934esac
5935fi
5936GROFF=$ac_cv_path_GROFF
5937
5938if test -n "$GROFF"; then
5939 echo "$as_me:$LINENO: result: $GROFF" >&5
5940echo "${ECHO_T}$GROFF" >&6
5941else
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944fi
5945
5946# Extract the first word of "gzip", so it can be a program name with args.
5947set dummy gzip; ac_word=$2
5948echo "$as_me:$LINENO: checking for $ac_word" >&5
5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950if test "${ac_cv_path_GZIP+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953 case $GZIP in
5954 [\\/]* | ?:[\\/]*)
5955 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5956 ;;
5957 *)
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969done
5970done
5971
Reid Spencerf9b458c2006-04-27 07:49:24 +00005972 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005973 ;;
5974esac
5975fi
5976GZIP=$ac_cv_path_GZIP
5977
5978if test -n "$GZIP"; then
5979 echo "$as_me:$LINENO: result: $GZIP" >&5
5980echo "${ECHO_T}$GZIP" >&6
5981else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984fi
5985
5986# Extract the first word of "pod2html", so it can be a program name with args.
5987set dummy pod2html; ac_word=$2
5988echo "$as_me:$LINENO: checking for $ac_word" >&5
5989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990if test "${ac_cv_path_POD2HTML+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993 case $POD2HTML in
5994 [\\/]* | ?:[\\/]*)
5995 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5996 ;;
5997 *)
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010done
6011
Reid Spencerf9b458c2006-04-27 07:49:24 +00006012 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006013 ;;
6014esac
6015fi
6016POD2HTML=$ac_cv_path_POD2HTML
6017
6018if test -n "$POD2HTML"; then
6019 echo "$as_me:$LINENO: result: $POD2HTML" >&5
6020echo "${ECHO_T}$POD2HTML" >&6
6021else
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024fi
6025
6026# Extract the first word of "pod2man", so it can be a program name with args.
6027set dummy pod2man; ac_word=$2
6028echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030if test "${ac_cv_path_POD2MAN+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 case $POD2MAN in
6034 [\\/]* | ?:[\\/]*)
6035 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
6036 ;;
6037 *)
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051
Reid Spencerf9b458c2006-04-27 07:49:24 +00006052 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006053 ;;
6054esac
6055fi
6056POD2MAN=$ac_cv_path_POD2MAN
6057
6058if test -n "$POD2MAN"; then
6059 echo "$as_me:$LINENO: result: $POD2MAN" >&5
6060echo "${ECHO_T}$POD2MAN" >&6
6061else
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064fi
6065
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006066# Extract the first word of "runtest", so it can be a program name with args.
6067set dummy runtest; ac_word=$2
6068echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070if test "${ac_cv_path_RUNTEST+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073 case $RUNTEST in
6074 [\\/]* | ?:[\\/]*)
6075 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
6076 ;;
6077 *)
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090done
6091
Reid Spencerf9b458c2006-04-27 07:49:24 +00006092 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006093 ;;
6094esac
6095fi
6096RUNTEST=$ac_cv_path_RUNTEST
6097
6098if test -n "$RUNTEST"; then
6099 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6100echo "${ECHO_T}$RUNTEST" >&6
6101else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104fi
6105
Reid Spencer0fcb9412004-11-30 08:11:54 +00006106
Reid Spencer0fcb9412004-11-30 08:11:54 +00006107no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00006108echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6109echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00006110
6111# Check whether --with-tclinclude or --without-tclinclude was given.
6112if test "${with_tclinclude+set}" = set; then
6113 withval="$with_tclinclude"
6114 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00006115else
6116 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00006117fi;
6118if test "${ac_cv_path_tclsh+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121
6122if test x"${with_tclinclude}" != x ; then
6123 if test -f ${with_tclinclude}/tclsh ; then
6124 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6125 elif test -f ${with_tclinclude}/src/tclsh ; then
6126 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6127 else
6128 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6129echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6130 { (exit 1); exit 1; }; }
6131 fi
6132fi
6133
Reid Spencer0fcb9412004-11-30 08:11:54 +00006134if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00006135 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00006136echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00006137 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 +00006138do
6139 # Extract the first word of "$ac_prog", so it can be a program name with args.
6140set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00006141echo "$as_me:$LINENO: checking for $ac_word" >&5
6142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00006143if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00006144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
Reid Spencercda35f82004-12-02 04:17:20 +00006146 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00006147 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00006148 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00006149 ;;
6150 *)
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00006158 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00006159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
6165 ;;
6166esac
6167fi
Reid Spencercda35f82004-12-02 04:17:20 +00006168TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00006169
Reid Spencercda35f82004-12-02 04:17:20 +00006170if test -n "$TCLSH"; then
6171 echo "$as_me:$LINENO: result: $TCLSH" >&5
6172echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00006173else
6174 echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176fi
6177
Reid Spencercda35f82004-12-02 04:17:20 +00006178 test -n "$TCLSH" && break
6179done
Reid Spencer0fcb9412004-11-30 08:11:54 +00006180
Reid Spencercda35f82004-12-02 04:17:20 +00006181 if test x"${TCLSH}" = x ; then
6182 ac_cv_path_tclsh='';
6183 else
6184 ac_cv_path_tclsh="${TCLSH}";
6185 fi
6186else
6187 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6188echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6189 TCLSH="${ac_cv_path_tclsh}"
6190
6191fi
6192
6193fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00006194
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006195# Extract the first word of "zip", so it can be a program name with args.
6196set dummy zip; ac_word=$2
6197echo "$as_me:$LINENO: checking for $ac_word" >&5
6198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199if test "${ac_cv_path_ZIP+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202 case $ZIP in
6203 [\\/]* | ?:[\\/]*)
6204 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6205 ;;
6206 *)
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219done
6220
Reid Spencerf9b458c2006-04-27 07:49:24 +00006221 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006222 ;;
6223esac
6224fi
6225ZIP=$ac_cv_path_ZIP
6226
6227if test -n "$ZIP"; then
6228 echo "$as_me:$LINENO: result: $ZIP" >&5
6229echo "${ECHO_T}$ZIP" >&6
6230else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233fi
6234
6235
6236echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6237echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6238if test "${llvm_cv_link_use_r+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6240else
6241 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006242ac_cpp='$CPP $CPPFLAGS'
6243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006247 oldcflags="$CFLAGS"
6248 CFLAGS="$CFLAGS -Wl,-R."
6249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00006255
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006256int
6257main ()
6258{
6259int main() { return 0; }
6260 ;
6261 return 0;
6262}
John Criswell47fdd832003-07-14 16:52:07 +00006263_ACEOF
6264rm -f conftest.$ac_objext conftest$ac_exeext
6265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006266 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006273 { ac_try='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006286 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00006287else
John Criswell47fdd832003-07-14 16:52:07 +00006288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006289sed 's/^/| /' conftest.$ac_ext >&5
6290
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006291llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00006292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006293rm -f conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006295 CFLAGS="$oldcflags"
6296 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006297ac_cpp='$CPP $CPPFLAGS'
6298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300ac_compiler_gnu=$ac_cv_c_compiler_gnu
6301
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006302
John Criswell7a73b802003-06-30 21:59:07 +00006303fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006304echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6305echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6306if test "$llvm_cv_link_use_r" = yes ; then
6307
6308cat >>confdefs.h <<\_ACEOF
6309#define HAVE_LINK_R 1
6310_ACEOF
6311
John Criswell47fdd832003-07-14 16:52:07 +00006312 fi
John Criswell47fdd832003-07-14 16:52:07 +00006313
John Criswell47fdd832003-07-14 16:52:07 +00006314
John Criswell47fdd832003-07-14 16:52:07 +00006315
John Criswell7a73b802003-06-30 21:59:07 +00006316
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006317echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6318echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6319if test "${ac_cv_c_const+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322 cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328
6329int
6330main ()
6331{
6332/* FIXME: Include the comments suggested by Paul. */
6333#ifndef __cplusplus
6334 /* Ultrix mips cc rejects this. */
6335 typedef int charset[2];
6336 const charset x;
6337 /* SunOS 4.1.1 cc rejects this. */
6338 char const *const *ccp;
6339 char **p;
6340 /* NEC SVR4.0.2 mips cc rejects this. */
6341 struct point {int x, y;};
6342 static struct point const zero = {0,0};
6343 /* AIX XL C 1.02.0.0 rejects this.
6344 It does not let you subtract one const X* pointer from another in
6345 an arm of an if-expression whose if-part is not a constant
6346 expression */
6347 const char *g = "string";
6348 ccp = &g + (g ? g-g : 0);
6349 /* HPUX 7.0 cc rejects these. */
6350 ++ccp;
6351 p = (char**) ccp;
6352 ccp = (char const *const *) p;
6353 { /* SCO 3.2v4 cc rejects this. */
6354 char *t;
6355 char const *s = 0 ? (char *) 0 : (char const *) 0;
6356
6357 *t++ = 0;
6358 }
6359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6360 int x[] = {25, 17};
6361 const int *foo = &x[0];
6362 ++foo;
6363 }
6364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6365 typedef const int *iptr;
6366 iptr p = 0;
6367 ++p;
6368 }
6369 { /* AIX XL C 1.02.0.0 rejects this saying
6370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6371 struct s { int j; const int *ap[3]; };
6372 struct s *b; b->j = 5;
6373 }
6374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6375 const int foo = 10;
6376 }
6377#endif
6378
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext
6384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_cv_c_const=yes
6406else
6407 echo "$as_me: failed program was:" >&5
6408sed 's/^/| /' conftest.$ac_ext >&5
6409
6410ac_cv_c_const=no
6411fi
6412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413fi
6414echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6415echo "${ECHO_T}$ac_cv_c_const" >&6
6416if test $ac_cv_c_const = no; then
6417
6418cat >>confdefs.h <<\_ACEOF
6419#define const
6420_ACEOF
6421
6422fi
6423
6424
6425echo "$as_me:$LINENO: checking for egrep" >&5
6426echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6427if test "${ac_cv_prog_egrep+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6431 then ac_cv_prog_egrep='grep -E'
6432 else ac_cv_prog_egrep='egrep'
6433 fi
6434fi
6435echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6436echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6437 EGREP=$ac_cv_prog_egrep
6438
John Criswell7a73b802003-06-30 21:59:07 +00006439
6440echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6441echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6442if test "${ac_cv_header_stdc+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444else
6445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006451#include <stdlib.h>
6452#include <stdarg.h>
6453#include <string.h>
6454#include <float.h>
6455
John Criswell0c38eaf2003-09-10 15:17:25 +00006456int
6457main ()
6458{
6459
6460 ;
6461 return 0;
6462}
John Criswell7a73b802003-06-30 21:59:07 +00006463_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006464rm -f conftest.$ac_objext
6465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006466 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006472 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006473 { ac_try='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006486 ac_cv_header_stdc=yes
6487else
6488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006489sed 's/^/| /' conftest.$ac_ext >&5
6490
6491ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006494
6495if test $ac_cv_header_stdc = yes; then
6496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006498/* confdefs.h. */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006503#include <string.h>
6504
6505_ACEOF
6506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006507 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006508 :
6509else
6510 ac_cv_header_stdc=no
6511fi
6512rm -f conftest*
6513
6514fi
6515
6516if test $ac_cv_header_stdc = yes; then
6517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006519/* confdefs.h. */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006524#include <stdlib.h>
6525
6526_ACEOF
6527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006528 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006529 :
6530else
6531 ac_cv_header_stdc=no
6532fi
6533rm -f conftest*
6534
6535fi
6536
6537if test $ac_cv_header_stdc = yes; then
6538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6539 if test "$cross_compiling" = yes; then
6540 :
6541else
6542 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006543/* confdefs.h. */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
6547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006548#include <ctype.h>
6549#if ((' ' & 0x0FF) == 0x020)
6550# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6552#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006553# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006554 (('a' <= (c) && (c) <= 'i') \
6555 || ('j' <= (c) && (c) <= 'r') \
6556 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006557# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6558#endif
6559
6560#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6561int
6562main ()
6563{
6564 int i;
6565 for (i = 0; i < 256; i++)
6566 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006567 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006568 exit(2);
6569 exit (0);
6570}
6571_ACEOF
6572rm -f conftest$ac_exeext
6573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 :
6584else
6585 echo "$as_me: program exited with status $ac_status" >&5
6586echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006587sed 's/^/| /' conftest.$ac_ext >&5
6588
John Criswell7a73b802003-06-30 21:59:07 +00006589( exit $ac_status )
6590ac_cv_header_stdc=no
6591fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006592rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006593fi
6594fi
6595fi
6596echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6597echo "${ECHO_T}$ac_cv_header_stdc" >&6
6598if test $ac_cv_header_stdc = yes; then
6599
6600cat >>confdefs.h <<\_ACEOF
6601#define STDC_HEADERS 1
6602_ACEOF
6603
6604fi
6605
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006606
6607
6608
6609
6610
6611ac_header_dirent=no
6612for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6613 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6614echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6615echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6616if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625#include <sys/types.h>
6626#include <$ac_hdr>
6627
6628int
6629main ()
6630{
6631if ((DIR *) 0)
6632return 0;
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637rm -f conftest.$ac_objext
6638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639 (eval $ac_compile) 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -z "$ac_c_werror_flag"
6647 || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 (eval $ac_try) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest.$ac_objext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 eval "$as_ac_Header=yes"
6660else
6661 echo "$as_me: failed program was:" >&5
6662sed 's/^/| /' conftest.$ac_ext >&5
6663
6664eval "$as_ac_Header=no"
6665fi
6666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
6668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6670if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6673_ACEOF
6674
6675ac_header_dirent=$ac_hdr; break
6676fi
6677
6678done
6679# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6680if test $ac_header_dirent = dirent.h; then
6681 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6682echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6683if test "${ac_cv_search_opendir+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686 ac_func_search_save_LIBS=$LIBS
6687ac_cv_search_opendir=no
6688cat >conftest.$ac_ext <<_ACEOF
6689/* confdefs.h. */
6690_ACEOF
6691cat confdefs.h >>conftest.$ac_ext
6692cat >>conftest.$ac_ext <<_ACEOF
6693/* end confdefs.h. */
6694
6695/* Override any gcc2 internal prototype to avoid an error. */
6696#ifdef __cplusplus
6697extern "C"
6698#endif
6699/* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6701char opendir ();
6702int
6703main ()
6704{
6705opendir ();
6706 ;
6707 return 0;
6708}
6709_ACEOF
6710rm -f conftest.$ac_objext conftest$ac_exeext
6711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6712 (eval $ac_link) 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -z "$ac_c_werror_flag"
6720 || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest$ac_exeext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_search_opendir="none required"
6733else
6734 echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737fi
6738rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740if test "$ac_cv_search_opendir" = no; then
6741 for ac_lib in dir; do
6742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6743 cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h. */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h. */
6749
6750/* Override any gcc2 internal prototype to avoid an error. */
6751#ifdef __cplusplus
6752extern "C"
6753#endif
6754/* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6756char opendir ();
6757int
6758main ()
6759{
6760opendir ();
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext conftest$ac_exeext
6766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_search_opendir="-l$ac_lib"
6788break
6789else
6790 echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793fi
6794rm -f conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6796 done
6797fi
6798LIBS=$ac_func_search_save_LIBS
6799fi
6800echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6801echo "${ECHO_T}$ac_cv_search_opendir" >&6
6802if test "$ac_cv_search_opendir" != no; then
6803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6804
6805fi
6806
6807else
6808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6809echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6810if test "${ac_cv_search_opendir+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 ac_func_search_save_LIBS=$LIBS
6814ac_cv_search_opendir=no
6815cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
6821
6822/* Override any gcc2 internal prototype to avoid an error. */
6823#ifdef __cplusplus
6824extern "C"
6825#endif
6826/* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828char opendir ();
6829int
6830main ()
6831{
6832opendir ();
6833 ;
6834 return 0;
6835}
6836_ACEOF
6837rm -f conftest.$ac_objext conftest$ac_exeext
6838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6839 (eval $ac_link) 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_search_opendir="none required"
6860else
6861 echo "$as_me: failed program was:" >&5
6862sed 's/^/| /' conftest.$ac_ext >&5
6863
6864fi
6865rm -f conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867if test "$ac_cv_search_opendir" = no; then
6868 for ac_lib in x; do
6869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6870 cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h. */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h. */
6876
6877/* Override any gcc2 internal prototype to avoid an error. */
6878#ifdef __cplusplus
6879extern "C"
6880#endif
6881/* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883char opendir ();
6884int
6885main ()
6886{
6887opendir ();
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext conftest$ac_exeext
6893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_search_opendir="-l$ac_lib"
6915break
6916else
6917 echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920fi
6921rm -f conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 done
6924fi
6925LIBS=$ac_func_search_save_LIBS
6926fi
6927echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6928echo "${ECHO_T}$ac_cv_search_opendir" >&6
6929if test "$ac_cv_search_opendir" != no; then
6930 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6931
6932fi
6933
6934fi
6935
John Criswell7a73b802003-06-30 21:59:07 +00006936# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006947 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006948do
6949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950echo "$as_me:$LINENO: checking for $ac_header" >&5
6951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006961$ac_includes_default
6962
6963#include <$ac_header>
6964_ACEOF
6965rm -f conftest.$ac_objext
6966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006967 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 eval "$as_ac_Header=yes"
6988else
6989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006990sed 's/^/| /' conftest.$ac_ext >&5
6991
John Criswell7a73b802003-06-30 21:59:07 +00006992eval "$as_ac_Header=no"
6993fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006995fi
6996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001_ACEOF
7002
7003fi
7004
7005done
7006
7007
7008
7009for ac_header in dlfcn.h
7010do
7011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00007012if eval "test \"\${$as_ac_Header+set}\" = set"; then
7013 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00007014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00007017fi
7018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007020else
Brian Gaeke0a621332004-09-08 20:38:05 +00007021 # Is the header compilable?
7022echo "$as_me:$LINENO: checking $ac_header usability" >&5
7023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7024cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007030$ac_includes_default
7031#include <$ac_header>
7032_ACEOF
7033rm -f conftest.$ac_objext
7034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00007035 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00007036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00007040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00007042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00007050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00007055 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00007056else
7057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007058sed 's/^/| /' conftest.$ac_ext >&5
7059
Brian Gaeke0a621332004-09-08 20:38:05 +00007060ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00007061fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00007062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00007063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064echo "${ECHO_T}$ac_header_compiler" >&6
7065
7066# Is the header present?
7067echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7069cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h. */
7075#include <$ac_header>
7076_ACEOF
7077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } >/dev/null; then
7085 if test -s conftest.err; then
7086 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00007087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00007088 else
7089 ac_cpp_err=
7090 fi
7091else
7092 ac_cpp_err=yes
7093fi
7094if test -z "$ac_cpp_err"; then
7095 ac_header_preproc=yes
7096else
7097 echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 ac_header_preproc=no
7101fi
7102rm -f conftest.err conftest.$ac_ext
7103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7104echo "${ECHO_T}$ac_header_preproc" >&6
7105
7106# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7108 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00007109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00007111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7113 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00007114 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00007115 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00007116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00007118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7123echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00007124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00007126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00007128 (
7129 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00007130## ----------------------------------- ##
7131## Report this to llvmbugs@cs.uiuc.edu ##
7132## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00007133_ASBOX
7134 ) |
7135 sed "s/^/$as_me: WARNING: /" >&2
7136 ;;
7137esac
7138echo "$as_me:$LINENO: checking for $ac_header" >&5
7139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7140if eval "test \"\${$as_ac_Header+set}\" = set"; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007143 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00007144fi
7145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00007147
7148fi
John Criswell7a73b802003-06-30 21:59:07 +00007149if test `eval echo '${'$as_ac_Header'}'` = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152_ACEOF
7153
7154fi
7155
7156done
7157
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007158# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7159if test "${enable_ltdl_install+set}" = set; then
7160 enableval="$enable_ltdl_install"
7161
7162fi;
7163
7164
7165
7166if test x"${enable_ltdl_install-no}" != xno; then
7167 INSTALL_LTDL_TRUE=
7168 INSTALL_LTDL_FALSE='#'
7169else
7170 INSTALL_LTDL_TRUE='#'
7171 INSTALL_LTDL_FALSE=
7172fi
7173
7174
7175
7176if test x"${enable_ltdl_convenience-no}" != xno; then
7177 CONVENIENCE_LTDL_TRUE=
7178 CONVENIENCE_LTDL_FALSE='#'
7179else
7180 CONVENIENCE_LTDL_TRUE='#'
7181 CONVENIENCE_LTDL_FALSE=
7182fi
7183
7184
7185echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7186echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7187library_names_spec=
7188libname_spec='lib$name'
7189soname_spec=
7190shrext_cmds=".so"
7191postinstall_cmds=
7192postuninstall_cmds=
7193finish_cmds=
7194finish_eval=
7195shlibpath_var=
7196shlibpath_overrides_runpath=unknown
7197version_type=none
7198dynamic_linker="$host_os ld.so"
7199sys_lib_dlsearch_path_spec="/lib /usr/lib"
7200if test "$GCC" = yes; then
7201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7202 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7203 # if the path contains ";" then we assume it to be the separator
7204 # otherwise default to the standard path separator (i.e. ":") - it is
7205 # assumed that no part of a normal pathname contains ";" but that should
7206 # okay in the real world where ";" in dirpaths is itself problematic.
7207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7208 else
7209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7210 fi
7211else
7212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7213fi
7214need_lib_prefix=unknown
7215hardcode_into_libs=no
7216
7217# when you set need_version to no, make sure it does not cause -set_version
7218# flags to be left without arguments
7219need_version=unknown
7220
7221case $host_os in
7222aix3*)
7223 version_type=linux
7224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7225 shlibpath_var=LIBPATH
7226
7227 # AIX 3 has no versioning support, so we append a major version to the name.
7228 soname_spec='${libname}${release}${shared_ext}$major'
7229 ;;
7230
7231aix4* | aix5*)
7232 version_type=linux
7233 need_lib_prefix=no
7234 need_version=no
7235 hardcode_into_libs=yes
7236 if test "$host_cpu" = ia64; then
7237 # AIX 5 supports IA64
7238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7239 shlibpath_var=LD_LIBRARY_PATH
7240 else
7241 # With GCC up to 2.95.x, collect2 would create an import file
7242 # for dependence libraries. The import file would start with
7243 # the line `#! .'. This would cause the generated library to
7244 # depend on `.', always an invalid library. This was fixed in
7245 # development snapshots of GCC prior to 3.0.
7246 case $host_os in
7247 aix4 | aix4.[01] | aix4.[01].*)
7248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7249 echo ' yes '
7250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7251 :
7252 else
7253 can_build_shared=no
7254 fi
7255 ;;
7256 esac
7257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7258 # soname into executable. Probably we can add versioning support to
7259 # collect2, so additional links can be useful in future.
7260 if test "$aix_use_runtimelinking" = yes; then
7261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7262 # instead of lib<name>.a to let people know that these are not
7263 # typical AIX shared libraries.
7264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7265 else
7266 # We preserve .a as extension for shared libraries through AIX4.2
7267 # and later when we are not doing run time linking.
7268 library_names_spec='${libname}${release}.a $libname.a'
7269 soname_spec='${libname}${release}${shared_ext}$major'
7270 fi
7271 shlibpath_var=LIBPATH
7272 fi
7273 ;;
7274
7275amigaos*)
7276 library_names_spec='$libname.ixlibrary $libname.a'
7277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7278 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'
7279 ;;
7280
7281beos*)
7282 library_names_spec='${libname}${shared_ext}'
7283 dynamic_linker="$host_os ld.so"
7284 shlibpath_var=LIBRARY_PATH
7285 ;;
7286
7287bsdi[45]*)
7288 version_type=linux
7289 need_version=no
7290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7291 soname_spec='${libname}${release}${shared_ext}$major'
7292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7293 shlibpath_var=LD_LIBRARY_PATH
7294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7296 # the default ld.so.conf also contains /usr/contrib/lib and
7297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7298 # libtool to hard-code these into programs
7299 ;;
7300
7301cygwin* | mingw* | pw32*)
7302 version_type=windows
7303 shrext_cmds=".dll"
7304 need_version=no
7305 need_lib_prefix=no
7306
7307 case $GCC,$host_os in
7308 yes,cygwin* | yes,mingw* | yes,pw32*)
7309 library_names_spec='$libname.dll.a'
7310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7311 postinstall_cmds='base_file=`basename \${file}`~
7312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7313 dldir=$destdir/`dirname \$dlpath`~
7314 test -d \$dldir || mkdir -p \$dldir~
7315 $install_prog $dir/$dlname \$dldir/$dlname'
7316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7317 dlpath=$dir/\$dldll~
7318 $rm \$dlpath'
7319 shlibpath_overrides_runpath=yes
7320
7321 case $host_os in
7322 cygwin*)
7323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7326 ;;
7327 mingw*)
7328 # MinGW DLLs use traditional 'lib' prefix
7329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7332 # It is most probably a Windows format PATH printed by
7333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7334 # path with ; separators, and with drive letters. We can handle the
7335 # drive letters (cygwin fileutils understands them), so leave them,
7336 # especially as we might pass files found there to a mingw objdump,
7337 # which wouldn't understand a cygwinified path. Ahh.
7338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7339 else
7340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7341 fi
7342 ;;
7343 pw32*)
7344 # pw32 DLLs use 'pw' prefix rather than 'lib'
7345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7346 ;;
7347 esac
7348 ;;
7349
7350 *)
7351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7352 ;;
7353 esac
7354 dynamic_linker='Win32 ld.exe'
7355 # FIXME: first we should search . and the directory the executable is in
7356 shlibpath_var=PATH
7357 ;;
7358
7359darwin* | rhapsody*)
7360 dynamic_linker="$host_os dyld"
7361 version_type=darwin
7362 need_lib_prefix=no
7363 need_version=no
7364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7365 soname_spec='${libname}${release}${major}$shared_ext'
7366 shlibpath_overrides_runpath=yes
7367 shlibpath_var=DYLD_LIBRARY_PATH
7368 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7370 if test "$GCC" = yes; then
7371 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"`
7372 else
7373 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7374 fi
7375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7376 ;;
7377
7378dgux*)
7379 version_type=linux
7380 need_lib_prefix=no
7381 need_version=no
7382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7383 soname_spec='${libname}${release}${shared_ext}$major'
7384 shlibpath_var=LD_LIBRARY_PATH
7385 ;;
7386
7387freebsd1*)
7388 dynamic_linker=no
7389 ;;
7390
7391kfreebsd*-gnu)
7392 version_type=linux
7393 need_lib_prefix=no
7394 need_version=no
7395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7396 soname_spec='${libname}${release}${shared_ext}$major'
7397 shlibpath_var=LD_LIBRARY_PATH
7398 shlibpath_overrides_runpath=no
7399 hardcode_into_libs=yes
7400 dynamic_linker='GNU ld.so'
7401 ;;
7402
7403freebsd*)
7404 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7405 version_type=freebsd-$objformat
7406 case $version_type in
7407 freebsd-elf*)
7408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7409 need_version=no
7410 need_lib_prefix=no
7411 ;;
7412 freebsd-*)
7413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7414 need_version=yes
7415 ;;
7416 esac
7417 shlibpath_var=LD_LIBRARY_PATH
7418 case $host_os in
7419 freebsd2*)
7420 shlibpath_overrides_runpath=yes
7421 ;;
7422 freebsd3.01* | freebsdelf3.01*)
7423 shlibpath_overrides_runpath=yes
7424 hardcode_into_libs=yes
7425 ;;
7426 *) # from 3.2 on
7427 shlibpath_overrides_runpath=no
7428 hardcode_into_libs=yes
7429 ;;
7430 esac
7431 ;;
7432
7433gnu*)
7434 version_type=linux
7435 need_lib_prefix=no
7436 need_version=no
7437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7438 soname_spec='${libname}${release}${shared_ext}$major'
7439 shlibpath_var=LD_LIBRARY_PATH
7440 hardcode_into_libs=yes
7441 ;;
7442
7443hpux9* | hpux10* | hpux11*)
7444 # Give a soname corresponding to the major version so that dld.sl refuses to
7445 # link against other versions.
7446 version_type=sunos
7447 need_lib_prefix=no
7448 need_version=no
7449 case "$host_cpu" in
7450 ia64*)
7451 shrext_cmds='.so'
7452 hardcode_into_libs=yes
7453 dynamic_linker="$host_os dld.so"
7454 shlibpath_var=LD_LIBRARY_PATH
7455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7457 soname_spec='${libname}${release}${shared_ext}$major'
7458 if test "X$HPUX_IA64_MODE" = X32; then
7459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7460 else
7461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7462 fi
7463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7464 ;;
7465 hppa*64*)
7466 shrext_cmds='.sl'
7467 hardcode_into_libs=yes
7468 dynamic_linker="$host_os dld.sl"
7469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7472 soname_spec='${libname}${release}${shared_ext}$major'
7473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7475 ;;
7476 *)
7477 shrext_cmds='.sl'
7478 dynamic_linker="$host_os dld.sl"
7479 shlibpath_var=SHLIB_PATH
7480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482 soname_spec='${libname}${release}${shared_ext}$major'
7483 ;;
7484 esac
7485 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7486 postinstall_cmds='chmod 555 $lib'
7487 ;;
7488
7489irix5* | irix6* | nonstopux*)
7490 case $host_os in
7491 nonstopux*) version_type=nonstopux ;;
7492 *)
7493 if test "$lt_cv_prog_gnu_ld" = yes; then
7494 version_type=linux
7495 else
7496 version_type=irix
7497 fi ;;
7498 esac
7499 need_lib_prefix=no
7500 need_version=no
7501 soname_spec='${libname}${release}${shared_ext}$major'
7502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7503 case $host_os in
7504 irix5* | nonstopux*)
7505 libsuff= shlibsuff=
7506 ;;
7507 *)
7508 case $LD in # libtool.m4 will add one of these switches to LD
7509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7510 libsuff= shlibsuff= libmagic=32-bit;;
7511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7512 libsuff=32 shlibsuff=N32 libmagic=N32;;
7513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7515 *) libsuff= shlibsuff= libmagic=never-match;;
7516 esac
7517 ;;
7518 esac
7519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7520 shlibpath_overrides_runpath=no
7521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7523 hardcode_into_libs=yes
7524 ;;
7525
7526# No shared lib support for Linux oldld, aout, or coff.
7527linux*oldld* | linux*aout* | linux*coff*)
7528 dynamic_linker=no
7529 ;;
7530
7531# This must be Linux ELF.
7532linux*)
7533 version_type=linux
7534 need_lib_prefix=no
7535 need_version=no
7536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7537 soname_spec='${libname}${release}${shared_ext}$major'
7538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7539 shlibpath_var=LD_LIBRARY_PATH
7540 shlibpath_overrides_runpath=no
7541 # This implies no fast_install, which is unacceptable.
7542 # Some rework will be needed to allow for fast_install
7543 # before this can be enabled.
7544 hardcode_into_libs=yes
7545
7546 # Append ld.so.conf contents to the search path
7547 if test -f /etc/ld.so.conf; then
7548 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7550 fi
7551
7552 # We used to test for /lib/ld.so.1 and disable shared libraries on
7553 # powerpc, because MkLinux only supported shared libraries with the
7554 # GNU dynamic linker. Since this was broken with cross compilers,
7555 # most powerpc-linux boxes support dynamic linking these days and
7556 # people can always --disable-shared, the test was removed, and we
7557 # assume the GNU/Linux dynamic linker is in use.
7558 dynamic_linker='GNU/Linux ld.so'
7559 ;;
7560
7561knetbsd*-gnu)
7562 version_type=linux
7563 need_lib_prefix=no
7564 need_version=no
7565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7566 soname_spec='${libname}${release}${shared_ext}$major'
7567 shlibpath_var=LD_LIBRARY_PATH
7568 shlibpath_overrides_runpath=no
7569 hardcode_into_libs=yes
7570 dynamic_linker='GNU ld.so'
7571 ;;
7572
7573netbsd*)
7574 version_type=sunos
7575 need_lib_prefix=no
7576 need_version=no
7577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7580 dynamic_linker='NetBSD (a.out) ld.so'
7581 else
7582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7583 soname_spec='${libname}${release}${shared_ext}$major'
7584 dynamic_linker='NetBSD ld.elf_so'
7585 fi
7586 shlibpath_var=LD_LIBRARY_PATH
7587 shlibpath_overrides_runpath=yes
7588 hardcode_into_libs=yes
7589 ;;
7590
7591newsos6)
7592 version_type=linux
7593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 shlibpath_overrides_runpath=yes
7596 ;;
7597
7598nto-qnx*)
7599 version_type=linux
7600 need_lib_prefix=no
7601 need_version=no
7602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7603 soname_spec='${libname}${release}${shared_ext}$major'
7604 shlibpath_var=LD_LIBRARY_PATH
7605 shlibpath_overrides_runpath=yes
7606 ;;
7607
7608openbsd*)
7609 version_type=sunos
7610 need_lib_prefix=no
7611 need_version=no
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7614 shlibpath_var=LD_LIBRARY_PATH
7615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7616 case $host_os in
7617 openbsd2.[89] | openbsd2.[89].*)
7618 shlibpath_overrides_runpath=no
7619 ;;
7620 *)
7621 shlibpath_overrides_runpath=yes
7622 ;;
7623 esac
7624 else
7625 shlibpath_overrides_runpath=yes
7626 fi
7627 ;;
7628
7629os2*)
7630 libname_spec='$name'
7631 shrext_cmds=".dll"
7632 need_lib_prefix=no
7633 library_names_spec='$libname${shared_ext} $libname.a'
7634 dynamic_linker='OS/2 ld.exe'
7635 shlibpath_var=LIBPATH
7636 ;;
7637
7638osf3* | osf4* | osf5*)
7639 version_type=osf
7640 need_lib_prefix=no
7641 need_version=no
7642 soname_spec='${libname}${release}${shared_ext}$major'
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 shlibpath_var=LD_LIBRARY_PATH
7645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7647 ;;
7648
7649sco3.2v5*)
7650 version_type=osf
7651 soname_spec='${libname}${release}${shared_ext}$major'
7652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7653 shlibpath_var=LD_LIBRARY_PATH
7654 ;;
7655
7656solaris*)
7657 version_type=linux
7658 need_lib_prefix=no
7659 need_version=no
7660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661 soname_spec='${libname}${release}${shared_ext}$major'
7662 shlibpath_var=LD_LIBRARY_PATH
7663 shlibpath_overrides_runpath=yes
7664 hardcode_into_libs=yes
7665 # ldd complains unless libraries are executable
7666 postinstall_cmds='chmod +x $lib'
7667 ;;
7668
7669sunos4*)
7670 version_type=sunos
7671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7673 shlibpath_var=LD_LIBRARY_PATH
7674 shlibpath_overrides_runpath=yes
7675 if test "$with_gnu_ld" = yes; then
7676 need_lib_prefix=no
7677 fi
7678 need_version=yes
7679 ;;
7680
7681sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7682 version_type=linux
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7684 soname_spec='${libname}${release}${shared_ext}$major'
7685 shlibpath_var=LD_LIBRARY_PATH
7686 case $host_vendor in
7687 sni)
7688 shlibpath_overrides_runpath=no
7689 need_lib_prefix=no
7690 export_dynamic_flag_spec='${wl}-Blargedynsym'
7691 runpath_var=LD_RUN_PATH
7692 ;;
7693 siemens)
7694 need_lib_prefix=no
7695 ;;
7696 motorola)
7697 need_lib_prefix=no
7698 need_version=no
7699 shlibpath_overrides_runpath=no
7700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7701 ;;
7702 esac
7703 ;;
7704
7705sysv4*MP*)
7706 if test -d /usr/nec ;then
7707 version_type=linux
7708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7709 soname_spec='$libname${shared_ext}.$major'
7710 shlibpath_var=LD_LIBRARY_PATH
7711 fi
7712 ;;
7713
7714uts4*)
7715 version_type=linux
7716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7717 soname_spec='${libname}${release}${shared_ext}$major'
7718 shlibpath_var=LD_LIBRARY_PATH
7719 ;;
7720
7721*)
7722 dynamic_linker=no
7723 ;;
7724esac
7725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7726echo "${ECHO_T}$dynamic_linker" >&6
7727test "$dynamic_linker" = no && can_build_shared=no
7728
7729
7730echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7731echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7732if test "${libltdl_cv_shlibext+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735
7736module=yes
7737eval libltdl_cv_shlibext=$shrext_cmds
7738
7739fi
7740echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7741echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7742if test -n "$libltdl_cv_shlibext"; then
7743
7744cat >>confdefs.h <<_ACEOF
7745#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7746_ACEOF
7747
7748fi
7749
7750
7751echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7752echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7753if test "${libltdl_cv_shlibpath_var+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756 libltdl_cv_shlibpath_var="$shlibpath_var"
7757fi
7758echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7759echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7760if test -n "$libltdl_cv_shlibpath_var"; then
7761
7762cat >>confdefs.h <<_ACEOF
7763#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7764_ACEOF
7765
7766fi
7767
7768
7769echo "$as_me:$LINENO: checking for the default library search path" >&5
7770echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7771if test "${libltdl_cv_sys_search_path+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7775fi
7776echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7777echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7778if test -n "$libltdl_cv_sys_search_path"; then
7779 sys_search_path=
7780 for dir in $libltdl_cv_sys_search_path; do
7781 if test -z "$sys_search_path"; then
7782 sys_search_path="$dir"
7783 else
7784 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7785 fi
7786 done
7787
7788cat >>confdefs.h <<_ACEOF
7789#define LTDL_SYSSEARCHPATH "$sys_search_path"
7790_ACEOF
7791
7792fi
7793
7794echo "$as_me:$LINENO: checking for objdir" >&5
7795echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7796if test "${libltdl_cv_objdir+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 libltdl_cv_objdir="$objdir"
7800 if test -n "$objdir"; then
7801 :
7802 else
7803 rm -f .libs 2>/dev/null
7804 mkdir .libs 2>/dev/null
7805 if test -d .libs; then
7806 libltdl_cv_objdir=.libs
7807 else
7808 # MS-DOS does not allow filenames that begin with a dot.
7809 libltdl_cv_objdir=_libs
7810 fi
7811 rmdir .libs 2>/dev/null
7812 fi
7813
7814fi
7815echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7816echo "${ECHO_T}$libltdl_cv_objdir" >&6
7817
7818cat >>confdefs.h <<_ACEOF
7819#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7820_ACEOF
7821
7822
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007823
7824
7825
7826
7827# Check for command to grab the raw symbol name followed by C symbol from nm.
7828echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7829echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7830if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833
7834# These are sane defaults that work on at least a few old systems.
7835# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7836
7837# Character class describing NM global symbol codes.
7838symcode='[BCDEGRST]'
7839
7840# Regexp to match symbols that can be accessed directly from C.
7841sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7842
7843# Transform the above into a raw symbol and a C symbol.
7844symxfrm='\1 \2\3 \3'
7845
7846# Transform an extracted symbol line into a proper C declaration
7847lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7848
7849# Transform an extracted symbol line into symbol name and symbol address
7850lt_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'"
7851
7852# Define system-specific variables.
7853case $host_os in
7854aix*)
7855 symcode='[BCDT]'
7856 ;;
7857cygwin* | mingw* | pw32*)
7858 symcode='[ABCDGISTW]'
7859 ;;
7860hpux*) # Its linker distinguishes data from code symbols
7861 if test "$host_cpu" = ia64; then
7862 symcode='[ABCDEGRST]'
7863 fi
7864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7865 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'"
7866 ;;
7867linux*)
7868 if test "$host_cpu" = ia64; then
7869 symcode='[ABCDGIRSTW]'
7870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7871 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'"
7872 fi
7873 ;;
7874irix* | nonstopux*)
7875 symcode='[BCDEGRST]'
7876 ;;
7877osf*)
7878 symcode='[BCDEGQRST]'
7879 ;;
7880solaris* | sysv5*)
7881 symcode='[BDRT]'
7882 ;;
7883sysv4)
7884 symcode='[DFNSTU]'
7885 ;;
7886esac
7887
7888# Handle CRLF in mingw tool chain
7889opt_cr=
7890case $build_os in
7891mingw*)
7892 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7893 ;;
7894esac
7895
7896# If we're using GNU nm, then use its standard symbol codes.
7897case `$NM -V 2>&1` in
7898*GNU* | *'with BFD'*)
7899 symcode='[ABCDGIRSTW]' ;;
7900esac
7901
7902# Try without a prefix undercore, then with it.
7903for ac_symprfx in "" "_"; do
7904
7905 # Write the raw and C identifiers.
7906 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7907
7908 # Check to see that the pipe works correctly.
7909 pipe_works=no
7910
7911 rm -f conftest*
7912 cat > conftest.$ac_ext <<EOF
7913#ifdef __cplusplus
7914extern "C" {
7915#endif
7916char nm_test_var;
7917void nm_test_func(){}
7918#ifdef __cplusplus
7919}
7920#endif
7921int main(){nm_test_var='a';nm_test_func();return(0);}
7922EOF
7923
7924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925 (eval $ac_compile) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; then
7929 # Now try to grab the symbols.
7930 nlist=conftest.nm
7931 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7932 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && test -s "$nlist"; then
7936 # Try sorting and uniquifying the output.
7937 if sort "$nlist" | uniq > "$nlist"T; then
7938 mv -f "$nlist"T "$nlist"
7939 else
7940 rm -f "$nlist"T
7941 fi
7942
7943 # Make sure that we snagged all the symbols we need.
7944 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7945 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7946 cat <<EOF > conftest.$ac_ext
7947#ifdef __cplusplus
7948extern "C" {
7949#endif
7950
7951EOF
7952 # Now generate the symbol file.
7953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7954
7955 cat <<EOF >> conftest.$ac_ext
7956#if defined (__STDC__) && __STDC__
7957# define lt_ptr_t void *
7958#else
7959# define lt_ptr_t char *
7960# define const
7961#endif
7962
7963/* The mapping between symbol names and symbols. */
7964const struct {
7965 const char *name;
7966 lt_ptr_t address;
7967}
7968lt_preloaded_symbols[] =
7969{
7970EOF
7971 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7972 cat <<\EOF >> conftest.$ac_ext
7973 {0, (lt_ptr_t) 0}
7974};
7975
7976#ifdef __cplusplus
7977}
7978#endif
7979EOF
7980 # Now try linking the two files.
7981 mv conftest.$ac_objext conftstm.$ac_objext
7982 lt_save_LIBS="$LIBS"
7983 lt_save_CFLAGS="$CFLAGS"
7984 LIBS="conftstm.$ac_objext"
7985 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7991 pipe_works=yes
7992 fi
7993 LIBS="$lt_save_LIBS"
7994 CFLAGS="$lt_save_CFLAGS"
7995 else
7996 echo "cannot find nm_test_func in $nlist" >&5
7997 fi
7998 else
7999 echo "cannot find nm_test_var in $nlist" >&5
8000 fi
8001 else
8002 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8003 fi
8004 else
8005 echo "$progname: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8007 fi
8008 rm -f conftest* conftst*
8009
8010 # Do not use the global_symbol_pipe unless it works.
8011 if test "$pipe_works" = yes; then
8012 break
8013 else
8014 lt_cv_sys_global_symbol_pipe=
8015 fi
8016done
8017
8018fi
8019
8020if test -z "$lt_cv_sys_global_symbol_pipe"; then
8021 lt_cv_sys_global_symbol_to_cdecl=
8022fi
8023if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8024 echo "$as_me:$LINENO: result: failed" >&5
8025echo "${ECHO_T}failed" >&6
8026else
8027 echo "$as_me:$LINENO: result: ok" >&5
8028echo "${ECHO_T}ok" >&6
8029fi
8030
8031
8032echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
8033echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
8034if test "${libltdl_cv_preloaded_symbols+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 if test -n "$lt_cv_sys_global_symbol_pipe"; then
8038 libltdl_cv_preloaded_symbols=yes
8039 else
8040 libltdl_cv_preloaded_symbols=no
8041 fi
8042
8043fi
8044echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8045echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8046if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8047
8048cat >>confdefs.h <<\_ACEOF
8049#define HAVE_PRELOADED_SYMBOLS 1
8050_ACEOF
8051
8052fi
8053
8054LIBADD_DL=
8055
8056ac_ext=c
8057ac_cpp='$CPP $CPPFLAGS'
8058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8060ac_compiler_gnu=$ac_cv_c_compiler_gnu
8061
8062
8063echo "$as_me:$LINENO: checking for shl_load" >&5
8064echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8065if test "${ac_cv_func_shl_load+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067else
8068 cat >conftest.$ac_ext <<_ACEOF
8069/* confdefs.h. */
8070_ACEOF
8071cat confdefs.h >>conftest.$ac_ext
8072cat >>conftest.$ac_ext <<_ACEOF
8073/* end confdefs.h. */
8074/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8076#define shl_load innocuous_shl_load
8077
8078/* System header to define __stub macros and hopefully few prototypes,
8079 which can conflict with char shl_load (); below.
8080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8081 <limits.h> exists even on freestanding compilers. */
8082
8083#ifdef __STDC__
8084# include <limits.h>
8085#else
8086# include <assert.h>
8087#endif
8088
8089#undef shl_load
8090
8091/* Override any gcc2 internal prototype to avoid an error. */
8092#ifdef __cplusplus
8093extern "C"
8094{
8095#endif
8096/* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8098char shl_load ();
8099/* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
8102#if defined (__stub_shl_load) || defined (__stub___shl_load)
8103choke me
8104#else
8105char (*f) () = shl_load;
8106#endif
8107#ifdef __cplusplus
8108}
8109#endif
8110
8111int
8112main ()
8113{
8114return f != shl_load;
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext conftest$ac_exeext
8120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 ac_cv_func_shl_load=yes
8142else
8143 echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146ac_cv_func_shl_load=no
8147fi
8148rm -f conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150fi
8151echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8152echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8153if test $ac_cv_func_shl_load = yes; then
8154
8155cat >>confdefs.h <<\_ACEOF
8156#define HAVE_SHL_LOAD 1
8157_ACEOF
8158
8159else
8160 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8161echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8162if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165 ac_check_lib_save_LIBS=$LIBS
8166LIBS="-ldld $LIBS"
8167cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173
8174/* Override any gcc2 internal prototype to avoid an error. */
8175#ifdef __cplusplus
8176extern "C"
8177#endif
8178/* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180char shl_load ();
8181int
8182main ()
8183{
8184shl_load ();
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
8190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag"
8199 || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_lib_dld_shl_load=yes
8212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216ac_cv_lib_dld_shl_load=no
8217fi
8218rm -f conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
8220LIBS=$ac_check_lib_save_LIBS
8221fi
8222echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8223echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8224if test $ac_cv_lib_dld_shl_load = yes; then
8225
8226cat >>confdefs.h <<\_ACEOF
8227#define HAVE_SHL_LOAD 1
8228_ACEOF
8229
8230 LIBADD_DL="$LIBADD_DL -ldld"
8231else
8232 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8233echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8234if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237 ac_check_lib_save_LIBS=$LIBS
8238LIBS="-ldl $LIBS"
8239cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h. */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h. */
8245
8246/* Override any gcc2 internal prototype to avoid an error. */
8247#ifdef __cplusplus
8248extern "C"
8249#endif
8250/* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8252char dlopen ();
8253int
8254main ()
8255{
8256dlopen ();
8257 ;
8258 return 0;
8259}
8260_ACEOF
8261rm -f conftest.$ac_objext conftest$ac_exeext
8262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_lib_dl_dlopen=yes
8284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288ac_cv_lib_dl_dlopen=no
8289fi
8290rm -f conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292LIBS=$ac_check_lib_save_LIBS
8293fi
8294echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8295echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8296if test $ac_cv_lib_dl_dlopen = yes; then
8297
8298cat >>confdefs.h <<\_ACEOF
8299#define HAVE_LIBDL 1
8300_ACEOF
8301
8302 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8303else
8304 cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310#if HAVE_DLFCN_H
8311# include <dlfcn.h>
8312#endif
8313
8314int
8315main ()
8316{
8317dlopen(0, 0);
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344
8345cat >>confdefs.h <<\_ACEOF
8346#define HAVE_LIBDL 1
8347_ACEOF
8348 libltdl_cv_func_dlopen="yes"
8349else
8350 echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8354echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8355if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 ac_check_lib_save_LIBS=$LIBS
8359LIBS="-lsvld $LIBS"
8360cat >conftest.$ac_ext <<_ACEOF
8361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
8365/* end confdefs.h. */
8366
8367/* Override any gcc2 internal prototype to avoid an error. */
8368#ifdef __cplusplus
8369extern "C"
8370#endif
8371/* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373char dlopen ();
8374int
8375main ()
8376{
8377dlopen ();
8378 ;
8379 return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext conftest$ac_exeext
8383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_lib_svld_dlopen=yes
8405else
8406 echo "$as_me: failed program was:" >&5
8407sed 's/^/| /' conftest.$ac_ext >&5
8408
8409ac_cv_lib_svld_dlopen=no
8410fi
8411rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413LIBS=$ac_check_lib_save_LIBS
8414fi
8415echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8416echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8417if test $ac_cv_lib_svld_dlopen = yes; then
8418
8419cat >>confdefs.h <<\_ACEOF
8420#define HAVE_LIBDL 1
8421_ACEOF
8422
8423 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8424else
8425 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8426echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8427if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 ac_check_lib_save_LIBS=$LIBS
8431LIBS="-ldld $LIBS"
8432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438
8439/* Override any gcc2 internal prototype to avoid an error. */
8440#ifdef __cplusplus
8441extern "C"
8442#endif
8443/* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445char dld_link ();
8446int
8447main ()
8448{
8449dld_link ();
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext conftest$ac_exeext
8455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_dld_dld_link=yes
8477else
8478 echo "$as_me: failed program was:" >&5
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
8481ac_cv_lib_dld_dld_link=no
8482fi
8483rm -f conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485LIBS=$ac_check_lib_save_LIBS
8486fi
8487echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8488echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8489if test $ac_cv_lib_dld_dld_link = yes; then
8490
8491cat >>confdefs.h <<\_ACEOF
8492#define HAVE_DLD 1
8493_ACEOF
8494
8495 LIBADD_DL="$LIBADD_DL -ldld"
8496else
8497 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8498echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8499if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
8508/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8510#define _dyld_func_lookup innocuous__dyld_func_lookup
8511
8512/* System header to define __stub macros and hopefully few prototypes,
8513 which can conflict with char _dyld_func_lookup (); below.
8514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515 <limits.h> exists even on freestanding compilers. */
8516
8517#ifdef __STDC__
8518# include <limits.h>
8519#else
8520# include <assert.h>
8521#endif
8522
8523#undef _dyld_func_lookup
8524
8525/* Override any gcc2 internal prototype to avoid an error. */
8526#ifdef __cplusplus
8527extern "C"
8528{
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532char _dyld_func_lookup ();
8533/* The GNU C library defines this for functions which it implements
8534 to always fail with ENOSYS. Some functions are actually named
8535 something starting with __ and the normal name is an alias. */
8536#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8537choke me
8538#else
8539char (*f) () = _dyld_func_lookup;
8540#endif
8541#ifdef __cplusplus
8542}
8543#endif
8544
8545int
8546main ()
8547{
8548return f != _dyld_func_lookup;
8549 ;
8550 return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555 (eval $ac_link) 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_func__dyld_func_lookup=yes
8576else
8577 echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580ac_cv_func__dyld_func_lookup=no
8581fi
8582rm -f conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584fi
8585echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8586echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8587if test $ac_cv_func__dyld_func_lookup = yes; then
8588
8589cat >>confdefs.h <<\_ACEOF
8590#define HAVE_DYLD 1
8591_ACEOF
8592
8593fi
8594
8595
8596fi
8597
8598
8599fi
8600
8601
8602fi
8603rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605
8606fi
8607
8608
8609fi
8610
8611
8612fi
8613
8614
8615if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8616then
8617 lt_save_LIBS="$LIBS"
8618 LIBS="$LIBS $LIBADD_DL"
8619
8620for ac_func in dlerror
8621do
8622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8623echo "$as_me:$LINENO: checking for $ac_func" >&5
8624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8625if eval "test \"\${$as_ac_var+set}\" = set"; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627else
8628 cat >conftest.$ac_ext <<_ACEOF
8629/* confdefs.h. */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h. */
8634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8636#define $ac_func innocuous_$ac_func
8637
8638/* System header to define __stub macros and hopefully few prototypes,
8639 which can conflict with char $ac_func (); below.
8640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8641 <limits.h> exists even on freestanding compilers. */
8642
8643#ifdef __STDC__
8644# include <limits.h>
8645#else
8646# include <assert.h>
8647#endif
8648
8649#undef $ac_func
8650
8651/* Override any gcc2 internal prototype to avoid an error. */
8652#ifdef __cplusplus
8653extern "C"
8654{
8655#endif
8656/* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658char $ac_func ();
8659/* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8663choke me
8664#else
8665char (*f) () = $ac_func;
8666#endif
8667#ifdef __cplusplus
8668}
8669#endif
8670
8671int
8672main ()
8673{
8674return f != $ac_func;
8675 ;
8676 return 0;
8677}
8678_ACEOF
8679rm -f conftest.$ac_objext conftest$ac_exeext
8680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 eval "$as_ac_var=yes"
8702else
8703 echo "$as_me: failed program was:" >&5
8704sed 's/^/| /' conftest.$ac_ext >&5
8705
8706eval "$as_ac_var=no"
8707fi
8708rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710fi
8711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713if test `eval echo '${'$as_ac_var'}'` = yes; then
8714 cat >>confdefs.h <<_ACEOF
8715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8716_ACEOF
8717
8718fi
8719done
8720
8721 LIBS="$lt_save_LIBS"
8722fi
8723ac_ext=c
8724ac_cpp='$CPP $CPPFLAGS'
8725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727ac_compiler_gnu=$ac_cv_c_compiler_gnu
8728
8729
8730
8731echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8732echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8733if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736 ac_cv_sys_symbol_underscore=no
8737 cat > conftest.$ac_ext <<EOF
8738void nm_test_func(){}
8739int main(){nm_test_func;return 0;}
8740EOF
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>&5
8743 ac_status=$?
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; then
8746 # Now try to grab the symbols.
8747 ac_nlist=conftest.nm
8748 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8749 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && test -s "$ac_nlist"; then
8753 # See whether the symbols have a leading underscore.
8754 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8755 ac_cv_sys_symbol_underscore=yes
8756 else
8757 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8758 :
8759 else
8760 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8761 fi
8762 fi
8763 else
8764 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8765 fi
8766 else
8767 echo "configure: failed program was:" >&5
8768 cat conftest.c >&5
8769 fi
8770 rm -rf conftest*
8771
8772fi
8773echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8774echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8775
8776
8777if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8778 if test x"$libltdl_cv_func_dlopen" = xyes ||
8779 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8780 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8781echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8782if test "${libltdl_cv_need_uscore+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 libltdl_cv_need_uscore=unknown
8786 save_LIBS="$LIBS"
8787 LIBS="$LIBS $LIBADD_DL"
8788 if test "$cross_compiling" = yes; then :
8789 libltdl_cv_need_uscore=cross
8790else
8791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8792 lt_status=$lt_dlunknown
8793 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +00008794#line 8794 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008795#include "confdefs.h"
8796
8797#if HAVE_DLFCN_H
8798#include <dlfcn.h>
8799#endif
8800
8801#include <stdio.h>
8802
8803#ifdef RTLD_GLOBAL
8804# define LT_DLGLOBAL RTLD_GLOBAL
8805#else
8806# ifdef DL_GLOBAL
8807# define LT_DLGLOBAL DL_GLOBAL
8808# else
8809# define LT_DLGLOBAL 0
8810# endif
8811#endif
8812
8813/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8814 find out it does not work in some platform. */
8815#ifndef LT_DLLAZY_OR_NOW
8816# ifdef RTLD_LAZY
8817# define LT_DLLAZY_OR_NOW RTLD_LAZY
8818# else
8819# ifdef DL_LAZY
8820# define LT_DLLAZY_OR_NOW DL_LAZY
8821# else
8822# ifdef RTLD_NOW
8823# define LT_DLLAZY_OR_NOW RTLD_NOW
8824# else
8825# ifdef DL_NOW
8826# define LT_DLLAZY_OR_NOW DL_NOW
8827# else
8828# define LT_DLLAZY_OR_NOW 0
8829# endif
8830# endif
8831# endif
8832# endif
8833#endif
8834
8835#ifdef __cplusplus
8836extern "C" void exit (int);
8837#endif
8838
8839void fnord() { int i=42;}
8840int main ()
8841{
8842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8843 int status = $lt_dlunknown;
8844
8845 if (self)
8846 {
8847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8849 /* dlclose (self); */
8850 }
8851
8852 exit (status);
8853}
8854EOF
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8860 (./conftest; exit; ) 2>/dev/null
8861 lt_status=$?
8862 case x$lt_status in
8863 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8864 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8865 x$lt_unknown|x*) ;;
8866 esac
8867 else :
8868 # compilation failed
8869
8870 fi
8871fi
8872rm -fr conftest*
8873
8874 LIBS="$save_LIBS"
8875
8876fi
8877echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8878echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8879 fi
8880fi
8881
8882if test x"$libltdl_cv_need_uscore" = xyes; then
8883
8884cat >>confdefs.h <<\_ACEOF
8885#define NEED_USCORE 1
8886_ACEOF
8887
8888fi
8889
8890
8891echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8892echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8893if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896 # PORTME does your system automatically load deplibs for dlopen?
8897 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8898 # For now, we just catch OSes we know something about -- in the
8899 # future, we'll try test this programmatically.
8900 libltdl_cv_sys_dlopen_deplibs=unknown
8901 case "$host_os" in
8902 aix3*|aix4.1.*|aix4.2.*)
8903 # Unknown whether this is true for these versions of AIX, but
8904 # we want this `case' here to explicitly catch those versions.
8905 libltdl_cv_sys_dlopen_deplibs=unknown
8906 ;;
8907 aix[45]*)
8908 libltdl_cv_sys_dlopen_deplibs=yes
8909 ;;
8910 darwin*)
8911 # Assuming the user has installed a libdl from somewhere, this is true
8912 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8913 libltdl_cv_sys_dlopen_deplibs=yes
8914 ;;
8915 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8916 # GNU and its variants, using gnu ld.so (Glibc)
8917 libltdl_cv_sys_dlopen_deplibs=yes
8918 ;;
8919 hpux10*|hpux11*)
8920 libltdl_cv_sys_dlopen_deplibs=yes
8921 ;;
8922 irix[12345]*|irix6.[01]*)
8923 # Catch all versions of IRIX before 6.2, and indicate that we don't
8924 # know how it worked for any of those versions.
8925 libltdl_cv_sys_dlopen_deplibs=unknown
8926 ;;
8927 irix*)
8928 # The case above catches anything before 6.2, and it's known that
8929 # at 6.2 and later dlopen does load deplibs.
8930 libltdl_cv_sys_dlopen_deplibs=yes
8931 ;;
8932 netbsd*)
8933 libltdl_cv_sys_dlopen_deplibs=yes
8934 ;;
8935 openbsd*)
8936 libltdl_cv_sys_dlopen_deplibs=yes
8937 ;;
8938 osf[1234]*)
8939 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8940 # it did *not* use an RPATH in a shared library to find objects the
8941 # library depends on, so we explictly say `no'.
8942 libltdl_cv_sys_dlopen_deplibs=no
8943 ;;
8944 osf5.0|osf5.0a|osf5.1)
8945 # dlopen *does* load deplibs and with the right loader patch applied
8946 # it even uses RPATH in a shared library to search for shared objects
8947 # that the library depends on, but there's no easy way to know if that
8948 # patch is installed. Since this is the case, all we can really
8949 # say is unknown -- it depends on the patch being installed. If
8950 # it is, this changes to `yes'. Without it, it would be `no'.
8951 libltdl_cv_sys_dlopen_deplibs=unknown
8952 ;;
8953 osf*)
8954 # the two cases above should catch all versions of osf <= 5.1. Read
8955 # the comments above for what we know about them.
8956 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8957 # is used to find them so we can finally say `yes'.
8958 libltdl_cv_sys_dlopen_deplibs=yes
8959 ;;
8960 solaris*)
8961 libltdl_cv_sys_dlopen_deplibs=yes
8962 ;;
8963 esac
8964
8965fi
8966echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8967echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8968if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8969
8970cat >>confdefs.h <<\_ACEOF
8971#define LTDL_DLOPEN_DEPLIBS 1
8972_ACEOF
8973
8974fi
8975
8976
8977for ac_header in argz.h
8978do
8979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8980if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo "$as_me:$LINENO: checking for $ac_header" >&5
8982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985fi
8986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8988else
8989 # Is the header compilable?
8990echo "$as_me:$LINENO: checking $ac_header usability" >&5
8991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8992cat >conftest.$ac_ext <<_ACEOF
8993/* confdefs.h. */
8994_ACEOF
8995cat confdefs.h >>conftest.$ac_ext
8996cat >>conftest.$ac_ext <<_ACEOF
8997/* end confdefs.h. */
8998$ac_includes_default
8999#include <$ac_header>
9000_ACEOF
9001rm -f conftest.$ac_objext
9002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag"
9011 || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest.$ac_objext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_header_compiler=yes
9024else
9025 echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028ac_header_compiler=no
9029fi
9030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9032echo "${ECHO_T}$ac_header_compiler" >&6
9033
9034# Is the header present?
9035echo "$as_me:$LINENO: checking $ac_header presence" >&5
9036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9037cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043#include <$ac_header>
9044_ACEOF
9045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } >/dev/null; then
9053 if test -s conftest.err; then
9054 ac_cpp_err=$ac_c_preproc_warn_flag
9055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9056 else
9057 ac_cpp_err=
9058 fi
9059else
9060 ac_cpp_err=yes
9061fi
9062if test -z "$ac_cpp_err"; then
9063 ac_header_preproc=yes
9064else
9065 echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 ac_header_preproc=no
9069fi
9070rm -f conftest.err conftest.$ac_ext
9071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9072echo "${ECHO_T}$ac_header_preproc" >&6
9073
9074# So? What about this header?
9075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9076 yes:no: )
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9081 ac_header_preproc=yes
9082 ;;
9083 no:yes:* )
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9096 (
9097 cat <<\_ASBOX
9098## ----------------------------------- ##
9099## Report this to llvmbugs@cs.uiuc.edu ##
9100## ----------------------------------- ##
9101_ASBOX
9102 ) |
9103 sed "s/^/$as_me: WARNING: /" >&2
9104 ;;
9105esac
9106echo "$as_me:$LINENO: checking for $ac_header" >&5
9107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9108if eval "test \"\${$as_ac_Header+set}\" = set"; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110else
9111 eval "$as_ac_Header=\$ac_header_preproc"
9112fi
9113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9115
9116fi
9117if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120_ACEOF
9121
9122fi
9123
9124done
9125
9126
9127echo "$as_me:$LINENO: checking for error_t" >&5
9128echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9129if test "${ac_cv_type_error_t+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132 cat >conftest.$ac_ext <<_ACEOF
9133/* confdefs.h. */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h. */
9138#if HAVE_ARGZ_H
9139# include <argz.h>
9140#endif
9141
9142int
9143main ()
9144{
9145if ((error_t *) 0)
9146 return 0;
9147if (sizeof (error_t))
9148 return 0;
9149 ;
9150 return 0;
9151}
9152_ACEOF
9153rm -f conftest.$ac_objext
9154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -z "$ac_c_werror_flag"
9163 || test ! -s conftest.err'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest.$ac_objext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_type_error_t=yes
9176else
9177 echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180ac_cv_type_error_t=no
9181fi
9182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9183fi
9184echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9185echo "${ECHO_T}$ac_cv_type_error_t" >&6
9186if test $ac_cv_type_error_t = yes; then
9187
9188cat >>confdefs.h <<_ACEOF
9189#define HAVE_ERROR_T 1
9190_ACEOF
9191
9192
9193else
9194
9195cat >>confdefs.h <<\_ACEOF
9196#define error_t int
9197_ACEOF
9198
9199fi
9200
9201
9202
9203
9204
9205
9206
9207for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9208do
9209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9210echo "$as_me:$LINENO: checking for $ac_func" >&5
9211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9212if eval "test \"\${$as_ac_var+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223#define $ac_func innocuous_$ac_func
9224
9225/* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char $ac_func (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9229
9230#ifdef __STDC__
9231# include <limits.h>
9232#else
9233# include <assert.h>
9234#endif
9235
9236#undef $ac_func
9237
9238/* Override any gcc2 internal prototype to avoid an error. */
9239#ifdef __cplusplus
9240extern "C"
9241{
9242#endif
9243/* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245char $ac_func ();
9246/* The GNU C library defines this for functions which it implements
9247 to always fail with ENOSYS. Some functions are actually named
9248 something starting with __ and the normal name is an alias. */
9249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9250choke me
9251#else
9252char (*f) () = $ac_func;
9253#endif
9254#ifdef __cplusplus
9255}
9256#endif
9257
9258int
9259main ()
9260{
9261return f != $ac_func;
9262 ;
9263 return 0;
9264}
9265_ACEOF
9266rm -f conftest.$ac_objext conftest$ac_exeext
9267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 eval "$as_ac_var=yes"
9289else
9290 echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293eval "$as_ac_var=no"
9294fi
9295rm -f conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297fi
9298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9299echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9300if test `eval echo '${'$as_ac_var'}'` = yes; then
9301 cat >>confdefs.h <<_ACEOF
9302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9303_ACEOF
9304
9305fi
9306done
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9336 stdio.h unistd.h
9337do
9338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9339if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo "$as_me:$LINENO: checking for $ac_header" >&5
9341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9342if eval "test \"\${$as_ac_Header+set}\" = set"; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344fi
9345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9347else
9348 # Is the header compilable?
9349echo "$as_me:$LINENO: checking $ac_header usability" >&5
9350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9351cat >conftest.$ac_ext <<_ACEOF
9352/* confdefs.h. */
9353_ACEOF
9354cat confdefs.h >>conftest.$ac_ext
9355cat >>conftest.$ac_ext <<_ACEOF
9356/* end confdefs.h. */
9357$ac_includes_default
9358#include <$ac_header>
9359_ACEOF
9360rm -f conftest.$ac_objext
9361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362 (eval $ac_compile) 2>conftest.er1
9363 ac_status=$?
9364 grep -v '^ *+' conftest.er1 >conftest.err
9365 rm -f conftest.er1
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } &&
9369 { ac_try='test -z "$ac_c_werror_flag"
9370 || test ! -s conftest.err'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; } &&
9376 { ac_try='test -s conftest.$ac_objext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_header_compiler=yes
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387ac_header_compiler=no
9388fi
9389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391echo "${ECHO_T}$ac_header_compiler" >&6
9392
9393# Is the header present?
9394echo "$as_me:$LINENO: checking $ac_header presence" >&5
9395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9396cat >conftest.$ac_ext <<_ACEOF
9397/* confdefs.h. */
9398_ACEOF
9399cat confdefs.h >>conftest.$ac_ext
9400cat >>conftest.$ac_ext <<_ACEOF
9401/* end confdefs.h. */
9402#include <$ac_header>
9403_ACEOF
9404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } >/dev/null; then
9412 if test -s conftest.err; then
9413 ac_cpp_err=$ac_c_preproc_warn_flag
9414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9415 else
9416 ac_cpp_err=
9417 fi
9418else
9419 ac_cpp_err=yes
9420fi
9421if test -z "$ac_cpp_err"; then
9422 ac_header_preproc=yes
9423else
9424 echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 ac_header_preproc=no
9428fi
9429rm -f conftest.err conftest.$ac_ext
9430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431echo "${ECHO_T}$ac_header_preproc" >&6
9432
9433# So? What about this header?
9434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9435 yes:no: )
9436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9440 ac_header_preproc=yes
9441 ;;
9442 no:yes:* )
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9455 (
9456 cat <<\_ASBOX
9457## ----------------------------------- ##
9458## Report this to llvmbugs@cs.uiuc.edu ##
9459## ----------------------------------- ##
9460_ASBOX
9461 ) |
9462 sed "s/^/$as_me: WARNING: /" >&2
9463 ;;
9464esac
9465echo "$as_me:$LINENO: checking for $ac_header" >&5
9466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9467if eval "test \"\${$as_ac_Header+set}\" = set"; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470 eval "$as_ac_Header=\$ac_header_preproc"
9471fi
9472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9474
9475fi
9476if test `eval echo '${'$as_ac_Header'}'` = yes; then
9477 cat >>confdefs.h <<_ACEOF
9478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9479_ACEOF
9480
9481fi
9482
9483done
9484
9485
9486
9487
9488
9489for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9490do
9491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9492if eval "test \"\${$as_ac_Header+set}\" = set"; then
9493 echo "$as_me:$LINENO: checking for $ac_header" >&5
9494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9495if eval "test \"\${$as_ac_Header+set}\" = set"; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497fi
9498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9500else
9501 # Is the header compilable?
9502echo "$as_me:$LINENO: checking $ac_header usability" >&5
9503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9504cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510$ac_includes_default
9511#include <$ac_header>
9512_ACEOF
9513rm -f conftest.$ac_objext
9514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag"
9523 || test ! -s conftest.err'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 (eval $ac_try) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_header_compiler=yes
9536else
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540ac_header_compiler=no
9541fi
9542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544echo "${ECHO_T}$ac_header_compiler" >&6
9545
9546# Is the header present?
9547echo "$as_me:$LINENO: checking $ac_header presence" >&5
9548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9549cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555#include <$ac_header>
9556_ACEOF
9557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev/null; then
9565 if test -s conftest.err; then
9566 ac_cpp_err=$ac_c_preproc_warn_flag
9567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9568 else
9569 ac_cpp_err=
9570 fi
9571else
9572 ac_cpp_err=yes
9573fi
9574if test -z "$ac_cpp_err"; then
9575 ac_header_preproc=yes
9576else
9577 echo "$as_me: failed program was:" >&5
9578sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_header_preproc=no
9581fi
9582rm -f conftest.err conftest.$ac_ext
9583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9584echo "${ECHO_T}$ac_header_preproc" >&6
9585
9586# So? What about this header?
9587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9588 yes:no: )
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9593 ac_header_preproc=yes
9594 ;;
9595 no:yes:* )
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9608 (
9609 cat <<\_ASBOX
9610## ----------------------------------- ##
9611## Report this to llvmbugs@cs.uiuc.edu ##
9612## ----------------------------------- ##
9613_ASBOX
9614 ) |
9615 sed "s/^/$as_me: WARNING: /" >&2
9616 ;;
9617esac
9618echo "$as_me:$LINENO: checking for $ac_header" >&5
9619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9620if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622else
9623 eval "$as_ac_Header=\$ac_header_preproc"
9624fi
9625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9627
9628fi
9629if test `eval echo '${'$as_ac_Header'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9632_ACEOF
9633
9634fi
9635
9636done
9637
9638
9639
9640for ac_header in string.h strings.h
9641do
9642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643if eval "test \"\${$as_ac_Header+set}\" = set"; then
9644 echo "$as_me:$LINENO: checking for $ac_header" >&5
9645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9646if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648fi
9649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9651else
9652 # Is the header compilable?
9653echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9655cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
9661$ac_includes_default
9662#include <$ac_header>
9663_ACEOF
9664rm -f conftest.$ac_objext
9665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_header_compiler=yes
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691ac_header_compiler=no
9692fi
9693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695echo "${ECHO_T}$ac_header_compiler" >&6
9696
9697# Is the header present?
9698echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9700cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h. */
9706#include <$ac_header>
9707_ACEOF
9708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9719 else
9720 ac_cpp_err=
9721 fi
9722else
9723 ac_cpp_err=yes
9724fi
9725if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
9727else
9728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_header_preproc=no
9732fi
9733rm -f conftest.err conftest.$ac_ext
9734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735echo "${ECHO_T}$ac_header_preproc" >&6
9736
9737# So? What about this header?
9738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9739 yes:no: )
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9745 ;;
9746 no:yes:* )
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9759 (
9760 cat <<\_ASBOX
9761## ----------------------------------- ##
9762## Report this to llvmbugs@cs.uiuc.edu ##
9763## ----------------------------------- ##
9764_ASBOX
9765 ) |
9766 sed "s/^/$as_me: WARNING: /" >&2
9767 ;;
9768esac
9769echo "$as_me:$LINENO: checking for $ac_header" >&5
9770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774 eval "$as_ac_Header=\$ac_header_preproc"
9775fi
9776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9778
9779fi
9780if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783_ACEOF
9784 break
9785fi
9786
9787done
9788
9789
9790
9791
9792for ac_func in strchr index
9793do
9794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9795echo "$as_me:$LINENO: checking for $ac_func" >&5
9796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9797if eval "test \"\${$as_ac_var+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 cat >conftest.$ac_ext <<_ACEOF
9801/* confdefs.h. */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h. */
9806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9808#define $ac_func innocuous_$ac_func
9809
9810/* System header to define __stub macros and hopefully few prototypes,
9811 which can conflict with char $ac_func (); below.
9812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9813 <limits.h> exists even on freestanding compilers. */
9814
9815#ifdef __STDC__
9816# include <limits.h>
9817#else
9818# include <assert.h>
9819#endif
9820
9821#undef $ac_func
9822
9823/* Override any gcc2 internal prototype to avoid an error. */
9824#ifdef __cplusplus
9825extern "C"
9826{
9827#endif
9828/* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9830char $ac_func ();
9831/* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835choke me
9836#else
9837char (*f) () = $ac_func;
9838#endif
9839#ifdef __cplusplus
9840}
9841#endif
9842
9843int
9844main ()
9845{
9846return f != $ac_func;
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851rm -f conftest.$ac_objext conftest$ac_exeext
9852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 eval "$as_ac_var=yes"
9874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878eval "$as_ac_var=no"
9879fi
9880rm -f conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882fi
9883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9885if test `eval echo '${'$as_ac_var'}'` = yes; then
9886 cat >>confdefs.h <<_ACEOF
9887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9888_ACEOF
9889 break
9890fi
9891done
9892
9893
9894
9895for ac_func in strrchr rindex
9896do
9897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898echo "$as_me:$LINENO: checking for $ac_func" >&5
9899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9900if eval "test \"\${$as_ac_var+set}\" = set"; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903 cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h. */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h. */
9909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9911#define $ac_func innocuous_$ac_func
9912
9913/* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char $ac_func (); below.
9915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 <limits.h> exists even on freestanding compilers. */
9917
9918#ifdef __STDC__
9919# include <limits.h>
9920#else
9921# include <assert.h>
9922#endif
9923
9924#undef $ac_func
9925
9926/* Override any gcc2 internal prototype to avoid an error. */
9927#ifdef __cplusplus
9928extern "C"
9929{
9930#endif
9931/* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9933char $ac_func ();
9934/* The GNU C library defines this for functions which it implements
9935 to always fail with ENOSYS. Some functions are actually named
9936 something starting with __ and the normal name is an alias. */
9937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9938choke me
9939#else
9940char (*f) () = $ac_func;
9941#endif
9942#ifdef __cplusplus
9943}
9944#endif
9945
9946int
9947main ()
9948{
9949return f != $ac_func;
9950 ;
9951 return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
9955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 eval "$as_ac_var=yes"
9977else
9978 echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981eval "$as_ac_var=no"
9982fi
9983rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985fi
9986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9988if test `eval echo '${'$as_ac_var'}'` = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9991_ACEOF
9992 break
9993fi
9994done
9995
9996
9997
9998for ac_func in memcpy bcopy
9999do
10000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10001echo "$as_me:$LINENO: checking for $ac_func" >&5
10002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10003if eval "test \"\${$as_ac_var+set}\" = set"; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005else
10006 cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h. */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h. */
10012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10014#define $ac_func innocuous_$ac_func
10015
10016/* System header to define __stub macros and hopefully few prototypes,
10017 which can conflict with char $ac_func (); below.
10018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019 <limits.h> exists even on freestanding compilers. */
10020
10021#ifdef __STDC__
10022# include <limits.h>
10023#else
10024# include <assert.h>
10025#endif
10026
10027#undef $ac_func
10028
10029/* Override any gcc2 internal prototype to avoid an error. */
10030#ifdef __cplusplus
10031extern "C"
10032{
10033#endif
10034/* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10036char $ac_func ();
10037/* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10041choke me
10042#else
10043char (*f) () = $ac_func;
10044#endif
10045#ifdef __cplusplus
10046}
10047#endif
10048
10049int
10050main ()
10051{
10052return f != $ac_func;
10053 ;
10054 return 0;
10055}
10056_ACEOF
10057rm -f conftest.$ac_objext conftest$ac_exeext
10058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059 (eval $ac_link) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag"
10067 || test ! -s conftest.err'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 eval "$as_ac_var=yes"
10080else
10081 echo "$as_me: failed program was:" >&5
10082sed 's/^/| /' conftest.$ac_ext >&5
10083
10084eval "$as_ac_var=no"
10085fi
10086rm -f conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088fi
10089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10091if test `eval echo '${'$as_ac_var'}'` = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10094_ACEOF
10095 break
10096fi
10097done
10098
10099
10100
10101for ac_func in memmove strcmp
10102do
10103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10104echo "$as_me:$LINENO: checking for $ac_func" >&5
10105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10106if eval "test \"\${$as_ac_var+set}\" = set"; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109 cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h. */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h. */
10115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117#define $ac_func innocuous_$ac_func
10118
10119/* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char $ac_func (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10123
10124#ifdef __STDC__
10125# include <limits.h>
10126#else
10127# include <assert.h>
10128#endif
10129
10130#undef $ac_func
10131
10132/* Override any gcc2 internal prototype to avoid an error. */
10133#ifdef __cplusplus
10134extern "C"
10135{
10136#endif
10137/* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10139char $ac_func ();
10140/* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10144choke me
10145#else
10146char (*f) () = $ac_func;
10147#endif
10148#ifdef __cplusplus
10149}
10150#endif
10151
10152int
10153main ()
10154{
10155return f != $ac_func;
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 eval "$as_ac_var=yes"
10183else
10184 echo "$as_me: failed program was:" >&5
10185sed 's/^/| /' conftest.$ac_ext >&5
10186
10187eval "$as_ac_var=no"
10188fi
10189rm -f conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191fi
10192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10194if test `eval echo '${'$as_ac_var'}'` = yes; then
10195 cat >>confdefs.h <<_ACEOF
10196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10197_ACEOF
10198
10199fi
10200done
10201
10202
10203
10204
10205for ac_func in closedir opendir readdir
10206do
10207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10208echo "$as_me:$LINENO: checking for $ac_func" >&5
10209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10210if eval "test \"\${$as_ac_var+set}\" = set"; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212else
10213 cat >conftest.$ac_ext <<_ACEOF
10214/* confdefs.h. */
10215_ACEOF
10216cat confdefs.h >>conftest.$ac_ext
10217cat >>conftest.$ac_ext <<_ACEOF
10218/* end confdefs.h. */
10219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10221#define $ac_func innocuous_$ac_func
10222
10223/* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char $ac_func (); below.
10225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226 <limits.h> exists even on freestanding compilers. */
10227
10228#ifdef __STDC__
10229# include <limits.h>
10230#else
10231# include <assert.h>
10232#endif
10233
10234#undef $ac_func
10235
10236/* Override any gcc2 internal prototype to avoid an error. */
10237#ifdef __cplusplus
10238extern "C"
10239{
10240#endif
10241/* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10243char $ac_func ();
10244/* The GNU C library defines this for functions which it implements
10245 to always fail with ENOSYS. Some functions are actually named
10246 something starting with __ and the normal name is an alias. */
10247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10248choke me
10249#else
10250char (*f) () = $ac_func;
10251#endif
10252#ifdef __cplusplus
10253}
10254#endif
10255
10256int
10257main ()
10258{
10259return f != $ac_func;
10260 ;
10261 return 0;
10262}
10263_ACEOF
10264rm -f conftest.$ac_objext conftest$ac_exeext
10265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag"
10274 || test ! -s conftest.err'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; } &&
10280 { ac_try='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 eval "$as_ac_var=yes"
10287else
10288 echo "$as_me: failed program was:" >&5
10289sed 's/^/| /' conftest.$ac_ext >&5
10290
10291eval "$as_ac_var=no"
10292fi
10293rm -f conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295fi
10296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10298if test `eval echo '${'$as_ac_var'}'` = yes; then
10299 cat >>confdefs.h <<_ACEOF
10300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10301_ACEOF
10302
10303fi
10304done
10305
10306
10307# Check whether --enable-shared or --disable-shared was given.
10308if test "${enable_shared+set}" = set; then
10309 enableval="$enable_shared"
10310 p=${PACKAGE-default}
10311 case $enableval in
10312 yes) enable_shared=yes ;;
10313 no) enable_shared=no ;;
10314 *)
10315 enable_shared=no
10316 # Look at the argument we got. We use all the common list separators.
10317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10318 for pkg in $enableval; do
10319 IFS="$lt_save_ifs"
10320 if test "X$pkg" = "X$p"; then
10321 enable_shared=yes
10322 fi
10323 done
10324 IFS="$lt_save_ifs"
10325 ;;
10326 esac
10327else
10328 enable_shared=yes
10329fi;
10330
10331# Check whether --enable-static or --disable-static was given.
10332if test "${enable_static+set}" = set; then
10333 enableval="$enable_static"
10334 p=${PACKAGE-default}
10335 case $enableval in
10336 yes) enable_static=yes ;;
10337 no) enable_static=no ;;
10338 *)
10339 enable_static=no
10340 # Look at the argument we got. We use all the common list separators.
10341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10342 for pkg in $enableval; do
10343 IFS="$lt_save_ifs"
10344 if test "X$pkg" = "X$p"; then
10345 enable_static=yes
10346 fi
10347 done
10348 IFS="$lt_save_ifs"
10349 ;;
10350 esac
10351else
10352 enable_static=yes
10353fi;
10354
10355# Check whether --enable-fast-install or --disable-fast-install was given.
10356if test "${enable_fast_install+set}" = set; then
10357 enableval="$enable_fast_install"
10358 p=${PACKAGE-default}
10359 case $enableval in
10360 yes) enable_fast_install=yes ;;
10361 no) enable_fast_install=no ;;
10362 *)
10363 enable_fast_install=no
10364 # Look at the argument we got. We use all the common list separators.
10365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10366 for pkg in $enableval; do
10367 IFS="$lt_save_ifs"
10368 if test "X$pkg" = "X$p"; then
10369 enable_fast_install=yes
10370 fi
10371 done
10372 IFS="$lt_save_ifs"
10373 ;;
10374 esac
10375else
10376 enable_fast_install=yes
10377fi;
10378
10379echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10380echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10381if test "${lt_cv_path_SED+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383else
10384 # Loop through the user's path and test for sed and gsed.
10385# Then use that list of sed's as ones to test for truncation.
10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
10391 for lt_ac_prog in sed gsed; do
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10394 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10395 fi
10396 done
10397 done
10398done
10399lt_ac_max=0
10400lt_ac_count=0
10401# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10402# along with /bin/sed that truncates output.
10403for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10404 test ! -f $lt_ac_sed && break
10405 cat /dev/null > conftest.in
10406 lt_ac_count=0
10407 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10408 # Check for GNU sed and select it if it is found.
10409 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10410 lt_cv_path_SED=$lt_ac_sed
10411 break
10412 fi
10413 while true; do
10414 cat conftest.in conftest.in >conftest.tmp
10415 mv conftest.tmp conftest.in
10416 cp conftest.in conftest.nl
10417 echo >>conftest.nl
10418 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10419 cmp -s conftest.out conftest.nl || break
10420 # 10000 chars as input seems more than enough
10421 test $lt_ac_count -gt 10 && break
10422 lt_ac_count=`expr $lt_ac_count + 1`
10423 if test $lt_ac_count -gt $lt_ac_max; then
10424 lt_ac_max=$lt_ac_count
10425 lt_cv_path_SED=$lt_ac_sed
10426 fi
10427 done
10428done
10429
10430fi
10431
10432SED=$lt_cv_path_SED
10433echo "$as_me:$LINENO: result: $SED" >&5
10434echo "${ECHO_T}$SED" >&6
10435
10436
10437# Check whether --with-gnu-ld or --without-gnu-ld was given.
10438if test "${with_gnu_ld+set}" = set; then
10439 withval="$with_gnu_ld"
10440 test "$withval" = no || with_gnu_ld=yes
10441else
10442 with_gnu_ld=no
10443fi;
10444ac_prog=ld
10445if test "$GCC" = yes; then
10446 # Check if gcc -print-prog-name=ld gives a path.
10447 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10448echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10449 case $host in
10450 *-*-mingw*)
10451 # gcc leaves a trailing carriage return which upsets mingw
10452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10453 *)
10454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10455 esac
10456 case $ac_prog in
10457 # Accept absolute paths.
10458 [\\/]* | ?:[\\/]*)
10459 re_direlt='/[^/][^/]*/\.\./'
10460 # Canonicalize the pathname of ld
10461 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10462 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10463 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10464 done
10465 test -z "$LD" && LD="$ac_prog"
10466 ;;
10467 "")
10468 # If it fails, then pretend we aren't using GCC.
10469 ac_prog=ld
10470 ;;
10471 *)
10472 # If it is relative, then search for the first ld in PATH.
10473 with_gnu_ld=unknown
10474 ;;
10475 esac
10476elif test "$with_gnu_ld" = yes; then
10477 echo "$as_me:$LINENO: checking for GNU ld" >&5
10478echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10479else
10480 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10481echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10482fi
10483if test "${lt_cv_path_LD+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 if test -z "$LD"; then
10487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10488 for ac_dir in $PATH; do
10489 IFS="$lt_save_ifs"
10490 test -z "$ac_dir" && ac_dir=.
10491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10492 lt_cv_path_LD="$ac_dir/$ac_prog"
10493 # Check to see if the program is GNU ld. I'd rather use --version,
10494 # but apparently some GNU ld's only accept -v.
10495 # Break only if it was the GNU/non-GNU ld that we prefer.
10496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10497 *GNU* | *'with BFD'*)
10498 test "$with_gnu_ld" != no && break
10499 ;;
10500 *)
10501 test "$with_gnu_ld" != yes && break
10502 ;;
10503 esac
10504 fi
10505 done
10506 IFS="$lt_save_ifs"
10507else
10508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10509fi
10510fi
10511
10512LD="$lt_cv_path_LD"
10513if test -n "$LD"; then
10514 echo "$as_me:$LINENO: result: $LD" >&5
10515echo "${ECHO_T}$LD" >&6
10516else
10517 echo "$as_me:$LINENO: result: no" >&5
10518echo "${ECHO_T}no" >&6
10519fi
10520test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10521echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10522 { (exit 1); exit 1; }; }
10523echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10524echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10525if test "${lt_cv_prog_gnu_ld+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527else
10528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10529case `$LD -v 2>&1 </dev/null` in
10530*GNU* | *'with BFD'*)
10531 lt_cv_prog_gnu_ld=yes
10532 ;;
10533*)
10534 lt_cv_prog_gnu_ld=no
10535 ;;
10536esac
10537fi
10538echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10539echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10540with_gnu_ld=$lt_cv_prog_gnu_ld
10541
10542
10543echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10544echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10545if test "${lt_cv_ld_reload_flag+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 lt_cv_ld_reload_flag='-r'
10549fi
10550echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10551echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10552reload_flag=$lt_cv_ld_reload_flag
10553case $reload_flag in
10554"" | " "*) ;;
10555*) reload_flag=" $reload_flag" ;;
10556esac
10557reload_cmds='$LD$reload_flag -o $output$reload_objs'
10558case $host_os in
10559 darwin*)
10560 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010561 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 else
10563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10564 fi
10565 ;;
10566esac
10567
10568echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10569echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10570if test "${lt_cv_deplibs_check_method+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573 lt_cv_file_magic_cmd='$MAGIC_CMD'
10574lt_cv_file_magic_test_file=
10575lt_cv_deplibs_check_method='unknown'
10576# Need to set the preceding variable on all platforms that support
10577# interlibrary dependencies.
10578# 'none' -- dependencies not supported.
10579# `unknown' -- same as none, but documents that we really don't know.
10580# 'pass_all' -- all dependencies passed with no checks.
10581# 'test_compile' -- check by making test program.
10582# 'file_magic [[regex]]' -- check by looking for files in library path
10583# which responds to the $file_magic_cmd with a given extended regex.
10584# If you have `file' or equivalent on your system and you're not sure
10585# whether `pass_all' will *always* work, you probably want this one.
10586
10587case $host_os in
10588aix4* | aix5*)
10589 lt_cv_deplibs_check_method=pass_all
10590 ;;
10591
10592beos*)
10593 lt_cv_deplibs_check_method=pass_all
10594 ;;
10595
10596bsdi[45]*)
10597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10598 lt_cv_file_magic_cmd='/usr/bin/file -L'
10599 lt_cv_file_magic_test_file=/shlib/libc.so
10600 ;;
10601
10602cygwin*)
10603 # func_win32_libid is a shell function defined in ltmain.sh
10604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10605 lt_cv_file_magic_cmd='func_win32_libid'
10606 ;;
10607
10608mingw* | pw32*)
10609 # Base MSYS/MinGW do not provide the 'file' command needed by
10610 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10611 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10612 lt_cv_file_magic_cmd='$OBJDUMP -f'
10613 ;;
10614
10615darwin* | rhapsody*)
10616 lt_cv_deplibs_check_method=pass_all
10617 ;;
10618
10619freebsd* | kfreebsd*-gnu)
10620 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10621 case $host_cpu in
10622 i*86 )
10623 # Not sure whether the presence of OpenBSD here was a mistake.
10624 # Let's accept both of them until this is cleared up.
10625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10626 lt_cv_file_magic_cmd=/usr/bin/file
10627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10628 ;;
10629 esac
10630 else
10631 lt_cv_deplibs_check_method=pass_all
10632 fi
10633 ;;
10634
10635gnu*)
10636 lt_cv_deplibs_check_method=pass_all
10637 ;;
10638
10639hpux10.20* | hpux11*)
10640 lt_cv_file_magic_cmd=/usr/bin/file
10641 case "$host_cpu" in
10642 ia64*)
10643 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10644 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10645 ;;
10646 hppa*64*)
10647 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]'
10648 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10649 ;;
10650 *)
10651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10652 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10653 ;;
10654 esac
10655 ;;
10656
10657irix5* | irix6* | nonstopux*)
10658 case $LD in
10659 *-32|*"-32 ") libmagic=32-bit;;
10660 *-n32|*"-n32 ") libmagic=N32;;
10661 *-64|*"-64 ") libmagic=64-bit;;
10662 *) libmagic=never-match;;
10663 esac
10664 lt_cv_deplibs_check_method=pass_all
10665 ;;
10666
10667# This must be Linux ELF.
10668linux*)
10669 lt_cv_deplibs_check_method=pass_all
10670 ;;
10671
10672netbsd*)
10673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10675 else
10676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10677 fi
10678 ;;
10679
10680newos6*)
10681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10682 lt_cv_file_magic_cmd=/usr/bin/file
10683 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10684 ;;
10685
10686nto-qnx*)
10687 lt_cv_deplibs_check_method=unknown
10688 ;;
10689
10690openbsd*)
10691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10693 else
10694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10695 fi
10696 ;;
10697
10698osf3* | osf4* | osf5*)
10699 lt_cv_deplibs_check_method=pass_all
10700 ;;
10701
10702sco3.2v5*)
10703 lt_cv_deplibs_check_method=pass_all
10704 ;;
10705
10706solaris*)
10707 lt_cv_deplibs_check_method=pass_all
10708 ;;
10709
10710sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10711 case $host_vendor in
10712 motorola)
10713 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]'
10714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10715 ;;
10716 ncr)
10717 lt_cv_deplibs_check_method=pass_all
10718 ;;
10719 sequent)
10720 lt_cv_file_magic_cmd='/bin/file'
10721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10722 ;;
10723 sni)
10724 lt_cv_file_magic_cmd='/bin/file'
10725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10726 lt_cv_file_magic_test_file=/lib/libc.so
10727 ;;
10728 siemens)
10729 lt_cv_deplibs_check_method=pass_all
10730 ;;
10731 esac
10732 ;;
10733
10734sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10735 lt_cv_deplibs_check_method=pass_all
10736 ;;
10737esac
10738
10739fi
10740echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10741echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10742file_magic_cmd=$lt_cv_file_magic_cmd
10743deplibs_check_method=$lt_cv_deplibs_check_method
10744test -z "$deplibs_check_method" && deplibs_check_method=unknown
10745
10746
10747
10748# If no C compiler was specified, use CC.
10749LTCC=${LTCC-"$CC"}
10750
10751# Allow CC to be a program name with arguments.
10752compiler=$CC
10753
10754# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10755if test "${enable_libtool_lock+set}" = set; then
10756 enableval="$enable_libtool_lock"
10757
10758fi;
10759test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10760
10761# Some flags need to be propagated to the compiler or linker for good
10762# libtool support.
10763case $host in
10764ia64-*-hpux*)
10765 # Find out which ABI we are using.
10766 echo 'int i;' > conftest.$ac_ext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768 (eval $ac_compile) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; then
10772 case `/usr/bin/file conftest.$ac_objext` in
10773 *ELF-32*)
10774 HPUX_IA64_MODE="32"
10775 ;;
10776 *ELF-64*)
10777 HPUX_IA64_MODE="64"
10778 ;;
10779 esac
10780 fi
10781 rm -rf conftest*
10782 ;;
10783*-*-irix6*)
10784 # Find out which ABI we are using.
Reid Spenceraea7fe42006-07-28 05:05:00 +000010785 echo '#line 10785 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10787 (eval $ac_compile) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; then
10791 if test "$lt_cv_prog_gnu_ld" = yes; then
10792 case `/usr/bin/file conftest.$ac_objext` in
10793 *32-bit*)
10794 LD="${LD-ld} -melf32bsmip"
10795 ;;
10796 *N32*)
10797 LD="${LD-ld} -melf32bmipn32"
10798 ;;
10799 *64-bit*)
10800 LD="${LD-ld} -melf64bmip"
10801 ;;
10802 esac
10803 else
10804 case `/usr/bin/file conftest.$ac_objext` in
10805 *32-bit*)
10806 LD="${LD-ld} -32"
10807 ;;
10808 *N32*)
10809 LD="${LD-ld} -n32"
10810 ;;
10811 *64-bit*)
10812 LD="${LD-ld} -64"
10813 ;;
10814 esac
10815 fi
10816 fi
10817 rm -rf conftest*
10818 ;;
10819
10820x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10821 # Find out which ABI we are using.
10822 echo 'int i;' > conftest.$ac_ext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; then
10828 case "`/usr/bin/file conftest.o`" in
10829 *32-bit*)
10830 case $host in
10831 x86_64-*linux*)
10832 LD="${LD-ld} -m elf_i386"
10833 ;;
10834 ppc64-*linux*|powerpc64-*linux*)
10835 LD="${LD-ld} -m elf32ppclinux"
10836 ;;
10837 s390x-*linux*)
10838 LD="${LD-ld} -m elf_s390"
10839 ;;
10840 sparc64-*linux*)
10841 LD="${LD-ld} -m elf32_sparc"
10842 ;;
10843 esac
10844 ;;
10845 *64-bit*)
10846 case $host in
10847 x86_64-*linux*)
10848 LD="${LD-ld} -m elf_x86_64"
10849 ;;
10850 ppc*-*linux*|powerpc*-*linux*)
10851 LD="${LD-ld} -m elf64ppc"
10852 ;;
10853 s390*-*linux*)
10854 LD="${LD-ld} -m elf64_s390"
10855 ;;
10856 sparc*-*linux*)
10857 LD="${LD-ld} -m elf64_sparc"
10858 ;;
10859 esac
10860 ;;
10861 esac
10862 fi
10863 rm -rf conftest*
10864 ;;
10865
10866*-*-sco3.2v5*)
10867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10868 SAVE_CFLAGS="$CFLAGS"
10869 CFLAGS="$CFLAGS -belf"
10870 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10871echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10872if test "${lt_cv_cc_needs_belf+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 ac_ext=c
10876ac_cpp='$CPP $CPPFLAGS'
10877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10879ac_compiler_gnu=$ac_cv_c_compiler_gnu
10880
10881 cat >conftest.$ac_ext <<_ACEOF
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h. */
10887
10888_ACEOF
10889rm -f conftest.$ac_objext conftest$ac_exeext
10890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag"
10899 || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest$ac_exeext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 lt_cv_cc_needs_belf=yes
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916lt_cv_cc_needs_belf=no
10917fi
10918rm -f conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 ac_ext=c
10921ac_cpp='$CPP $CPPFLAGS'
10922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924ac_compiler_gnu=$ac_cv_c_compiler_gnu
10925
10926fi
10927echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10928echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10929 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10931 CFLAGS="$SAVE_CFLAGS"
10932 fi
10933 ;;
10934
10935esac
10936
10937need_locks="$enable_libtool_lock"
10938
10939
Reid Spencer2706f8c2004-09-19 23:53:36 +000010940
10941
10942if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10943 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10944 (test "X$CXX" != "Xg++"))) ; then
10945 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010946ac_cpp='$CXXCPP $CPPFLAGS'
10947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10950echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10951echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10952if test -z "$CXXCPP"; then
10953 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955else
John Criswell47fdd832003-07-14 16:52:07 +000010956 # Double quotes because CXXCPP needs to be expanded
10957 for CXXCPP in "$CXX -E" "/lib/cpp"
10958 do
10959 ac_preproc_ok=false
10960for ac_cxx_preproc_warn_flag in '' yes
10961do
10962 # Use a header file that comes with gcc, so configuring glibc
10963 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010966 # On the NeXT, cc -E runs the code through the compiler's parser,
10967 # not just through cpp. "Syntax error" is here to catch this case.
10968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010969/* confdefs.h. */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h. */
10974#ifdef __STDC__
10975# include <limits.h>
10976#else
10977# include <assert.h>
10978#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010979 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010980_ACEOF
10981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10983 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010984 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } >/dev/null; then
10989 if test -s conftest.err; then
10990 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010991 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010992 else
John Criswell47fdd832003-07-14 16:52:07 +000010993 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010994 fi
John Criswell47fdd832003-07-14 16:52:07 +000010995else
10996 ac_cpp_err=yes
10997fi
10998if test -z "$ac_cpp_err"; then
10999 :
11000else
11001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011002sed 's/^/| /' conftest.$ac_ext >&5
11003
John Criswell47fdd832003-07-14 16:52:07 +000011004 # Broken: fails on valid input.
11005continue
11006fi
11007rm -f conftest.err conftest.$ac_ext
11008
11009 # OK, works on sane cases. Now check whether non-existent headers
11010 # can be detected and how.
11011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011012/* confdefs.h. */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011017#include <ac_nonexistent.h>
11018_ACEOF
11019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11021 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000011022 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000011023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } >/dev/null; then
11027 if test -s conftest.err; then
11028 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000011029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000011030 else
11031 ac_cpp_err=
11032 fi
11033else
11034 ac_cpp_err=yes
11035fi
11036if test -z "$ac_cpp_err"; then
11037 # Broken: success on invalid input.
11038continue
11039else
11040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011041sed 's/^/| /' conftest.$ac_ext >&5
11042
John Criswell47fdd832003-07-14 16:52:07 +000011043 # Passes both tests.
11044ac_preproc_ok=:
11045break
11046fi
11047rm -f conftest.err conftest.$ac_ext
11048
11049done
11050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11051rm -f conftest.err conftest.$ac_ext
11052if $ac_preproc_ok; then
11053 break
John Criswell7a73b802003-06-30 21:59:07 +000011054fi
11055
John Criswell47fdd832003-07-14 16:52:07 +000011056 done
11057 ac_cv_prog_CXXCPP=$CXXCPP
11058
11059fi
11060 CXXCPP=$ac_cv_prog_CXXCPP
11061else
11062 ac_cv_prog_CXXCPP=$CXXCPP
11063fi
11064echo "$as_me:$LINENO: result: $CXXCPP" >&5
11065echo "${ECHO_T}$CXXCPP" >&6
11066ac_preproc_ok=false
11067for ac_cxx_preproc_warn_flag in '' yes
11068do
11069 # Use a header file that comes with gcc, so configuring glibc
11070 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000011071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11072 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000011073 # On the NeXT, cc -E runs the code through the compiler's parser,
11074 # not just through cpp. "Syntax error" is here to catch this case.
11075 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
11081#ifdef __STDC__
11082# include <limits.h>
11083#else
11084# include <assert.h>
11085#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011086 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000011087_ACEOF
11088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11090 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000011091 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000011092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } >/dev/null; then
11096 if test -s conftest.err; then
11097 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000011098 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000011099 else
11100 ac_cpp_err=
11101 fi
11102else
11103 ac_cpp_err=yes
11104fi
11105if test -z "$ac_cpp_err"; then
11106 :
11107else
11108 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011109sed 's/^/| /' conftest.$ac_ext >&5
11110
John Criswell47fdd832003-07-14 16:52:07 +000011111 # Broken: fails on valid input.
11112continue
11113fi
11114rm -f conftest.err conftest.$ac_ext
11115
11116 # OK, works on sane cases. Now check whether non-existent headers
11117 # can be detected and how.
11118 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011119/* confdefs.h. */
11120_ACEOF
11121cat confdefs.h >>conftest.$ac_ext
11122cat >>conftest.$ac_ext <<_ACEOF
11123/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011124#include <ac_nonexistent.h>
11125_ACEOF
11126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11128 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000011129 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000011130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } >/dev/null; then
11134 if test -s conftest.err; then
11135 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000011136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000011137 else
11138 ac_cpp_err=
11139 fi
11140else
11141 ac_cpp_err=yes
11142fi
11143if test -z "$ac_cpp_err"; then
11144 # Broken: success on invalid input.
11145continue
11146else
11147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011148sed 's/^/| /' conftest.$ac_ext >&5
11149
John Criswell47fdd832003-07-14 16:52:07 +000011150 # Passes both tests.
11151ac_preproc_ok=:
11152break
11153fi
11154rm -f conftest.err conftest.$ac_ext
11155
11156done
11157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11158rm -f conftest.err conftest.$ac_ext
11159if $ac_preproc_ok; then
11160 :
11161else
John Criswell0c38eaf2003-09-10 15:17:25 +000011162 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11163See \`config.log' for more details." >&5
11164echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11165See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000011166 { (exit 1); exit 1; }; }
11167fi
11168
11169ac_ext=cc
11170ac_cpp='$CXXCPP $CPPFLAGS'
11171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11174
Reid Spencer2706f8c2004-09-19 23:53:36 +000011175fi
11176
John Criswell47fdd832003-07-14 16:52:07 +000011177
11178ac_ext=f
11179ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11180ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11181ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11182if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011183 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 +000011184 do
11185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11187echo "$as_me:$LINENO: checking for $ac_word" >&5
11188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11189if test "${ac_cv_prog_F77+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
11192 if test -n "$F77"; then
11193 ac_cv_prog_F77="$F77" # Let the user override the test.
11194else
11195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11205 fi
11206done
11207done
11208
11209fi
11210fi
11211F77=$ac_cv_prog_F77
11212if test -n "$F77"; then
11213 echo "$as_me:$LINENO: result: $F77" >&5
11214echo "${ECHO_T}$F77" >&6
11215else
11216 echo "$as_me:$LINENO: result: no" >&5
11217echo "${ECHO_T}no" >&6
11218fi
11219
11220 test -n "$F77" && break
11221 done
11222fi
11223if test -z "$F77"; then
11224 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000011225 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 +000011226do
11227 # Extract the first word of "$ac_prog", so it can be a program name with args.
11228set dummy $ac_prog; ac_word=$2
11229echo "$as_me:$LINENO: checking for $ac_word" >&5
11230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11231if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 if test -n "$ac_ct_F77"; then
11235 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11236else
11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244 ac_cv_prog_ac_ct_F77="$ac_prog"
11245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 break 2
11247 fi
11248done
11249done
11250
11251fi
11252fi
11253ac_ct_F77=$ac_cv_prog_ac_ct_F77
11254if test -n "$ac_ct_F77"; then
11255 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11256echo "${ECHO_T}$ac_ct_F77" >&6
11257else
11258 echo "$as_me:$LINENO: result: no" >&5
11259echo "${ECHO_T}no" >&6
11260fi
11261
11262 test -n "$ac_ct_F77" && break
11263done
11264
11265 F77=$ac_ct_F77
11266fi
11267
11268
11269# Provide some information about the compiler.
Reid Spenceraea7fe42006-07-28 05:05:00 +000011270echo "$as_me:11270:" \
John Criswell47fdd832003-07-14 16:52:07 +000011271 "checking for Fortran 77 compiler version" >&5
11272ac_compiler=`set X $ac_compile; echo $2`
11273{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11274 (eval $ac_compiler --version </dev/null >&5) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }
11278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11279 (eval $ac_compiler -v </dev/null >&5) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }
11283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11284 (eval $ac_compiler -V </dev/null >&5) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000011288rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000011289
11290# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000011291# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000011292ac_save_ext=$ac_ext
11293ac_ext=F
11294echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11295echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11296if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 cat >conftest.$ac_ext <<_ACEOF
11300 program main
11301#ifndef __GNUC__
11302 choke me
11303#endif
11304
11305 end
11306_ACEOF
11307rm -f conftest.$ac_objext
11308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011309 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011316 { ac_try='test -z "$ac_f77_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_compiler_gnu=yes
11330else
11331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011332sed 's/^/| /' conftest.$ac_ext >&5
11333
John Criswell47fdd832003-07-14 16:52:07 +000011334ac_compiler_gnu=no
11335fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011337ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11338
11339fi
11340echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11341echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11342ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011343ac_test_FFLAGS=${FFLAGS+set}
11344ac_save_FFLAGS=$FFLAGS
11345FFLAGS=
11346echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11347echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11348if test "${ac_cv_prog_f77_g+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351 FFLAGS=-g
11352cat >conftest.$ac_ext <<_ACEOF
11353 program main
11354
11355 end
11356_ACEOF
11357rm -f conftest.$ac_objext
11358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011359 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011366 { ac_try='test -z "$ac_f77_werror_flag"
11367 || test ! -s conftest.err'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_prog_f77_g=yes
11380else
11381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011382sed 's/^/| /' conftest.$ac_ext >&5
11383
John Criswell47fdd832003-07-14 16:52:07 +000011384ac_cv_prog_f77_g=no
11385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011387
11388fi
11389echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11390echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11391if test "$ac_test_FFLAGS" = set; then
11392 FFLAGS=$ac_save_FFLAGS
11393elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011394 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011395 FFLAGS="-g -O2"
11396 else
11397 FFLAGS="-g"
11398 fi
11399else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011401 FFLAGS="-O2"
11402 else
11403 FFLAGS=
11404 fi
11405fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011406
11407G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011408ac_ext=c
11409ac_cpp='$CPP $CPPFLAGS'
11410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412ac_compiler_gnu=$ac_cv_c_compiler_gnu
11413
11414
11415
11416# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11417
11418# find the maximum length of command line arguments
11419echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11420echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11421if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423else
11424 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011425 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011426
11427 case $build_os in
11428 msdosdjgpp*)
11429 # On DJGPP, this test can blow up pretty badly due to problems in libc
11430 # (any single argument exceeding 2000 bytes causes a buffer overrun
11431 # during glob expansion). Even if it were fixed, the result of this
11432 # check would be larger than it should be.
11433 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11434 ;;
11435
11436 gnu*)
11437 # Under GNU Hurd, this test is not required because there is
11438 # no limit to the length of command line arguments.
11439 # Libtool will interpret -1 as no limit whatsoever
11440 lt_cv_sys_max_cmd_len=-1;
11441 ;;
11442
11443 cygwin* | mingw*)
11444 # On Win9x/ME, this test blows up -- it succeeds, but takes
11445 # about 5 minutes as the teststring grows exponentially.
11446 # Worse, since 9x/ME are not pre-emptively multitasking,
11447 # you end up with a "frozen" computer, even though with patience
11448 # the test eventually succeeds (with a max line length of 256k).
11449 # Instead, let's just punt: use the minimum linelength reported by
11450 # all of the supported platforms: 8192 (on NT/2K/XP).
11451 lt_cv_sys_max_cmd_len=8192;
11452 ;;
11453
Reid Spencer2706f8c2004-09-19 23:53:36 +000011454 amigaos*)
11455 # On AmigaOS with pdksh, this test takes hours, literally.
11456 # So we just punt and use a minimum line length of 8192.
11457 lt_cv_sys_max_cmd_len=8192;
11458 ;;
11459
11460 netbsd* | freebsd* | openbsd* | darwin* )
11461 # This has been around since 386BSD, at least. Likely further.
11462 if test -x /sbin/sysctl; then
11463 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11464 elif test -x /usr/sbin/sysctl; then
11465 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11466 else
11467 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11468 fi
11469 # And add a safety zone
11470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11471 ;;
11472
John Criswell47fdd832003-07-14 16:52:07 +000011473 *)
11474 # If test is not a shell built-in, we'll probably end up computing a
11475 # maximum length that is only half of the actual maximum length, but
11476 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011477 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11478 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11479 = "XX$teststring") >/dev/null 2>&1 &&
11480 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011481 lt_cv_sys_max_cmd_len=$new_result &&
11482 test $i != 17 # 1/2 MB should be enough
11483 do
11484 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011485 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011486 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011487 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011488 # Add a significant safety factor because C++ compilers can tack on massive
11489 # amounts of additional arguments before passing them to the linker.
11490 # It appears as though 1/2 is a usable value.
11491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11492 ;;
11493 esac
11494
11495fi
11496
11497if test -n $lt_cv_sys_max_cmd_len ; then
11498 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11499echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11500else
11501 echo "$as_me:$LINENO: result: none" >&5
11502echo "${ECHO_T}none" >&6
11503fi
11504
11505
11506
11507
11508# Check for command to grab the raw symbol name followed by C symbol from nm.
11509echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11510echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11511if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514
11515# These are sane defaults that work on at least a few old systems.
11516# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11517
11518# Character class describing NM global symbol codes.
11519symcode='[BCDEGRST]'
11520
11521# Regexp to match symbols that can be accessed directly from C.
11522sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11523
11524# Transform the above into a raw symbol and a C symbol.
11525symxfrm='\1 \2\3 \3'
11526
11527# Transform an extracted symbol line into a proper C declaration
11528lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11529
11530# Transform an extracted symbol line into symbol name and symbol address
11531lt_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'"
11532
11533# Define system-specific variables.
11534case $host_os in
11535aix*)
11536 symcode='[BCDT]'
11537 ;;
11538cygwin* | mingw* | pw32*)
11539 symcode='[ABCDGISTW]'
11540 ;;
11541hpux*) # Its linker distinguishes data from code symbols
11542 if test "$host_cpu" = ia64; then
11543 symcode='[ABCDEGRST]'
11544 fi
11545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11546 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'"
11547 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011548linux*)
11549 if test "$host_cpu" = ia64; then
11550 symcode='[ABCDGIRSTW]'
11551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11552 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'"
11553 fi
11554 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011555irix* | nonstopux*)
11556 symcode='[BCDEGRST]'
11557 ;;
11558osf*)
11559 symcode='[BCDEGQRST]'
11560 ;;
11561solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011562 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011563 ;;
11564sysv4)
11565 symcode='[DFNSTU]'
11566 ;;
11567esac
11568
11569# Handle CRLF in mingw tool chain
11570opt_cr=
11571case $build_os in
11572mingw*)
11573 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11574 ;;
11575esac
11576
11577# If we're using GNU nm, then use its standard symbol codes.
11578case `$NM -V 2>&1` in
11579*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011580 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011581esac
11582
11583# Try without a prefix undercore, then with it.
11584for ac_symprfx in "" "_"; do
11585
11586 # Write the raw and C identifiers.
11587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11588
11589 # Check to see that the pipe works correctly.
11590 pipe_works=no
11591
11592 rm -f conftest*
11593 cat > conftest.$ac_ext <<EOF
11594#ifdef __cplusplus
11595extern "C" {
11596#endif
11597char nm_test_var;
11598void nm_test_func(){}
11599#ifdef __cplusplus
11600}
11601#endif
11602int main(){nm_test_var='a';nm_test_func();return(0);}
11603EOF
11604
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; then
11610 # Now try to grab the symbols.
11611 nlist=conftest.nm
11612 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11613 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && test -s "$nlist"; then
11617 # Try sorting and uniquifying the output.
11618 if sort "$nlist" | uniq > "$nlist"T; then
11619 mv -f "$nlist"T "$nlist"
11620 else
11621 rm -f "$nlist"T
11622 fi
11623
11624 # Make sure that we snagged all the symbols we need.
11625 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11626 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11627 cat <<EOF > conftest.$ac_ext
11628#ifdef __cplusplus
11629extern "C" {
11630#endif
11631
11632EOF
11633 # Now generate the symbol file.
11634 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11635
11636 cat <<EOF >> conftest.$ac_ext
11637#if defined (__STDC__) && __STDC__
11638# define lt_ptr_t void *
11639#else
11640# define lt_ptr_t char *
11641# define const
11642#endif
11643
11644/* The mapping between symbol names and symbols. */
11645const struct {
11646 const char *name;
11647 lt_ptr_t address;
11648}
11649lt_preloaded_symbols[] =
11650{
11651EOF
11652 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11653 cat <<\EOF >> conftest.$ac_ext
11654 {0, (lt_ptr_t) 0}
11655};
11656
11657#ifdef __cplusplus
11658}
11659#endif
11660EOF
11661 # Now try linking the two files.
11662 mv conftest.$ac_objext conftstm.$ac_objext
11663 lt_save_LIBS="$LIBS"
11664 lt_save_CFLAGS="$CFLAGS"
11665 LIBS="conftstm.$ac_objext"
11666 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11672 pipe_works=yes
11673 fi
11674 LIBS="$lt_save_LIBS"
11675 CFLAGS="$lt_save_CFLAGS"
11676 else
11677 echo "cannot find nm_test_func in $nlist" >&5
11678 fi
11679 else
11680 echo "cannot find nm_test_var in $nlist" >&5
11681 fi
11682 else
11683 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11684 fi
11685 else
11686 echo "$progname: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11688 fi
11689 rm -f conftest* conftst*
11690
11691 # Do not use the global_symbol_pipe unless it works.
11692 if test "$pipe_works" = yes; then
11693 break
11694 else
11695 lt_cv_sys_global_symbol_pipe=
11696 fi
11697done
11698
11699fi
11700
11701if test -z "$lt_cv_sys_global_symbol_pipe"; then
11702 lt_cv_sys_global_symbol_to_cdecl=
11703fi
11704if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11705 echo "$as_me:$LINENO: result: failed" >&5
11706echo "${ECHO_T}failed" >&6
11707else
11708 echo "$as_me:$LINENO: result: ok" >&5
11709echo "${ECHO_T}ok" >&6
11710fi
11711
11712echo "$as_me:$LINENO: checking for objdir" >&5
11713echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11714if test "${lt_cv_objdir+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 rm -f .libs 2>/dev/null
11718mkdir .libs 2>/dev/null
11719if test -d .libs; then
11720 lt_cv_objdir=.libs
11721else
11722 # MS-DOS does not allow filenames that begin with a dot.
11723 lt_cv_objdir=_libs
11724fi
11725rmdir .libs 2>/dev/null
11726fi
11727echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11728echo "${ECHO_T}$lt_cv_objdir" >&6
11729objdir=$lt_cv_objdir
11730
11731
11732
11733
11734
11735case $host_os in
11736aix3*)
11737 # AIX sometimes has problems with the GCC collect2 program. For some
11738 # reason, if we set the COLLECT_NAMES environment variable, the problems
11739 # vanish in a puff of smoke.
11740 if test "X${COLLECT_NAMES+set}" != Xset; then
11741 COLLECT_NAMES=
11742 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011743 fi
11744 ;;
11745esac
11746
John Criswell47fdd832003-07-14 16:52:07 +000011747# Sed substitution that helps us do robust quoting. It backslashifies
11748# metacharacters that are still active within double-quoted strings.
11749Xsed='sed -e s/^X//'
11750sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11751
11752# Same as above, but do not quote variable references.
11753double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11754
11755# Sed substitution to delay expansion of an escaped shell variable in a
11756# double_quote_subst'ed string.
11757delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11758
11759# Sed substitution to avoid accidental globbing in evaled expressions
11760no_glob_subst='s/\*/\\\*/g'
11761
11762# Constants:
11763rm="rm -f"
11764
11765# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011766default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011767can_build_shared=yes
11768
11769# All known linkers require a `.a' archive for static linking (except M$VC,
11770# which needs '.lib').
11771libext=a
11772ltmain="$ac_aux_dir/ltmain.sh"
11773ofile="$default_ofile"
11774with_gnu_ld="$lt_cv_prog_gnu_ld"
11775
11776if test -n "$ac_tool_prefix"; then
11777 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11778set dummy ${ac_tool_prefix}ar; ac_word=$2
11779echo "$as_me:$LINENO: checking for $ac_word" >&5
11780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11781if test "${ac_cv_prog_AR+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11783else
11784 if test -n "$AR"; then
11785 ac_cv_prog_AR="$AR" # Let the user override the test.
11786else
11787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788for as_dir in $PATH
11789do
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_AR="${ac_tool_prefix}ar"
11795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11797 fi
11798done
11799done
11800
11801fi
11802fi
11803AR=$ac_cv_prog_AR
11804if test -n "$AR"; then
11805 echo "$as_me:$LINENO: result: $AR" >&5
11806echo "${ECHO_T}$AR" >&6
11807else
11808 echo "$as_me:$LINENO: result: no" >&5
11809echo "${ECHO_T}no" >&6
11810fi
11811
11812fi
11813if test -z "$ac_cv_prog_AR"; then
11814 ac_ct_AR=$AR
11815 # Extract the first word of "ar", so it can be a program name with args.
11816set dummy ar; ac_word=$2
11817echo "$as_me:$LINENO: checking for $ac_word" >&5
11818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 if test -n "$ac_ct_AR"; then
11823 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11824else
11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826for as_dir in $PATH
11827do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_prog_ac_ct_AR="ar"
11833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11835 fi
11836done
11837done
11838
11839 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11840fi
11841fi
11842ac_ct_AR=$ac_cv_prog_ac_ct_AR
11843if test -n "$ac_ct_AR"; then
11844 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11845echo "${ECHO_T}$ac_ct_AR" >&6
11846else
11847 echo "$as_me:$LINENO: result: no" >&5
11848echo "${ECHO_T}no" >&6
11849fi
11850
11851 AR=$ac_ct_AR
11852else
11853 AR="$ac_cv_prog_AR"
11854fi
11855
John Criswell7a73b802003-06-30 21:59:07 +000011856if test -n "$ac_tool_prefix"; then
11857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11858set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11859echo "$as_me:$LINENO: checking for $ac_word" >&5
11860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11861if test "${ac_cv_prog_RANLIB+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 if test -n "$RANLIB"; then
11865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11866else
11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11877 fi
11878done
11879done
11880
11881fi
11882fi
11883RANLIB=$ac_cv_prog_RANLIB
11884if test -n "$RANLIB"; then
11885 echo "$as_me:$LINENO: result: $RANLIB" >&5
11886echo "${ECHO_T}$RANLIB" >&6
11887else
11888 echo "$as_me:$LINENO: result: no" >&5
11889echo "${ECHO_T}no" >&6
11890fi
11891
11892fi
11893if test -z "$ac_cv_prog_RANLIB"; then
11894 ac_ct_RANLIB=$RANLIB
11895 # Extract the first word of "ranlib", so it can be a program name with args.
11896set dummy ranlib; ac_word=$2
11897echo "$as_me:$LINENO: checking for $ac_word" >&5
11898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 if test -n "$ac_ct_RANLIB"; then
11903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11904else
11905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906for as_dir in $PATH
11907do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_ac_ct_RANLIB="ranlib"
11913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11915 fi
11916done
11917done
11918
11919 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11920fi
11921fi
11922ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11923if test -n "$ac_ct_RANLIB"; then
11924 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11925echo "${ECHO_T}$ac_ct_RANLIB" >&6
11926else
11927 echo "$as_me:$LINENO: result: no" >&5
11928echo "${ECHO_T}no" >&6
11929fi
11930
11931 RANLIB=$ac_ct_RANLIB
11932else
11933 RANLIB="$ac_cv_prog_RANLIB"
11934fi
11935
11936if test -n "$ac_tool_prefix"; then
11937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11938set dummy ${ac_tool_prefix}strip; ac_word=$2
11939echo "$as_me:$LINENO: checking for $ac_word" >&5
11940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11941if test "${ac_cv_prog_STRIP+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943else
11944 if test -n "$STRIP"; then
11945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11946else
11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958done
11959done
11960
11961fi
11962fi
11963STRIP=$ac_cv_prog_STRIP
11964if test -n "$STRIP"; then
11965 echo "$as_me:$LINENO: result: $STRIP" >&5
11966echo "${ECHO_T}$STRIP" >&6
11967else
11968 echo "$as_me:$LINENO: result: no" >&5
11969echo "${ECHO_T}no" >&6
11970fi
11971
11972fi
11973if test -z "$ac_cv_prog_STRIP"; then
11974 ac_ct_STRIP=$STRIP
11975 # Extract the first word of "strip", so it can be a program name with args.
11976set dummy strip; ac_word=$2
11977echo "$as_me:$LINENO: checking for $ac_word" >&5
11978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11979if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981else
11982 if test -n "$ac_ct_STRIP"; then
11983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11984else
11985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986for as_dir in $PATH
11987do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992 ac_cv_prog_ac_ct_STRIP="strip"
11993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11995 fi
11996done
11997done
11998
11999 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12000fi
12001fi
12002ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12003if test -n "$ac_ct_STRIP"; then
12004 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12005echo "${ECHO_T}$ac_ct_STRIP" >&6
12006else
12007 echo "$as_me:$LINENO: result: no" >&5
12008echo "${ECHO_T}no" >&6
12009fi
12010
12011 STRIP=$ac_ct_STRIP
12012else
12013 STRIP="$ac_cv_prog_STRIP"
12014fi
12015
12016
John Criswell7a73b802003-06-30 21:59:07 +000012017old_CC="$CC"
12018old_CFLAGS="$CFLAGS"
12019
12020# Set sane defaults for various variables
12021test -z "$AR" && AR=ar
12022test -z "$AR_FLAGS" && AR_FLAGS=cru
12023test -z "$AS" && AS=as
12024test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000012025test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000012026test -z "$DLLTOOL" && DLLTOOL=dlltool
12027test -z "$LD" && LD=ld
12028test -z "$LN_S" && LN_S="ln -s"
12029test -z "$MAGIC_CMD" && MAGIC_CMD=file
12030test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000012031test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000012032test -z "$OBJDUMP" && OBJDUMP=objdump
12033test -z "$RANLIB" && RANLIB=:
12034test -z "$STRIP" && STRIP=:
12035test -z "$ac_objext" && ac_objext=o
12036
John Criswell7a73b802003-06-30 21:59:07 +000012037# Determine commands to create old-style static archives.
12038old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12039old_postinstall_cmds='chmod 644 $oldlib'
12040old_postuninstall_cmds=
12041
12042if test -n "$RANLIB"; then
12043 case $host_os in
12044 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012045 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000012046 ;;
12047 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000012048 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000012049 ;;
12050 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000012051 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000012052fi
12053
Reid Spencer2706f8c2004-09-19 23:53:36 +000012054cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12055
John Criswell47fdd832003-07-14 16:52:07 +000012056# Only perform the check for file, if the check method requires it
12057case $deplibs_check_method in
12058file_magic*)
12059 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12060 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12061echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12062if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012064else
John Criswell47fdd832003-07-14 16:52:07 +000012065 case $MAGIC_CMD in
12066[\\/*] | ?:[\\/]*)
12067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12068 ;;
12069*)
12070 lt_save_MAGIC_CMD="$MAGIC_CMD"
12071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12073 for ac_dir in $ac_dummy; do
12074 IFS="$lt_save_ifs"
12075 test -z "$ac_dir" && ac_dir=.
12076 if test -f $ac_dir/${ac_tool_prefix}file; then
12077 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12078 if test -n "$file_magic_test_file"; then
12079 case $deplibs_check_method in
12080 "file_magic "*)
12081 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12084 $EGREP "$file_magic_regex" > /dev/null; then
12085 :
12086 else
12087 cat <<EOF 1>&2
12088
12089*** Warning: the command libtool uses to detect shared libraries,
12090*** $file_magic_cmd, produces output that libtool cannot recognize.
12091*** The result is that libtool may fail to recognize shared libraries
12092*** as such. This will affect the creation of libtool libraries that
12093*** depend on shared libraries, but programs linked with such libtool
12094*** libraries will work regardless of this problem. Nevertheless, you
12095*** may want to report the problem to your system manager and/or to
12096*** bug-libtool@gnu.org
12097
12098EOF
12099 fi ;;
12100 esac
12101 fi
12102 break
12103 fi
12104 done
12105 IFS="$lt_save_ifs"
12106 MAGIC_CMD="$lt_save_MAGIC_CMD"
12107 ;;
12108esac
John Criswell7a73b802003-06-30 21:59:07 +000012109fi
John Criswell7a73b802003-06-30 21:59:07 +000012110
John Criswell47fdd832003-07-14 16:52:07 +000012111MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12112if test -n "$MAGIC_CMD"; then
12113 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12114echo "${ECHO_T}$MAGIC_CMD" >&6
12115else
12116 echo "$as_me:$LINENO: result: no" >&5
12117echo "${ECHO_T}no" >&6
12118fi
John Criswell7a73b802003-06-30 21:59:07 +000012119
John Criswell47fdd832003-07-14 16:52:07 +000012120if test -z "$lt_cv_path_MAGIC_CMD"; then
12121 if test -n "$ac_tool_prefix"; then
12122 echo "$as_me:$LINENO: checking for file" >&5
12123echo $ECHO_N "checking for file... $ECHO_C" >&6
12124if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
12127 case $MAGIC_CMD in
12128[\\/*] | ?:[\\/]*)
12129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12130 ;;
12131*)
12132 lt_save_MAGIC_CMD="$MAGIC_CMD"
12133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12135 for ac_dir in $ac_dummy; do
12136 IFS="$lt_save_ifs"
12137 test -z "$ac_dir" && ac_dir=.
12138 if test -f $ac_dir/file; then
12139 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12140 if test -n "$file_magic_test_file"; then
12141 case $deplibs_check_method in
12142 "file_magic "*)
12143 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12146 $EGREP "$file_magic_regex" > /dev/null; then
12147 :
12148 else
12149 cat <<EOF 1>&2
12150
12151*** Warning: the command libtool uses to detect shared libraries,
12152*** $file_magic_cmd, produces output that libtool cannot recognize.
12153*** The result is that libtool may fail to recognize shared libraries
12154*** as such. This will affect the creation of libtool libraries that
12155*** depend on shared libraries, but programs linked with such libtool
12156*** libraries will work regardless of this problem. Nevertheless, you
12157*** may want to report the problem to your system manager and/or to
12158*** bug-libtool@gnu.org
12159
12160EOF
12161 fi ;;
12162 esac
12163 fi
12164 break
12165 fi
12166 done
12167 IFS="$lt_save_ifs"
12168 MAGIC_CMD="$lt_save_MAGIC_CMD"
12169 ;;
12170esac
12171fi
12172
12173MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12174if test -n "$MAGIC_CMD"; then
12175 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12176echo "${ECHO_T}$MAGIC_CMD" >&6
12177else
12178 echo "$as_me:$LINENO: result: no" >&5
12179echo "${ECHO_T}no" >&6
12180fi
12181
12182 else
12183 MAGIC_CMD=:
12184 fi
12185fi
12186
12187 fi
12188 ;;
12189esac
12190
Reid Spencer17795972004-11-18 09:47:37 +000012191enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000012192enable_win32_dll=no
12193
12194# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12195if test "${enable_libtool_lock+set}" = set; then
12196 enableval="$enable_libtool_lock"
12197
12198fi;
12199test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12200
John Criswell7a73b802003-06-30 21:59:07 +000012201
12202# Check whether --with-pic or --without-pic was given.
12203if test "${with_pic+set}" = set; then
12204 withval="$with_pic"
12205 pic_mode="$withval"
12206else
12207 pic_mode=default
12208fi;
12209test -z "$pic_mode" && pic_mode=default
12210
John Criswell47fdd832003-07-14 16:52:07 +000012211# Use C for the default configuration in the libtool script
12212tagname=
12213lt_save_CC="$CC"
12214ac_ext=c
12215ac_cpp='$CPP $CPPFLAGS'
12216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219
12220
12221# Source file extension for C test sources.
12222ac_ext=c
12223
12224# Object file extension for compiled C test sources.
12225objext=o
12226objext=$objext
12227
12228# Code to be used in simple compile tests
12229lt_simple_compile_test_code="int some_variable = 0;\n"
12230
12231# Code to be used in simple link tests
12232lt_simple_link_test_code='int main(){return(0);}\n'
12233
12234
12235# If no C compiler was specified, use CC.
12236LTCC=${LTCC-"$CC"}
12237
12238# Allow CC to be a program name with arguments.
12239compiler=$CC
12240
12241
12242#
12243# Check for any special shared library compilation flags.
12244#
12245lt_prog_cc_shlib=
12246if test "$GCC" = no; then
12247 case $host_os in
12248 sco3.2v5*)
12249 lt_prog_cc_shlib='-belf'
12250 ;;
12251 esac
12252fi
12253if test -n "$lt_prog_cc_shlib"; then
12254 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12255echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12256 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12257 else
12258 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12259echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12260 lt_cv_prog_cc_can_build_shared=no
12261 fi
12262fi
12263
12264
12265#
12266# Check to make sure the static flag actually works.
12267#
12268echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12269echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12270if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
John Criswell47fdd832003-07-14 16:52:07 +000012273 lt_prog_compiler_static_works=no
12274 save_LDFLAGS="$LDFLAGS"
12275 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12276 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12278 # The compiler can only warn and ignore the option if not recognized
12279 # So say no if there are warnings
12280 if test -s conftest.err; then
12281 # Append any errors to the config.log.
12282 cat conftest.err 1>&5
12283 else
12284 lt_prog_compiler_static_works=yes
12285 fi
12286 fi
12287 $rm conftest*
12288 LDFLAGS="$save_LDFLAGS"
12289
12290fi
12291echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12292echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12293
12294if test x"$lt_prog_compiler_static_works" = xyes; then
12295 :
12296else
12297 lt_prog_compiler_static=
12298fi
12299
12300
12301
John Criswell47fdd832003-07-14 16:52:07 +000012302
12303lt_prog_compiler_no_builtin_flag=
12304
12305if test "$GCC" = yes; then
12306 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12307
Reid Spencer2706f8c2004-09-19 23:53:36 +000012308
12309echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012310echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12311if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 lt_cv_prog_compiler_rtti_exceptions=no
12315 ac_outfile=conftest.$ac_objext
12316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12317 lt_compiler_flag="-fno-rtti -fno-exceptions"
12318 # Insert the option either (1) after the last *FLAGS variable, or
12319 # (2) before a word containing "conftest.", or (3) at the end.
12320 # Note that $ac_compile itself does not contain backslashes and begins
12321 # with a dollar sign (not a hyphen), so the echo should work correctly.
12322 # The option is referenced via a variable to avoid confusing sed.
12323 lt_compile=`echo "$ac_compile" | $SED \
12324 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12326 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000012327 (eval echo "\"\$as_me:12327: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012328 (eval "$lt_compile" 2>conftest.err)
12329 ac_status=$?
12330 cat conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000012331 echo "$as_me:12331: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012332 if (exit $ac_status) && test -s "$ac_outfile"; then
12333 # The compiler can only warn and ignore the option if not recognized
12334 # So say no if there are warnings
12335 if test ! -s conftest.err; then
12336 lt_cv_prog_compiler_rtti_exceptions=yes
12337 fi
12338 fi
12339 $rm conftest*
12340
12341fi
12342echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12343echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12344
12345if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12346 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12347else
12348 :
12349fi
12350
12351fi
12352
12353lt_prog_compiler_wl=
12354lt_prog_compiler_pic=
12355lt_prog_compiler_static=
12356
12357echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12358echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012359
12360 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012361 lt_prog_compiler_wl='-Wl,'
12362 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012363
12364 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012365 aix*)
12366 # All AIX code is PIC.
12367 if test "$host_cpu" = ia64; then
12368 # AIX 5 now supports IA64 processor
12369 lt_prog_compiler_static='-Bstatic'
12370 fi
John Criswell7a73b802003-06-30 21:59:07 +000012371 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012372
John Criswell7a73b802003-06-30 21:59:07 +000012373 amigaos*)
12374 # FIXME: we need at least 68020 code to build shared libraries, but
12375 # adding the `-m68020' flag to GCC prevents building anything better,
12376 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012378 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012379
12380 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012381 # PIC is the default for these OSes.
12382 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012383
12384 mingw* | pw32* | os2*)
12385 # This hack is so that the source file can tell whether it is being
12386 # built for inclusion in a dll (and should export symbols for example).
12387 lt_prog_compiler_pic='-DDLL_EXPORT'
12388 ;;
12389
John Criswell7a73b802003-06-30 21:59:07 +000012390 darwin* | rhapsody*)
12391 # PIC is the default on this platform
12392 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012393 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012394 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012395
12396 msdosdjgpp*)
12397 # Just because we use GCC doesn't mean we suddenly get shared libraries
12398 # on systems that don't support them.
12399 lt_prog_compiler_can_build_shared=no
12400 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012401 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012402
John Criswell7a73b802003-06-30 21:59:07 +000012403 sysv4*MP*)
12404 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012405 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012406 fi
12407 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012408
12409 hpux*)
12410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12411 # not for PA HP-UX.
12412 case "$host_cpu" in
12413 hppa*64*|ia64*)
12414 # +Z the default
12415 ;;
12416 *)
12417 lt_prog_compiler_pic='-fPIC'
12418 ;;
12419 esac
12420 ;;
12421
John Criswell7a73b802003-06-30 21:59:07 +000012422 *)
John Criswell47fdd832003-07-14 16:52:07 +000012423 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012424 ;;
12425 esac
12426 else
John Criswell47fdd832003-07-14 16:52:07 +000012427 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012428 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012429 aix*)
12430 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012431 if test "$host_cpu" = ia64; then
12432 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012433 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012434 else
John Criswell47fdd832003-07-14 16:52:07 +000012435 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012436 fi
12437 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012438 darwin*)
12439 # PIC is the default on this platform
12440 # Common symbols not allowed in MH_DYLIB files
12441 case "$cc_basename" in
12442 xlc*)
12443 lt_prog_compiler_pic='-qnocommon'
12444 lt_prog_compiler_wl='-Wl,'
12445 ;;
12446 esac
12447 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012448
John Criswell47fdd832003-07-14 16:52:07 +000012449 mingw* | pw32* | os2*)
12450 # This hack is so that the source file can tell whether it is being
12451 # built for inclusion in a dll (and should export symbols for example).
12452 lt_prog_compiler_pic='-DDLL_EXPORT'
12453 ;;
12454
John Criswell7a73b802003-06-30 21:59:07 +000012455 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012456 lt_prog_compiler_wl='-Wl,'
12457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12458 # not for PA HP-UX.
12459 case "$host_cpu" in
12460 hppa*64*|ia64*)
12461 # +Z the default
12462 ;;
12463 *)
12464 lt_prog_compiler_pic='+Z'
12465 ;;
12466 esac
12467 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12468 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012469 ;;
12470
John Criswell47fdd832003-07-14 16:52:07 +000012471 irix5* | irix6* | nonstopux*)
12472 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012473 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012474 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012475 ;;
12476
12477 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012478 lt_prog_compiler_pic='-KPIC'
12479 lt_prog_compiler_static='-Bstatic'
12480 ;;
12481
12482 linux*)
12483 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012484 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012485 lt_prog_compiler_wl='-Wl,'
12486 lt_prog_compiler_pic='-KPIC'
12487 lt_prog_compiler_static='-static'
12488 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012489 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012490 lt_prog_compiler_wl='-Wl,'
12491 # All Alpha code is PIC.
12492 lt_prog_compiler_static='-non_shared'
12493 ;;
12494 esac
John Criswell7a73b802003-06-30 21:59:07 +000012495 ;;
12496
12497 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012498 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012499 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012500 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012501 ;;
12502
12503 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012504 lt_prog_compiler_pic='-Kpic'
12505 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012506 ;;
12507
12508 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012509 lt_prog_compiler_wl='-Wl,'
12510 lt_prog_compiler_pic='-KPIC'
12511 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012512 ;;
12513
12514 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012515 lt_prog_compiler_wl='-Qoption ld '
12516 lt_prog_compiler_pic='-PIC'
12517 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012518 ;;
12519
12520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012521 lt_prog_compiler_wl='-Wl,'
12522 lt_prog_compiler_pic='-KPIC'
12523 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012524 ;;
12525
12526 sysv4*MP*)
12527 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012528 lt_prog_compiler_pic='-Kconform_pic'
12529 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012530 fi
12531 ;;
12532
John Criswell47fdd832003-07-14 16:52:07 +000012533 uts4*)
12534 lt_prog_compiler_pic='-pic'
12535 lt_prog_compiler_static='-Bstatic'
12536 ;;
12537
John Criswell7a73b802003-06-30 21:59:07 +000012538 *)
John Criswell47fdd832003-07-14 16:52:07 +000012539 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012540 ;;
12541 esac
12542 fi
12543
John Criswell47fdd832003-07-14 16:52:07 +000012544echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12545echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012546
John Criswell47fdd832003-07-14 16:52:07 +000012547#
12548# Check to make sure the PIC flag actually works.
12549#
12550if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012551
12552echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012553echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12554if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556else
John Criswell47fdd832003-07-14 16:52:07 +000012557 lt_prog_compiler_pic_works=no
12558 ac_outfile=conftest.$ac_objext
12559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12560 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12561 # Insert the option either (1) after the last *FLAGS variable, or
12562 # (2) before a word containing "conftest.", or (3) at the end.
12563 # Note that $ac_compile itself does not contain backslashes and begins
12564 # with a dollar sign (not a hyphen), so the echo should work correctly.
12565 # The option is referenced via a variable to avoid confusing sed.
12566 lt_compile=`echo "$ac_compile" | $SED \
12567 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12569 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000012570 (eval echo "\"\$as_me:12570: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012571 (eval "$lt_compile" 2>conftest.err)
12572 ac_status=$?
12573 cat conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000012574 echo "$as_me:12574: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012575 if (exit $ac_status) && test -s "$ac_outfile"; then
12576 # The compiler can only warn and ignore the option if not recognized
12577 # So say no if there are warnings
12578 if test ! -s conftest.err; then
12579 lt_prog_compiler_pic_works=yes
12580 fi
12581 fi
12582 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012583
John Criswell47fdd832003-07-14 16:52:07 +000012584fi
12585echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12586echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012587
John Criswell47fdd832003-07-14 16:52:07 +000012588if test x"$lt_prog_compiler_pic_works" = xyes; then
12589 case $lt_prog_compiler_pic in
12590 "" | " "*) ;;
12591 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12592 esac
John Criswell7a73b802003-06-30 21:59:07 +000012593else
John Criswell47fdd832003-07-14 16:52:07 +000012594 lt_prog_compiler_pic=
12595 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012596fi
12597
John Criswell7a73b802003-06-30 21:59:07 +000012598fi
John Criswell47fdd832003-07-14 16:52:07 +000012599case "$host_os" in
12600 # For platforms which do not support PIC, -DPIC is meaningless:
12601 *djgpp*)
12602 lt_prog_compiler_pic=
12603 ;;
12604 *)
12605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12606 ;;
12607esac
John Criswell7a73b802003-06-30 21:59:07 +000012608
John Criswell7a73b802003-06-30 21:59:07 +000012609echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12610echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012611if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613else
John Criswell47fdd832003-07-14 16:52:07 +000012614 lt_cv_prog_compiler_c_o=no
12615 $rm -r conftest 2>/dev/null
12616 mkdir conftest
12617 cd conftest
12618 mkdir out
12619 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012620
John Criswell47fdd832003-07-14 16:52:07 +000012621 lt_compiler_flag="-o out/conftest2.$ac_objext"
12622 # Insert the option either (1) after the last *FLAGS variable, or
12623 # (2) before a word containing "conftest.", or (3) at the end.
12624 # Note that $ac_compile itself does not contain backslashes and begins
12625 # with a dollar sign (not a hyphen), so the echo should work correctly.
12626 lt_compile=`echo "$ac_compile" | $SED \
12627 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12629 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000012630 (eval echo "\"\$as_me:12630: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012631 (eval "$lt_compile" 2>out/conftest.err)
12632 ac_status=$?
12633 cat out/conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000012634 echo "$as_me:12634: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12636 then
12637 # The compiler can only warn and ignore the option if not recognized
12638 # So say no if there are warnings
12639 if test ! -s out/conftest.err; then
12640 lt_cv_prog_compiler_c_o=yes
12641 fi
12642 fi
12643 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012644 $rm conftest*
12645 # SGI C++ compiler will create directory out/ii_files/ for
12646 # template instantiation
12647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12648 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012649 cd ..
12650 rmdir conftest
12651 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012652
12653fi
John Criswell47fdd832003-07-14 16:52:07 +000012654echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12655echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012656
John Criswell7a73b802003-06-30 21:59:07 +000012657
John Criswell7a73b802003-06-30 21:59:07 +000012658hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012659if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012660 # do not overwrite the value of need_locks provided by the user
12661 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12662echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12663 hard_links=yes
12664 $rm conftest*
12665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12666 touch conftest.a
12667 ln conftest.a conftest.b 2>&5 || hard_links=no
12668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12669 echo "$as_me:$LINENO: result: $hard_links" >&5
12670echo "${ECHO_T}$hard_links" >&6
12671 if test "$hard_links" = no; then
12672 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12673echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12674 need_locks=warn
12675 fi
12676else
12677 need_locks=no
12678fi
John Criswell7a73b802003-06-30 21:59:07 +000012679
John Criswell47fdd832003-07-14 16:52:07 +000012680echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12681echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12682
12683 runpath_var=
12684 allow_undefined_flag=
12685 enable_shared_with_static_runtimes=no
12686 archive_cmds=
12687 archive_expsym_cmds=
12688 old_archive_From_new_cmds=
12689 old_archive_from_expsyms_cmds=
12690 export_dynamic_flag_spec=
12691 whole_archive_flag_spec=
12692 thread_safe_flag_spec=
12693 hardcode_libdir_flag_spec=
12694 hardcode_libdir_flag_spec_ld=
12695 hardcode_libdir_separator=
12696 hardcode_direct=no
12697 hardcode_minus_L=no
12698 hardcode_shlibpath_var=unsupported
12699 link_all_deplibs=unknown
12700 hardcode_automatic=no
12701 module_cmds=
12702 module_expsym_cmds=
12703 always_export_symbols=no
12704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12705 # include_expsyms should be a list of space-separated symbols to be *always*
12706 # included in the symbol list
12707 include_expsyms=
12708 # exclude_expsyms can be an extended regexp of symbols to exclude
12709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12711 # as well as any symbol that contains `d'.
12712 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12714 # platforms (ab)use it in PIC code, but their linkers get confused if
12715 # the symbol is explicitly referenced. Since portable code cannot
12716 # rely on this symbol name, it's probably fine to never include it in
12717 # preloaded symbol tables.
12718 extract_expsyms_cmds=
12719
12720 case $host_os in
12721 cygwin* | mingw* | pw32*)
12722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12723 # When not using gcc, we currently assume that we are using
12724 # Microsoft Visual C++.
12725 if test "$GCC" != yes; then
12726 with_gnu_ld=no
12727 fi
12728 ;;
12729 openbsd*)
12730 with_gnu_ld=no
12731 ;;
12732 esac
12733
12734 ld_shlibs=yes
12735 if test "$with_gnu_ld" = yes; then
12736 # If archive_cmds runs LD, not CC, wlarc should be empty
12737 wlarc='${wl}'
12738
12739 # See if GNU ld supports shared libraries.
12740 case $host_os in
12741 aix3* | aix4* | aix5*)
12742 # On AIX/PPC, the GNU linker is very broken
12743 if test "$host_cpu" != ia64; then
12744 ld_shlibs=no
12745 cat <<EOF 1>&2
12746
12747*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12748*** to be unable to reliably create shared libraries on AIX.
12749*** Therefore, libtool is disabling shared libraries support. If you
12750*** really care for shared libraries, you may want to modify your PATH
12751*** so that a non-GNU linker is found, and then restart.
12752
12753EOF
12754 fi
12755 ;;
12756
12757 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012758 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 +000012759 hardcode_libdir_flag_spec='-L$libdir'
12760 hardcode_minus_L=yes
12761
12762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12763 # that the semantics of dynamic libraries on AmigaOS, at least up
12764 # to version 4, is to share data among multiple programs linked
12765 # with the same dynamic library. Since this doesn't match the
12766 # behavior of shared libraries on other platforms, we can't use
12767 # them.
12768 ld_shlibs=no
12769 ;;
12770
12771 beos*)
12772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12773 allow_undefined_flag=unsupported
12774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12775 # support --undefined. This deserves some investigation. FIXME
12776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12777 else
12778 ld_shlibs=no
12779 fi
12780 ;;
12781
12782 cygwin* | mingw* | pw32*)
12783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12784 # as there is no search path for DLLs.
12785 hardcode_libdir_flag_spec='-L$libdir'
12786 allow_undefined_flag=unsupported
12787 always_export_symbols=no
12788 enable_shared_with_static_runtimes=yes
12789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12790
12791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12793 # If the export-symbols file already is a .def file (1st line
12794 # is EXPORTS), use it as is; otherwise, prepend...
12795 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12796 cp $export_symbols $output_objdir/$soname.def;
12797 else
12798 echo EXPORTS > $output_objdir/$soname.def;
12799 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012800 fi~
12801 $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 +000012802 else
12803 ld_shlibs=no
12804 fi
12805 ;;
12806
12807 netbsd*)
12808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12809 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12810 wlarc=
12811 else
12812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12814 fi
12815 ;;
12816
12817 solaris* | sysv5*)
12818 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12819 ld_shlibs=no
12820 cat <<EOF 1>&2
12821
12822*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12823*** create shared libraries on Solaris systems. Therefore, libtool
12824*** is disabling shared libraries support. We urge you to upgrade GNU
12825*** binutils to release 2.9.1 or newer. Another option is to modify
12826*** your PATH or compiler configuration so that the native linker is
12827*** used, and then restart.
12828
12829EOF
12830 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12833 else
12834 ld_shlibs=no
12835 fi
12836 ;;
12837
12838 sunos4*)
12839 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12840 wlarc=
12841 hardcode_direct=yes
12842 hardcode_shlibpath_var=no
12843 ;;
12844
Reid Spencer2706f8c2004-09-19 23:53:36 +000012845 linux*)
12846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12847 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12848 archive_cmds="$tmp_archive_cmds"
12849 supports_anon_versioning=no
12850 case `$LD -v 2>/dev/null` in
12851 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12854 *\ 2.11.*) ;; # other 2.11 versions
12855 *) supports_anon_versioning=yes ;;
12856 esac
12857 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012858 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12859cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12860$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012861 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12862 else
12863 archive_expsym_cmds="$tmp_archive_cmds"
12864 fi
12865 else
12866 ld_shlibs=no
12867 fi
12868 ;;
12869
John Criswell47fdd832003-07-14 16:52:07 +000012870 *)
12871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12874 else
12875 ld_shlibs=no
12876 fi
12877 ;;
12878 esac
12879
12880 if test "$ld_shlibs" = yes; then
12881 runpath_var=LD_RUN_PATH
12882 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12883 export_dynamic_flag_spec='${wl}--export-dynamic'
12884 # ancient GNU ld didn't support --whole-archive et. al.
12885 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12886 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12887 else
12888 whole_archive_flag_spec=
12889 fi
12890 fi
12891 else
12892 # PORTME fill in a description of your system's linker (not GNU ld)
12893 case $host_os in
12894 aix3*)
12895 allow_undefined_flag=unsupported
12896 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012897 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 +000012898 # Note: this linker hardcodes the directories in LIBPATH if there
12899 # are no directories specified by -L.
12900 hardcode_minus_L=yes
12901 if test "$GCC" = yes && test -z "$link_static_flag"; then
12902 # Neither direct hardcoding nor static linking is supported with a
12903 # broken collect2.
12904 hardcode_direct=unsupported
12905 fi
12906 ;;
12907
12908 aix4* | aix5*)
12909 if test "$host_cpu" = ia64; then
12910 # On IA64, the linker does run time linking by default, so we don't
12911 # have to do anything special.
12912 aix_use_runtimelinking=no
12913 exp_sym_flag='-Bexport'
12914 no_entry_flag=""
12915 else
12916 # If we're using GNU nm, then we don't want the "-C" option.
12917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12918 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12919 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'
12920 else
12921 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'
12922 fi
12923 aix_use_runtimelinking=no
12924
12925 # Test if we are trying to use run time linking or normal
12926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12927 # need to do runtime linking.
12928 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12929 for ld_flag in $LDFLAGS; do
12930 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12931 aix_use_runtimelinking=yes
12932 break
12933 fi
12934 done
12935 esac
12936
12937 exp_sym_flag='-bexport'
12938 no_entry_flag='-bnoentry'
12939 fi
12940
12941 # When large executables or shared objects are built, AIX ld can
12942 # have problems creating the table of contents. If linking a library
12943 # or program results in "error TOC overflow" add -mminimal-toc to
12944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12946
12947 archive_cmds=''
12948 hardcode_direct=yes
12949 hardcode_libdir_separator=':'
12950 link_all_deplibs=yes
12951
12952 if test "$GCC" = yes; then
12953 case $host_os in aix4.012|aix4.012.*)
12954 # We only want to do this on AIX 4.2 and lower, the check
12955 # below for broken collect2 doesn't work under 4.3+
12956 collect2name=`${CC} -print-prog-name=collect2`
12957 if test -f "$collect2name" && \
12958 strings "$collect2name" | grep resolve_lib_name >/dev/null
12959 then
12960 # We have reworked collect2
12961 hardcode_direct=yes
12962 else
12963 # We have old collect2
12964 hardcode_direct=unsupported
12965 # It fails to find uninstalled libraries when the uninstalled
12966 # path is not listed in the libpath. Setting hardcode_minus_L
12967 # to unsupported forces relinking
12968 hardcode_minus_L=yes
12969 hardcode_libdir_flag_spec='-L$libdir'
12970 hardcode_libdir_separator=
12971 fi
12972 esac
12973 shared_flag='-shared'
12974 else
12975 # not using gcc
12976 if test "$host_cpu" = ia64; then
12977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12978 # chokes on -Wl,-G. The following line is correct:
12979 shared_flag='-G'
12980 else
12981 if test "$aix_use_runtimelinking" = yes; then
12982 shared_flag='${wl}-G'
12983 else
12984 shared_flag='${wl}-bM:SRE'
12985 fi
12986 fi
12987 fi
12988
12989 # It seems that -bexpall does not export symbols beginning with
12990 # underscore (_), so it is better to generate a list of symbols to export.
12991 always_export_symbols=yes
12992 if test "$aix_use_runtimelinking" = yes; then
12993 # Warning - without using the other runtime loading flags (-brtl),
12994 # -berok will link without error, but may produce a broken library.
12995 allow_undefined_flag='-berok'
12996 # Determine the default libpath from the value encoded in an empty executable.
12997 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012998/* confdefs.h. */
12999_ACEOF
13000cat confdefs.h >>conftest.$ac_ext
13001cat >>conftest.$ac_ext <<_ACEOF
13002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013003
John Criswell7a73b802003-06-30 21:59:07 +000013004int
13005main ()
13006{
John Criswell47fdd832003-07-14 16:52:07 +000013007
John Criswell7a73b802003-06-30 21:59:07 +000013008 ;
13009 return 0;
13010}
13011_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000013012rm -f conftest.$ac_objext conftest$ac_exeext
13013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013014 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013015 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013021 { ac_try='test -z "$ac_c_werror_flag"
13022 || test ! -s conftest.err'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013034
John Criswell47fdd832003-07-14 16:52:07 +000013035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13036}'`
13037# Check for a 64-bit object if we didn't find anything.
13038if 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; }
13039}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000013040else
13041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013042sed 's/^/| /' conftest.$ac_ext >&5
13043
John Criswell7a73b802003-06-30 21:59:07 +000013044fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013045rm -f conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000013048
John Criswell47fdd832003-07-14 16:52:07 +000013049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13050 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"
13051 else
13052 if test "$host_cpu" = ia64; then
13053 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13054 allow_undefined_flag="-z nodefs"
13055 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"
13056 else
13057 # Determine the default libpath from the value encoded in an empty executable.
13058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013064
John Criswell47fdd832003-07-14 16:52:07 +000013065int
13066main ()
13067{
John Criswell7a73b802003-06-30 21:59:07 +000013068
John Criswell47fdd832003-07-14 16:52:07 +000013069 ;
13070 return 0;
13071}
13072_ACEOF
13073rm -f conftest.$ac_objext conftest$ac_exeext
13074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013075 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013076 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013095
John Criswell47fdd832003-07-14 16:52:07 +000013096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13097}'`
13098# Check for a 64-bit object if we didn't find anything.
13099if 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; }
13100}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000013101else
John Criswell47fdd832003-07-14 16:52:07 +000013102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013103sed 's/^/| /' conftest.$ac_ext >&5
13104
John Criswell47fdd832003-07-14 16:52:07 +000013105fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013106rm -f conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000013109
John Criswell47fdd832003-07-14 16:52:07 +000013110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13111 # Warning - without using the other run time loading flags,
13112 # -berok will link without error, but may produce a broken library.
13113 no_undefined_flag=' ${wl}-bernotok'
13114 allow_undefined_flag=' ${wl}-berok'
13115 # -bexpall does not export symbols beginning with underscore (_)
13116 always_export_symbols=yes
13117 # Exported symbols can be pulled into shared objects from archives
13118 whole_archive_flag_spec=' '
13119 archive_cmds_need_lc=yes
13120 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000013121 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 +000013122 fi
13123 fi
John Criswell7a73b802003-06-30 21:59:07 +000013124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013125
13126 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013127 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 +000013128 hardcode_libdir_flag_spec='-L$libdir'
13129 hardcode_minus_L=yes
13130 # see comment about different semantics on the GNU ld section
13131 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000013132 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013133
Reid Spencer2706f8c2004-09-19 23:53:36 +000013134 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013135 export_dynamic_flag_spec=-rdynamic
13136 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013137
John Criswell47fdd832003-07-14 16:52:07 +000013138 cygwin* | mingw* | pw32*)
13139 # When not using gcc, we currently assume that we are using
13140 # Microsoft Visual C++.
13141 # hardcode_libdir_flag_spec is actually meaningless, as there is
13142 # no search path for DLLs.
13143 hardcode_libdir_flag_spec=' '
13144 allow_undefined_flag=unsupported
13145 # Tell ltmain to make .lib files, not .a files.
13146 libext=lib
13147 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013148 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013149 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000013150 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000013151 # The linker will automatically build a .lib file if we build a DLL.
13152 old_archive_From_new_cmds='true'
13153 # FIXME: Should let the user specify the lib program.
13154 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13155 fix_srcfile_path='`cygpath -w "$srcfile"`'
13156 enable_shared_with_static_runtimes=yes
13157 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013158
John Criswell47fdd832003-07-14 16:52:07 +000013159 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000013160 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013161 rhapsody* | darwin1.[012])
13162 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13163 ;;
13164 *) # Darwin 1.3 on
13165 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13166 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13167 else
13168 case ${MACOSX_DEPLOYMENT_TARGET} in
13169 10.[012])
13170 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13171 ;;
13172 10.*)
13173 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13174 ;;
13175 esac
13176 fi
13177 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013178 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013179 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000013180 hardcode_direct=no
13181 hardcode_automatic=yes
13182 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013183 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000013184 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013185 if test "$GCC" = yes ; then
13186 output_verbose_link_cmd='echo'
13187 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13188 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13189 # 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 +000013190 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}'
13191 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 +000013192 else
13193 case "$cc_basename" in
13194 xlc*)
13195 output_verbose_link_cmd='echo'
13196 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13197 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13198 # 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 +000013199 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}'
13200 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 +000013201 ;;
13202 *)
13203 ld_shlibs=no
13204 ;;
13205 esac
John Criswell7a73b802003-06-30 21:59:07 +000013206 fi
John Criswell47fdd832003-07-14 16:52:07 +000013207 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013208
John Criswell47fdd832003-07-14 16:52:07 +000013209 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000013210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000013211 hardcode_libdir_flag_spec='-L$libdir'
13212 hardcode_shlibpath_var=no
13213 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013214
John Criswell47fdd832003-07-14 16:52:07 +000013215 freebsd1*)
13216 ld_shlibs=no
13217 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013218
John Criswell47fdd832003-07-14 16:52:07 +000013219 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13220 # support. Future versions do this automatically, but an explicit c++rt0.o
13221 # does not break anything, and helps significantly (at the cost of a little
13222 # extra space).
13223 freebsd2.2*)
13224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13225 hardcode_libdir_flag_spec='-R$libdir'
13226 hardcode_direct=yes
13227 hardcode_shlibpath_var=no
13228 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013229
John Criswell47fdd832003-07-14 16:52:07 +000013230 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13231 freebsd2*)
13232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13233 hardcode_direct=yes
13234 hardcode_minus_L=yes
13235 hardcode_shlibpath_var=no
13236 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013237
John Criswell47fdd832003-07-14 16:52:07 +000013238 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013239 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013240 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13241 hardcode_libdir_flag_spec='-R$libdir'
13242 hardcode_direct=yes
13243 hardcode_shlibpath_var=no
13244 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013245
John Criswell47fdd832003-07-14 16:52:07 +000013246 hpux9*)
13247 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013248 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 +000013249 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013250 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 +000013251 fi
13252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13253 hardcode_libdir_separator=:
13254 hardcode_direct=yes
13255
13256 # hardcode_minus_L: Not really in the search PATH,
13257 # but as the default location of the library.
13258 hardcode_minus_L=yes
13259 export_dynamic_flag_spec='${wl}-E'
13260 ;;
13261
13262 hpux10* | hpux11*)
13263 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13264 case "$host_cpu" in
13265 hppa*64*|ia64*)
13266 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13267 ;;
13268 *)
13269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13270 ;;
13271 esac
13272 else
13273 case "$host_cpu" in
13274 hppa*64*|ia64*)
13275 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13276 ;;
13277 *)
13278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13279 ;;
13280 esac
13281 fi
13282 if test "$with_gnu_ld" = no; then
13283 case "$host_cpu" in
13284 hppa*64*)
13285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13286 hardcode_libdir_flag_spec_ld='+b $libdir'
13287 hardcode_libdir_separator=:
13288 hardcode_direct=no
13289 hardcode_shlibpath_var=no
13290 ;;
13291 ia64*)
13292 hardcode_libdir_flag_spec='-L$libdir'
13293 hardcode_direct=no
13294 hardcode_shlibpath_var=no
13295
13296 # hardcode_minus_L: Not really in the search PATH,
13297 # but as the default location of the library.
13298 hardcode_minus_L=yes
13299 ;;
13300 *)
13301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13302 hardcode_libdir_separator=:
13303 hardcode_direct=yes
13304 export_dynamic_flag_spec='${wl}-E'
13305
13306 # hardcode_minus_L: Not really in the search PATH,
13307 # but as the default location of the library.
13308 hardcode_minus_L=yes
13309 ;;
13310 esac
13311 fi
13312 ;;
13313
13314 irix5* | irix6* | nonstopux*)
13315 if test "$GCC" = yes; then
13316 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'
13317 else
13318 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'
13319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13320 fi
13321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13322 hardcode_libdir_separator=:
13323 link_all_deplibs=yes
13324 ;;
13325
13326 netbsd*)
13327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13329 else
13330 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13331 fi
13332 hardcode_libdir_flag_spec='-R$libdir'
13333 hardcode_direct=yes
13334 hardcode_shlibpath_var=no
13335 ;;
13336
13337 newsos6)
13338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13339 hardcode_direct=yes
13340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator=:
13342 hardcode_shlibpath_var=no
13343 ;;
13344
13345 openbsd*)
13346 hardcode_direct=yes
13347 hardcode_shlibpath_var=no
13348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013350 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 +000013351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13352 export_dynamic_flag_spec='${wl}-E'
13353 else
13354 case $host_os in
13355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13357 hardcode_libdir_flag_spec='-R$libdir'
13358 ;;
13359 *)
13360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13362 ;;
13363 esac
13364 fi
13365 ;;
13366
13367 os2*)
13368 hardcode_libdir_flag_spec='-L$libdir'
13369 hardcode_minus_L=yes
13370 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013371 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 +000013372 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13373 ;;
13374
13375 osf3*)
13376 if test "$GCC" = yes; then
13377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13378 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'
13379 else
13380 allow_undefined_flag=' -expect_unresolved \*'
13381 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'
13382 fi
13383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13384 hardcode_libdir_separator=:
13385 ;;
13386
13387 osf4* | osf5*) # as osf3* with the addition of -msym flag
13388 if test "$GCC" = yes; then
13389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13390 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'
13391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13392 else
13393 allow_undefined_flag=' -expect_unresolved \*'
13394 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 +000013395 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13396 $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'
13397
John Criswell47fdd832003-07-14 16:52:07 +000013398 # Both c and cxx compiler support -rpath directly
13399 hardcode_libdir_flag_spec='-rpath $libdir'
13400 fi
13401 hardcode_libdir_separator=:
13402 ;;
13403
13404 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13406 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013407 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013408 runpath_var=LD_RUN_PATH
13409 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013410 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013411
John Criswell47fdd832003-07-14 16:52:07 +000013412 solaris*)
13413 no_undefined_flag=' -z text'
13414 if test "$GCC" = yes; then
13415 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013416 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13417 $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 +000013418 else
13419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013420 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13421 $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 +000013422 fi
13423 hardcode_libdir_flag_spec='-R$libdir'
13424 hardcode_shlibpath_var=no
13425 case $host_os in
13426 solaris2.[0-5] | solaris2.[0-5].*) ;;
13427 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13429 esac
13430 link_all_deplibs=yes
13431 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013432
John Criswell47fdd832003-07-14 16:52:07 +000013433 sunos4*)
13434 if test "x$host_vendor" = xsequent; then
13435 # Use $CC to link under sequent, because it throws in some extra .o
13436 # files that make .init and .fini sections work.
13437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13438 else
13439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13440 fi
13441 hardcode_libdir_flag_spec='-L$libdir'
13442 hardcode_direct=yes
13443 hardcode_minus_L=yes
13444 hardcode_shlibpath_var=no
13445 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013446
John Criswell47fdd832003-07-14 16:52:07 +000013447 sysv4)
13448 case $host_vendor in
13449 sni)
13450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_direct=yes # is this really true???
13452 ;;
13453 siemens)
13454 ## LD is ld it makes a PLAMLIB
13455 ## CC just makes a GrossModule.
13456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13457 reload_cmds='$CC -r -o $output$reload_objs'
13458 hardcode_direct=no
13459 ;;
13460 motorola)
13461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13463 ;;
13464 esac
13465 runpath_var='LD_RUN_PATH'
13466 hardcode_shlibpath_var=no
13467 ;;
13468
13469 sysv4.3*)
13470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_shlibpath_var=no
13472 export_dynamic_flag_spec='-Bexport'
13473 ;;
13474
13475 sysv4*MP*)
13476 if test -d /usr/nec; then
13477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_shlibpath_var=no
13479 runpath_var=LD_RUN_PATH
13480 hardcode_runpath_var=yes
13481 ld_shlibs=yes
13482 fi
13483 ;;
13484
13485 sysv4.2uw2*)
13486 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct=yes
13488 hardcode_minus_L=no
13489 hardcode_shlibpath_var=no
13490 hardcode_runpath_var=yes
13491 runpath_var=LD_RUN_PATH
13492 ;;
13493
13494 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13495 no_undefined_flag='${wl}-z ${wl}text'
13496 if test "$GCC" = yes; then
13497 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 else
13499 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 fi
13501 runpath_var='LD_RUN_PATH'
13502 hardcode_shlibpath_var=no
13503 ;;
13504
13505 sysv5*)
13506 no_undefined_flag=' -z text'
13507 # $CC -shared without GNU ld will not create a library from C++
13508 # object files and a static libstdc++, better avoid it by now
13509 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013510 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13511 $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 +000013512 hardcode_libdir_flag_spec=
13513 hardcode_shlibpath_var=no
13514 runpath_var='LD_RUN_PATH'
13515 ;;
13516
13517 uts4*)
13518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13519 hardcode_libdir_flag_spec='-L$libdir'
13520 hardcode_shlibpath_var=no
13521 ;;
13522
13523 *)
13524 ld_shlibs=no
13525 ;;
13526 esac
13527 fi
13528
John Criswell7a73b802003-06-30 21:59:07 +000013529echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13530echo "${ECHO_T}$ld_shlibs" >&6
13531test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013532
John Criswell47fdd832003-07-14 16:52:07 +000013533variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13534if test "$GCC" = yes; then
13535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13536fi
13537
13538#
13539# Do we need to explicitly link libc?
13540#
13541case "x$archive_cmds_need_lc" in
13542x|xyes)
13543 # Assume -lc should be added
13544 archive_cmds_need_lc=yes
13545
13546 if test "$enable_shared" = yes && test "$GCC" = yes; then
13547 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013548 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013549 # FIXME: we may have to deal with multi-command sequences.
13550 ;;
13551 '$CC '*)
13552 # Test whether the compiler implicitly links with -lc since on some
13553 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13554 # to ld, don't add -lc before -lgcc.
13555 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13556echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13557 $rm conftest*
13558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13559
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } 2>conftest.err; then
13565 soname=conftest
13566 lib=conftest
13567 libobjs=conftest.$ac_objext
13568 deplibs=
13569 wl=$lt_prog_compiler_wl
13570 compiler_flags=-v
13571 linker_flags=-v
13572 verstring=
13573 output_objdir=.
13574 libname=conftest
13575 lt_save_allow_undefined_flag=$allow_undefined_flag
13576 allow_undefined_flag=
13577 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13578 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }
13582 then
13583 archive_cmds_need_lc=no
13584 else
13585 archive_cmds_need_lc=yes
13586 fi
13587 allow_undefined_flag=$lt_save_allow_undefined_flag
13588 else
13589 cat conftest.err 1>&5
13590 fi
13591 $rm conftest*
13592 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13593echo "${ECHO_T}$archive_cmds_need_lc" >&6
13594 ;;
13595 esac
13596 fi
13597 ;;
13598esac
13599
John Criswell7a73b802003-06-30 21:59:07 +000013600echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13601echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13602library_names_spec=
13603libname_spec='lib$name'
13604soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013605shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013606postinstall_cmds=
13607postuninstall_cmds=
13608finish_cmds=
13609finish_eval=
13610shlibpath_var=
13611shlibpath_overrides_runpath=unknown
13612version_type=none
13613dynamic_linker="$host_os ld.so"
13614sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013615if test "$GCC" = yes; then
13616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13617 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13618 # if the path contains ";" then we assume it to be the separator
13619 # otherwise default to the standard path separator (i.e. ":") - it is
13620 # assumed that no part of a normal pathname contains ";" but that should
13621 # okay in the real world where ";" in dirpaths is itself problematic.
13622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13623 else
13624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13625 fi
13626else
13627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13628fi
13629need_lib_prefix=unknown
13630hardcode_into_libs=no
13631
13632# when you set need_version to no, make sure it does not cause -set_version
13633# flags to be left without arguments
13634need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013635
13636case $host_os in
13637aix3*)
13638 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013640 shlibpath_var=LIBPATH
13641
John Criswell47fdd832003-07-14 16:52:07 +000013642 # AIX 3 has no versioning support, so we append a major version to the name.
13643 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013644 ;;
13645
13646aix4* | aix5*)
13647 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013648 need_lib_prefix=no
13649 need_version=no
13650 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013651 if test "$host_cpu" = ia64; then
13652 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013654 shlibpath_var=LD_LIBRARY_PATH
13655 else
13656 # With GCC up to 2.95.x, collect2 would create an import file
13657 # for dependence libraries. The import file would start with
13658 # the line `#! .'. This would cause the generated library to
13659 # depend on `.', always an invalid library. This was fixed in
13660 # development snapshots of GCC prior to 3.0.
13661 case $host_os in
13662 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13664 echo ' yes '
13665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13666 :
13667 else
13668 can_build_shared=no
13669 fi
13670 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013671 esac
John Criswell47fdd832003-07-14 16:52:07 +000013672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13673 # soname into executable. Probably we can add versioning support to
13674 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013675 if test "$aix_use_runtimelinking" = yes; then
13676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13677 # instead of lib<name>.a to let people know that these are not
13678 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013680 else
13681 # We preserve .a as extension for shared libraries through AIX4.2
13682 # and later when we are not doing run time linking.
13683 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013684 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013685 fi
13686 shlibpath_var=LIBPATH
13687 fi
13688 ;;
13689
13690amigaos*)
13691 library_names_spec='$libname.ixlibrary $libname.a'
13692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013693 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 +000013694 ;;
13695
13696beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013697 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013698 dynamic_linker="$host_os ld.so"
13699 shlibpath_var=LIBRARY_PATH
13700 ;;
13701
Reid Spencer2706f8c2004-09-19 23:53:36 +000013702bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013703 version_type=linux
13704 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013711 # the default ld.so.conf also contains /usr/contrib/lib and
13712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13713 # libtool to hard-code these into programs
13714 ;;
13715
13716cygwin* | mingw* | pw32*)
13717 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013718 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013719 need_version=no
13720 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013721
John Criswell7a73b802003-06-30 21:59:07 +000013722 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013723 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013724 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013726 postinstall_cmds='base_file=`basename \${file}`~
13727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13728 dldir=$destdir/`dirname \$dlpath`~
13729 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013730 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13732 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013733 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013734 shlibpath_overrides_runpath=yes
13735
13736 case $host_os in
13737 cygwin*)
13738 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13739 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 +000013740 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013741 ;;
13742 mingw*)
13743 # MinGW DLLs use traditional 'lib' prefix
13744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13746 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13747 # It is most probably a Windows format PATH printed by
13748 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13749 # path with ; separators, and with drive letters. We can handle the
13750 # drive letters (cygwin fileutils understands them), so leave them,
13751 # especially as we might pass files found there to a mingw objdump,
13752 # which wouldn't understand a cygwinified path. Ahh.
13753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13754 else
13755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13756 fi
13757 ;;
13758 pw32*)
13759 # pw32 DLLs use 'pw' prefix rather than 'lib'
13760 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13761 ;;
13762 esac
John Criswell7a73b802003-06-30 21:59:07 +000013763 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013764
John Criswell7a73b802003-06-30 21:59:07 +000013765 *)
John Criswell47fdd832003-07-14 16:52:07 +000013766 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013767 ;;
13768 esac
13769 dynamic_linker='Win32 ld.exe'
13770 # FIXME: first we should search . and the directory the executable is in
13771 shlibpath_var=PATH
13772 ;;
13773
13774darwin* | rhapsody*)
13775 dynamic_linker="$host_os dyld"
13776 version_type=darwin
13777 need_lib_prefix=no
13778 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013779 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013780 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013781 shlibpath_overrides_runpath=yes
13782 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013783 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013784 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013785 if test "$GCC" = yes; then
13786 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"`
13787 else
13788 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013789 fi
13790 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13791 ;;
13792
13793dgux*)
13794 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'
13799 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013800 ;;
13801
13802freebsd1*)
13803 dynamic_linker=no
13804 ;;
13805
Reid Spencer2706f8c2004-09-19 23:53:36 +000013806kfreebsd*-gnu)
13807 version_type=linux
13808 need_lib_prefix=no
13809 need_version=no
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 shlibpath_var=LD_LIBRARY_PATH
13813 shlibpath_overrides_runpath=no
13814 hardcode_into_libs=yes
13815 dynamic_linker='GNU ld.so'
13816 ;;
13817
John Criswell7a73b802003-06-30 21:59:07 +000013818freebsd*)
13819 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13820 version_type=freebsd-$objformat
13821 case $version_type in
13822 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013824 need_version=no
13825 need_lib_prefix=no
13826 ;;
13827 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013829 need_version=yes
13830 ;;
13831 esac
13832 shlibpath_var=LD_LIBRARY_PATH
13833 case $host_os in
13834 freebsd2*)
13835 shlibpath_overrides_runpath=yes
13836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013837 freebsd3.01* | freebsdelf3.01*)
13838 shlibpath_overrides_runpath=yes
13839 hardcode_into_libs=yes
13840 ;;
13841 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013842 shlibpath_overrides_runpath=no
13843 hardcode_into_libs=yes
13844 ;;
13845 esac
13846 ;;
13847
13848gnu*)
13849 version_type=linux
13850 need_lib_prefix=no
13851 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13853 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013854 shlibpath_var=LD_LIBRARY_PATH
13855 hardcode_into_libs=yes
13856 ;;
13857
13858hpux9* | hpux10* | hpux11*)
13859 # Give a soname corresponding to the major version so that dld.sl refuses to
13860 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013861 version_type=sunos
13862 need_lib_prefix=no
13863 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013864 case "$host_cpu" in
13865 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013866 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013867 hardcode_into_libs=yes
13868 dynamic_linker="$host_os dld.so"
13869 shlibpath_var=LD_LIBRARY_PATH
13870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872 soname_spec='${libname}${release}${shared_ext}$major'
13873 if test "X$HPUX_IA64_MODE" = X32; then
13874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13875 else
13876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13877 fi
13878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13879 ;;
13880 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013882 hardcode_into_libs=yes
13883 dynamic_linker="$host_os dld.sl"
13884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13890 ;;
13891 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013892 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013893 dynamic_linker="$host_os dld.sl"
13894 shlibpath_var=SHLIB_PATH
13895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13897 soname_spec='${libname}${release}${shared_ext}$major'
13898 ;;
13899 esac
John Criswell7a73b802003-06-30 21:59:07 +000013900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13901 postinstall_cmds='chmod 555 $lib'
13902 ;;
13903
John Criswell47fdd832003-07-14 16:52:07 +000013904irix5* | irix6* | nonstopux*)
13905 case $host_os in
13906 nonstopux*) version_type=nonstopux ;;
13907 *)
13908 if test "$lt_cv_prog_gnu_ld" = yes; then
13909 version_type=linux
13910 else
13911 version_type=irix
13912 fi ;;
13913 esac
John Criswell7a73b802003-06-30 21:59:07 +000013914 need_lib_prefix=no
13915 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013916 soname_spec='${libname}${release}${shared_ext}$major'
13917 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 +000013918 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013919 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013920 libsuff= shlibsuff=
13921 ;;
13922 *)
13923 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13925 libsuff= shlibsuff= libmagic=32-bit;;
13926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13927 libsuff=32 shlibsuff=N32 libmagic=N32;;
13928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013930 *) libsuff= shlibsuff= libmagic=never-match;;
13931 esac
13932 ;;
13933 esac
13934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13935 shlibpath_overrides_runpath=no
13936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013938 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013939 ;;
13940
13941# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013942linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013943 dynamic_linker=no
13944 ;;
13945
13946# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013947linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013948 version_type=linux
13949 need_lib_prefix=no
13950 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 shlibpath_overrides_runpath=no
13956 # This implies no fast_install, which is unacceptable.
13957 # Some rework will be needed to allow for fast_install
13958 # before this can be enabled.
13959 hardcode_into_libs=yes
13960
Reid Spencer2706f8c2004-09-19 23:53:36 +000013961 # Append ld.so.conf contents to the search path
13962 if test -f /etc/ld.so.conf; then
13963 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13964 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13965 fi
13966
John Criswell7a73b802003-06-30 21:59:07 +000013967 # We used to test for /lib/ld.so.1 and disable shared libraries on
13968 # powerpc, because MkLinux only supported shared libraries with the
13969 # GNU dynamic linker. Since this was broken with cross compilers,
13970 # most powerpc-linux boxes support dynamic linking these days and
13971 # people can always --disable-shared, the test was removed, and we
13972 # assume the GNU/Linux dynamic linker is in use.
13973 dynamic_linker='GNU/Linux ld.so'
13974 ;;
13975
Reid Spencer2706f8c2004-09-19 23:53:36 +000013976knetbsd*-gnu)
13977 version_type=linux
13978 need_lib_prefix=no
13979 need_version=no
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 shlibpath_overrides_runpath=no
13984 hardcode_into_libs=yes
13985 dynamic_linker='GNU ld.so'
13986 ;;
13987
John Criswell7a73b802003-06-30 21:59:07 +000013988netbsd*)
13989 version_type=sunos
13990 need_lib_prefix=no
13991 need_version=no
13992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13995 dynamic_linker='NetBSD (a.out) ld.so'
13996 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013998 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013999 dynamic_linker='NetBSD ld.elf_so'
14000 fi
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=yes
14003 hardcode_into_libs=yes
14004 ;;
14005
14006newsos6)
14007 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 shlibpath_overrides_runpath=yes
14011 ;;
14012
Reid Spencer2706f8c2004-09-19 23:53:36 +000014013nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014014 version_type=linux
14015 need_lib_prefix=no
14016 need_version=no
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=yes
14021 ;;
14022
14023openbsd*)
14024 version_type=sunos
14025 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014026 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14029 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000014030 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 +000014031 case $host_os in
14032 openbsd2.[89] | openbsd2.[89].*)
14033 shlibpath_overrides_runpath=no
14034 ;;
14035 *)
14036 shlibpath_overrides_runpath=yes
14037 ;;
14038 esac
John Criswell7a73b802003-06-30 21:59:07 +000014039 else
14040 shlibpath_overrides_runpath=yes
14041 fi
John Criswell7a73b802003-06-30 21:59:07 +000014042 ;;
14043
14044os2*)
14045 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014046 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000014047 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000014048 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000014049 dynamic_linker='OS/2 ld.exe'
14050 shlibpath_var=LIBPATH
14051 ;;
14052
14053osf3* | osf4* | osf5*)
14054 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000014055 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000014056 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014057 soname_spec='${libname}${release}${shared_ext}$major'
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014059 shlibpath_var=LD_LIBRARY_PATH
14060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14062 ;;
14063
14064sco3.2v5*)
14065 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000014066 soname_spec='${libname}${release}${shared_ext}$major'
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000014068 shlibpath_var=LD_LIBRARY_PATH
14069 ;;
14070
14071solaris*)
14072 version_type=linux
14073 need_lib_prefix=no
14074 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14079 hardcode_into_libs=yes
14080 # ldd complains unless libraries are executable
14081 postinstall_cmds='chmod +x $lib'
14082 ;;
14083
14084sunos4*)
14085 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000014086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000014087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=yes
14090 if test "$with_gnu_ld" = yes; then
14091 need_lib_prefix=no
14092 fi
14093 need_version=yes
14094 ;;
14095
14096sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14097 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000014100 shlibpath_var=LD_LIBRARY_PATH
14101 case $host_vendor in
14102 sni)
14103 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000014104 need_lib_prefix=no
14105 export_dynamic_flag_spec='${wl}-Blargedynsym'
14106 runpath_var=LD_RUN_PATH
14107 ;;
14108 siemens)
14109 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000014110 ;;
14111 motorola)
14112 need_lib_prefix=no
14113 need_version=no
14114 shlibpath_overrides_runpath=no
14115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14116 ;;
14117 esac
14118 ;;
14119
John Criswell7a73b802003-06-30 21:59:07 +000014120sysv4*MP*)
14121 if test -d /usr/nec ;then
14122 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000014123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14124 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000014125 shlibpath_var=LD_LIBRARY_PATH
14126 fi
14127 ;;
14128
John Criswell47fdd832003-07-14 16:52:07 +000014129uts4*)
14130 version_type=linux
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 ;;
14135
John Criswell7a73b802003-06-30 21:59:07 +000014136*)
14137 dynamic_linker=no
14138 ;;
14139esac
14140echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14141echo "${ECHO_T}$dynamic_linker" >&6
14142test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014143
Reid Spencer2706f8c2004-09-19 23:53:36 +000014144echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14145echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14146hardcode_action=
14147if test -n "$hardcode_libdir_flag_spec" || \
14148 test -n "$runpath_var" || \
14149 test "X$hardcode_automatic" = "Xyes" ; then
14150
14151 # We can hardcode non-existant directories.
14152 if test "$hardcode_direct" != no &&
14153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14154 # have to relink, otherwise we might link with an installed library
14155 # when we should be linking with a yet-to-be-installed one
14156 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14157 test "$hardcode_minus_L" != no; then
14158 # Linking always hardcodes the temporary library directory.
14159 hardcode_action=relink
14160 else
14161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14162 hardcode_action=immediate
14163 fi
14164else
14165 # We cannot hardcode anything, or else we can only hardcode existing
14166 # directories.
14167 hardcode_action=unsupported
14168fi
14169echo "$as_me:$LINENO: result: $hardcode_action" >&5
14170echo "${ECHO_T}$hardcode_action" >&6
14171
14172if test "$hardcode_action" = relink; then
14173 # Fast installation is not supported
14174 enable_fast_install=no
14175elif test "$shlibpath_overrides_runpath" = yes ||
14176 test "$enable_shared" = no; then
14177 # Fast installation is not necessary
14178 enable_fast_install=needless
14179fi
14180
14181striplib=
14182old_striplib=
14183echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14184echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14185if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14188 echo "$as_me:$LINENO: result: yes" >&5
14189echo "${ECHO_T}yes" >&6
14190else
14191# FIXME - insert some real tests, host_os isn't really good enough
14192 case $host_os in
14193 darwin*)
14194 if test -n "$STRIP" ; then
14195 striplib="$STRIP -x"
14196 echo "$as_me:$LINENO: result: yes" >&5
14197echo "${ECHO_T}yes" >&6
14198 else
14199 echo "$as_me:$LINENO: result: no" >&5
14200echo "${ECHO_T}no" >&6
14201fi
14202 ;;
14203 *)
14204 echo "$as_me:$LINENO: result: no" >&5
14205echo "${ECHO_T}no" >&6
14206 ;;
14207 esac
14208fi
14209
John Criswell7a73b802003-06-30 21:59:07 +000014210if test "x$enable_dlopen" != xyes; then
14211 enable_dlopen=unknown
14212 enable_dlopen_self=unknown
14213 enable_dlopen_self_static=unknown
14214else
14215 lt_cv_dlopen=no
14216 lt_cv_dlopen_libs=
14217
14218 case $host_os in
14219 beos*)
14220 lt_cv_dlopen="load_add_on"
14221 lt_cv_dlopen_libs=
14222 lt_cv_dlopen_self=yes
14223 ;;
14224
John Criswell47fdd832003-07-14 16:52:07 +000014225 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000014226 lt_cv_dlopen="LoadLibrary"
14227 lt_cv_dlopen_libs=
14228 ;;
14229
John Criswell47fdd832003-07-14 16:52:07 +000014230 cygwin*)
14231 lt_cv_dlopen="dlopen"
14232 lt_cv_dlopen_libs=
14233 ;;
14234
14235 darwin*)
14236 # if libdl is installed we need to link against it
14237 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14238echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14239if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242 ac_check_lib_save_LIBS=$LIBS
14243LIBS="-ldl $LIBS"
14244cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014245/* confdefs.h. */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
14249/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000014250
14251/* Override any gcc2 internal prototype to avoid an error. */
14252#ifdef __cplusplus
14253extern "C"
14254#endif
14255/* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14257char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000014258int
14259main ()
14260{
14261dlopen ();
14262 ;
14263 return 0;
14264}
14265_ACEOF
14266rm -f conftest.$ac_objext conftest$ac_exeext
14267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014268 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014269 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_cv_lib_dl_dlopen=yes
14289else
14290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014291sed 's/^/| /' conftest.$ac_ext >&5
14292
John Criswell47fdd832003-07-14 16:52:07 +000014293ac_cv_lib_dl_dlopen=no
14294fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014295rm -f conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014297LIBS=$ac_check_lib_save_LIBS
14298fi
14299echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14300echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14301if test $ac_cv_lib_dl_dlopen = yes; then
14302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14303else
14304
14305 lt_cv_dlopen="dyld"
14306 lt_cv_dlopen_libs=
14307 lt_cv_dlopen_self=yes
14308
14309fi
14310
14311 ;;
14312
John Criswell7a73b802003-06-30 21:59:07 +000014313 *)
14314 echo "$as_me:$LINENO: checking for shl_load" >&5
14315echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14316if test "${ac_cv_func_shl_load+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014325/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14327#define shl_load innocuous_shl_load
14328
John Criswell7a73b802003-06-30 21:59:07 +000014329/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014330 which can conflict with char shl_load (); below.
14331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014333
John Criswell0c38eaf2003-09-10 15:17:25 +000014334#ifdef __STDC__
14335# include <limits.h>
14336#else
14337# include <assert.h>
14338#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014339
14340#undef shl_load
14341
John Criswell7a73b802003-06-30 21:59:07 +000014342/* Override any gcc2 internal prototype to avoid an error. */
14343#ifdef __cplusplus
14344extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014345{
John Criswell7a73b802003-06-30 21:59:07 +000014346#endif
14347/* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14349char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014350/* The GNU C library defines this for functions which it implements
14351 to always fail with ENOSYS. Some functions are actually named
14352 something starting with __ and the normal name is an alias. */
14353#if defined (__stub_shl_load) || defined (__stub___shl_load)
14354choke me
14355#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014356char (*f) () = shl_load;
14357#endif
14358#ifdef __cplusplus
14359}
John Criswell7a73b802003-06-30 21:59:07 +000014360#endif
14361
John Criswell0c38eaf2003-09-10 15:17:25 +000014362int
14363main ()
14364{
14365return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014366 ;
14367 return 0;
14368}
14369_ACEOF
14370rm -f conftest.$ac_objext conftest$ac_exeext
14371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014372 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014379 { ac_try='test -z "$ac_c_werror_flag"
14380 || test ! -s conftest.err'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } &&
14386 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014387 { (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); }; }; then
14392 ac_cv_func_shl_load=yes
14393else
14394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014395sed 's/^/| /' conftest.$ac_ext >&5
14396
John Criswell7a73b802003-06-30 21:59:07 +000014397ac_cv_func_shl_load=no
14398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014399rm -f conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014401fi
14402echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14403echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14404if test $ac_cv_func_shl_load = yes; then
14405 lt_cv_dlopen="shl_load"
14406else
14407 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14408echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14409if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411else
14412 ac_check_lib_save_LIBS=$LIBS
14413LIBS="-ldld $LIBS"
14414cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014420
14421/* Override any gcc2 internal prototype to avoid an error. */
14422#ifdef __cplusplus
14423extern "C"
14424#endif
14425/* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014428int
14429main ()
14430{
14431shl_load ();
14432 ;
14433 return 0;
14434}
14435_ACEOF
14436rm -f conftest.$ac_objext conftest$ac_exeext
14437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014438 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445 { ac_try='test -z "$ac_c_werror_flag"
14446 || test ! -s conftest.err'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; } &&
14452 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_lib_dld_shl_load=yes
14459else
14460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014461sed 's/^/| /' conftest.$ac_ext >&5
14462
John Criswell7a73b802003-06-30 21:59:07 +000014463ac_cv_lib_dld_shl_load=no
14464fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014465rm -f conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014467LIBS=$ac_check_lib_save_LIBS
14468fi
14469echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14470echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14471if test $ac_cv_lib_dld_shl_load = yes; then
14472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14473else
14474 echo "$as_me:$LINENO: checking for dlopen" >&5
14475echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14476if test "${ac_cv_func_dlopen+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014480/* confdefs.h. */
14481_ACEOF
14482cat confdefs.h >>conftest.$ac_ext
14483cat >>conftest.$ac_ext <<_ACEOF
14484/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014485/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14487#define dlopen innocuous_dlopen
14488
John Criswell7a73b802003-06-30 21:59:07 +000014489/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014490 which can conflict with char dlopen (); below.
14491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014493
John Criswell0c38eaf2003-09-10 15:17:25 +000014494#ifdef __STDC__
14495# include <limits.h>
14496#else
14497# include <assert.h>
14498#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014499
14500#undef dlopen
14501
John Criswell7a73b802003-06-30 21:59:07 +000014502/* Override any gcc2 internal prototype to avoid an error. */
14503#ifdef __cplusplus
14504extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014505{
John Criswell7a73b802003-06-30 21:59:07 +000014506#endif
14507/* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14509char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014510/* The GNU C library defines this for functions which it implements
14511 to always fail with ENOSYS. Some functions are actually named
14512 something starting with __ and the normal name is an alias. */
14513#if defined (__stub_dlopen) || defined (__stub___dlopen)
14514choke me
14515#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014516char (*f) () = dlopen;
14517#endif
14518#ifdef __cplusplus
14519}
John Criswell7a73b802003-06-30 21:59:07 +000014520#endif
14521
John Criswell0c38eaf2003-09-10 15:17:25 +000014522int
14523main ()
14524{
14525return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014526 ;
14527 return 0;
14528}
14529_ACEOF
14530rm -f conftest.$ac_objext conftest$ac_exeext
14531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014532 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014533 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014539 { ac_try='test -z "$ac_c_werror_flag"
14540 || test ! -s conftest.err'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_func_dlopen=yes
14553else
14554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014555sed 's/^/| /' conftest.$ac_ext >&5
14556
John Criswell7a73b802003-06-30 21:59:07 +000014557ac_cv_func_dlopen=no
14558fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014559rm -f conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014561fi
14562echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14563echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14564if test $ac_cv_func_dlopen = yes; then
14565 lt_cv_dlopen="dlopen"
14566else
14567 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14568echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14569if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571else
14572 ac_check_lib_save_LIBS=$LIBS
14573LIBS="-ldl $LIBS"
14574cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014580
14581/* Override any gcc2 internal prototype to avoid an error. */
14582#ifdef __cplusplus
14583extern "C"
14584#endif
14585/* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14587char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014588int
14589main ()
14590{
14591dlopen ();
14592 ;
14593 return 0;
14594}
14595_ACEOF
14596rm -f conftest.$ac_objext conftest$ac_exeext
14597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014598 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_cv_lib_dl_dlopen=yes
14619else
14620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014621sed 's/^/| /' conftest.$ac_ext >&5
14622
John Criswell7a73b802003-06-30 21:59:07 +000014623ac_cv_lib_dl_dlopen=no
14624fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014625rm -f conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014627LIBS=$ac_check_lib_save_LIBS
14628fi
14629echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14630echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14631if test $ac_cv_lib_dl_dlopen = yes; then
14632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14633else
14634 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14635echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14636if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14638else
14639 ac_check_lib_save_LIBS=$LIBS
14640LIBS="-lsvld $LIBS"
14641cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014647
14648/* Override any gcc2 internal prototype to avoid an error. */
14649#ifdef __cplusplus
14650extern "C"
14651#endif
14652/* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14654char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014655int
14656main ()
14657{
14658dlopen ();
14659 ;
14660 return 0;
14661}
14662_ACEOF
14663rm -f conftest.$ac_objext conftest$ac_exeext
14664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014665 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_lib_svld_dlopen=yes
14686else
14687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014688sed 's/^/| /' conftest.$ac_ext >&5
14689
John Criswell7a73b802003-06-30 21:59:07 +000014690ac_cv_lib_svld_dlopen=no
14691fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014692rm -f conftest.err conftest.$ac_objext \
14693 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014694LIBS=$ac_check_lib_save_LIBS
14695fi
14696echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14697echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14698if test $ac_cv_lib_svld_dlopen = yes; then
14699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14700else
14701 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14702echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14703if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705else
14706 ac_check_lib_save_LIBS=$LIBS
14707LIBS="-ldld $LIBS"
14708cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014709/* confdefs.h. */
14710_ACEOF
14711cat confdefs.h >>conftest.$ac_ext
14712cat >>conftest.$ac_ext <<_ACEOF
14713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014714
14715/* Override any gcc2 internal prototype to avoid an error. */
14716#ifdef __cplusplus
14717extern "C"
14718#endif
14719/* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14721char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014722int
14723main ()
14724{
14725dld_link ();
14726 ;
14727 return 0;
14728}
14729_ACEOF
14730rm -f conftest.$ac_objext conftest$ac_exeext
14731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014732 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014739 { ac_try='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_dld_dld_link=yes
14753else
14754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014755sed 's/^/| /' conftest.$ac_ext >&5
14756
John Criswell7a73b802003-06-30 21:59:07 +000014757ac_cv_lib_dld_dld_link=no
14758fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014759rm -f conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014761LIBS=$ac_check_lib_save_LIBS
14762fi
14763echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14764echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14765if test $ac_cv_lib_dld_dld_link = yes; then
14766 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14767fi
14768
14769
14770fi
14771
14772
14773fi
14774
14775
14776fi
14777
14778
14779fi
14780
14781
14782fi
14783
14784 ;;
14785 esac
14786
14787 if test "x$lt_cv_dlopen" != xno; then
14788 enable_dlopen=yes
14789 else
14790 enable_dlopen=no
14791 fi
14792
14793 case $lt_cv_dlopen in
14794 dlopen)
14795 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014796 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014797
14798 save_LDFLAGS="$LDFLAGS"
14799 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14800
14801 save_LIBS="$LIBS"
14802 LIBS="$lt_cv_dlopen_libs $LIBS"
14803
14804 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14805echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14806if test "${lt_cv_dlopen_self+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808else
14809 if test "$cross_compiling" = yes; then :
14810 lt_cv_dlopen_self=cross
14811else
John Criswell47fdd832003-07-14 16:52:07 +000014812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014813 lt_status=$lt_dlunknown
14814 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +000014815#line 14815 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014816#include "confdefs.h"
14817
14818#if HAVE_DLFCN_H
14819#include <dlfcn.h>
14820#endif
14821
14822#include <stdio.h>
14823
14824#ifdef RTLD_GLOBAL
14825# define LT_DLGLOBAL RTLD_GLOBAL
14826#else
14827# ifdef DL_GLOBAL
14828# define LT_DLGLOBAL DL_GLOBAL
14829# else
14830# define LT_DLGLOBAL 0
14831# endif
14832#endif
14833
14834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14835 find out it does not work in some platform. */
14836#ifndef LT_DLLAZY_OR_NOW
14837# ifdef RTLD_LAZY
14838# define LT_DLLAZY_OR_NOW RTLD_LAZY
14839# else
14840# ifdef DL_LAZY
14841# define LT_DLLAZY_OR_NOW DL_LAZY
14842# else
14843# ifdef RTLD_NOW
14844# define LT_DLLAZY_OR_NOW RTLD_NOW
14845# else
14846# ifdef DL_NOW
14847# define LT_DLLAZY_OR_NOW DL_NOW
14848# else
14849# define LT_DLLAZY_OR_NOW 0
14850# endif
14851# endif
14852# endif
14853# endif
14854#endif
14855
14856#ifdef __cplusplus
14857extern "C" void exit (int);
14858#endif
14859
14860void fnord() { int i=42;}
14861int main ()
14862{
14863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14864 int status = $lt_dlunknown;
14865
14866 if (self)
14867 {
14868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14870 /* dlclose (self); */
14871 }
14872
14873 exit (status);
14874}
14875EOF
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14881 (./conftest; exit; ) 2>/dev/null
14882 lt_status=$?
14883 case x$lt_status in
14884 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14885 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14886 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14887 esac
14888 else :
14889 # compilation failed
14890 lt_cv_dlopen_self=no
14891 fi
14892fi
14893rm -fr conftest*
14894
14895
14896fi
14897echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14898echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14899
14900 if test "x$lt_cv_dlopen_self" = xyes; then
14901 LDFLAGS="$LDFLAGS $link_static_flag"
14902 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14903echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14904if test "${lt_cv_dlopen_self_static+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906else
14907 if test "$cross_compiling" = yes; then :
14908 lt_cv_dlopen_self_static=cross
14909else
John Criswell47fdd832003-07-14 16:52:07 +000014910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014911 lt_status=$lt_dlunknown
14912 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +000014913#line 14913 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014914#include "confdefs.h"
14915
14916#if HAVE_DLFCN_H
14917#include <dlfcn.h>
14918#endif
14919
14920#include <stdio.h>
14921
14922#ifdef RTLD_GLOBAL
14923# define LT_DLGLOBAL RTLD_GLOBAL
14924#else
14925# ifdef DL_GLOBAL
14926# define LT_DLGLOBAL DL_GLOBAL
14927# else
14928# define LT_DLGLOBAL 0
14929# endif
14930#endif
14931
14932/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14933 find out it does not work in some platform. */
14934#ifndef LT_DLLAZY_OR_NOW
14935# ifdef RTLD_LAZY
14936# define LT_DLLAZY_OR_NOW RTLD_LAZY
14937# else
14938# ifdef DL_LAZY
14939# define LT_DLLAZY_OR_NOW DL_LAZY
14940# else
14941# ifdef RTLD_NOW
14942# define LT_DLLAZY_OR_NOW RTLD_NOW
14943# else
14944# ifdef DL_NOW
14945# define LT_DLLAZY_OR_NOW DL_NOW
14946# else
14947# define LT_DLLAZY_OR_NOW 0
14948# endif
14949# endif
14950# endif
14951# endif
14952#endif
14953
14954#ifdef __cplusplus
14955extern "C" void exit (int);
14956#endif
14957
14958void fnord() { int i=42;}
14959int main ()
14960{
14961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14962 int status = $lt_dlunknown;
14963
14964 if (self)
14965 {
14966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14968 /* dlclose (self); */
14969 }
14970
14971 exit (status);
14972}
14973EOF
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14979 (./conftest; exit; ) 2>/dev/null
14980 lt_status=$?
14981 case x$lt_status in
14982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14984 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14985 esac
14986 else :
14987 # compilation failed
14988 lt_cv_dlopen_self_static=no
14989 fi
14990fi
14991rm -fr conftest*
14992
14993
14994fi
14995echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14996echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14997 fi
14998
14999 CPPFLAGS="$save_CPPFLAGS"
15000 LDFLAGS="$save_LDFLAGS"
15001 LIBS="$save_LIBS"
15002 ;;
15003 esac
15004
15005 case $lt_cv_dlopen_self in
15006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15007 *) enable_dlopen_self=unknown ;;
15008 esac
15009
15010 case $lt_cv_dlopen_self_static in
15011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15012 *) enable_dlopen_self_static=unknown ;;
15013 esac
15014fi
15015
15016
John Criswell47fdd832003-07-14 16:52:07 +000015017# Report which librarie types wil actually be built
15018echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15019echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15020echo "$as_me:$LINENO: result: $can_build_shared" >&5
15021echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015022
John Criswell47fdd832003-07-14 16:52:07 +000015023echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15024echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15025test "$can_build_shared" = "no" && enable_shared=no
15026
15027# On AIX, shared libraries and static libraries use the same namespace, and
15028# are all built from PIC.
15029case "$host_os" in
15030aix3*)
15031 test "$enable_shared" = yes && enable_static=no
15032 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015033 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000015034 postinstall_cmds='$RANLIB $lib'
15035 fi
15036 ;;
15037
Reid Spencer2706f8c2004-09-19 23:53:36 +000015038aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000015039 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15040 test "$enable_shared" = yes && enable_static=no
15041 fi
John Criswell7a73b802003-06-30 21:59:07 +000015042 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015043esac
15044echo "$as_me:$LINENO: result: $enable_shared" >&5
15045echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015046
John Criswell47fdd832003-07-14 16:52:07 +000015047echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15048echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15049# Make sure either enable_shared or enable_static is yes.
15050test "$enable_shared" = yes || enable_static=yes
15051echo "$as_me:$LINENO: result: $enable_static" >&5
15052echo "${ECHO_T}$enable_static" >&6
15053
15054# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000015055# libtool distribution, otherwise you forgot to ship ltmain.sh
15056# with your package, and you will get complaints that there are
15057# no rules to generate ltmain.sh.
15058if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000015059 # See if we are running on zsh, and set the options which allow our commands through
15060 # without removal of \ escapes.
15061 if test -n "${ZSH_VERSION+set}" ; then
15062 setopt NO_GLOB_SUBST
15063 fi
John Criswell7a73b802003-06-30 21:59:07 +000015064 # Now quote all the things that may contain metacharacters while being
15065 # careful not to overquote the AC_SUBSTed values. We take copies of the
15066 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015067 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15068 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000015069 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15070 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15071 deplibs_check_method reload_flag reload_cmds need_locks \
15072 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15073 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000015074 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000015075 old_postinstall_cmds old_postuninstall_cmds \
15076 compiler \
15077 CC \
15078 LD \
15079 lt_prog_compiler_wl \
15080 lt_prog_compiler_pic \
15081 lt_prog_compiler_static \
15082 lt_prog_compiler_no_builtin_flag \
15083 export_dynamic_flag_spec \
15084 thread_safe_flag_spec \
15085 whole_archive_flag_spec \
15086 enable_shared_with_static_runtimes \
15087 old_archive_cmds \
15088 old_archive_from_new_cmds \
15089 predep_objects \
15090 postdep_objects \
15091 predeps \
15092 postdeps \
15093 compiler_lib_search_path \
15094 archive_cmds \
15095 archive_expsym_cmds \
15096 postinstall_cmds \
15097 postuninstall_cmds \
15098 old_archive_from_expsyms_cmds \
15099 allow_undefined_flag \
15100 no_undefined_flag \
15101 export_symbols_cmds \
15102 hardcode_libdir_flag_spec \
15103 hardcode_libdir_flag_spec_ld \
15104 hardcode_libdir_separator \
15105 hardcode_automatic \
15106 module_cmds \
15107 module_expsym_cmds \
15108 lt_cv_prog_compiler_c_o \
15109 exclude_expsyms \
15110 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000015111
15112 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000015113 old_archive_cmds | \
15114 old_archive_from_new_cmds | \
15115 archive_cmds | \
15116 archive_expsym_cmds | \
15117 module_cmds | \
15118 module_expsym_cmds | \
15119 old_archive_from_expsyms_cmds | \
15120 export_symbols_cmds | \
15121 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000015122 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000015123 old_postinstall_cmds | old_postuninstall_cmds | \
15124 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000015125 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015126 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 +000015127 ;;
15128 *)
15129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15130 ;;
15131 esac
15132 done
15133
John Criswell47fdd832003-07-14 16:52:07 +000015134 case $lt_echo in
15135 *'\$0 --fallback-echo"')
15136 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15137 ;;
15138 esac
15139
15140cfgfile="${ofile}T"
15141 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15142 $rm -f "$cfgfile"
15143 { echo "$as_me:$LINENO: creating $ofile" >&5
15144echo "$as_me: creating $ofile" >&6;}
15145
15146 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015147#! $SHELL
15148
John Criswell47fdd832003-07-14 16:52:07 +000015149# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000015150# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15151# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15152#
John Criswell47fdd832003-07-14 16:52:07 +000015153# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15154# Free Software Foundation, Inc.
15155#
15156# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000015157# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15158#
15159# This program is free software; you can redistribute it and/or modify
15160# it under the terms of the GNU General Public License as published by
15161# the Free Software Foundation; either version 2 of the License, or
15162# (at your option) any later version.
15163#
15164# This program is distributed in the hope that it will be useful, but
15165# WITHOUT ANY WARRANTY; without even the implied warranty of
15166# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15167# General Public License for more details.
15168#
15169# You should have received a copy of the GNU General Public License
15170# along with this program; if not, write to the Free Software
15171# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15172#
15173# As a special exception to the GNU General Public License, if you
15174# distribute this file as part of a program that contains a
15175# configuration script generated by Autoconf, you may include it under
15176# the same distribution terms that you use for the rest of that program.
15177
John Criswell47fdd832003-07-14 16:52:07 +000015178# A sed program that does not truncate output.
15179SED=$lt_SED
15180
John Criswell7a73b802003-06-30 21:59:07 +000015181# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000015182Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000015183
15184# The HP-UX ksh and POSIX shell print the target directory to stdout
15185# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015186(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000015187
John Criswell47fdd832003-07-14 16:52:07 +000015188# The names of the tagged configurations supported by this script.
15189available_tags=
15190
John Criswell7a73b802003-06-30 21:59:07 +000015191# ### BEGIN LIBTOOL CONFIG
15192
15193# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15194
15195# Shell to use when invoking shell scripts.
15196SHELL=$lt_SHELL
15197
15198# Whether or not to build shared libraries.
15199build_libtool_libs=$enable_shared
15200
15201# Whether or not to build static libraries.
15202build_old_libs=$enable_static
15203
15204# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015205build_libtool_need_lc=$archive_cmds_need_lc
15206
15207# Whether or not to disallow shared libs when runtime libs are static
15208allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000015209
15210# Whether or not to optimize for fast installation.
15211fast_install=$enable_fast_install
15212
15213# The host system.
15214host_alias=$host_alias
15215host=$host
15216
15217# An echo program that does not interpret backslashes.
15218echo=$lt_echo
15219
15220# The archiver.
15221AR=$lt_AR
15222AR_FLAGS=$lt_AR_FLAGS
15223
John Criswell47fdd832003-07-14 16:52:07 +000015224# A C compiler.
15225LTCC=$lt_LTCC
15226
15227# A language-specific compiler.
15228CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000015229
15230# Is the compiler the GNU C compiler?
15231with_gcc=$GCC
15232
John Criswell47fdd832003-07-14 16:52:07 +000015233# An ERE matcher.
15234EGREP=$lt_EGREP
15235
John Criswell7a73b802003-06-30 21:59:07 +000015236# The linker used to build libraries.
15237LD=$lt_LD
15238
15239# Whether we need hard or soft links.
15240LN_S=$lt_LN_S
15241
15242# A BSD-compatible nm program.
15243NM=$lt_NM
15244
15245# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015246STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000015247
15248# Used to examine libraries when file_magic_cmd begins "file"
15249MAGIC_CMD=$MAGIC_CMD
15250
15251# Used on cygwin: DLL creation program.
15252DLLTOOL="$DLLTOOL"
15253
15254# Used on cygwin: object dumper.
15255OBJDUMP="$OBJDUMP"
15256
15257# Used on cygwin: assembler.
15258AS="$AS"
15259
15260# The name of the directory that contains temporary libtool files.
15261objdir=$objdir
15262
15263# How to create reloadable object files.
15264reload_flag=$lt_reload_flag
15265reload_cmds=$lt_reload_cmds
15266
15267# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000015268wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000015269
15270# Object file suffix (normally "o").
15271objext="$ac_objext"
15272
15273# Old archive suffix (normally "a").
15274libext="$libext"
15275
John Criswell47fdd832003-07-14 16:52:07 +000015276# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015277shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015278
John Criswell7a73b802003-06-30 21:59:07 +000015279# Executable file suffix (normally "").
15280exeext="$exeext"
15281
15282# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000015283pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000015284pic_mode=$pic_mode
15285
John Criswell47fdd832003-07-14 16:52:07 +000015286# What is the maximum length of a command?
15287max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000015288
John Criswell47fdd832003-07-14 16:52:07 +000015289# Does compiler simultaneously support -c and -o options?
15290compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000015291
15292# Must we lock files when doing compilation ?
15293need_locks=$lt_need_locks
15294
15295# Do we need the lib prefix for modules?
15296need_lib_prefix=$need_lib_prefix
15297
15298# Do we need a version for libraries?
15299need_version=$need_version
15300
15301# Whether dlopen is supported.
15302dlopen_support=$enable_dlopen
15303
15304# Whether dlopen of programs is supported.
15305dlopen_self=$enable_dlopen_self
15306
15307# Whether dlopen of statically linked programs is supported.
15308dlopen_self_static=$enable_dlopen_self_static
15309
15310# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000015311link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000015312
15313# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000015314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000015315
15316# Compiler flag to allow reflexive dlopens.
15317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15318
15319# Compiler flag to generate shared objects directly from archives.
15320whole_archive_flag_spec=$lt_whole_archive_flag_spec
15321
15322# Compiler flag to generate thread-safe objects.
15323thread_safe_flag_spec=$lt_thread_safe_flag_spec
15324
15325# Library versioning type.
15326version_type=$version_type
15327
15328# Format of library name prefix.
15329libname_spec=$lt_libname_spec
15330
15331# List of archive names. First name is the real one, the rest are links.
15332# The last name is the one that the linker finds with -lNAME.
15333library_names_spec=$lt_library_names_spec
15334
15335# The coded name of the library, if different from the real name.
15336soname_spec=$lt_soname_spec
15337
15338# Commands used to build and install an old-style archive.
15339RANLIB=$lt_RANLIB
15340old_archive_cmds=$lt_old_archive_cmds
15341old_postinstall_cmds=$lt_old_postinstall_cmds
15342old_postuninstall_cmds=$lt_old_postuninstall_cmds
15343
15344# Create an old-style archive from a shared archive.
15345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15346
15347# Create a temporary old-style archive to link instead of a shared archive.
15348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15349
15350# Commands used to build and install a shared archive.
15351archive_cmds=$lt_archive_cmds
15352archive_expsym_cmds=$lt_archive_expsym_cmds
15353postinstall_cmds=$lt_postinstall_cmds
15354postuninstall_cmds=$lt_postuninstall_cmds
15355
John Criswell47fdd832003-07-14 16:52:07 +000015356# Commands used to build a loadable module (assumed same as above if empty)
15357module_cmds=$lt_module_cmds
15358module_expsym_cmds=$lt_module_expsym_cmds
15359
John Criswell7a73b802003-06-30 21:59:07 +000015360# Commands to strip libraries.
15361old_striplib=$lt_old_striplib
15362striplib=$lt_striplib
15363
John Criswell47fdd832003-07-14 16:52:07 +000015364# Dependencies to place before the objects being linked to create a
15365# shared library.
15366predep_objects=$lt_predep_objects
15367
15368# Dependencies to place after the objects being linked to create a
15369# shared library.
15370postdep_objects=$lt_postdep_objects
15371
15372# Dependencies to place before the objects being linked to create a
15373# shared library.
15374predeps=$lt_predeps
15375
15376# Dependencies to place after the objects being linked to create a
15377# shared library.
15378postdeps=$lt_postdeps
15379
15380# The library search path used internally by the compiler when linking
15381# a shared library.
15382compiler_lib_search_path=$lt_compiler_lib_search_path
15383
John Criswell7a73b802003-06-30 21:59:07 +000015384# Method to check whether dependent libraries are shared objects.
15385deplibs_check_method=$lt_deplibs_check_method
15386
15387# Command to use when deplibs_check_method == file_magic.
15388file_magic_cmd=$lt_file_magic_cmd
15389
15390# Flag that allows shared libraries with undefined symbols to be built.
15391allow_undefined_flag=$lt_allow_undefined_flag
15392
15393# Flag that forces no undefined symbols.
15394no_undefined_flag=$lt_no_undefined_flag
15395
15396# Commands used to finish a libtool library installation in a directory.
15397finish_cmds=$lt_finish_cmds
15398
15399# Same as above, but a single script fragment to be evaled but not shown.
15400finish_eval=$lt_finish_eval
15401
15402# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015404
15405# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015407
15408# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015410
15411# This is the shared library runtime path variable.
15412runpath_var=$runpath_var
15413
15414# This is the shared library path variable.
15415shlibpath_var=$shlibpath_var
15416
15417# Is shlibpath searched before the hard-coded library search path?
15418shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15419
15420# How to hardcode a shared library path into an executable.
15421hardcode_action=$hardcode_action
15422
15423# Whether we should hardcode library paths into libraries.
15424hardcode_into_libs=$hardcode_into_libs
15425
15426# Flag to hardcode \$libdir into a binary during linking.
15427# This must work even if \$libdir does not exist.
15428hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15429
John Criswell47fdd832003-07-14 16:52:07 +000015430# If ld is used when linking, flag to hardcode \$libdir into
15431# a binary during linking. This must work even if \$libdir does
15432# not exist.
15433hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15434
John Criswell7a73b802003-06-30 21:59:07 +000015435# Whether we need a single -rpath flag with a separated argument.
15436hardcode_libdir_separator=$lt_hardcode_libdir_separator
15437
John Criswell47fdd832003-07-14 16:52:07 +000015438# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015439# resulting binary.
15440hardcode_direct=$hardcode_direct
15441
15442# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15443# resulting binary.
15444hardcode_minus_L=$hardcode_minus_L
15445
15446# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15447# the resulting binary.
15448hardcode_shlibpath_var=$hardcode_shlibpath_var
15449
John Criswell47fdd832003-07-14 16:52:07 +000015450# Set to yes if building a shared library automatically hardcodes DIR into the library
15451# and all subsequent libraries and executables linked against it.
15452hardcode_automatic=$hardcode_automatic
15453
John Criswell7a73b802003-06-30 21:59:07 +000015454# Variables whose values should be saved in libtool wrapper scripts and
15455# restored at relink time.
15456variables_saved_for_relink="$variables_saved_for_relink"
15457
15458# Whether libtool must link a program against all its dependency libraries.
15459link_all_deplibs=$link_all_deplibs
15460
15461# Compile-time system search path for libraries
15462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15463
15464# Run-time system search path for libraries
15465sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15466
15467# Fix the shell variable \$srcfile for the compiler.
15468fix_srcfile_path="$fix_srcfile_path"
15469
15470# Set to yes if exported symbols are required.
15471always_export_symbols=$always_export_symbols
15472
15473# The commands to list exported symbols.
15474export_symbols_cmds=$lt_export_symbols_cmds
15475
15476# The commands to extract the exported symbol list from a shared archive.
15477extract_expsyms_cmds=$lt_extract_expsyms_cmds
15478
15479# Symbols that should not be listed in the preloaded symbols.
15480exclude_expsyms=$lt_exclude_expsyms
15481
15482# Symbols that must always be exported.
15483include_expsyms=$lt_include_expsyms
15484
15485# ### END LIBTOOL CONFIG
15486
15487__EOF__
15488
John Criswell47fdd832003-07-14 16:52:07 +000015489
John Criswell7a73b802003-06-30 21:59:07 +000015490 case $host_os in
15491 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015492 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015493
15494# AIX sometimes has problems with the GCC collect2 program. For some
15495# reason, if we set the COLLECT_NAMES environment variable, the problems
15496# vanish in a puff of smoke.
15497if test "X${COLLECT_NAMES+set}" != Xset; then
15498 COLLECT_NAMES=
15499 export COLLECT_NAMES
15500fi
15501EOF
15502 ;;
15503 esac
15504
John Criswell7a73b802003-06-30 21:59:07 +000015505 # We use sed instead of cat because bash on DJGPP gets confused if
15506 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15507 # text mode, it properly converts lines to CR/LF. This bash problem
15508 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015509 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015510
John Criswell47fdd832003-07-14 16:52:07 +000015511 mv -f "$cfgfile" "$ofile" || \
15512 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015513 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015514
15515else
15516 # If there is no Makefile yet, we rely on a make rule to execute
15517 # `config.status --recheck' to rerun these tests and create the
15518 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015519 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15520 if test -f "$ltmain_in"; then
15521 test -f Makefile && make "$ltmain"
15522 fi
John Criswell7a73b802003-06-30 21:59:07 +000015523fi
John Criswell7a73b802003-06-30 21:59:07 +000015524
15525
John Criswell47fdd832003-07-14 16:52:07 +000015526ac_ext=c
15527ac_cpp='$CPP $CPPFLAGS'
15528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15530ac_compiler_gnu=$ac_cv_c_compiler_gnu
15531
15532CC="$lt_save_CC"
15533
15534
15535# Check whether --with-tags or --without-tags was given.
15536if test "${with_tags+set}" = set; then
15537 withval="$with_tags"
15538 tagnames="$withval"
15539fi;
15540
15541if test -f "$ltmain" && test -n "$tagnames"; then
15542 if test ! -f "${ofile}"; then
15543 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15544echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15545 fi
15546
15547 if test -z "$LTCC"; then
15548 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15549 if test -z "$LTCC"; then
15550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15551echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15552 else
15553 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15554echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15555 fi
15556 fi
15557
15558 # Extract list of available tagged configurations in $ofile.
15559 # Note that this assumes the entire list is on one line.
15560 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15561
15562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15563 for tagname in $tagnames; do
15564 IFS="$lt_save_ifs"
15565 # Check whether tagname contains only valid characters
15566 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15567 "") ;;
15568 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15569echo "$as_me: error: invalid tag name: $tagname" >&2;}
15570 { (exit 1); exit 1; }; }
15571 ;;
15572 esac
15573
15574 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15575 then
15576 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15577echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15578 { (exit 1); exit 1; }; }
15579 fi
15580
15581 # Update the list of available tags.
15582 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015583 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015584
15585 case $tagname in
15586 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015587 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15588 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15589 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015590 ac_ext=cc
15591ac_cpp='$CXXCPP $CPPFLAGS'
15592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15595
15596
15597
15598
15599archive_cmds_need_lc_CXX=no
15600allow_undefined_flag_CXX=
15601always_export_symbols_CXX=no
15602archive_expsym_cmds_CXX=
15603export_dynamic_flag_spec_CXX=
15604hardcode_direct_CXX=no
15605hardcode_libdir_flag_spec_CXX=
15606hardcode_libdir_flag_spec_ld_CXX=
15607hardcode_libdir_separator_CXX=
15608hardcode_minus_L_CXX=no
15609hardcode_automatic_CXX=no
15610module_cmds_CXX=
15611module_expsym_cmds_CXX=
15612link_all_deplibs_CXX=unknown
15613old_archive_cmds_CXX=$old_archive_cmds
15614no_undefined_flag_CXX=
15615whole_archive_flag_spec_CXX=
15616enable_shared_with_static_runtimes_CXX=no
15617
15618# Dependencies to place before and after the object being linked:
15619predep_objects_CXX=
15620postdep_objects_CXX=
15621predeps_CXX=
15622postdeps_CXX=
15623compiler_lib_search_path_CXX=
15624
15625# Source file extension for C++ test sources.
15626ac_ext=cc
15627
15628# Object file extension for compiled C++ test sources.
15629objext=o
15630objext_CXX=$objext
15631
15632# Code to be used in simple compile tests
15633lt_simple_compile_test_code="int some_variable = 0;\n"
15634
15635# Code to be used in simple link tests
15636lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15637
15638# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15639
15640# If no C compiler was specified, use CC.
15641LTCC=${LTCC-"$CC"}
15642
15643# Allow CC to be a program name with arguments.
15644compiler=$CC
15645
15646
15647# Allow CC to be a program name with arguments.
15648lt_save_CC=$CC
15649lt_save_LD=$LD
15650lt_save_GCC=$GCC
15651GCC=$GXX
15652lt_save_with_gnu_ld=$with_gnu_ld
15653lt_save_path_LD=$lt_cv_path_LD
15654if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15655 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15656else
15657 unset lt_cv_prog_gnu_ld
15658fi
15659if test -n "${lt_cv_path_LDCXX+set}"; then
15660 lt_cv_path_LD=$lt_cv_path_LDCXX
15661else
15662 unset lt_cv_path_LD
15663fi
15664test -z "${LDCXX+set}" || LD=$LDCXX
15665CC=${CXX-"c++"}
15666compiler=$CC
15667compiler_CXX=$CC
15668cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15669
15670# We don't want -fno-exception wen compiling C++ code, so set the
15671# no_builtin_flag separately
15672if test "$GXX" = yes; then
15673 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15674else
15675 lt_prog_compiler_no_builtin_flag_CXX=
15676fi
15677
15678if test "$GXX" = yes; then
15679 # Set up default GNU C++ configuration
15680
15681
15682# Check whether --with-gnu-ld or --without-gnu-ld was given.
15683if test "${with_gnu_ld+set}" = set; then
15684 withval="$with_gnu_ld"
15685 test "$withval" = no || with_gnu_ld=yes
15686else
15687 with_gnu_ld=no
15688fi;
15689ac_prog=ld
15690if test "$GCC" = yes; then
15691 # Check if gcc -print-prog-name=ld gives a path.
15692 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15693echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15694 case $host in
15695 *-*-mingw*)
15696 # gcc leaves a trailing carriage return which upsets mingw
15697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15698 *)
15699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15700 esac
15701 case $ac_prog in
15702 # Accept absolute paths.
15703 [\\/]* | ?:[\\/]*)
15704 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015705 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015706 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15707 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15708 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15709 done
15710 test -z "$LD" && LD="$ac_prog"
15711 ;;
15712 "")
15713 # If it fails, then pretend we aren't using GCC.
15714 ac_prog=ld
15715 ;;
15716 *)
15717 # If it is relative, then search for the first ld in PATH.
15718 with_gnu_ld=unknown
15719 ;;
15720 esac
15721elif test "$with_gnu_ld" = yes; then
15722 echo "$as_me:$LINENO: checking for GNU ld" >&5
15723echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15724else
15725 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15726echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15727fi
15728if test "${lt_cv_path_LD+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730else
15731 if test -z "$LD"; then
15732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15733 for ac_dir in $PATH; do
15734 IFS="$lt_save_ifs"
15735 test -z "$ac_dir" && ac_dir=.
15736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15737 lt_cv_path_LD="$ac_dir/$ac_prog"
15738 # Check to see if the program is GNU ld. I'd rather use --version,
15739 # but apparently some GNU ld's only accept -v.
15740 # Break only if it was the GNU/non-GNU ld that we prefer.
15741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15742 *GNU* | *'with BFD'*)
15743 test "$with_gnu_ld" != no && break
15744 ;;
15745 *)
15746 test "$with_gnu_ld" != yes && break
15747 ;;
15748 esac
15749 fi
15750 done
15751 IFS="$lt_save_ifs"
15752else
15753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15754fi
15755fi
15756
15757LD="$lt_cv_path_LD"
15758if test -n "$LD"; then
15759 echo "$as_me:$LINENO: result: $LD" >&5
15760echo "${ECHO_T}$LD" >&6
15761else
15762 echo "$as_me:$LINENO: result: no" >&5
15763echo "${ECHO_T}no" >&6
15764fi
15765test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15766echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15767 { (exit 1); exit 1; }; }
15768echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15769echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15770if test "${lt_cv_prog_gnu_ld+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15772else
15773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015774case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015775*GNU* | *'with BFD'*)
15776 lt_cv_prog_gnu_ld=yes
15777 ;;
15778*)
15779 lt_cv_prog_gnu_ld=no
15780 ;;
15781esac
15782fi
15783echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15784echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15785with_gnu_ld=$lt_cv_prog_gnu_ld
15786
15787
15788
15789 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15790 # archiving commands below assume that GNU ld is being used.
15791 if test "$with_gnu_ld" = yes; then
15792 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15793 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'
15794
15795 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15797
15798 # If archive_cmds runs LD, not CC, wlarc should be empty
15799 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15800 # investigate it a little bit more. (MM)
15801 wlarc='${wl}'
15802
15803 # ancient GNU ld didn't support --whole-archive et. al.
15804 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15805 grep 'no-whole-archive' > /dev/null; then
15806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15807 else
15808 whole_archive_flag_spec_CXX=
15809 fi
15810 else
15811 with_gnu_ld=no
15812 wlarc=
15813
15814 # A generic and very simple default shared library creation
15815 # command for GNU C++ for the case where it uses the native
15816 # linker, instead of GNU ld. If possible, this setting should
15817 # overridden to take advantage of the native linker features on
15818 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015820 fi
15821
15822 # Commands to make compiler produce verbose output that lists
15823 # what "hidden" libraries, object files and flags are used when
15824 # linking a shared library.
15825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15826
15827else
15828 GXX=no
15829 with_gnu_ld=no
15830 wlarc=
15831fi
15832
15833# PORTME: fill in a description of your system's C++ link characteristics
15834echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15835echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15836ld_shlibs_CXX=yes
15837case $host_os in
15838 aix3*)
15839 # FIXME: insert proper C++ library support
15840 ld_shlibs_CXX=no
15841 ;;
15842 aix4* | aix5*)
15843 if test "$host_cpu" = ia64; then
15844 # On IA64, the linker does run time linking by default, so we don't
15845 # have to do anything special.
15846 aix_use_runtimelinking=no
15847 exp_sym_flag='-Bexport'
15848 no_entry_flag=""
15849 else
15850 aix_use_runtimelinking=no
15851
15852 # Test if we are trying to use run time linking or normal
15853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15854 # need to do runtime linking.
15855 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15856 for ld_flag in $LDFLAGS; do
15857 case $ld_flag in
15858 *-brtl*)
15859 aix_use_runtimelinking=yes
15860 break
15861 ;;
15862 esac
15863 done
15864 esac
15865
15866 exp_sym_flag='-bexport'
15867 no_entry_flag='-bnoentry'
15868 fi
15869
15870 # When large executables or shared objects are built, AIX ld can
15871 # have problems creating the table of contents. If linking a library
15872 # or program results in "error TOC overflow" add -mminimal-toc to
15873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15875
15876 archive_cmds_CXX=''
15877 hardcode_direct_CXX=yes
15878 hardcode_libdir_separator_CXX=':'
15879 link_all_deplibs_CXX=yes
15880
15881 if test "$GXX" = yes; then
15882 case $host_os in aix4.012|aix4.012.*)
15883 # We only want to do this on AIX 4.2 and lower, the check
15884 # below for broken collect2 doesn't work under 4.3+
15885 collect2name=`${CC} -print-prog-name=collect2`
15886 if test -f "$collect2name" && \
15887 strings "$collect2name" | grep resolve_lib_name >/dev/null
15888 then
15889 # We have reworked collect2
15890 hardcode_direct_CXX=yes
15891 else
15892 # We have old collect2
15893 hardcode_direct_CXX=unsupported
15894 # It fails to find uninstalled libraries when the uninstalled
15895 # path is not listed in the libpath. Setting hardcode_minus_L
15896 # to unsupported forces relinking
15897 hardcode_minus_L_CXX=yes
15898 hardcode_libdir_flag_spec_CXX='-L$libdir'
15899 hardcode_libdir_separator_CXX=
15900 fi
15901 esac
15902 shared_flag='-shared'
15903 else
15904 # not using gcc
15905 if test "$host_cpu" = ia64; then
15906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15907 # chokes on -Wl,-G. The following line is correct:
15908 shared_flag='-G'
15909 else
15910 if test "$aix_use_runtimelinking" = yes; then
15911 shared_flag='${wl}-G'
15912 else
15913 shared_flag='${wl}-bM:SRE'
15914 fi
15915 fi
15916 fi
15917
15918 # It seems that -bexpall does not export symbols beginning with
15919 # underscore (_), so it is better to generate a list of symbols to export.
15920 always_export_symbols_CXX=yes
15921 if test "$aix_use_runtimelinking" = yes; then
15922 # Warning - without using the other runtime loading flags (-brtl),
15923 # -berok will link without error, but may produce a broken library.
15924 allow_undefined_flag_CXX='-berok'
15925 # Determine the default libpath from the value encoded in an empty executable.
15926 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015932
John Criswell47fdd832003-07-14 16:52:07 +000015933int
15934main ()
15935{
15936
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest.$ac_objext conftest$ac_exeext
15942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015943 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015950 { ac_try='test -z "$ac_cxx_werror_flag"
15951 || test ! -s conftest.err'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; } &&
15957 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963
15964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15965}'`
15966# Check for a 64-bit object if we didn't find anything.
15967if 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; }
15968}'`; fi
15969else
15970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015971sed 's/^/| /' conftest.$ac_ext >&5
15972
John Criswell47fdd832003-07-14 16:52:07 +000015973fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015974rm -f conftest.err conftest.$ac_objext \
15975 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15977
15978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15979
15980 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"
15981 else
15982 if test "$host_cpu" = ia64; then
15983 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15984 allow_undefined_flag_CXX="-z nodefs"
15985 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"
15986 else
15987 # Determine the default libpath from the value encoded in an empty executable.
15988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015989/* confdefs.h. */
15990_ACEOF
15991cat confdefs.h >>conftest.$ac_ext
15992cat >>conftest.$ac_ext <<_ACEOF
15993/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015994
John Criswell47fdd832003-07-14 16:52:07 +000015995int
15996main ()
15997{
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext conftest$ac_exeext
16004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016005 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016012 { ac_try='test -z "$ac_cxx_werror_flag"
16013 || test ! -s conftest.err'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025
16026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16027}'`
16028# Check for a 64-bit object if we didn't find anything.
16029if 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; }
16030}'`; fi
16031else
16032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016033sed 's/^/| /' conftest.$ac_ext >&5
16034
John Criswell47fdd832003-07-14 16:52:07 +000016035fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016036rm -f conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16039
16040 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16041 # Warning - without using the other run time loading flags,
16042 # -berok will link without error, but may produce a broken library.
16043 no_undefined_flag_CXX=' ${wl}-bernotok'
16044 allow_undefined_flag_CXX=' ${wl}-berok'
16045 # -bexpall does not export symbols beginning with underscore (_)
16046 always_export_symbols_CXX=yes
16047 # Exported symbols can be pulled into shared objects from archives
16048 whole_archive_flag_spec_CXX=' '
16049 archive_cmds_need_lc_CXX=yes
16050 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016051 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 +000016052 fi
16053 fi
16054 ;;
16055 chorus*)
16056 case $cc_basename in
16057 *)
16058 # FIXME: insert proper C++ library support
16059 ld_shlibs_CXX=no
16060 ;;
16061 esac
16062 ;;
16063
Reid Spencer2706f8c2004-09-19 23:53:36 +000016064
John Criswell47fdd832003-07-14 16:52:07 +000016065 cygwin* | mingw* | pw32*)
16066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16067 # as there is no search path for DLLs.
16068 hardcode_libdir_flag_spec_CXX='-L$libdir'
16069 allow_undefined_flag_CXX=unsupported
16070 always_export_symbols_CXX=no
16071 enable_shared_with_static_runtimes_CXX=yes
16072
16073 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16074 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'
16075 # If the export-symbols file already is a .def file (1st line
16076 # is EXPORTS), use it as is; otherwise, prepend...
16077 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16078 cp $export_symbols $output_objdir/$soname.def;
16079 else
16080 echo EXPORTS > $output_objdir/$soname.def;
16081 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000016082 fi~
16083 $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 +000016084 else
16085 ld_shlibs_CXX=no
16086 fi
16087 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016088 darwin* | rhapsody*)
16089 case "$host_os" in
16090 rhapsody* | darwin1.[012])
16091 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16092 ;;
16093 *) # Darwin 1.3 on
16094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16095 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16096 else
16097 case ${MACOSX_DEPLOYMENT_TARGET} in
16098 10.[012])
16099 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16100 ;;
16101 10.*)
16102 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16103 ;;
16104 esac
16105 fi
16106 ;;
16107 esac
16108 archive_cmds_need_lc_CXX=no
16109 hardcode_direct_CXX=no
16110 hardcode_automatic_CXX=yes
16111 hardcode_shlibpath_var_CXX=unsupported
16112 whole_archive_flag_spec_CXX=''
16113 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000016114
Reid Spencer2706f8c2004-09-19 23:53:36 +000016115 if test "$GXX" = yes ; then
16116 lt_int_apple_cc_single_mod=no
16117 output_verbose_link_cmd='echo'
16118 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16119 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000016120 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016122 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 +000016123 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016124 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 +000016125 fi
16126 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016129 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 +000016130 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016131 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 +000016132 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000016133 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 +000016134 else
16135 case "$cc_basename" in
16136 xlc*)
16137 output_verbose_link_cmd='echo'
16138 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'
16139 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16140 # 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 +000016141 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}'
16142 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 +000016143 ;;
16144 *)
16145 ld_shlibs_CXX=no
16146 ;;
16147 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000016148 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016149 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016150
16151 dgux*)
16152 case $cc_basename in
16153 ec++)
16154 # FIXME: insert proper C++ library support
16155 ld_shlibs_CXX=no
16156 ;;
16157 ghcx)
16158 # Green Hills C++ Compiler
16159 # FIXME: insert proper C++ library support
16160 ld_shlibs_CXX=no
16161 ;;
16162 *)
16163 # FIXME: insert proper C++ library support
16164 ld_shlibs_CXX=no
16165 ;;
16166 esac
16167 ;;
16168 freebsd12*)
16169 # C++ shared libraries reported to be fairly broken before switch to ELF
16170 ld_shlibs_CXX=no
16171 ;;
16172 freebsd-elf*)
16173 archive_cmds_need_lc_CXX=no
16174 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016175 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16177 # conventions
16178 ld_shlibs_CXX=yes
16179 ;;
16180 gnu*)
16181 ;;
16182 hpux9*)
16183 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16184 hardcode_libdir_separator_CXX=:
16185 export_dynamic_flag_spec_CXX='${wl}-E'
16186 hardcode_direct_CXX=yes
16187 hardcode_minus_L_CXX=yes # Not in the search PATH,
16188 # but as the default
16189 # location of the library.
16190
16191 case $cc_basename in
16192 CC)
16193 # FIXME: insert proper C++ library support
16194 ld_shlibs_CXX=no
16195 ;;
16196 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000016197 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 +000016198 # Commands to make compiler produce verbose output that lists
16199 # what "hidden" libraries, object files and flags are used when
16200 # linking a shared library.
16201 #
16202 # There doesn't appear to be a way to prevent this compiler from
16203 # explicitly linking system object files so we need to strip them
16204 # from the output so that they don't get included in the library
16205 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016206 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 +000016207 ;;
16208 *)
16209 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016210 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 +000016211 else
16212 # FIXME: insert proper C++ library support
16213 ld_shlibs_CXX=no
16214 fi
16215 ;;
16216 esac
16217 ;;
16218 hpux10*|hpux11*)
16219 if test $with_gnu_ld = no; then
16220 case "$host_cpu" in
16221 hppa*64*)
16222 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16223 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16224 hardcode_libdir_separator_CXX=:
16225 ;;
16226 ia64*)
16227 hardcode_libdir_flag_spec_CXX='-L$libdir'
16228 ;;
16229 *)
16230 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator_CXX=:
16232 export_dynamic_flag_spec_CXX='${wl}-E'
16233 ;;
16234 esac
16235 fi
16236 case "$host_cpu" in
16237 hppa*64*)
16238 hardcode_direct_CXX=no
16239 hardcode_shlibpath_var_CXX=no
16240 ;;
16241 ia64*)
16242 hardcode_direct_CXX=no
16243 hardcode_shlibpath_var_CXX=no
16244 hardcode_minus_L_CXX=yes # Not in the search PATH,
16245 # but as the default
16246 # location of the library.
16247 ;;
16248 *)
16249 hardcode_direct_CXX=yes
16250 hardcode_minus_L_CXX=yes # Not in the search PATH,
16251 # but as the default
16252 # location of the library.
16253 ;;
16254 esac
16255
16256 case $cc_basename in
16257 CC)
16258 # FIXME: insert proper C++ library support
16259 ld_shlibs_CXX=no
16260 ;;
16261 aCC)
16262 case "$host_cpu" in
16263 hppa*64*|ia64*)
16264 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16265 ;;
16266 *)
16267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16268 ;;
16269 esac
16270 # Commands to make compiler produce verbose output that lists
16271 # what "hidden" libraries, object files and flags are used when
16272 # linking a shared library.
16273 #
16274 # There doesn't appear to be a way to prevent this compiler from
16275 # explicitly linking system object files so we need to strip them
16276 # from the output so that they don't get included in the library
16277 # dependencies.
16278 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'
16279 ;;
16280 *)
16281 if test "$GXX" = yes; then
16282 if test $with_gnu_ld = no; then
16283 case "$host_cpu" in
16284 ia64*|hppa*64*)
16285 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16286 ;;
16287 *)
16288 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'
16289 ;;
16290 esac
16291 fi
16292 else
16293 # FIXME: insert proper C++ library support
16294 ld_shlibs_CXX=no
16295 fi
16296 ;;
16297 esac
16298 ;;
16299 irix5* | irix6*)
16300 case $cc_basename in
16301 CC)
16302 # SGI C++
16303 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'
16304
16305 # Archives containing C++ object files must be created using
16306 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16307 # necessary to make sure instantiated templates are included
16308 # in the archive.
16309 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16310 ;;
16311 *)
16312 if test "$GXX" = yes; then
16313 if test "$with_gnu_ld" = no; then
16314 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'
16315 else
16316 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'
16317 fi
16318 fi
16319 link_all_deplibs_CXX=yes
16320 ;;
16321 esac
16322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16323 hardcode_libdir_separator_CXX=:
16324 ;;
16325 linux*)
16326 case $cc_basename in
16327 KCC)
16328 # Kuck and Associates, Inc. (KAI) C++ Compiler
16329
16330 # KCC will only create a shared library if the output file
16331 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16332 # to its proper name (with version) after linking.
16333 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'
16334 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'
16335 # Commands to make compiler produce verbose output that lists
16336 # what "hidden" libraries, object files and flags are used when
16337 # linking a shared library.
16338 #
16339 # There doesn't appear to be a way to prevent this compiler from
16340 # explicitly linking system object files so we need to strip them
16341 # from the output so that they don't get included in the library
16342 # dependencies.
16343 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'
16344
16345 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16347
16348 # Archives containing C++ object files must be created using
16349 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16351 ;;
16352 icpc)
16353 # Intel C++
16354 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016355 # version 8.0 and above of icpc choke on multiply defined symbols
16356 # if we add $predep_objects and $postdep_objects, however 7.1 and
16357 # earlier do not add the objects themselves.
16358 case `$CC -V 2>&1` in
16359 *"Version 7."*)
16360 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361 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'
16362 ;;
16363 *) # Version 8.0 or newer
16364 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16365 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16366 ;;
16367 esac
John Criswell47fdd832003-07-14 16:52:07 +000016368 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16372 ;;
16373 cxx)
16374 # Compaq C++
16375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 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'
16377
16378 runpath_var=LD_RUN_PATH
16379 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16380 hardcode_libdir_separator_CXX=:
16381
16382 # Commands to make compiler produce verbose output that lists
16383 # what "hidden" libraries, object files and flags are used when
16384 # linking a shared library.
16385 #
16386 # There doesn't appear to be a way to prevent this compiler from
16387 # explicitly linking system object files so we need to strip them
16388 # from the output so that they don't get included in the library
16389 # dependencies.
16390 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'
16391 ;;
16392 esac
16393 ;;
16394 lynxos*)
16395 # FIXME: insert proper C++ library support
16396 ld_shlibs_CXX=no
16397 ;;
16398 m88k*)
16399 # FIXME: insert proper C++ library support
16400 ld_shlibs_CXX=no
16401 ;;
16402 mvs*)
16403 case $cc_basename in
16404 cxx)
16405 # FIXME: insert proper C++ library support
16406 ld_shlibs_CXX=no
16407 ;;
16408 *)
16409 # FIXME: insert proper C++ library support
16410 ld_shlibs_CXX=no
16411 ;;
16412 esac
16413 ;;
16414 netbsd*)
16415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16416 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16417 wlarc=
16418 hardcode_libdir_flag_spec_CXX='-R$libdir'
16419 hardcode_direct_CXX=yes
16420 hardcode_shlibpath_var_CXX=no
16421 fi
16422 # Workaround some broken pre-1.5 toolchains
16423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16424 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016425 openbsd2*)
16426 # C++ shared libraries are fairly broken
16427 ld_shlibs_CXX=no
16428 ;;
16429 openbsd*)
16430 hardcode_direct_CXX=yes
16431 hardcode_shlibpath_var_CXX=no
16432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16435 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16436 export_dynamic_flag_spec_CXX='${wl}-E'
16437 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16438 fi
16439 output_verbose_link_cmd='echo'
16440 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016441 osf3*)
16442 case $cc_basename in
16443 KCC)
16444 # Kuck and Associates, Inc. (KAI) C++ Compiler
16445
16446 # KCC will only create a shared library if the output file
16447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16448 # to its proper name (with version) after linking.
16449 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'
16450
16451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16452 hardcode_libdir_separator_CXX=:
16453
16454 # Archives containing C++ object files must be created using
16455 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16456 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16457
16458 ;;
16459 RCC)
16460 # Rational C++ 2.4.1
16461 # FIXME: insert proper C++ library support
16462 ld_shlibs_CXX=no
16463 ;;
16464 cxx)
16465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16466 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'
16467
16468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16469 hardcode_libdir_separator_CXX=:
16470
16471 # Commands to make compiler produce verbose output that lists
16472 # what "hidden" libraries, object files and flags are used when
16473 # linking a shared library.
16474 #
16475 # There doesn't appear to be a way to prevent this compiler from
16476 # explicitly linking system object files so we need to strip them
16477 # from the output so that they don't get included in the library
16478 # dependencies.
16479 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'
16480 ;;
16481 *)
16482 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16483 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16484 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'
16485
16486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16487 hardcode_libdir_separator_CXX=:
16488
16489 # Commands to make compiler produce verbose output that lists
16490 # what "hidden" libraries, object files and flags are used when
16491 # linking a shared library.
16492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16493
16494 else
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 fi
16498 ;;
16499 esac
16500 ;;
16501 osf4* | osf5*)
16502 case $cc_basename in
16503 KCC)
16504 # Kuck and Associates, Inc. (KAI) C++ Compiler
16505
16506 # KCC will only create a shared library if the output file
16507 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16508 # to its proper name (with version) after linking.
16509 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'
16510
16511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16512 hardcode_libdir_separator_CXX=:
16513
16514 # Archives containing C++ object files must be created using
16515 # the KAI C++ compiler.
16516 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16517 ;;
16518 RCC)
16519 # Rational C++ 2.4.1
16520 # FIXME: insert proper C++ library support
16521 ld_shlibs_CXX=no
16522 ;;
16523 cxx)
16524 allow_undefined_flag_CXX=' -expect_unresolved \*'
16525 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 +000016526 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16527 echo "-hidden">> $lib.exp~
16528 $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~
16529 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016530
16531 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16532 hardcode_libdir_separator_CXX=:
16533
16534 # Commands to make compiler produce verbose output that lists
16535 # what "hidden" libraries, object files and flags are used when
16536 # linking a shared library.
16537 #
16538 # There doesn't appear to be a way to prevent this compiler from
16539 # explicitly linking system object files so we need to strip them
16540 # from the output so that they don't get included in the library
16541 # dependencies.
16542 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'
16543 ;;
16544 *)
16545 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16546 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16547 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'
16548
16549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16550 hardcode_libdir_separator_CXX=:
16551
16552 # Commands to make compiler produce verbose output that lists
16553 # what "hidden" libraries, object files and flags are used when
16554 # linking a shared library.
16555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16556
16557 else
16558 # FIXME: insert proper C++ library support
16559 ld_shlibs_CXX=no
16560 fi
16561 ;;
16562 esac
16563 ;;
16564 psos*)
16565 # FIXME: insert proper C++ library support
16566 ld_shlibs_CXX=no
16567 ;;
16568 sco*)
16569 archive_cmds_need_lc_CXX=no
16570 case $cc_basename in
16571 CC)
16572 # FIXME: insert proper C++ library support
16573 ld_shlibs_CXX=no
16574 ;;
16575 *)
16576 # FIXME: insert proper C++ library support
16577 ld_shlibs_CXX=no
16578 ;;
16579 esac
16580 ;;
16581 sunos4*)
16582 case $cc_basename in
16583 CC)
16584 # Sun C++ 4.x
16585 # FIXME: insert proper C++ library support
16586 ld_shlibs_CXX=no
16587 ;;
16588 lcc)
16589 # Lucid
16590 # FIXME: insert proper C++ library support
16591 ld_shlibs_CXX=no
16592 ;;
16593 *)
16594 # FIXME: insert proper C++ library support
16595 ld_shlibs_CXX=no
16596 ;;
16597 esac
16598 ;;
16599 solaris*)
16600 case $cc_basename in
16601 CC)
16602 # Sun C++ 4.2, 5.x and Centerline C++
16603 no_undefined_flag_CXX=' -zdefs'
16604 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 +000016605 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16606 $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 +000016607
16608 hardcode_libdir_flag_spec_CXX='-R$libdir'
16609 hardcode_shlibpath_var_CXX=no
16610 case $host_os in
16611 solaris2.0-5 | solaris2.0-5.*) ;;
16612 *)
16613 # The C++ compiler is used as linker so we must use $wl
16614 # flag to pass the commands to the underlying system
16615 # linker.
16616 # Supported since Solaris 2.6 (maybe 2.5.1?)
16617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16618 ;;
16619 esac
16620 link_all_deplibs_CXX=yes
16621
16622 # Commands to make compiler produce verbose output that lists
16623 # what "hidden" libraries, object files and flags are used when
16624 # linking a shared library.
16625 #
16626 # There doesn't appear to be a way to prevent this compiler from
16627 # explicitly linking system object files so we need to strip them
16628 # from the output so that they don't get included in the library
16629 # dependencies.
16630 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'
16631
16632 # Archives containing C++ object files must be created using
16633 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16634 # necessary to make sure instantiated templates are included
16635 # in the archive.
16636 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16637 ;;
16638 gcx)
16639 # Green Hills C++ Compiler
16640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16641
16642 # The C++ compiler must be used to create the archive.
16643 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16644 ;;
16645 *)
16646 # GNU C++ compiler with Solaris linker
16647 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16648 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16649 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016650 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 +000016651 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16652 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16653
John Criswell47fdd832003-07-14 16:52:07 +000016654 # Commands to make compiler produce verbose output that lists
16655 # what "hidden" libraries, object files and flags are used when
16656 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016657 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016658 else
16659 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16660 # platform.
16661 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 +000016662 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16663 $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 +000016664
16665 # Commands to make compiler produce verbose output that lists
16666 # what "hidden" libraries, object files and flags are used when
16667 # linking a shared library.
16668 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16669 fi
16670
16671 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16672 fi
16673 ;;
16674 esac
16675 ;;
16676 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16677 archive_cmds_need_lc_CXX=no
16678 ;;
16679 tandem*)
16680 case $cc_basename in
16681 NCC)
16682 # NonStop-UX NCC 3.20
16683 # FIXME: insert proper C++ library support
16684 ld_shlibs_CXX=no
16685 ;;
16686 *)
16687 # FIXME: insert proper C++ library support
16688 ld_shlibs_CXX=no
16689 ;;
16690 esac
16691 ;;
16692 vxworks*)
16693 # FIXME: insert proper C++ library support
16694 ld_shlibs_CXX=no
16695 ;;
16696 *)
16697 # FIXME: insert proper C++ library support
16698 ld_shlibs_CXX=no
16699 ;;
16700esac
16701echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16702echo "${ECHO_T}$ld_shlibs_CXX" >&6
16703test "$ld_shlibs_CXX" = no && can_build_shared=no
16704
16705GCC_CXX="$GXX"
16706LD_CXX="$LD"
16707
John Criswell47fdd832003-07-14 16:52:07 +000016708
16709cat > conftest.$ac_ext <<EOF
16710class Foo
16711{
16712public:
16713 Foo (void) { a = 0; }
16714private:
16715 int a;
16716};
16717EOF
16718
16719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; then
16724 # Parse the compiler output and extract the necessary
16725 # objects, libraries and library flags.
16726
16727 # Sentinel used to keep track of whether or not we are before
16728 # the conftest object file.
16729 pre_test_object_deps_done=no
16730
16731 # The `*' in the case matches for architectures that use `case' in
16732 # $output_verbose_cmd can trigger glob expansion during the loop
16733 # eval without this substitution.
16734 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16735
16736 for p in `eval $output_verbose_link_cmd`; do
16737 case $p in
16738
16739 -L* | -R* | -l*)
16740 # Some compilers place space between "-{L,R}" and the path.
16741 # Remove the space.
16742 if test $p = "-L" \
16743 || test $p = "-R"; then
16744 prev=$p
16745 continue
16746 else
16747 prev=
16748 fi
16749
16750 if test "$pre_test_object_deps_done" = no; then
16751 case $p in
16752 -L* | -R*)
16753 # Internal compiler library paths should come after those
16754 # provided the user. The postdeps already come after the
16755 # user supplied libs so there is no need to process them.
16756 if test -z "$compiler_lib_search_path_CXX"; then
16757 compiler_lib_search_path_CXX="${prev}${p}"
16758 else
16759 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16760 fi
16761 ;;
16762 # The "-l" case would never come before the object being
16763 # linked, so don't bother handling this case.
16764 esac
16765 else
16766 if test -z "$postdeps_CXX"; then
16767 postdeps_CXX="${prev}${p}"
16768 else
16769 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16770 fi
16771 fi
16772 ;;
16773
16774 *.$objext)
16775 # This assumes that the test object file only shows up
16776 # once in the compiler output.
16777 if test "$p" = "conftest.$objext"; then
16778 pre_test_object_deps_done=yes
16779 continue
16780 fi
16781
16782 if test "$pre_test_object_deps_done" = no; then
16783 if test -z "$predep_objects_CXX"; then
16784 predep_objects_CXX="$p"
16785 else
16786 predep_objects_CXX="$predep_objects_CXX $p"
16787 fi
16788 else
16789 if test -z "$postdep_objects_CXX"; then
16790 postdep_objects_CXX="$p"
16791 else
16792 postdep_objects_CXX="$postdep_objects_CXX $p"
16793 fi
16794 fi
16795 ;;
16796
16797 *) ;; # Ignore the rest.
16798
16799 esac
16800 done
16801
16802 # Clean up.
16803 rm -f a.out a.exe
16804else
16805 echo "libtool.m4: error: problem compiling CXX test program"
16806fi
16807
16808$rm -f confest.$objext
16809
16810case " $postdeps_CXX " in
16811*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16812esac
16813
16814lt_prog_compiler_wl_CXX=
16815lt_prog_compiler_pic_CXX=
16816lt_prog_compiler_static_CXX=
16817
16818echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16819echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16820
16821 # C++ specific cases for pic, static, wl, etc.
16822 if test "$GXX" = yes; then
16823 lt_prog_compiler_wl_CXX='-Wl,'
16824 lt_prog_compiler_static_CXX='-static'
16825
16826 case $host_os in
16827 aix*)
16828 # All AIX code is PIC.
16829 if test "$host_cpu" = ia64; then
16830 # AIX 5 now supports IA64 processor
16831 lt_prog_compiler_static_CXX='-Bstatic'
16832 fi
16833 ;;
16834 amigaos*)
16835 # FIXME: we need at least 68020 code to build shared libraries, but
16836 # adding the `-m68020' flag to GCC prevents building anything better,
16837 # like `-m68040'.
16838 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16839 ;;
16840 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16841 # PIC is the default for these OSes.
16842 ;;
16843 mingw* | os2* | pw32*)
16844 # This hack is so that the source file can tell whether it is being
16845 # built for inclusion in a dll (and should export symbols for example).
16846 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16847 ;;
16848 darwin* | rhapsody*)
16849 # PIC is the default on this platform
16850 # Common symbols not allowed in MH_DYLIB files
16851 lt_prog_compiler_pic_CXX='-fno-common'
16852 ;;
16853 *djgpp*)
16854 # DJGPP does not support shared libraries at all
16855 lt_prog_compiler_pic_CXX=
16856 ;;
16857 sysv4*MP*)
16858 if test -d /usr/nec; then
16859 lt_prog_compiler_pic_CXX=-Kconform_pic
16860 fi
16861 ;;
16862 hpux*)
16863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16864 # not for PA HP-UX.
16865 case "$host_cpu" in
16866 hppa*64*|ia64*)
16867 ;;
16868 *)
16869 lt_prog_compiler_pic_CXX='-fPIC'
16870 ;;
16871 esac
16872 ;;
16873 *)
16874 lt_prog_compiler_pic_CXX='-fPIC'
16875 ;;
16876 esac
16877 else
16878 case $host_os in
16879 aix4* | aix5*)
16880 # All AIX code is PIC.
16881 if test "$host_cpu" = ia64; then
16882 # AIX 5 now supports IA64 processor
16883 lt_prog_compiler_static_CXX='-Bstatic'
16884 else
16885 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16886 fi
16887 ;;
16888 chorus*)
16889 case $cc_basename in
16890 cxch68)
16891 # Green Hills C++ Compiler
16892 # _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"
16893 ;;
16894 esac
16895 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896 darwin*)
16897 # PIC is the default on this platform
16898 # Common symbols not allowed in MH_DYLIB files
16899 case "$cc_basename" in
16900 xlc*)
16901 lt_prog_compiler_pic_CXX='-qnocommon'
16902 lt_prog_compiler_wl_CXX='-Wl,'
16903 ;;
16904 esac
16905 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016906 dgux*)
16907 case $cc_basename in
16908 ec++)
16909 lt_prog_compiler_pic_CXX='-KPIC'
16910 ;;
16911 ghcx)
16912 # Green Hills C++ Compiler
16913 lt_prog_compiler_pic_CXX='-pic'
16914 ;;
16915 *)
16916 ;;
16917 esac
16918 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016919 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016920 # FreeBSD uses GNU C++
16921 ;;
16922 hpux9* | hpux10* | hpux11*)
16923 case $cc_basename in
16924 CC)
16925 lt_prog_compiler_wl_CXX='-Wl,'
16926 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16927 if test "$host_cpu" != ia64; then
16928 lt_prog_compiler_pic_CXX='+Z'
16929 fi
16930 ;;
16931 aCC)
16932 lt_prog_compiler_wl_CXX='-Wl,'
16933 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16934 case "$host_cpu" in
16935 hppa*64*|ia64*)
16936 # +Z the default
16937 ;;
16938 *)
16939 lt_prog_compiler_pic_CXX='+Z'
16940 ;;
16941 esac
16942 ;;
16943 *)
16944 ;;
16945 esac
16946 ;;
16947 irix5* | irix6* | nonstopux*)
16948 case $cc_basename in
16949 CC)
16950 lt_prog_compiler_wl_CXX='-Wl,'
16951 lt_prog_compiler_static_CXX='-non_shared'
16952 # CC pic flag -KPIC is the default.
16953 ;;
16954 *)
16955 ;;
16956 esac
16957 ;;
16958 linux*)
16959 case $cc_basename in
16960 KCC)
16961 # KAI C++ Compiler
16962 lt_prog_compiler_wl_CXX='--backend -Wl,'
16963 lt_prog_compiler_pic_CXX='-fPIC'
16964 ;;
16965 icpc)
16966 # Intel C++
16967 lt_prog_compiler_wl_CXX='-Wl,'
16968 lt_prog_compiler_pic_CXX='-KPIC'
16969 lt_prog_compiler_static_CXX='-static'
16970 ;;
16971 cxx)
16972 # Compaq C++
16973 # Make sure the PIC flag is empty. It appears that all Alpha
16974 # Linux and Compaq Tru64 Unix objects are PIC.
16975 lt_prog_compiler_pic_CXX=
16976 lt_prog_compiler_static_CXX='-non_shared'
16977 ;;
16978 *)
16979 ;;
16980 esac
16981 ;;
16982 lynxos*)
16983 ;;
16984 m88k*)
16985 ;;
16986 mvs*)
16987 case $cc_basename in
16988 cxx)
16989 lt_prog_compiler_pic_CXX='-W c,exportall'
16990 ;;
16991 *)
16992 ;;
16993 esac
16994 ;;
16995 netbsd*)
16996 ;;
16997 osf3* | osf4* | osf5*)
16998 case $cc_basename in
16999 KCC)
17000 lt_prog_compiler_wl_CXX='--backend -Wl,'
17001 ;;
17002 RCC)
17003 # Rational C++ 2.4.1
17004 lt_prog_compiler_pic_CXX='-pic'
17005 ;;
17006 cxx)
17007 # Digital/Compaq C++
17008 lt_prog_compiler_wl_CXX='-Wl,'
17009 # Make sure the PIC flag is empty. It appears that all Alpha
17010 # Linux and Compaq Tru64 Unix objects are PIC.
17011 lt_prog_compiler_pic_CXX=
17012 lt_prog_compiler_static_CXX='-non_shared'
17013 ;;
17014 *)
17015 ;;
17016 esac
17017 ;;
17018 psos*)
17019 ;;
17020 sco*)
17021 case $cc_basename in
17022 CC)
17023 lt_prog_compiler_pic_CXX='-fPIC'
17024 ;;
17025 *)
17026 ;;
17027 esac
17028 ;;
17029 solaris*)
17030 case $cc_basename in
17031 CC)
17032 # Sun C++ 4.2, 5.x and Centerline C++
17033 lt_prog_compiler_pic_CXX='-KPIC'
17034 lt_prog_compiler_static_CXX='-Bstatic'
17035 lt_prog_compiler_wl_CXX='-Qoption ld '
17036 ;;
17037 gcx)
17038 # Green Hills C++ Compiler
17039 lt_prog_compiler_pic_CXX='-PIC'
17040 ;;
17041 *)
17042 ;;
17043 esac
17044 ;;
17045 sunos4*)
17046 case $cc_basename in
17047 CC)
17048 # Sun C++ 4.x
17049 lt_prog_compiler_pic_CXX='-pic'
17050 lt_prog_compiler_static_CXX='-Bstatic'
17051 ;;
17052 lcc)
17053 # Lucid
17054 lt_prog_compiler_pic_CXX='-pic'
17055 ;;
17056 *)
17057 ;;
17058 esac
17059 ;;
17060 tandem*)
17061 case $cc_basename in
17062 NCC)
17063 # NonStop-UX NCC 3.20
17064 lt_prog_compiler_pic_CXX='-KPIC'
17065 ;;
17066 *)
17067 ;;
17068 esac
17069 ;;
17070 unixware*)
17071 ;;
17072 vxworks*)
17073 ;;
17074 *)
17075 lt_prog_compiler_can_build_shared_CXX=no
17076 ;;
17077 esac
17078 fi
17079
17080echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17081echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17082
17083#
17084# Check to make sure the PIC flag actually works.
17085#
17086if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000017087
17088echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000017089echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17090if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092else
17093 lt_prog_compiler_pic_works_CXX=no
17094 ac_outfile=conftest.$ac_objext
17095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17096 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17097 # Insert the option either (1) after the last *FLAGS variable, or
17098 # (2) before a word containing "conftest.", or (3) at the end.
17099 # Note that $ac_compile itself does not contain backslashes and begins
17100 # with a dollar sign (not a hyphen), so the echo should work correctly.
17101 # The option is referenced via a variable to avoid confusing sed.
17102 lt_compile=`echo "$ac_compile" | $SED \
17103 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17105 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000017106 (eval echo "\"\$as_me:17106: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000017107 (eval "$lt_compile" 2>conftest.err)
17108 ac_status=$?
17109 cat conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000017110 echo "$as_me:17110: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000017111 if (exit $ac_status) && test -s "$ac_outfile"; then
17112 # The compiler can only warn and ignore the option if not recognized
17113 # So say no if there are warnings
17114 if test ! -s conftest.err; then
17115 lt_prog_compiler_pic_works_CXX=yes
17116 fi
17117 fi
17118 $rm conftest*
17119
17120fi
17121echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17122echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17123
17124if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17125 case $lt_prog_compiler_pic_CXX in
17126 "" | " "*) ;;
17127 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17128 esac
17129else
17130 lt_prog_compiler_pic_CXX=
17131 lt_prog_compiler_can_build_shared_CXX=no
17132fi
17133
17134fi
17135case "$host_os" in
17136 # For platforms which do not support PIC, -DPIC is meaningless:
17137 *djgpp*)
17138 lt_prog_compiler_pic_CXX=
17139 ;;
17140 *)
17141 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17142 ;;
17143esac
17144
17145echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17146echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17147if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149else
17150 lt_cv_prog_compiler_c_o_CXX=no
17151 $rm -r conftest 2>/dev/null
17152 mkdir conftest
17153 cd conftest
17154 mkdir out
17155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17156
John Criswell47fdd832003-07-14 16:52:07 +000017157 lt_compiler_flag="-o out/conftest2.$ac_objext"
17158 # Insert the option either (1) after the last *FLAGS variable, or
17159 # (2) before a word containing "conftest.", or (3) at the end.
17160 # Note that $ac_compile itself does not contain backslashes and begins
17161 # with a dollar sign (not a hyphen), so the echo should work correctly.
17162 lt_compile=`echo "$ac_compile" | $SED \
17163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17165 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000017166 (eval echo "\"\$as_me:17166: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000017167 (eval "$lt_compile" 2>out/conftest.err)
17168 ac_status=$?
17169 cat out/conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000017170 echo "$as_me:17170: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000017171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17172 then
17173 # The compiler can only warn and ignore the option if not recognized
17174 # So say no if there are warnings
17175 if test ! -s out/conftest.err; then
17176 lt_cv_prog_compiler_c_o_CXX=yes
17177 fi
17178 fi
17179 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000017180 $rm conftest*
17181 # SGI C++ compiler will create directory out/ii_files/ for
17182 # template instantiation
17183 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17184 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000017185 cd ..
17186 rmdir conftest
17187 $rm conftest*
17188
17189fi
17190echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17191echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17192
17193
17194hard_links="nottested"
17195if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17196 # do not overwrite the value of need_locks provided by the user
17197 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17198echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17199 hard_links=yes
17200 $rm conftest*
17201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17202 touch conftest.a
17203 ln conftest.a conftest.b 2>&5 || hard_links=no
17204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17205 echo "$as_me:$LINENO: result: $hard_links" >&5
17206echo "${ECHO_T}$hard_links" >&6
17207 if test "$hard_links" = no; then
17208 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17209echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17210 need_locks=warn
17211 fi
17212else
17213 need_locks=no
17214fi
17215
17216echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17217echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17218
17219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17220 case $host_os in
17221 aix4* | aix5*)
17222 # If we're using GNU nm, then we don't want the "-C" option.
17223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17224 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17225 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'
17226 else
17227 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'
17228 fi
17229 ;;
17230 pw32*)
17231 export_symbols_cmds_CXX="$ltdll_cmds"
17232 ;;
17233 cygwin* | mingw*)
17234 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17235 ;;
17236 *)
17237 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17238 ;;
17239 esac
17240
17241echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17242echo "${ECHO_T}$ld_shlibs_CXX" >&6
17243test "$ld_shlibs_CXX" = no && can_build_shared=no
17244
17245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17246if test "$GCC" = yes; then
17247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17248fi
17249
17250#
17251# Do we need to explicitly link libc?
17252#
17253case "x$archive_cmds_need_lc_CXX" in
17254x|xyes)
17255 # Assume -lc should be added
17256 archive_cmds_need_lc_CXX=yes
17257
17258 if test "$enable_shared" = yes && test "$GCC" = yes; then
17259 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017260 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017261 # FIXME: we may have to deal with multi-command sequences.
17262 ;;
17263 '$CC '*)
17264 # Test whether the compiler implicitly links with -lc since on some
17265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17266 # to ld, don't add -lc before -lgcc.
17267 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17268echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17269 $rm conftest*
17270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17271
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } 2>conftest.err; then
17277 soname=conftest
17278 lib=conftest
17279 libobjs=conftest.$ac_objext
17280 deplibs=
17281 wl=$lt_prog_compiler_wl_CXX
17282 compiler_flags=-v
17283 linker_flags=-v
17284 verstring=
17285 output_objdir=.
17286 libname=conftest
17287 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17288 allow_undefined_flag_CXX=
17289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17290 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }
17294 then
17295 archive_cmds_need_lc_CXX=no
17296 else
17297 archive_cmds_need_lc_CXX=yes
17298 fi
17299 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17300 else
17301 cat conftest.err 1>&5
17302 fi
17303 $rm conftest*
17304 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17305echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17306 ;;
17307 esac
17308 fi
17309 ;;
17310esac
17311
John Criswell47fdd832003-07-14 16:52:07 +000017312echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17313echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17314library_names_spec=
17315libname_spec='lib$name'
17316soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017317shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017318postinstall_cmds=
17319postuninstall_cmds=
17320finish_cmds=
17321finish_eval=
17322shlibpath_var=
17323shlibpath_overrides_runpath=unknown
17324version_type=none
17325dynamic_linker="$host_os ld.so"
17326sys_lib_dlsearch_path_spec="/lib /usr/lib"
17327if test "$GCC" = yes; then
17328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17335 else
17336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17337 fi
17338else
17339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17340fi
17341need_lib_prefix=unknown
17342hardcode_into_libs=no
17343
17344# when you set need_version to no, make sure it does not cause -set_version
17345# flags to be left without arguments
17346need_version=unknown
17347
17348case $host_os in
17349aix3*)
17350 version_type=linux
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17352 shlibpath_var=LIBPATH
17353
17354 # AIX 3 has no versioning support, so we append a major version to the name.
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 ;;
17357
17358aix4* | aix5*)
17359 version_type=linux
17360 need_lib_prefix=no
17361 need_version=no
17362 hardcode_into_libs=yes
17363 if test "$host_cpu" = ia64; then
17364 # AIX 5 supports IA64
17365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 else
17368 # With GCC up to 2.95.x, collect2 would create an import file
17369 # for dependence libraries. The import file would start with
17370 # the line `#! .'. This would cause the generated library to
17371 # depend on `.', always an invalid library. This was fixed in
17372 # development snapshots of GCC prior to 3.0.
17373 case $host_os in
17374 aix4 | aix4.[01] | aix4.[01].*)
17375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17376 echo ' yes '
17377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17378 :
17379 else
17380 can_build_shared=no
17381 fi
17382 ;;
17383 esac
17384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17385 # soname into executable. Probably we can add versioning support to
17386 # collect2, so additional links can be useful in future.
17387 if test "$aix_use_runtimelinking" = yes; then
17388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17389 # instead of lib<name>.a to let people know that these are not
17390 # typical AIX shared libraries.
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 else
17393 # We preserve .a as extension for shared libraries through AIX4.2
17394 # and later when we are not doing run time linking.
17395 library_names_spec='${libname}${release}.a $libname.a'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 fi
17398 shlibpath_var=LIBPATH
17399 fi
17400 ;;
17401
17402amigaos*)
17403 library_names_spec='$libname.ixlibrary $libname.a'
17404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017405 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 +000017406 ;;
17407
17408beos*)
17409 library_names_spec='${libname}${shared_ext}'
17410 dynamic_linker="$host_os ld.so"
17411 shlibpath_var=LIBRARY_PATH
17412 ;;
17413
Reid Spencer2706f8c2004-09-19 23:53:36 +000017414bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017415 version_type=linux
17416 need_version=no
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17423 # the default ld.so.conf also contains /usr/contrib/lib and
17424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17425 # libtool to hard-code these into programs
17426 ;;
17427
17428cygwin* | mingw* | pw32*)
17429 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017430 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017431 need_version=no
17432 need_lib_prefix=no
17433
17434 case $GCC,$host_os in
17435 yes,cygwin* | yes,mingw* | yes,pw32*)
17436 library_names_spec='$libname.dll.a'
17437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017438 postinstall_cmds='base_file=`basename \${file}`~
17439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17440 dldir=$destdir/`dirname \$dlpath`~
17441 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017442 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17444 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017445 $rm \$dlpath'
17446 shlibpath_overrides_runpath=yes
17447
17448 case $host_os in
17449 cygwin*)
17450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17451 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 +000017452 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017453 ;;
17454 mingw*)
17455 # MinGW DLLs use traditional 'lib' prefix
17456 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17458 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17459 # It is most probably a Windows format PATH printed by
17460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17461 # path with ; separators, and with drive letters. We can handle the
17462 # drive letters (cygwin fileutils understands them), so leave them,
17463 # especially as we might pass files found there to a mingw objdump,
17464 # which wouldn't understand a cygwinified path. Ahh.
17465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17466 else
17467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17468 fi
17469 ;;
17470 pw32*)
17471 # pw32 DLLs use 'pw' prefix rather than 'lib'
17472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17473 ;;
17474 esac
17475 ;;
17476
17477 *)
17478 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17479 ;;
17480 esac
17481 dynamic_linker='Win32 ld.exe'
17482 # FIXME: first we should search . and the directory the executable is in
17483 shlibpath_var=PATH
17484 ;;
17485
17486darwin* | rhapsody*)
17487 dynamic_linker="$host_os dyld"
17488 version_type=darwin
17489 need_lib_prefix=no
17490 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017492 soname_spec='${libname}${release}${major}$shared_ext'
17493 shlibpath_overrides_runpath=yes
17494 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017495 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017496 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017497 if test "$GCC" = yes; then
17498 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"`
17499 else
17500 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017501 fi
17502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17503 ;;
17504
17505dgux*)
17506 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 ;;
17513
17514freebsd1*)
17515 dynamic_linker=no
17516 ;;
17517
Reid Spencer2706f8c2004-09-19 23:53:36 +000017518kfreebsd*-gnu)
17519 version_type=linux
17520 need_lib_prefix=no
17521 need_version=no
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=no
17526 hardcode_into_libs=yes
17527 dynamic_linker='GNU ld.so'
17528 ;;
17529
John Criswell47fdd832003-07-14 16:52:07 +000017530freebsd*)
17531 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17532 version_type=freebsd-$objformat
17533 case $version_type in
17534 freebsd-elf*)
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17536 need_version=no
17537 need_lib_prefix=no
17538 ;;
17539 freebsd-*)
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17541 need_version=yes
17542 ;;
17543 esac
17544 shlibpath_var=LD_LIBRARY_PATH
17545 case $host_os in
17546 freebsd2*)
17547 shlibpath_overrides_runpath=yes
17548 ;;
17549 freebsd3.01* | freebsdelf3.01*)
17550 shlibpath_overrides_runpath=yes
17551 hardcode_into_libs=yes
17552 ;;
17553 *) # from 3.2 on
17554 shlibpath_overrides_runpath=no
17555 hardcode_into_libs=yes
17556 ;;
17557 esac
17558 ;;
17559
17560gnu*)
17561 version_type=linux
17562 need_lib_prefix=no
17563 need_version=no
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 hardcode_into_libs=yes
17568 ;;
17569
17570hpux9* | hpux10* | hpux11*)
17571 # Give a soname corresponding to the major version so that dld.sl refuses to
17572 # link against other versions.
17573 version_type=sunos
17574 need_lib_prefix=no
17575 need_version=no
17576 case "$host_cpu" in
17577 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017578 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.so"
17581 shlibpath_var=LD_LIBRARY_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 if test "X$HPUX_IA64_MODE" = X32; then
17586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17587 else
17588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17589 fi
17590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17591 ;;
17592 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017593 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017594 hardcode_into_libs=yes
17595 dynamic_linker="$host_os dld.sl"
17596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17602 ;;
17603 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017604 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017605 dynamic_linker="$host_os dld.sl"
17606 shlibpath_var=SHLIB_PATH
17607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 soname_spec='${libname}${release}${shared_ext}$major'
17610 ;;
17611 esac
17612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17613 postinstall_cmds='chmod 555 $lib'
17614 ;;
17615
17616irix5* | irix6* | nonstopux*)
17617 case $host_os in
17618 nonstopux*) version_type=nonstopux ;;
17619 *)
17620 if test "$lt_cv_prog_gnu_ld" = yes; then
17621 version_type=linux
17622 else
17623 version_type=irix
17624 fi ;;
17625 esac
17626 need_lib_prefix=no
17627 need_version=no
17628 soname_spec='${libname}${release}${shared_ext}$major'
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17630 case $host_os in
17631 irix5* | nonstopux*)
17632 libsuff= shlibsuff=
17633 ;;
17634 *)
17635 case $LD in # libtool.m4 will add one of these switches to LD
17636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17637 libsuff= shlibsuff= libmagic=32-bit;;
17638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17639 libsuff=32 shlibsuff=N32 libmagic=N32;;
17640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17642 *) libsuff= shlibsuff= libmagic=never-match;;
17643 esac
17644 ;;
17645 esac
17646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17647 shlibpath_overrides_runpath=no
17648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17650 hardcode_into_libs=yes
17651 ;;
17652
17653# No shared lib support for Linux oldld, aout, or coff.
17654linux*oldld* | linux*aout* | linux*coff*)
17655 dynamic_linker=no
17656 ;;
17657
17658# This must be Linux ELF.
17659linux*)
17660 version_type=linux
17661 need_lib_prefix=no
17662 need_version=no
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17666 shlibpath_var=LD_LIBRARY_PATH
17667 shlibpath_overrides_runpath=no
17668 # This implies no fast_install, which is unacceptable.
17669 # Some rework will be needed to allow for fast_install
17670 # before this can be enabled.
17671 hardcode_into_libs=yes
17672
Reid Spencer2706f8c2004-09-19 23:53:36 +000017673 # Append ld.so.conf contents to the search path
17674 if test -f /etc/ld.so.conf; then
17675 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17676 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17677 fi
17678
John Criswell47fdd832003-07-14 16:52:07 +000017679 # We used to test for /lib/ld.so.1 and disable shared libraries on
17680 # powerpc, because MkLinux only supported shared libraries with the
17681 # GNU dynamic linker. Since this was broken with cross compilers,
17682 # most powerpc-linux boxes support dynamic linking these days and
17683 # people can always --disable-shared, the test was removed, and we
17684 # assume the GNU/Linux dynamic linker is in use.
17685 dynamic_linker='GNU/Linux ld.so'
17686 ;;
17687
Reid Spencer2706f8c2004-09-19 23:53:36 +000017688knetbsd*-gnu)
17689 version_type=linux
17690 need_lib_prefix=no
17691 need_version=no
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 shlibpath_overrides_runpath=no
17696 hardcode_into_libs=yes
17697 dynamic_linker='GNU ld.so'
17698 ;;
17699
John Criswell47fdd832003-07-14 16:52:07 +000017700netbsd*)
17701 version_type=sunos
17702 need_lib_prefix=no
17703 need_version=no
17704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17707 dynamic_linker='NetBSD (a.out) ld.so'
17708 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017710 soname_spec='${libname}${release}${shared_ext}$major'
17711 dynamic_linker='NetBSD ld.elf_so'
17712 fi
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=yes
17715 hardcode_into_libs=yes
17716 ;;
17717
17718newsos6)
17719 version_type=linux
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 shlibpath_overrides_runpath=yes
17723 ;;
17724
Reid Spencer2706f8c2004-09-19 23:53:36 +000017725nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017726 version_type=linux
17727 need_lib_prefix=no
17728 need_version=no
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=yes
17733 ;;
17734
17735openbsd*)
17736 version_type=sunos
17737 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017738 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17743 case $host_os in
17744 openbsd2.[89] | openbsd2.[89].*)
17745 shlibpath_overrides_runpath=no
17746 ;;
17747 *)
17748 shlibpath_overrides_runpath=yes
17749 ;;
17750 esac
17751 else
17752 shlibpath_overrides_runpath=yes
17753 fi
17754 ;;
17755
17756os2*)
17757 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017759 need_lib_prefix=no
17760 library_names_spec='$libname${shared_ext} $libname.a'
17761 dynamic_linker='OS/2 ld.exe'
17762 shlibpath_var=LIBPATH
17763 ;;
17764
17765osf3* | osf4* | osf5*)
17766 version_type=osf
17767 need_lib_prefix=no
17768 need_version=no
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 shlibpath_var=LD_LIBRARY_PATH
17772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17774 ;;
17775
17776sco3.2v5*)
17777 version_type=osf
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780 shlibpath_var=LD_LIBRARY_PATH
17781 ;;
17782
17783solaris*)
17784 version_type=linux
17785 need_lib_prefix=no
17786 need_version=no
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=yes
17791 hardcode_into_libs=yes
17792 # ldd complains unless libraries are executable
17793 postinstall_cmds='chmod +x $lib'
17794 ;;
17795
17796sunos4*)
17797 version_type=sunos
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=yes
17802 if test "$with_gnu_ld" = yes; then
17803 need_lib_prefix=no
17804 fi
17805 need_version=yes
17806 ;;
17807
17808sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17809 version_type=linux
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 case $host_vendor in
17814 sni)
17815 shlibpath_overrides_runpath=no
17816 need_lib_prefix=no
17817 export_dynamic_flag_spec='${wl}-Blargedynsym'
17818 runpath_var=LD_RUN_PATH
17819 ;;
17820 siemens)
17821 need_lib_prefix=no
17822 ;;
17823 motorola)
17824 need_lib_prefix=no
17825 need_version=no
17826 shlibpath_overrides_runpath=no
17827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17828 ;;
17829 esac
17830 ;;
17831
17832sysv4*MP*)
17833 if test -d /usr/nec ;then
17834 version_type=linux
17835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17836 soname_spec='$libname${shared_ext}.$major'
17837 shlibpath_var=LD_LIBRARY_PATH
17838 fi
17839 ;;
17840
17841uts4*)
17842 version_type=linux
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 ;;
17847
17848*)
17849 dynamic_linker=no
17850 ;;
17851esac
17852echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17853echo "${ECHO_T}$dynamic_linker" >&6
17854test "$dynamic_linker" = no && can_build_shared=no
17855
Reid Spencer2706f8c2004-09-19 23:53:36 +000017856echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17857echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17858hardcode_action_CXX=
17859if test -n "$hardcode_libdir_flag_spec_CXX" || \
17860 test -n "$runpath_var_CXX" || \
17861 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17862
17863 # We can hardcode non-existant directories.
17864 if test "$hardcode_direct_CXX" != no &&
17865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17866 # have to relink, otherwise we might link with an installed library
17867 # when we should be linking with a yet-to-be-installed one
17868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17869 test "$hardcode_minus_L_CXX" != no; then
17870 # Linking always hardcodes the temporary library directory.
17871 hardcode_action_CXX=relink
17872 else
17873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17874 hardcode_action_CXX=immediate
17875 fi
17876else
17877 # We cannot hardcode anything, or else we can only hardcode existing
17878 # directories.
17879 hardcode_action_CXX=unsupported
17880fi
17881echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17882echo "${ECHO_T}$hardcode_action_CXX" >&6
17883
17884if test "$hardcode_action_CXX" = relink; then
17885 # Fast installation is not supported
17886 enable_fast_install=no
17887elif test "$shlibpath_overrides_runpath" = yes ||
17888 test "$enable_shared" = no; then
17889 # Fast installation is not necessary
17890 enable_fast_install=needless
17891fi
17892
17893striplib=
17894old_striplib=
17895echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17896echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17897if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17898 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17899 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17900 echo "$as_me:$LINENO: result: yes" >&5
17901echo "${ECHO_T}yes" >&6
17902else
17903# FIXME - insert some real tests, host_os isn't really good enough
17904 case $host_os in
17905 darwin*)
17906 if test -n "$STRIP" ; then
17907 striplib="$STRIP -x"
17908 echo "$as_me:$LINENO: result: yes" >&5
17909echo "${ECHO_T}yes" >&6
17910 else
17911 echo "$as_me:$LINENO: result: no" >&5
17912echo "${ECHO_T}no" >&6
17913fi
17914 ;;
17915 *)
17916 echo "$as_me:$LINENO: result: no" >&5
17917echo "${ECHO_T}no" >&6
17918 ;;
17919 esac
17920fi
17921
John Criswell47fdd832003-07-14 16:52:07 +000017922if test "x$enable_dlopen" != xyes; then
17923 enable_dlopen=unknown
17924 enable_dlopen_self=unknown
17925 enable_dlopen_self_static=unknown
17926else
17927 lt_cv_dlopen=no
17928 lt_cv_dlopen_libs=
17929
17930 case $host_os in
17931 beos*)
17932 lt_cv_dlopen="load_add_on"
17933 lt_cv_dlopen_libs=
17934 lt_cv_dlopen_self=yes
17935 ;;
17936
17937 mingw* | pw32*)
17938 lt_cv_dlopen="LoadLibrary"
17939 lt_cv_dlopen_libs=
17940 ;;
17941
17942 cygwin*)
17943 lt_cv_dlopen="dlopen"
17944 lt_cv_dlopen_libs=
17945 ;;
17946
17947 darwin*)
17948 # if libdl is installed we need to link against it
17949 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17950echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17951if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17953else
17954 ac_check_lib_save_LIBS=$LIBS
17955LIBS="-ldl $LIBS"
17956cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017957/* confdefs.h. */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017962
17963/* Override any gcc2 internal prototype to avoid an error. */
17964#ifdef __cplusplus
17965extern "C"
17966#endif
17967/* We use char because int might match the return type of a gcc2
17968 builtin and then its argument prototype would still apply. */
17969char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017970int
17971main ()
17972{
17973dlopen ();
17974 ;
17975 return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext conftest$ac_exeext
17979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017980 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017987 { ac_try='test -z "$ac_cxx_werror_flag"
17988 || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_dl_dlopen=yes
18001else
18002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018003sed 's/^/| /' conftest.$ac_ext >&5
18004
John Criswell47fdd832003-07-14 16:52:07 +000018005ac_cv_lib_dl_dlopen=no
18006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018007rm -f conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018009LIBS=$ac_check_lib_save_LIBS
18010fi
18011echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18012echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18013if test $ac_cv_lib_dl_dlopen = yes; then
18014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18015else
18016
18017 lt_cv_dlopen="dyld"
18018 lt_cv_dlopen_libs=
18019 lt_cv_dlopen_self=yes
18020
18021fi
18022
18023 ;;
18024
18025 *)
18026 echo "$as_me:$LINENO: checking for shl_load" >&5
18027echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18028if test "${ac_cv_func_shl_load+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030else
18031 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018032/* confdefs.h. */
18033_ACEOF
18034cat confdefs.h >>conftest.$ac_ext
18035cat >>conftest.$ac_ext <<_ACEOF
18036/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018037/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18039#define shl_load innocuous_shl_load
18040
John Criswell47fdd832003-07-14 16:52:07 +000018041/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018042 which can conflict with char shl_load (); below.
18043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018045
John Criswell0c38eaf2003-09-10 15:17:25 +000018046#ifdef __STDC__
18047# include <limits.h>
18048#else
18049# include <assert.h>
18050#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018051
18052#undef shl_load
18053
John Criswell47fdd832003-07-14 16:52:07 +000018054/* Override any gcc2 internal prototype to avoid an error. */
18055#ifdef __cplusplus
18056extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018057{
John Criswell47fdd832003-07-14 16:52:07 +000018058#endif
18059/* We use char because int might match the return type of a gcc2
18060 builtin and then its argument prototype would still apply. */
18061char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018062/* The GNU C library defines this for functions which it implements
18063 to always fail with ENOSYS. Some functions are actually named
18064 something starting with __ and the normal name is an alias. */
18065#if defined (__stub_shl_load) || defined (__stub___shl_load)
18066choke me
18067#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018068char (*f) () = shl_load;
18069#endif
18070#ifdef __cplusplus
18071}
John Criswell47fdd832003-07-14 16:52:07 +000018072#endif
18073
John Criswell0c38eaf2003-09-10 15:17:25 +000018074int
18075main ()
18076{
18077return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000018078 ;
18079 return 0;
18080}
18081_ACEOF
18082rm -f conftest.$ac_objext conftest$ac_exeext
18083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018084 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018091 { ac_try='test -z "$ac_cxx_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018099 { (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); }; }; then
18104 ac_cv_func_shl_load=yes
18105else
18106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018107sed 's/^/| /' conftest.$ac_ext >&5
18108
John Criswell47fdd832003-07-14 16:52:07 +000018109ac_cv_func_shl_load=no
18110fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018111rm -f conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018113fi
18114echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18115echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18116if test $ac_cv_func_shl_load = yes; then
18117 lt_cv_dlopen="shl_load"
18118else
18119 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18120echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18121if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123else
18124 ac_check_lib_save_LIBS=$LIBS
18125LIBS="-ldld $LIBS"
18126cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018132
18133/* Override any gcc2 internal prototype to avoid an error. */
18134#ifdef __cplusplus
18135extern "C"
18136#endif
18137/* We use char because int might match the return type of a gcc2
18138 builtin and then its argument prototype would still apply. */
18139char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018140int
18141main ()
18142{
18143shl_load ();
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext conftest$ac_exeext
18149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018150 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018157 { ac_try='test -z "$ac_cxx_werror_flag"
18158 || test ! -s conftest.err'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_dld_shl_load=yes
18171else
18172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018173sed 's/^/| /' conftest.$ac_ext >&5
18174
John Criswell47fdd832003-07-14 16:52:07 +000018175ac_cv_lib_dld_shl_load=no
18176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018177rm -f conftest.err conftest.$ac_objext \
18178 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018179LIBS=$ac_check_lib_save_LIBS
18180fi
18181echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18182echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18183if test $ac_cv_lib_dld_shl_load = yes; then
18184 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18185else
18186 echo "$as_me:$LINENO: checking for dlopen" >&5
18187echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18188if test "${ac_cv_func_dlopen+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018197/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18199#define dlopen innocuous_dlopen
18200
John Criswell47fdd832003-07-14 16:52:07 +000018201/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018202 which can conflict with char dlopen (); below.
18203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18204 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018205
John Criswell0c38eaf2003-09-10 15:17:25 +000018206#ifdef __STDC__
18207# include <limits.h>
18208#else
18209# include <assert.h>
18210#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018211
18212#undef dlopen
18213
John Criswell47fdd832003-07-14 16:52:07 +000018214/* Override any gcc2 internal prototype to avoid an error. */
18215#ifdef __cplusplus
18216extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018217{
John Criswell47fdd832003-07-14 16:52:07 +000018218#endif
18219/* We use char because int might match the return type of a gcc2
18220 builtin and then its argument prototype would still apply. */
18221char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018222/* The GNU C library defines this for functions which it implements
18223 to always fail with ENOSYS. Some functions are actually named
18224 something starting with __ and the normal name is an alias. */
18225#if defined (__stub_dlopen) || defined (__stub___dlopen)
18226choke me
18227#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018228char (*f) () = dlopen;
18229#endif
18230#ifdef __cplusplus
18231}
John Criswell47fdd832003-07-14 16:52:07 +000018232#endif
18233
John Criswell0c38eaf2003-09-10 15:17:25 +000018234int
18235main ()
18236{
18237return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000018238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest.$ac_objext conftest$ac_exeext
18243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018244 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018251 { ac_try='test -z "$ac_cxx_werror_flag"
18252 || test ! -s conftest.err'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_func_dlopen=yes
18265else
18266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018267sed 's/^/| /' conftest.$ac_ext >&5
18268
John Criswell47fdd832003-07-14 16:52:07 +000018269ac_cv_func_dlopen=no
18270fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018271rm -f conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018273fi
18274echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18275echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18276if test $ac_cv_func_dlopen = yes; then
18277 lt_cv_dlopen="dlopen"
18278else
18279 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18280echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18281if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18283else
18284 ac_check_lib_save_LIBS=$LIBS
18285LIBS="-ldl $LIBS"
18286cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018292
18293/* Override any gcc2 internal prototype to avoid an error. */
18294#ifdef __cplusplus
18295extern "C"
18296#endif
18297/* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18299char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018300int
18301main ()
18302{
18303dlopen ();
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext conftest$ac_exeext
18309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018310 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018317 { ac_try='test -z "$ac_cxx_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_cv_lib_dl_dlopen=yes
18331else
18332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018333sed 's/^/| /' conftest.$ac_ext >&5
18334
John Criswell47fdd832003-07-14 16:52:07 +000018335ac_cv_lib_dl_dlopen=no
18336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018337rm -f conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018339LIBS=$ac_check_lib_save_LIBS
18340fi
18341echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18342echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18343if test $ac_cv_lib_dl_dlopen = yes; then
18344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18345else
18346 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18347echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18348if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350else
18351 ac_check_lib_save_LIBS=$LIBS
18352LIBS="-lsvld $LIBS"
18353cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018359
18360/* Override any gcc2 internal prototype to avoid an error. */
18361#ifdef __cplusplus
18362extern "C"
18363#endif
18364/* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18366char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018367int
18368main ()
18369{
18370dlopen ();
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext conftest$ac_exeext
18376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018377 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018384 { ac_try='test -z "$ac_cxx_werror_flag"
18385 || test ! -s conftest.err'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_lib_svld_dlopen=yes
18398else
18399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018400sed 's/^/| /' conftest.$ac_ext >&5
18401
John Criswell47fdd832003-07-14 16:52:07 +000018402ac_cv_lib_svld_dlopen=no
18403fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018404rm -f conftest.err conftest.$ac_objext \
18405 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018406LIBS=$ac_check_lib_save_LIBS
18407fi
18408echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18409echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18410if test $ac_cv_lib_svld_dlopen = yes; then
18411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18412else
18413 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18414echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18415if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18417else
18418 ac_check_lib_save_LIBS=$LIBS
18419LIBS="-ldld $LIBS"
18420cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
18425/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018426
18427/* Override any gcc2 internal prototype to avoid an error. */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431/* We use char because int might match the return type of a gcc2
18432 builtin and then its argument prototype would still apply. */
18433char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018434int
18435main ()
18436{
18437dld_link ();
18438 ;
18439 return 0;
18440}
18441_ACEOF
18442rm -f conftest.$ac_objext conftest$ac_exeext
18443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018444 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018451 { ac_try='test -z "$ac_cxx_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 ac_cv_lib_dld_dld_link=yes
18465else
18466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018467sed 's/^/| /' conftest.$ac_ext >&5
18468
John Criswell47fdd832003-07-14 16:52:07 +000018469ac_cv_lib_dld_dld_link=no
18470fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018471rm -f conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018473LIBS=$ac_check_lib_save_LIBS
18474fi
18475echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18476echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18477if test $ac_cv_lib_dld_dld_link = yes; then
18478 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18479fi
18480
18481
18482fi
18483
18484
18485fi
18486
18487
18488fi
18489
18490
18491fi
18492
18493
18494fi
18495
18496 ;;
18497 esac
18498
18499 if test "x$lt_cv_dlopen" != xno; then
18500 enable_dlopen=yes
18501 else
18502 enable_dlopen=no
18503 fi
18504
18505 case $lt_cv_dlopen in
18506 dlopen)
18507 save_CPPFLAGS="$CPPFLAGS"
18508 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18509
18510 save_LDFLAGS="$LDFLAGS"
18511 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18512
18513 save_LIBS="$LIBS"
18514 LIBS="$lt_cv_dlopen_libs $LIBS"
18515
18516 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18517echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18518if test "${lt_cv_dlopen_self+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520else
18521 if test "$cross_compiling" = yes; then :
18522 lt_cv_dlopen_self=cross
18523else
18524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18525 lt_status=$lt_dlunknown
18526 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +000018527#line 18527 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018528#include "confdefs.h"
18529
18530#if HAVE_DLFCN_H
18531#include <dlfcn.h>
18532#endif
18533
18534#include <stdio.h>
18535
18536#ifdef RTLD_GLOBAL
18537# define LT_DLGLOBAL RTLD_GLOBAL
18538#else
18539# ifdef DL_GLOBAL
18540# define LT_DLGLOBAL DL_GLOBAL
18541# else
18542# define LT_DLGLOBAL 0
18543# endif
18544#endif
18545
18546/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18547 find out it does not work in some platform. */
18548#ifndef LT_DLLAZY_OR_NOW
18549# ifdef RTLD_LAZY
18550# define LT_DLLAZY_OR_NOW RTLD_LAZY
18551# else
18552# ifdef DL_LAZY
18553# define LT_DLLAZY_OR_NOW DL_LAZY
18554# else
18555# ifdef RTLD_NOW
18556# define LT_DLLAZY_OR_NOW RTLD_NOW
18557# else
18558# ifdef DL_NOW
18559# define LT_DLLAZY_OR_NOW DL_NOW
18560# else
18561# define LT_DLLAZY_OR_NOW 0
18562# endif
18563# endif
18564# endif
18565# endif
18566#endif
18567
18568#ifdef __cplusplus
18569extern "C" void exit (int);
18570#endif
18571
18572void fnord() { int i=42;}
18573int main ()
18574{
18575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18576 int status = $lt_dlunknown;
18577
18578 if (self)
18579 {
18580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18582 /* dlclose (self); */
18583 }
18584
18585 exit (status);
18586}
18587EOF
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18593 (./conftest; exit; ) 2>/dev/null
18594 lt_status=$?
18595 case x$lt_status in
18596 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18597 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18598 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18599 esac
18600 else :
18601 # compilation failed
18602 lt_cv_dlopen_self=no
18603 fi
18604fi
18605rm -fr conftest*
18606
18607
18608fi
18609echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18610echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18611
18612 if test "x$lt_cv_dlopen_self" = xyes; then
18613 LDFLAGS="$LDFLAGS $link_static_flag"
18614 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18615echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18616if test "${lt_cv_dlopen_self_static+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618else
18619 if test "$cross_compiling" = yes; then :
18620 lt_cv_dlopen_self_static=cross
18621else
18622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18623 lt_status=$lt_dlunknown
18624 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +000018625#line 18625 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018626#include "confdefs.h"
18627
18628#if HAVE_DLFCN_H
18629#include <dlfcn.h>
18630#endif
18631
18632#include <stdio.h>
18633
18634#ifdef RTLD_GLOBAL
18635# define LT_DLGLOBAL RTLD_GLOBAL
18636#else
18637# ifdef DL_GLOBAL
18638# define LT_DLGLOBAL DL_GLOBAL
18639# else
18640# define LT_DLGLOBAL 0
18641# endif
18642#endif
18643
18644/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18645 find out it does not work in some platform. */
18646#ifndef LT_DLLAZY_OR_NOW
18647# ifdef RTLD_LAZY
18648# define LT_DLLAZY_OR_NOW RTLD_LAZY
18649# else
18650# ifdef DL_LAZY
18651# define LT_DLLAZY_OR_NOW DL_LAZY
18652# else
18653# ifdef RTLD_NOW
18654# define LT_DLLAZY_OR_NOW RTLD_NOW
18655# else
18656# ifdef DL_NOW
18657# define LT_DLLAZY_OR_NOW DL_NOW
18658# else
18659# define LT_DLLAZY_OR_NOW 0
18660# endif
18661# endif
18662# endif
18663# endif
18664#endif
18665
18666#ifdef __cplusplus
18667extern "C" void exit (int);
18668#endif
18669
18670void fnord() { int i=42;}
18671int main ()
18672{
18673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18674 int status = $lt_dlunknown;
18675
18676 if (self)
18677 {
18678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18679 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18680 /* dlclose (self); */
18681 }
18682
18683 exit (status);
18684}
18685EOF
18686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18687 (eval $ac_link) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18691 (./conftest; exit; ) 2>/dev/null
18692 lt_status=$?
18693 case x$lt_status in
18694 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18695 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18696 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18697 esac
18698 else :
18699 # compilation failed
18700 lt_cv_dlopen_self_static=no
18701 fi
18702fi
18703rm -fr conftest*
18704
18705
18706fi
18707echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18708echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18709 fi
18710
18711 CPPFLAGS="$save_CPPFLAGS"
18712 LDFLAGS="$save_LDFLAGS"
18713 LIBS="$save_LIBS"
18714 ;;
18715 esac
18716
18717 case $lt_cv_dlopen_self in
18718 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18719 *) enable_dlopen_self=unknown ;;
18720 esac
18721
18722 case $lt_cv_dlopen_self_static in
18723 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18724 *) enable_dlopen_self_static=unknown ;;
18725 esac
18726fi
18727
18728
18729# The else clause should only fire when bootstrapping the
18730# libtool distribution, otherwise you forgot to ship ltmain.sh
18731# with your package, and you will get complaints that there are
18732# no rules to generate ltmain.sh.
18733if test -f "$ltmain"; then
18734 # See if we are running on zsh, and set the options which allow our commands through
18735 # without removal of \ escapes.
18736 if test -n "${ZSH_VERSION+set}" ; then
18737 setopt NO_GLOB_SUBST
18738 fi
18739 # Now quote all the things that may contain metacharacters while being
18740 # careful not to overquote the AC_SUBSTed values. We take copies of the
18741 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018742 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18743 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018744 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18745 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18746 deplibs_check_method reload_flag reload_cmds need_locks \
18747 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18748 lt_cv_sys_global_symbol_to_c_name_address \
18749 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18750 old_postinstall_cmds old_postuninstall_cmds \
18751 compiler_CXX \
18752 CC_CXX \
18753 LD_CXX \
18754 lt_prog_compiler_wl_CXX \
18755 lt_prog_compiler_pic_CXX \
18756 lt_prog_compiler_static_CXX \
18757 lt_prog_compiler_no_builtin_flag_CXX \
18758 export_dynamic_flag_spec_CXX \
18759 thread_safe_flag_spec_CXX \
18760 whole_archive_flag_spec_CXX \
18761 enable_shared_with_static_runtimes_CXX \
18762 old_archive_cmds_CXX \
18763 old_archive_from_new_cmds_CXX \
18764 predep_objects_CXX \
18765 postdep_objects_CXX \
18766 predeps_CXX \
18767 postdeps_CXX \
18768 compiler_lib_search_path_CXX \
18769 archive_cmds_CXX \
18770 archive_expsym_cmds_CXX \
18771 postinstall_cmds_CXX \
18772 postuninstall_cmds_CXX \
18773 old_archive_from_expsyms_cmds_CXX \
18774 allow_undefined_flag_CXX \
18775 no_undefined_flag_CXX \
18776 export_symbols_cmds_CXX \
18777 hardcode_libdir_flag_spec_CXX \
18778 hardcode_libdir_flag_spec_ld_CXX \
18779 hardcode_libdir_separator_CXX \
18780 hardcode_automatic_CXX \
18781 module_cmds_CXX \
18782 module_expsym_cmds_CXX \
18783 lt_cv_prog_compiler_c_o_CXX \
18784 exclude_expsyms_CXX \
18785 include_expsyms_CXX; do
18786
18787 case $var in
18788 old_archive_cmds_CXX | \
18789 old_archive_from_new_cmds_CXX | \
18790 archive_cmds_CXX | \
18791 archive_expsym_cmds_CXX | \
18792 module_cmds_CXX | \
18793 module_expsym_cmds_CXX | \
18794 old_archive_from_expsyms_cmds_CXX | \
18795 export_symbols_cmds_CXX | \
18796 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18797 postinstall_cmds | postuninstall_cmds | \
18798 old_postinstall_cmds | old_postuninstall_cmds | \
18799 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18800 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018801 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 +000018802 ;;
18803 *)
18804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18805 ;;
18806 esac
18807 done
18808
18809 case $lt_echo in
18810 *'\$0 --fallback-echo"')
18811 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18812 ;;
18813 esac
18814
18815cfgfile="$ofile"
18816
18817 cat <<__EOF__ >> "$cfgfile"
18818# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18819
18820# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18821
18822# Shell to use when invoking shell scripts.
18823SHELL=$lt_SHELL
18824
18825# Whether or not to build shared libraries.
18826build_libtool_libs=$enable_shared
18827
18828# Whether or not to build static libraries.
18829build_old_libs=$enable_static
18830
18831# Whether or not to add -lc for building shared libraries.
18832build_libtool_need_lc=$archive_cmds_need_lc_CXX
18833
18834# Whether or not to disallow shared libs when runtime libs are static
18835allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18836
18837# Whether or not to optimize for fast installation.
18838fast_install=$enable_fast_install
18839
18840# The host system.
18841host_alias=$host_alias
18842host=$host
18843
18844# An echo program that does not interpret backslashes.
18845echo=$lt_echo
18846
18847# The archiver.
18848AR=$lt_AR
18849AR_FLAGS=$lt_AR_FLAGS
18850
18851# A C compiler.
18852LTCC=$lt_LTCC
18853
18854# A language-specific compiler.
18855CC=$lt_compiler_CXX
18856
18857# Is the compiler the GNU C compiler?
18858with_gcc=$GCC_CXX
18859
18860# An ERE matcher.
18861EGREP=$lt_EGREP
18862
18863# The linker used to build libraries.
18864LD=$lt_LD_CXX
18865
18866# Whether we need hard or soft links.
18867LN_S=$lt_LN_S
18868
18869# A BSD-compatible nm program.
18870NM=$lt_NM
18871
18872# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018873STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018874
18875# Used to examine libraries when file_magic_cmd begins "file"
18876MAGIC_CMD=$MAGIC_CMD
18877
18878# Used on cygwin: DLL creation program.
18879DLLTOOL="$DLLTOOL"
18880
18881# Used on cygwin: object dumper.
18882OBJDUMP="$OBJDUMP"
18883
18884# Used on cygwin: assembler.
18885AS="$AS"
18886
18887# The name of the directory that contains temporary libtool files.
18888objdir=$objdir
18889
18890# How to create reloadable object files.
18891reload_flag=$lt_reload_flag
18892reload_cmds=$lt_reload_cmds
18893
18894# How to pass a linker flag through the compiler.
18895wl=$lt_lt_prog_compiler_wl_CXX
18896
18897# Object file suffix (normally "o").
18898objext="$ac_objext"
18899
18900# Old archive suffix (normally "a").
18901libext="$libext"
18902
18903# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018904shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018905
18906# Executable file suffix (normally "").
18907exeext="$exeext"
18908
18909# Additional compiler flags for building library objects.
18910pic_flag=$lt_lt_prog_compiler_pic_CXX
18911pic_mode=$pic_mode
18912
18913# What is the maximum length of a command?
18914max_cmd_len=$lt_cv_sys_max_cmd_len
18915
18916# Does compiler simultaneously support -c and -o options?
18917compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18918
18919# Must we lock files when doing compilation ?
18920need_locks=$lt_need_locks
18921
18922# Do we need the lib prefix for modules?
18923need_lib_prefix=$need_lib_prefix
18924
18925# Do we need a version for libraries?
18926need_version=$need_version
18927
18928# Whether dlopen is supported.
18929dlopen_support=$enable_dlopen
18930
18931# Whether dlopen of programs is supported.
18932dlopen_self=$enable_dlopen_self
18933
18934# Whether dlopen of statically linked programs is supported.
18935dlopen_self_static=$enable_dlopen_self_static
18936
18937# Compiler flag to prevent dynamic linking.
18938link_static_flag=$lt_lt_prog_compiler_static_CXX
18939
18940# Compiler flag to turn off builtin functions.
18941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18942
18943# Compiler flag to allow reflexive dlopens.
18944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18945
18946# Compiler flag to generate shared objects directly from archives.
18947whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18948
18949# Compiler flag to generate thread-safe objects.
18950thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18951
18952# Library versioning type.
18953version_type=$version_type
18954
18955# Format of library name prefix.
18956libname_spec=$lt_libname_spec
18957
18958# List of archive names. First name is the real one, the rest are links.
18959# The last name is the one that the linker finds with -lNAME.
18960library_names_spec=$lt_library_names_spec
18961
18962# The coded name of the library, if different from the real name.
18963soname_spec=$lt_soname_spec
18964
18965# Commands used to build and install an old-style archive.
18966RANLIB=$lt_RANLIB
18967old_archive_cmds=$lt_old_archive_cmds_CXX
18968old_postinstall_cmds=$lt_old_postinstall_cmds
18969old_postuninstall_cmds=$lt_old_postuninstall_cmds
18970
18971# Create an old-style archive from a shared archive.
18972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18973
18974# Create a temporary old-style archive to link instead of a shared archive.
18975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18976
18977# Commands used to build and install a shared archive.
18978archive_cmds=$lt_archive_cmds_CXX
18979archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18980postinstall_cmds=$lt_postinstall_cmds
18981postuninstall_cmds=$lt_postuninstall_cmds
18982
18983# Commands used to build a loadable module (assumed same as above if empty)
18984module_cmds=$lt_module_cmds_CXX
18985module_expsym_cmds=$lt_module_expsym_cmds_CXX
18986
18987# Commands to strip libraries.
18988old_striplib=$lt_old_striplib
18989striplib=$lt_striplib
18990
18991# Dependencies to place before the objects being linked to create a
18992# shared library.
18993predep_objects=$lt_predep_objects_CXX
18994
18995# Dependencies to place after the objects being linked to create a
18996# shared library.
18997postdep_objects=$lt_postdep_objects_CXX
18998
18999# Dependencies to place before the objects being linked to create a
19000# shared library.
19001predeps=$lt_predeps_CXX
19002
19003# Dependencies to place after the objects being linked to create a
19004# shared library.
19005postdeps=$lt_postdeps_CXX
19006
19007# The library search path used internally by the compiler when linking
19008# a shared library.
19009compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19010
19011# Method to check whether dependent libraries are shared objects.
19012deplibs_check_method=$lt_deplibs_check_method
19013
19014# Command to use when deplibs_check_method == file_magic.
19015file_magic_cmd=$lt_file_magic_cmd
19016
19017# Flag that allows shared libraries with undefined symbols to be built.
19018allow_undefined_flag=$lt_allow_undefined_flag_CXX
19019
19020# Flag that forces no undefined symbols.
19021no_undefined_flag=$lt_no_undefined_flag_CXX
19022
19023# Commands used to finish a libtool library installation in a directory.
19024finish_cmds=$lt_finish_cmds
19025
19026# Same as above, but a single script fragment to be evaled but not shown.
19027finish_eval=$lt_finish_eval
19028
19029# Take the output of nm and produce a listing of raw symbols and C names.
19030global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19031
19032# Transform the output of nm in a proper C declaration
19033global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19034
19035# Transform the output of nm in a C name address pair
19036global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19037
19038# This is the shared library runtime path variable.
19039runpath_var=$runpath_var
19040
19041# This is the shared library path variable.
19042shlibpath_var=$shlibpath_var
19043
19044# Is shlibpath searched before the hard-coded library search path?
19045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19046
19047# How to hardcode a shared library path into an executable.
19048hardcode_action=$hardcode_action_CXX
19049
19050# Whether we should hardcode library paths into libraries.
19051hardcode_into_libs=$hardcode_into_libs
19052
19053# Flag to hardcode \$libdir into a binary during linking.
19054# This must work even if \$libdir does not exist.
19055hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19056
19057# If ld is used when linking, flag to hardcode \$libdir into
19058# a binary during linking. This must work even if \$libdir does
19059# not exist.
19060hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19061
19062# Whether we need a single -rpath flag with a separated argument.
19063hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19064
19065# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19066# resulting binary.
19067hardcode_direct=$hardcode_direct_CXX
19068
19069# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19070# resulting binary.
19071hardcode_minus_L=$hardcode_minus_L_CXX
19072
19073# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19074# the resulting binary.
19075hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19076
19077# Set to yes if building a shared library automatically hardcodes DIR into the library
19078# and all subsequent libraries and executables linked against it.
19079hardcode_automatic=$hardcode_automatic_CXX
19080
19081# Variables whose values should be saved in libtool wrapper scripts and
19082# restored at relink time.
19083variables_saved_for_relink="$variables_saved_for_relink"
19084
19085# Whether libtool must link a program against all its dependency libraries.
19086link_all_deplibs=$link_all_deplibs_CXX
19087
19088# Compile-time system search path for libraries
19089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19090
19091# Run-time system search path for libraries
19092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19093
19094# Fix the shell variable \$srcfile for the compiler.
19095fix_srcfile_path="$fix_srcfile_path_CXX"
19096
19097# Set to yes if exported symbols are required.
19098always_export_symbols=$always_export_symbols_CXX
19099
19100# The commands to list exported symbols.
19101export_symbols_cmds=$lt_export_symbols_cmds_CXX
19102
19103# The commands to extract the exported symbol list from a shared archive.
19104extract_expsyms_cmds=$lt_extract_expsyms_cmds
19105
19106# Symbols that should not be listed in the preloaded symbols.
19107exclude_expsyms=$lt_exclude_expsyms_CXX
19108
19109# Symbols that must always be exported.
19110include_expsyms=$lt_include_expsyms_CXX
19111
19112# ### END LIBTOOL TAG CONFIG: $tagname
19113
19114__EOF__
19115
19116
19117else
19118 # If there is no Makefile yet, we rely on a make rule to execute
19119 # `config.status --recheck' to rerun these tests and create the
19120 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19122 if test -f "$ltmain_in"; then
19123 test -f Makefile && make "$ltmain"
19124 fi
John Criswell47fdd832003-07-14 16:52:07 +000019125fi
19126
19127
19128ac_ext=c
19129ac_cpp='$CPP $CPPFLAGS'
19130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132ac_compiler_gnu=$ac_cv_c_compiler_gnu
19133
19134CC=$lt_save_CC
19135LDCXX=$LD
19136LD=$lt_save_LD
19137GCC=$lt_save_GCC
19138with_gnu_ldcxx=$with_gnu_ld
19139with_gnu_ld=$lt_save_with_gnu_ld
19140lt_cv_path_LDCXX=$lt_cv_path_LD
19141lt_cv_path_LD=$lt_save_path_LD
19142lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19143lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19144
19145 else
19146 tagname=""
19147 fi
19148 ;;
19149
19150 F77)
19151 if test -n "$F77" && test "X$F77" != "Xno"; then
19152
19153ac_ext=f
19154ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19155ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19157
19158
19159archive_cmds_need_lc_F77=no
19160allow_undefined_flag_F77=
19161always_export_symbols_F77=no
19162archive_expsym_cmds_F77=
19163export_dynamic_flag_spec_F77=
19164hardcode_direct_F77=no
19165hardcode_libdir_flag_spec_F77=
19166hardcode_libdir_flag_spec_ld_F77=
19167hardcode_libdir_separator_F77=
19168hardcode_minus_L_F77=no
19169hardcode_automatic_F77=no
19170module_cmds_F77=
19171module_expsym_cmds_F77=
19172link_all_deplibs_F77=unknown
19173old_archive_cmds_F77=$old_archive_cmds
19174no_undefined_flag_F77=
19175whole_archive_flag_spec_F77=
19176enable_shared_with_static_runtimes_F77=no
19177
19178# Source file extension for f77 test sources.
19179ac_ext=f
19180
19181# Object file extension for compiled f77 test sources.
19182objext=o
19183objext_F77=$objext
19184
19185# Code to be used in simple compile tests
19186lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19187
19188# Code to be used in simple link tests
19189lt_simple_link_test_code=" program t\n end\n"
19190
19191# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19192
19193# If no C compiler was specified, use CC.
19194LTCC=${LTCC-"$CC"}
19195
19196# Allow CC to be a program name with arguments.
19197compiler=$CC
19198
19199
19200# Allow CC to be a program name with arguments.
19201lt_save_CC="$CC"
19202CC=${F77-"f77"}
19203compiler=$CC
19204compiler_F77=$CC
19205cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19206
19207echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19208echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19209echo "$as_me:$LINENO: result: $can_build_shared" >&5
19210echo "${ECHO_T}$can_build_shared" >&6
19211
19212echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19213echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19214test "$can_build_shared" = "no" && enable_shared=no
19215
19216# On AIX, shared libraries and static libraries use the same namespace, and
19217# are all built from PIC.
19218case "$host_os" in
19219aix3*)
19220 test "$enable_shared" = yes && enable_static=no
19221 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000019223 postinstall_cmds='$RANLIB $lib'
19224 fi
19225 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019226aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000019227 test "$enable_shared" = yes && enable_static=no
19228 ;;
19229esac
19230echo "$as_me:$LINENO: result: $enable_shared" >&5
19231echo "${ECHO_T}$enable_shared" >&6
19232
19233echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19234echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19235# Make sure either enable_shared or enable_static is yes.
19236test "$enable_shared" = yes || enable_static=yes
19237echo "$as_me:$LINENO: result: $enable_static" >&5
19238echo "${ECHO_T}$enable_static" >&6
19239
19240test "$ld_shlibs_F77" = no && can_build_shared=no
19241
19242GCC_F77="$G77"
19243LD_F77="$LD"
19244
19245lt_prog_compiler_wl_F77=
19246lt_prog_compiler_pic_F77=
19247lt_prog_compiler_static_F77=
19248
19249echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19250echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19251
19252 if test "$GCC" = yes; then
19253 lt_prog_compiler_wl_F77='-Wl,'
19254 lt_prog_compiler_static_F77='-static'
19255
19256 case $host_os in
19257 aix*)
19258 # All AIX code is PIC.
19259 if test "$host_cpu" = ia64; then
19260 # AIX 5 now supports IA64 processor
19261 lt_prog_compiler_static_F77='-Bstatic'
19262 fi
19263 ;;
19264
19265 amigaos*)
19266 # FIXME: we need at least 68020 code to build shared libraries, but
19267 # adding the `-m68020' flag to GCC prevents building anything better,
19268 # like `-m68040'.
19269 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19270 ;;
19271
19272 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19273 # PIC is the default for these OSes.
19274 ;;
19275
19276 mingw* | pw32* | os2*)
19277 # This hack is so that the source file can tell whether it is being
19278 # built for inclusion in a dll (and should export symbols for example).
19279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19280 ;;
19281
19282 darwin* | rhapsody*)
19283 # PIC is the default on this platform
19284 # Common symbols not allowed in MH_DYLIB files
19285 lt_prog_compiler_pic_F77='-fno-common'
19286 ;;
19287
19288 msdosdjgpp*)
19289 # Just because we use GCC doesn't mean we suddenly get shared libraries
19290 # on systems that don't support them.
19291 lt_prog_compiler_can_build_shared_F77=no
19292 enable_shared=no
19293 ;;
19294
19295 sysv4*MP*)
19296 if test -d /usr/nec; then
19297 lt_prog_compiler_pic_F77=-Kconform_pic
19298 fi
19299 ;;
19300
19301 hpux*)
19302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19303 # not for PA HP-UX.
19304 case "$host_cpu" in
19305 hppa*64*|ia64*)
19306 # +Z the default
19307 ;;
19308 *)
19309 lt_prog_compiler_pic_F77='-fPIC'
19310 ;;
19311 esac
19312 ;;
19313
19314 *)
19315 lt_prog_compiler_pic_F77='-fPIC'
19316 ;;
19317 esac
19318 else
19319 # PORTME Check for flag to pass linker flags through the system compiler.
19320 case $host_os in
19321 aix*)
19322 lt_prog_compiler_wl_F77='-Wl,'
19323 if test "$host_cpu" = ia64; then
19324 # AIX 5 now supports IA64 processor
19325 lt_prog_compiler_static_F77='-Bstatic'
19326 else
19327 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19328 fi
19329 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019330 darwin*)
19331 # PIC is the default on this platform
19332 # Common symbols not allowed in MH_DYLIB files
19333 case "$cc_basename" in
19334 xlc*)
19335 lt_prog_compiler_pic_F77='-qnocommon'
19336 lt_prog_compiler_wl_F77='-Wl,'
19337 ;;
19338 esac
19339 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019340
19341 mingw* | pw32* | os2*)
19342 # This hack is so that the source file can tell whether it is being
19343 # built for inclusion in a dll (and should export symbols for example).
19344 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19345 ;;
19346
19347 hpux9* | hpux10* | hpux11*)
19348 lt_prog_compiler_wl_F77='-Wl,'
19349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19350 # not for PA HP-UX.
19351 case "$host_cpu" in
19352 hppa*64*|ia64*)
19353 # +Z the default
19354 ;;
19355 *)
19356 lt_prog_compiler_pic_F77='+Z'
19357 ;;
19358 esac
19359 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19360 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19361 ;;
19362
19363 irix5* | irix6* | nonstopux*)
19364 lt_prog_compiler_wl_F77='-Wl,'
19365 # PIC (with -KPIC) is the default.
19366 lt_prog_compiler_static_F77='-non_shared'
19367 ;;
19368
19369 newsos6)
19370 lt_prog_compiler_pic_F77='-KPIC'
19371 lt_prog_compiler_static_F77='-Bstatic'
19372 ;;
19373
19374 linux*)
19375 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019376 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019377 lt_prog_compiler_wl_F77='-Wl,'
19378 lt_prog_compiler_pic_F77='-KPIC'
19379 lt_prog_compiler_static_F77='-static'
19380 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019381 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019382 lt_prog_compiler_wl_F77='-Wl,'
19383 # All Alpha code is PIC.
19384 lt_prog_compiler_static_F77='-non_shared'
19385 ;;
19386 esac
19387 ;;
19388
19389 osf3* | osf4* | osf5*)
19390 lt_prog_compiler_wl_F77='-Wl,'
19391 # All OSF/1 code is PIC.
19392 lt_prog_compiler_static_F77='-non_shared'
19393 ;;
19394
19395 sco3.2v5*)
19396 lt_prog_compiler_pic_F77='-Kpic'
19397 lt_prog_compiler_static_F77='-dn'
19398 ;;
19399
19400 solaris*)
19401 lt_prog_compiler_wl_F77='-Wl,'
19402 lt_prog_compiler_pic_F77='-KPIC'
19403 lt_prog_compiler_static_F77='-Bstatic'
19404 ;;
19405
19406 sunos4*)
19407 lt_prog_compiler_wl_F77='-Qoption ld '
19408 lt_prog_compiler_pic_F77='-PIC'
19409 lt_prog_compiler_static_F77='-Bstatic'
19410 ;;
19411
19412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19413 lt_prog_compiler_wl_F77='-Wl,'
19414 lt_prog_compiler_pic_F77='-KPIC'
19415 lt_prog_compiler_static_F77='-Bstatic'
19416 ;;
19417
19418 sysv4*MP*)
19419 if test -d /usr/nec ;then
19420 lt_prog_compiler_pic_F77='-Kconform_pic'
19421 lt_prog_compiler_static_F77='-Bstatic'
19422 fi
19423 ;;
19424
19425 uts4*)
19426 lt_prog_compiler_pic_F77='-pic'
19427 lt_prog_compiler_static_F77='-Bstatic'
19428 ;;
19429
19430 *)
19431 lt_prog_compiler_can_build_shared_F77=no
19432 ;;
19433 esac
19434 fi
19435
19436echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19437echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19438
19439#
19440# Check to make sure the PIC flag actually works.
19441#
19442if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019443
19444echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19446if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448else
19449 lt_prog_compiler_pic_works_F77=no
19450 ac_outfile=conftest.$ac_objext
19451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19452 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19453 # Insert the option either (1) after the last *FLAGS variable, or
19454 # (2) before a word containing "conftest.", or (3) at the end.
19455 # Note that $ac_compile itself does not contain backslashes and begins
19456 # with a dollar sign (not a hyphen), so the echo should work correctly.
19457 # The option is referenced via a variable to avoid confusing sed.
19458 lt_compile=`echo "$ac_compile" | $SED \
19459 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19461 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000019462 (eval echo "\"\$as_me:19462: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019463 (eval "$lt_compile" 2>conftest.err)
19464 ac_status=$?
19465 cat conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000019466 echo "$as_me:19466: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019467 if (exit $ac_status) && test -s "$ac_outfile"; then
19468 # The compiler can only warn and ignore the option if not recognized
19469 # So say no if there are warnings
19470 if test ! -s conftest.err; then
19471 lt_prog_compiler_pic_works_F77=yes
19472 fi
19473 fi
19474 $rm conftest*
19475
19476fi
19477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19478echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19479
19480if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19481 case $lt_prog_compiler_pic_F77 in
19482 "" | " "*) ;;
19483 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19484 esac
19485else
19486 lt_prog_compiler_pic_F77=
19487 lt_prog_compiler_can_build_shared_F77=no
19488fi
19489
19490fi
19491case "$host_os" in
19492 # For platforms which do not support PIC, -DPIC is meaningless:
19493 *djgpp*)
19494 lt_prog_compiler_pic_F77=
19495 ;;
19496 *)
19497 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19498 ;;
19499esac
19500
19501echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19502echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19503if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506 lt_cv_prog_compiler_c_o_F77=no
19507 $rm -r conftest 2>/dev/null
19508 mkdir conftest
19509 cd conftest
19510 mkdir out
19511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19512
John Criswell47fdd832003-07-14 16:52:07 +000019513 lt_compiler_flag="-o out/conftest2.$ac_objext"
19514 # Insert the option either (1) after the last *FLAGS variable, or
19515 # (2) before a word containing "conftest.", or (3) at the end.
19516 # Note that $ac_compile itself does not contain backslashes and begins
19517 # with a dollar sign (not a hyphen), so the echo should work correctly.
19518 lt_compile=`echo "$ac_compile" | $SED \
19519 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19521 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000019522 (eval echo "\"\$as_me:19522: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019523 (eval "$lt_compile" 2>out/conftest.err)
19524 ac_status=$?
19525 cat out/conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000019526 echo "$as_me:19526: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19528 then
19529 # The compiler can only warn and ignore the option if not recognized
19530 # So say no if there are warnings
19531 if test ! -s out/conftest.err; then
19532 lt_cv_prog_compiler_c_o_F77=yes
19533 fi
19534 fi
19535 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019536 $rm conftest*
19537 # SGI C++ compiler will create directory out/ii_files/ for
19538 # template instantiation
19539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19540 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019541 cd ..
19542 rmdir conftest
19543 $rm conftest*
19544
19545fi
19546echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19547echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19548
19549
19550hard_links="nottested"
19551if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19552 # do not overwrite the value of need_locks provided by the user
19553 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19554echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19555 hard_links=yes
19556 $rm conftest*
19557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19558 touch conftest.a
19559 ln conftest.a conftest.b 2>&5 || hard_links=no
19560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561 echo "$as_me:$LINENO: result: $hard_links" >&5
19562echo "${ECHO_T}$hard_links" >&6
19563 if test "$hard_links" = no; then
19564 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19565echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19566 need_locks=warn
19567 fi
19568else
19569 need_locks=no
19570fi
19571
19572echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19573echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19574
19575 runpath_var=
19576 allow_undefined_flag_F77=
19577 enable_shared_with_static_runtimes_F77=no
19578 archive_cmds_F77=
19579 archive_expsym_cmds_F77=
19580 old_archive_From_new_cmds_F77=
19581 old_archive_from_expsyms_cmds_F77=
19582 export_dynamic_flag_spec_F77=
19583 whole_archive_flag_spec_F77=
19584 thread_safe_flag_spec_F77=
19585 hardcode_libdir_flag_spec_F77=
19586 hardcode_libdir_flag_spec_ld_F77=
19587 hardcode_libdir_separator_F77=
19588 hardcode_direct_F77=no
19589 hardcode_minus_L_F77=no
19590 hardcode_shlibpath_var_F77=unsupported
19591 link_all_deplibs_F77=unknown
19592 hardcode_automatic_F77=no
19593 module_cmds_F77=
19594 module_expsym_cmds_F77=
19595 always_export_symbols_F77=no
19596 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19597 # include_expsyms should be a list of space-separated symbols to be *always*
19598 # included in the symbol list
19599 include_expsyms_F77=
19600 # exclude_expsyms can be an extended regexp of symbols to exclude
19601 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19603 # as well as any symbol that contains `d'.
19604 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19606 # platforms (ab)use it in PIC code, but their linkers get confused if
19607 # the symbol is explicitly referenced. Since portable code cannot
19608 # rely on this symbol name, it's probably fine to never include it in
19609 # preloaded symbol tables.
19610 extract_expsyms_cmds=
19611
19612 case $host_os in
19613 cygwin* | mingw* | pw32*)
19614 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19615 # When not using gcc, we currently assume that we are using
19616 # Microsoft Visual C++.
19617 if test "$GCC" != yes; then
19618 with_gnu_ld=no
19619 fi
19620 ;;
19621 openbsd*)
19622 with_gnu_ld=no
19623 ;;
19624 esac
19625
19626 ld_shlibs_F77=yes
19627 if test "$with_gnu_ld" = yes; then
19628 # If archive_cmds runs LD, not CC, wlarc should be empty
19629 wlarc='${wl}'
19630
19631 # See if GNU ld supports shared libraries.
19632 case $host_os in
19633 aix3* | aix4* | aix5*)
19634 # On AIX/PPC, the GNU linker is very broken
19635 if test "$host_cpu" != ia64; then
19636 ld_shlibs_F77=no
19637 cat <<EOF 1>&2
19638
19639*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19640*** to be unable to reliably create shared libraries on AIX.
19641*** Therefore, libtool is disabling shared libraries support. If you
19642*** really care for shared libraries, you may want to modify your PATH
19643*** so that a non-GNU linker is found, and then restart.
19644
19645EOF
19646 fi
19647 ;;
19648
19649 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019650 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 +000019651 hardcode_libdir_flag_spec_F77='-L$libdir'
19652 hardcode_minus_L_F77=yes
19653
19654 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19655 # that the semantics of dynamic libraries on AmigaOS, at least up
19656 # to version 4, is to share data among multiple programs linked
19657 # with the same dynamic library. Since this doesn't match the
19658 # behavior of shared libraries on other platforms, we can't use
19659 # them.
19660 ld_shlibs_F77=no
19661 ;;
19662
19663 beos*)
19664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19665 allow_undefined_flag_F77=unsupported
19666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19667 # support --undefined. This deserves some investigation. FIXME
19668 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19669 else
19670 ld_shlibs_F77=no
19671 fi
19672 ;;
19673
19674 cygwin* | mingw* | pw32*)
19675 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19676 # as there is no search path for DLLs.
19677 hardcode_libdir_flag_spec_F77='-L$libdir'
19678 allow_undefined_flag_F77=unsupported
19679 always_export_symbols_F77=no
19680 enable_shared_with_static_runtimes_F77=yes
19681 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19682
19683 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19684 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19685 # If the export-symbols file already is a .def file (1st line
19686 # is EXPORTS), use it as is; otherwise, prepend...
19687 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19688 cp $export_symbols $output_objdir/$soname.def;
19689 else
19690 echo EXPORTS > $output_objdir/$soname.def;
19691 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019692 fi~
19693 $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 +000019694 else
19695 ld_shlibs=no
19696 fi
19697 ;;
19698
19699 netbsd*)
19700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19701 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19702 wlarc=
19703 else
19704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19706 fi
19707 ;;
19708
19709 solaris* | sysv5*)
19710 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19711 ld_shlibs_F77=no
19712 cat <<EOF 1>&2
19713
19714*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19715*** create shared libraries on Solaris systems. Therefore, libtool
19716*** is disabling shared libraries support. We urge you to upgrade GNU
19717*** binutils to release 2.9.1 or newer. Another option is to modify
19718*** your PATH or compiler configuration so that the native linker is
19719*** used, and then restart.
19720
19721EOF
19722 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19725 else
19726 ld_shlibs_F77=no
19727 fi
19728 ;;
19729
19730 sunos4*)
19731 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19732 wlarc=
19733 hardcode_direct_F77=yes
19734 hardcode_shlibpath_var_F77=no
19735 ;;
19736
Reid Spencer2706f8c2004-09-19 23:53:36 +000019737 linux*)
19738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19739 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19740 archive_cmds_F77="$tmp_archive_cmds"
19741 supports_anon_versioning=no
19742 case `$LD -v 2>/dev/null` in
19743 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19746 *\ 2.11.*) ;; # other 2.11 versions
19747 *) supports_anon_versioning=yes ;;
19748 esac
19749 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019750 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19751cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19752$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019753 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19754 else
19755 archive_expsym_cmds_F77="$tmp_archive_cmds"
19756 fi
19757 else
19758 ld_shlibs_F77=no
19759 fi
19760 ;;
19761
John Criswell47fdd832003-07-14 16:52:07 +000019762 *)
19763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19766 else
19767 ld_shlibs_F77=no
19768 fi
19769 ;;
19770 esac
19771
19772 if test "$ld_shlibs_F77" = yes; then
19773 runpath_var=LD_RUN_PATH
19774 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19775 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19776 # ancient GNU ld didn't support --whole-archive et. al.
19777 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19778 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19779 else
19780 whole_archive_flag_spec_F77=
19781 fi
19782 fi
19783 else
19784 # PORTME fill in a description of your system's linker (not GNU ld)
19785 case $host_os in
19786 aix3*)
19787 allow_undefined_flag_F77=unsupported
19788 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019789 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 +000019790 # Note: this linker hardcodes the directories in LIBPATH if there
19791 # are no directories specified by -L.
19792 hardcode_minus_L_F77=yes
19793 if test "$GCC" = yes && test -z "$link_static_flag"; then
19794 # Neither direct hardcoding nor static linking is supported with a
19795 # broken collect2.
19796 hardcode_direct_F77=unsupported
19797 fi
19798 ;;
19799
19800 aix4* | aix5*)
19801 if test "$host_cpu" = ia64; then
19802 # On IA64, the linker does run time linking by default, so we don't
19803 # have to do anything special.
19804 aix_use_runtimelinking=no
19805 exp_sym_flag='-Bexport'
19806 no_entry_flag=""
19807 else
19808 # If we're using GNU nm, then we don't want the "-C" option.
19809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19811 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'
19812 else
19813 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'
19814 fi
19815 aix_use_runtimelinking=no
19816
19817 # Test if we are trying to use run time linking or normal
19818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19819 # need to do runtime linking.
19820 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19821 for ld_flag in $LDFLAGS; do
19822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19823 aix_use_runtimelinking=yes
19824 break
19825 fi
19826 done
19827 esac
19828
19829 exp_sym_flag='-bexport'
19830 no_entry_flag='-bnoentry'
19831 fi
19832
19833 # When large executables or shared objects are built, AIX ld can
19834 # have problems creating the table of contents. If linking a library
19835 # or program results in "error TOC overflow" add -mminimal-toc to
19836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19838
19839 archive_cmds_F77=''
19840 hardcode_direct_F77=yes
19841 hardcode_libdir_separator_F77=':'
19842 link_all_deplibs_F77=yes
19843
19844 if test "$GCC" = yes; then
19845 case $host_os in aix4.012|aix4.012.*)
19846 # We only want to do this on AIX 4.2 and lower, the check
19847 # below for broken collect2 doesn't work under 4.3+
19848 collect2name=`${CC} -print-prog-name=collect2`
19849 if test -f "$collect2name" && \
19850 strings "$collect2name" | grep resolve_lib_name >/dev/null
19851 then
19852 # We have reworked collect2
19853 hardcode_direct_F77=yes
19854 else
19855 # We have old collect2
19856 hardcode_direct_F77=unsupported
19857 # It fails to find uninstalled libraries when the uninstalled
19858 # path is not listed in the libpath. Setting hardcode_minus_L
19859 # to unsupported forces relinking
19860 hardcode_minus_L_F77=yes
19861 hardcode_libdir_flag_spec_F77='-L$libdir'
19862 hardcode_libdir_separator_F77=
19863 fi
19864 esac
19865 shared_flag='-shared'
19866 else
19867 # not using gcc
19868 if test "$host_cpu" = ia64; then
19869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19870 # chokes on -Wl,-G. The following line is correct:
19871 shared_flag='-G'
19872 else
19873 if test "$aix_use_runtimelinking" = yes; then
19874 shared_flag='${wl}-G'
19875 else
19876 shared_flag='${wl}-bM:SRE'
19877 fi
19878 fi
19879 fi
19880
19881 # It seems that -bexpall does not export symbols beginning with
19882 # underscore (_), so it is better to generate a list of symbols to export.
19883 always_export_symbols_F77=yes
19884 if test "$aix_use_runtimelinking" = yes; then
19885 # Warning - without using the other runtime loading flags (-brtl),
19886 # -berok will link without error, but may produce a broken library.
19887 allow_undefined_flag_F77='-berok'
19888 # Determine the default libpath from the value encoded in an empty executable.
19889 cat >conftest.$ac_ext <<_ACEOF
19890 program main
19891
19892 end
19893_ACEOF
19894rm -f conftest.$ac_objext conftest$ac_exeext
19895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019896 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019903 { ac_try='test -z "$ac_f77_werror_flag"
19904 || test ! -s conftest.err'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19907 ac_status=$?
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916
19917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19918}'`
19919# Check for a 64-bit object if we didn't find anything.
19920if 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; }
19921}'`; fi
19922else
19923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019924sed 's/^/| /' conftest.$ac_ext >&5
19925
John Criswell47fdd832003-07-14 16:52:07 +000019926fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019927rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19930
19931 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19932 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"
19933 else
19934 if test "$host_cpu" = ia64; then
19935 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19936 allow_undefined_flag_F77="-z nodefs"
19937 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"
19938 else
19939 # Determine the default libpath from the value encoded in an empty executable.
19940 cat >conftest.$ac_ext <<_ACEOF
19941 program main
19942
19943 end
19944_ACEOF
19945rm -f conftest.$ac_objext conftest$ac_exeext
19946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019947 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019954 { ac_try='test -z "$ac_f77_werror_flag"
19955 || test ! -s conftest.err'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967
19968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19969}'`
19970# Check for a 64-bit object if we didn't find anything.
19971if 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; }
19972}'`; fi
19973else
19974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019975sed 's/^/| /' conftest.$ac_ext >&5
19976
John Criswell47fdd832003-07-14 16:52:07 +000019977fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019978rm -f conftest.err conftest.$ac_objext \
19979 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19981
19982 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19983 # Warning - without using the other run time loading flags,
19984 # -berok will link without error, but may produce a broken library.
19985 no_undefined_flag_F77=' ${wl}-bernotok'
19986 allow_undefined_flag_F77=' ${wl}-berok'
19987 # -bexpall does not export symbols beginning with underscore (_)
19988 always_export_symbols_F77=yes
19989 # Exported symbols can be pulled into shared objects from archives
19990 whole_archive_flag_spec_F77=' '
19991 archive_cmds_need_lc_F77=yes
19992 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019993 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 +000019994 fi
19995 fi
19996 ;;
19997
19998 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019999 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 +000020000 hardcode_libdir_flag_spec_F77='-L$libdir'
20001 hardcode_minus_L_F77=yes
20002 # see comment about different semantics on the GNU ld section
20003 ld_shlibs_F77=no
20004 ;;
20005
Reid Spencer2706f8c2004-09-19 23:53:36 +000020006 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020007 export_dynamic_flag_spec_F77=-rdynamic
20008 ;;
20009
20010 cygwin* | mingw* | pw32*)
20011 # When not using gcc, we currently assume that we are using
20012 # Microsoft Visual C++.
20013 # hardcode_libdir_flag_spec is actually meaningless, as there is
20014 # no search path for DLLs.
20015 hardcode_libdir_flag_spec_F77=' '
20016 allow_undefined_flag_F77=unsupported
20017 # Tell ltmain to make .lib files, not .a files.
20018 libext=lib
20019 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020020 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020021 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000020022 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 +000020023 # The linker will automatically build a .lib file if we build a DLL.
20024 old_archive_From_new_cmds_F77='true'
20025 # FIXME: Should let the user specify the lib program.
20026 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20027 fix_srcfile_path='`cygpath -w "$srcfile"`'
20028 enable_shared_with_static_runtimes_F77=yes
20029 ;;
20030
20031 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000020032 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020033 rhapsody* | darwin1.[012])
20034 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20035 ;;
20036 *) # Darwin 1.3 on
20037 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20038 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20039 else
20040 case ${MACOSX_DEPLOYMENT_TARGET} in
20041 10.[012])
20042 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20043 ;;
20044 10.*)
20045 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20046 ;;
20047 esac
20048 fi
20049 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020050 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000020051 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000020052 hardcode_direct_F77=no
20053 hardcode_automatic_F77=yes
20054 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000020055 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000020056 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000020057 if test "$GCC" = yes ; then
20058 output_verbose_link_cmd='echo'
20059 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20060 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20061 # 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 +000020062 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}'
20063 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 +000020064 else
20065 case "$cc_basename" in
20066 xlc*)
20067 output_verbose_link_cmd='echo'
20068 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20069 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20070 # 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 +000020071 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}'
20072 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 +000020073 ;;
20074 *)
20075 ld_shlibs_F77=no
20076 ;;
20077 esac
John Criswell47fdd832003-07-14 16:52:07 +000020078 fi
20079 ;;
20080
20081 dgux*)
20082 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20083 hardcode_libdir_flag_spec_F77='-L$libdir'
20084 hardcode_shlibpath_var_F77=no
20085 ;;
20086
20087 freebsd1*)
20088 ld_shlibs_F77=no
20089 ;;
20090
20091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20092 # support. Future versions do this automatically, but an explicit c++rt0.o
20093 # does not break anything, and helps significantly (at the cost of a little
20094 # extra space).
20095 freebsd2.2*)
20096 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20097 hardcode_libdir_flag_spec_F77='-R$libdir'
20098 hardcode_direct_F77=yes
20099 hardcode_shlibpath_var_F77=no
20100 ;;
20101
20102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20103 freebsd2*)
20104 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20105 hardcode_direct_F77=yes
20106 hardcode_minus_L_F77=yes
20107 hardcode_shlibpath_var_F77=no
20108 ;;
20109
20110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020111 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000020112 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20113 hardcode_libdir_flag_spec_F77='-R$libdir'
20114 hardcode_direct_F77=yes
20115 hardcode_shlibpath_var_F77=no
20116 ;;
20117
20118 hpux9*)
20119 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020120 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 +000020121 else
Reid Spencer177dbe22004-10-13 01:01:03 +000020122 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 +000020123 fi
20124 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20125 hardcode_libdir_separator_F77=:
20126 hardcode_direct_F77=yes
20127
20128 # hardcode_minus_L: Not really in the search PATH,
20129 # but as the default location of the library.
20130 hardcode_minus_L_F77=yes
20131 export_dynamic_flag_spec_F77='${wl}-E'
20132 ;;
20133
20134 hpux10* | hpux11*)
20135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20136 case "$host_cpu" in
20137 hppa*64*|ia64*)
20138 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20139 ;;
20140 *)
20141 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20142 ;;
20143 esac
20144 else
20145 case "$host_cpu" in
20146 hppa*64*|ia64*)
20147 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20148 ;;
20149 *)
20150 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20151 ;;
20152 esac
20153 fi
20154 if test "$with_gnu_ld" = no; then
20155 case "$host_cpu" in
20156 hppa*64*)
20157 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20158 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20159 hardcode_libdir_separator_F77=:
20160 hardcode_direct_F77=no
20161 hardcode_shlibpath_var_F77=no
20162 ;;
20163 ia64*)
20164 hardcode_libdir_flag_spec_F77='-L$libdir'
20165 hardcode_direct_F77=no
20166 hardcode_shlibpath_var_F77=no
20167
20168 # hardcode_minus_L: Not really in the search PATH,
20169 # but as the default location of the library.
20170 hardcode_minus_L_F77=yes
20171 ;;
20172 *)
20173 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20174 hardcode_libdir_separator_F77=:
20175 hardcode_direct_F77=yes
20176 export_dynamic_flag_spec_F77='${wl}-E'
20177
20178 # hardcode_minus_L: Not really in the search PATH,
20179 # but as the default location of the library.
20180 hardcode_minus_L_F77=yes
20181 ;;
20182 esac
20183 fi
20184 ;;
20185
20186 irix5* | irix6* | nonstopux*)
20187 if test "$GCC" = yes; then
20188 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'
20189 else
20190 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'
20191 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20192 fi
20193 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20194 hardcode_libdir_separator_F77=:
20195 link_all_deplibs_F77=yes
20196 ;;
20197
20198 netbsd*)
20199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20201 else
20202 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20203 fi
20204 hardcode_libdir_flag_spec_F77='-R$libdir'
20205 hardcode_direct_F77=yes
20206 hardcode_shlibpath_var_F77=no
20207 ;;
20208
20209 newsos6)
20210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211 hardcode_direct_F77=yes
20212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20213 hardcode_libdir_separator_F77=:
20214 hardcode_shlibpath_var_F77=no
20215 ;;
20216
20217 openbsd*)
20218 hardcode_direct_F77=yes
20219 hardcode_shlibpath_var_F77=no
20220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020222 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 +000020223 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20224 export_dynamic_flag_spec_F77='${wl}-E'
20225 else
20226 case $host_os in
20227 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20228 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20229 hardcode_libdir_flag_spec_F77='-R$libdir'
20230 ;;
20231 *)
20232 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20233 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20234 ;;
20235 esac
20236 fi
20237 ;;
20238
20239 os2*)
20240 hardcode_libdir_flag_spec_F77='-L$libdir'
20241 hardcode_minus_L_F77=yes
20242 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000020243 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 +000020244 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20245 ;;
20246
20247 osf3*)
20248 if test "$GCC" = yes; then
20249 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20250 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'
20251 else
20252 allow_undefined_flag_F77=' -expect_unresolved \*'
20253 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'
20254 fi
20255 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20256 hardcode_libdir_separator_F77=:
20257 ;;
20258
20259 osf4* | osf5*) # as osf3* with the addition of -msym flag
20260 if test "$GCC" = yes; then
20261 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20262 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'
20263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20264 else
20265 allow_undefined_flag_F77=' -expect_unresolved \*'
20266 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 +000020267 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~
20268 $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'
20269
John Criswell47fdd832003-07-14 16:52:07 +000020270 # Both c and cxx compiler support -rpath directly
20271 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20272 fi
20273 hardcode_libdir_separator_F77=:
20274 ;;
20275
20276 sco3.2v5*)
20277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20278 hardcode_shlibpath_var_F77=no
20279 export_dynamic_flag_spec_F77='${wl}-Bexport'
20280 runpath_var=LD_RUN_PATH
20281 hardcode_runpath_var=yes
20282 ;;
20283
20284 solaris*)
20285 no_undefined_flag_F77=' -z text'
20286 if test "$GCC" = yes; then
20287 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020288 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20289 $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 +000020290 else
20291 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020292 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20293 $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 +000020294 fi
20295 hardcode_libdir_flag_spec_F77='-R$libdir'
20296 hardcode_shlibpath_var_F77=no
20297 case $host_os in
20298 solaris2.[0-5] | solaris2.[0-5].*) ;;
20299 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20300 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20301 esac
20302 link_all_deplibs_F77=yes
20303 ;;
20304
20305 sunos4*)
20306 if test "x$host_vendor" = xsequent; then
20307 # Use $CC to link under sequent, because it throws in some extra .o
20308 # files that make .init and .fini sections work.
20309 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20310 else
20311 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20312 fi
20313 hardcode_libdir_flag_spec_F77='-L$libdir'
20314 hardcode_direct_F77=yes
20315 hardcode_minus_L_F77=yes
20316 hardcode_shlibpath_var_F77=no
20317 ;;
20318
20319 sysv4)
20320 case $host_vendor in
20321 sni)
20322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20323 hardcode_direct_F77=yes # is this really true???
20324 ;;
20325 siemens)
20326 ## LD is ld it makes a PLAMLIB
20327 ## CC just makes a GrossModule.
20328 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20329 reload_cmds_F77='$CC -r -o $output$reload_objs'
20330 hardcode_direct_F77=no
20331 ;;
20332 motorola)
20333 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20334 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20335 ;;
20336 esac
20337 runpath_var='LD_RUN_PATH'
20338 hardcode_shlibpath_var_F77=no
20339 ;;
20340
20341 sysv4.3*)
20342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20343 hardcode_shlibpath_var_F77=no
20344 export_dynamic_flag_spec_F77='-Bexport'
20345 ;;
20346
20347 sysv4*MP*)
20348 if test -d /usr/nec; then
20349 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20350 hardcode_shlibpath_var_F77=no
20351 runpath_var=LD_RUN_PATH
20352 hardcode_runpath_var=yes
20353 ld_shlibs_F77=yes
20354 fi
20355 ;;
20356
20357 sysv4.2uw2*)
20358 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20359 hardcode_direct_F77=yes
20360 hardcode_minus_L_F77=no
20361 hardcode_shlibpath_var_F77=no
20362 hardcode_runpath_var=yes
20363 runpath_var=LD_RUN_PATH
20364 ;;
20365
20366 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20367 no_undefined_flag_F77='${wl}-z ${wl}text'
20368 if test "$GCC" = yes; then
20369 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20370 else
20371 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20372 fi
20373 runpath_var='LD_RUN_PATH'
20374 hardcode_shlibpath_var_F77=no
20375 ;;
20376
20377 sysv5*)
20378 no_undefined_flag_F77=' -z text'
20379 # $CC -shared without GNU ld will not create a library from C++
20380 # object files and a static libstdc++, better avoid it by now
20381 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020382 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20383 $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 +000020384 hardcode_libdir_flag_spec_F77=
20385 hardcode_shlibpath_var_F77=no
20386 runpath_var='LD_RUN_PATH'
20387 ;;
20388
20389 uts4*)
20390 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20391 hardcode_libdir_flag_spec_F77='-L$libdir'
20392 hardcode_shlibpath_var_F77=no
20393 ;;
20394
20395 *)
20396 ld_shlibs_F77=no
20397 ;;
20398 esac
20399 fi
20400
20401echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20402echo "${ECHO_T}$ld_shlibs_F77" >&6
20403test "$ld_shlibs_F77" = no && can_build_shared=no
20404
20405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20406if test "$GCC" = yes; then
20407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20408fi
20409
20410#
20411# Do we need to explicitly link libc?
20412#
20413case "x$archive_cmds_need_lc_F77" in
20414x|xyes)
20415 # Assume -lc should be added
20416 archive_cmds_need_lc_F77=yes
20417
20418 if test "$enable_shared" = yes && test "$GCC" = yes; then
20419 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020421 # FIXME: we may have to deal with multi-command sequences.
20422 ;;
20423 '$CC '*)
20424 # Test whether the compiler implicitly links with -lc since on some
20425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20426 # to ld, don't add -lc before -lgcc.
20427 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20428echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20429 $rm conftest*
20430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20431
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } 2>conftest.err; then
20437 soname=conftest
20438 lib=conftest
20439 libobjs=conftest.$ac_objext
20440 deplibs=
20441 wl=$lt_prog_compiler_wl_F77
20442 compiler_flags=-v
20443 linker_flags=-v
20444 verstring=
20445 output_objdir=.
20446 libname=conftest
20447 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20448 allow_undefined_flag_F77=
20449 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20450 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }
20454 then
20455 archive_cmds_need_lc_F77=no
20456 else
20457 archive_cmds_need_lc_F77=yes
20458 fi
20459 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20460 else
20461 cat conftest.err 1>&5
20462 fi
20463 $rm conftest*
20464 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20465echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20466 ;;
20467 esac
20468 fi
20469 ;;
20470esac
20471
John Criswell47fdd832003-07-14 16:52:07 +000020472echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20473echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20474library_names_spec=
20475libname_spec='lib$name'
20476soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020477shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020478postinstall_cmds=
20479postuninstall_cmds=
20480finish_cmds=
20481finish_eval=
20482shlibpath_var=
20483shlibpath_overrides_runpath=unknown
20484version_type=none
20485dynamic_linker="$host_os ld.so"
20486sys_lib_dlsearch_path_spec="/lib /usr/lib"
20487if test "$GCC" = yes; then
20488 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20489 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20490 # if the path contains ";" then we assume it to be the separator
20491 # otherwise default to the standard path separator (i.e. ":") - it is
20492 # assumed that no part of a normal pathname contains ";" but that should
20493 # okay in the real world where ";" in dirpaths is itself problematic.
20494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20495 else
20496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20497 fi
20498else
20499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20500fi
20501need_lib_prefix=unknown
20502hardcode_into_libs=no
20503
20504# when you set need_version to no, make sure it does not cause -set_version
20505# flags to be left without arguments
20506need_version=unknown
20507
20508case $host_os in
20509aix3*)
20510 version_type=linux
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20512 shlibpath_var=LIBPATH
20513
20514 # AIX 3 has no versioning support, so we append a major version to the name.
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 ;;
20517
20518aix4* | aix5*)
20519 version_type=linux
20520 need_lib_prefix=no
20521 need_version=no
20522 hardcode_into_libs=yes
20523 if test "$host_cpu" = ia64; then
20524 # AIX 5 supports IA64
20525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 else
20528 # With GCC up to 2.95.x, collect2 would create an import file
20529 # for dependence libraries. The import file would start with
20530 # the line `#! .'. This would cause the generated library to
20531 # depend on `.', always an invalid library. This was fixed in
20532 # development snapshots of GCC prior to 3.0.
20533 case $host_os in
20534 aix4 | aix4.[01] | aix4.[01].*)
20535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20536 echo ' yes '
20537 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20538 :
20539 else
20540 can_build_shared=no
20541 fi
20542 ;;
20543 esac
20544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20545 # soname into executable. Probably we can add versioning support to
20546 # collect2, so additional links can be useful in future.
20547 if test "$aix_use_runtimelinking" = yes; then
20548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20549 # instead of lib<name>.a to let people know that these are not
20550 # typical AIX shared libraries.
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20552 else
20553 # We preserve .a as extension for shared libraries through AIX4.2
20554 # and later when we are not doing run time linking.
20555 library_names_spec='${libname}${release}.a $libname.a'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 fi
20558 shlibpath_var=LIBPATH
20559 fi
20560 ;;
20561
20562amigaos*)
20563 library_names_spec='$libname.ixlibrary $libname.a'
20564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020565 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 +000020566 ;;
20567
20568beos*)
20569 library_names_spec='${libname}${shared_ext}'
20570 dynamic_linker="$host_os ld.so"
20571 shlibpath_var=LIBRARY_PATH
20572 ;;
20573
Reid Spencer2706f8c2004-09-19 23:53:36 +000020574bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020575 version_type=linux
20576 need_version=no
20577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578 soname_spec='${libname}${release}${shared_ext}$major'
20579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20580 shlibpath_var=LD_LIBRARY_PATH
20581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20583 # the default ld.so.conf also contains /usr/contrib/lib and
20584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20585 # libtool to hard-code these into programs
20586 ;;
20587
20588cygwin* | mingw* | pw32*)
20589 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020590 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020591 need_version=no
20592 need_lib_prefix=no
20593
20594 case $GCC,$host_os in
20595 yes,cygwin* | yes,mingw* | yes,pw32*)
20596 library_names_spec='$libname.dll.a'
20597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020598 postinstall_cmds='base_file=`basename \${file}`~
20599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20600 dldir=$destdir/`dirname \$dlpath`~
20601 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020602 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20604 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020605 $rm \$dlpath'
20606 shlibpath_overrides_runpath=yes
20607
20608 case $host_os in
20609 cygwin*)
20610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20611 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 +000020612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020613 ;;
20614 mingw*)
20615 # MinGW DLLs use traditional 'lib' prefix
20616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20619 # It is most probably a Windows format PATH printed by
20620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20621 # path with ; separators, and with drive letters. We can handle the
20622 # drive letters (cygwin fileutils understands them), so leave them,
20623 # especially as we might pass files found there to a mingw objdump,
20624 # which wouldn't understand a cygwinified path. Ahh.
20625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20626 else
20627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20628 fi
20629 ;;
20630 pw32*)
20631 # pw32 DLLs use 'pw' prefix rather than 'lib'
20632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20633 ;;
20634 esac
20635 ;;
20636
20637 *)
20638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20639 ;;
20640 esac
20641 dynamic_linker='Win32 ld.exe'
20642 # FIXME: first we should search . and the directory the executable is in
20643 shlibpath_var=PATH
20644 ;;
20645
20646darwin* | rhapsody*)
20647 dynamic_linker="$host_os dyld"
20648 version_type=darwin
20649 need_lib_prefix=no
20650 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020652 soname_spec='${libname}${release}${major}$shared_ext'
20653 shlibpath_overrides_runpath=yes
20654 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020655 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020656 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020657 if test "$GCC" = yes; then
20658 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"`
20659 else
20660 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020661 fi
20662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20663 ;;
20664
20665dgux*)
20666 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 ;;
20673
20674freebsd1*)
20675 dynamic_linker=no
20676 ;;
20677
Reid Spencer2706f8c2004-09-19 23:53:36 +000020678kfreebsd*-gnu)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 shlibpath_overrides_runpath=no
20686 hardcode_into_libs=yes
20687 dynamic_linker='GNU ld.so'
20688 ;;
20689
John Criswell47fdd832003-07-14 16:52:07 +000020690freebsd*)
20691 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20692 version_type=freebsd-$objformat
20693 case $version_type in
20694 freebsd-elf*)
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20696 need_version=no
20697 need_lib_prefix=no
20698 ;;
20699 freebsd-*)
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20701 need_version=yes
20702 ;;
20703 esac
20704 shlibpath_var=LD_LIBRARY_PATH
20705 case $host_os in
20706 freebsd2*)
20707 shlibpath_overrides_runpath=yes
20708 ;;
20709 freebsd3.01* | freebsdelf3.01*)
20710 shlibpath_overrides_runpath=yes
20711 hardcode_into_libs=yes
20712 ;;
20713 *) # from 3.2 on
20714 shlibpath_overrides_runpath=no
20715 hardcode_into_libs=yes
20716 ;;
20717 esac
20718 ;;
20719
20720gnu*)
20721 version_type=linux
20722 need_lib_prefix=no
20723 need_version=no
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 shlibpath_var=LD_LIBRARY_PATH
20727 hardcode_into_libs=yes
20728 ;;
20729
20730hpux9* | hpux10* | hpux11*)
20731 # Give a soname corresponding to the major version so that dld.sl refuses to
20732 # link against other versions.
20733 version_type=sunos
20734 need_lib_prefix=no
20735 need_version=no
20736 case "$host_cpu" in
20737 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020738 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020739 hardcode_into_libs=yes
20740 dynamic_linker="$host_os dld.so"
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 soname_spec='${libname}${release}${shared_ext}$major'
20745 if test "X$HPUX_IA64_MODE" = X32; then
20746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20747 else
20748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20749 fi
20750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20751 ;;
20752 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020753 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020754 hardcode_into_libs=yes
20755 dynamic_linker="$host_os dld.sl"
20756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20759 soname_spec='${libname}${release}${shared_ext}$major'
20760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20762 ;;
20763 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020764 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020765 dynamic_linker="$host_os dld.sl"
20766 shlibpath_var=SHLIB_PATH
20767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769 soname_spec='${libname}${release}${shared_ext}$major'
20770 ;;
20771 esac
20772 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20773 postinstall_cmds='chmod 555 $lib'
20774 ;;
20775
20776irix5* | irix6* | nonstopux*)
20777 case $host_os in
20778 nonstopux*) version_type=nonstopux ;;
20779 *)
20780 if test "$lt_cv_prog_gnu_ld" = yes; then
20781 version_type=linux
20782 else
20783 version_type=irix
20784 fi ;;
20785 esac
20786 need_lib_prefix=no
20787 need_version=no
20788 soname_spec='${libname}${release}${shared_ext}$major'
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20790 case $host_os in
20791 irix5* | nonstopux*)
20792 libsuff= shlibsuff=
20793 ;;
20794 *)
20795 case $LD in # libtool.m4 will add one of these switches to LD
20796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20797 libsuff= shlibsuff= libmagic=32-bit;;
20798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20799 libsuff=32 shlibsuff=N32 libmagic=N32;;
20800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20802 *) libsuff= shlibsuff= libmagic=never-match;;
20803 esac
20804 ;;
20805 esac
20806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20807 shlibpath_overrides_runpath=no
20808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20810 hardcode_into_libs=yes
20811 ;;
20812
20813# No shared lib support for Linux oldld, aout, or coff.
20814linux*oldld* | linux*aout* | linux*coff*)
20815 dynamic_linker=no
20816 ;;
20817
20818# This must be Linux ELF.
20819linux*)
20820 version_type=linux
20821 need_lib_prefix=no
20822 need_version=no
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath=no
20828 # This implies no fast_install, which is unacceptable.
20829 # Some rework will be needed to allow for fast_install
20830 # before this can be enabled.
20831 hardcode_into_libs=yes
20832
Reid Spencer2706f8c2004-09-19 23:53:36 +000020833 # Append ld.so.conf contents to the search path
20834 if test -f /etc/ld.so.conf; then
20835 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20836 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20837 fi
20838
John Criswell47fdd832003-07-14 16:52:07 +000020839 # We used to test for /lib/ld.so.1 and disable shared libraries on
20840 # powerpc, because MkLinux only supported shared libraries with the
20841 # GNU dynamic linker. Since this was broken with cross compilers,
20842 # most powerpc-linux boxes support dynamic linking these days and
20843 # people can always --disable-shared, the test was removed, and we
20844 # assume the GNU/Linux dynamic linker is in use.
20845 dynamic_linker='GNU/Linux ld.so'
20846 ;;
20847
Reid Spencer2706f8c2004-09-19 23:53:36 +000020848knetbsd*-gnu)
20849 version_type=linux
20850 need_lib_prefix=no
20851 need_version=no
20852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20853 soname_spec='${libname}${release}${shared_ext}$major'
20854 shlibpath_var=LD_LIBRARY_PATH
20855 shlibpath_overrides_runpath=no
20856 hardcode_into_libs=yes
20857 dynamic_linker='GNU ld.so'
20858 ;;
20859
John Criswell47fdd832003-07-14 16:52:07 +000020860netbsd*)
20861 version_type=sunos
20862 need_lib_prefix=no
20863 need_version=no
20864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 dynamic_linker='NetBSD (a.out) ld.so'
20868 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020870 soname_spec='${libname}${release}${shared_ext}$major'
20871 dynamic_linker='NetBSD ld.elf_so'
20872 fi
20873 shlibpath_var=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath=yes
20875 hardcode_into_libs=yes
20876 ;;
20877
20878newsos6)
20879 version_type=linux
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=yes
20883 ;;
20884
Reid Spencer2706f8c2004-09-19 23:53:36 +000020885nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020886 version_type=linux
20887 need_lib_prefix=no
20888 need_version=no
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 soname_spec='${libname}${release}${shared_ext}$major'
20891 shlibpath_var=LD_LIBRARY_PATH
20892 shlibpath_overrides_runpath=yes
20893 ;;
20894
20895openbsd*)
20896 version_type=sunos
20897 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020898 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20903 case $host_os in
20904 openbsd2.[89] | openbsd2.[89].*)
20905 shlibpath_overrides_runpath=no
20906 ;;
20907 *)
20908 shlibpath_overrides_runpath=yes
20909 ;;
20910 esac
20911 else
20912 shlibpath_overrides_runpath=yes
20913 fi
20914 ;;
20915
20916os2*)
20917 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020918 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020919 need_lib_prefix=no
20920 library_names_spec='$libname${shared_ext} $libname.a'
20921 dynamic_linker='OS/2 ld.exe'
20922 shlibpath_var=LIBPATH
20923 ;;
20924
20925osf3* | osf4* | osf5*)
20926 version_type=osf
20927 need_lib_prefix=no
20928 need_version=no
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931 shlibpath_var=LD_LIBRARY_PATH
20932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20934 ;;
20935
20936sco3.2v5*)
20937 version_type=osf
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 ;;
20942
20943solaris*)
20944 version_type=linux
20945 need_lib_prefix=no
20946 need_version=no
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20948 soname_spec='${libname}${release}${shared_ext}$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=yes
20951 hardcode_into_libs=yes
20952 # ldd complains unless libraries are executable
20953 postinstall_cmds='chmod +x $lib'
20954 ;;
20955
20956sunos4*)
20957 version_type=sunos
20958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20960 shlibpath_var=LD_LIBRARY_PATH
20961 shlibpath_overrides_runpath=yes
20962 if test "$with_gnu_ld" = yes; then
20963 need_lib_prefix=no
20964 fi
20965 need_version=yes
20966 ;;
20967
20968sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20969 version_type=linux
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 shlibpath_var=LD_LIBRARY_PATH
20973 case $host_vendor in
20974 sni)
20975 shlibpath_overrides_runpath=no
20976 need_lib_prefix=no
20977 export_dynamic_flag_spec='${wl}-Blargedynsym'
20978 runpath_var=LD_RUN_PATH
20979 ;;
20980 siemens)
20981 need_lib_prefix=no
20982 ;;
20983 motorola)
20984 need_lib_prefix=no
20985 need_version=no
20986 shlibpath_overrides_runpath=no
20987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20988 ;;
20989 esac
20990 ;;
20991
20992sysv4*MP*)
20993 if test -d /usr/nec ;then
20994 version_type=linux
20995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20996 soname_spec='$libname${shared_ext}.$major'
20997 shlibpath_var=LD_LIBRARY_PATH
20998 fi
20999 ;;
21000
21001uts4*)
21002 version_type=linux
21003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 soname_spec='${libname}${release}${shared_ext}$major'
21005 shlibpath_var=LD_LIBRARY_PATH
21006 ;;
21007
21008*)
21009 dynamic_linker=no
21010 ;;
21011esac
21012echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21013echo "${ECHO_T}$dynamic_linker" >&6
21014test "$dynamic_linker" = no && can_build_shared=no
21015
Reid Spencer2706f8c2004-09-19 23:53:36 +000021016echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21017echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21018hardcode_action_F77=
21019if test -n "$hardcode_libdir_flag_spec_F77" || \
21020 test -n "$runpath_var_F77" || \
21021 test "X$hardcode_automatic_F77" = "Xyes" ; then
21022
21023 # We can hardcode non-existant directories.
21024 if test "$hardcode_direct_F77" != no &&
21025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21026 # have to relink, otherwise we might link with an installed library
21027 # when we should be linking with a yet-to-be-installed one
21028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21029 test "$hardcode_minus_L_F77" != no; then
21030 # Linking always hardcodes the temporary library directory.
21031 hardcode_action_F77=relink
21032 else
21033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21034 hardcode_action_F77=immediate
21035 fi
21036else
21037 # We cannot hardcode anything, or else we can only hardcode existing
21038 # directories.
21039 hardcode_action_F77=unsupported
21040fi
21041echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21042echo "${ECHO_T}$hardcode_action_F77" >&6
21043
21044if test "$hardcode_action_F77" = relink; then
21045 # Fast installation is not supported
21046 enable_fast_install=no
21047elif test "$shlibpath_overrides_runpath" = yes ||
21048 test "$enable_shared" = no; then
21049 # Fast installation is not necessary
21050 enable_fast_install=needless
21051fi
21052
21053striplib=
21054old_striplib=
21055echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21056echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21057if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21060 echo "$as_me:$LINENO: result: yes" >&5
21061echo "${ECHO_T}yes" >&6
21062else
21063# FIXME - insert some real tests, host_os isn't really good enough
21064 case $host_os in
21065 darwin*)
21066 if test -n "$STRIP" ; then
21067 striplib="$STRIP -x"
21068 echo "$as_me:$LINENO: result: yes" >&5
21069echo "${ECHO_T}yes" >&6
21070 else
21071 echo "$as_me:$LINENO: result: no" >&5
21072echo "${ECHO_T}no" >&6
21073fi
21074 ;;
21075 *)
21076 echo "$as_me:$LINENO: result: no" >&5
21077echo "${ECHO_T}no" >&6
21078 ;;
21079 esac
21080fi
21081
21082
John Criswell47fdd832003-07-14 16:52:07 +000021083
21084# The else clause should only fire when bootstrapping the
21085# libtool distribution, otherwise you forgot to ship ltmain.sh
21086# with your package, and you will get complaints that there are
21087# no rules to generate ltmain.sh.
21088if test -f "$ltmain"; then
21089 # See if we are running on zsh, and set the options which allow our commands through
21090 # without removal of \ escapes.
21091 if test -n "${ZSH_VERSION+set}" ; then
21092 setopt NO_GLOB_SUBST
21093 fi
21094 # Now quote all the things that may contain metacharacters while being
21095 # careful not to overquote the AC_SUBSTed values. We take copies of the
21096 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021097 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21098 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021099 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21100 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21101 deplibs_check_method reload_flag reload_cmds need_locks \
21102 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21103 lt_cv_sys_global_symbol_to_c_name_address \
21104 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21105 old_postinstall_cmds old_postuninstall_cmds \
21106 compiler_F77 \
21107 CC_F77 \
21108 LD_F77 \
21109 lt_prog_compiler_wl_F77 \
21110 lt_prog_compiler_pic_F77 \
21111 lt_prog_compiler_static_F77 \
21112 lt_prog_compiler_no_builtin_flag_F77 \
21113 export_dynamic_flag_spec_F77 \
21114 thread_safe_flag_spec_F77 \
21115 whole_archive_flag_spec_F77 \
21116 enable_shared_with_static_runtimes_F77 \
21117 old_archive_cmds_F77 \
21118 old_archive_from_new_cmds_F77 \
21119 predep_objects_F77 \
21120 postdep_objects_F77 \
21121 predeps_F77 \
21122 postdeps_F77 \
21123 compiler_lib_search_path_F77 \
21124 archive_cmds_F77 \
21125 archive_expsym_cmds_F77 \
21126 postinstall_cmds_F77 \
21127 postuninstall_cmds_F77 \
21128 old_archive_from_expsyms_cmds_F77 \
21129 allow_undefined_flag_F77 \
21130 no_undefined_flag_F77 \
21131 export_symbols_cmds_F77 \
21132 hardcode_libdir_flag_spec_F77 \
21133 hardcode_libdir_flag_spec_ld_F77 \
21134 hardcode_libdir_separator_F77 \
21135 hardcode_automatic_F77 \
21136 module_cmds_F77 \
21137 module_expsym_cmds_F77 \
21138 lt_cv_prog_compiler_c_o_F77 \
21139 exclude_expsyms_F77 \
21140 include_expsyms_F77; do
21141
21142 case $var in
21143 old_archive_cmds_F77 | \
21144 old_archive_from_new_cmds_F77 | \
21145 archive_cmds_F77 | \
21146 archive_expsym_cmds_F77 | \
21147 module_cmds_F77 | \
21148 module_expsym_cmds_F77 | \
21149 old_archive_from_expsyms_cmds_F77 | \
21150 export_symbols_cmds_F77 | \
21151 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21152 postinstall_cmds | postuninstall_cmds | \
21153 old_postinstall_cmds | old_postuninstall_cmds | \
21154 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21155 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021156 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 +000021157 ;;
21158 *)
21159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21160 ;;
21161 esac
21162 done
21163
21164 case $lt_echo in
21165 *'\$0 --fallback-echo"')
21166 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21167 ;;
21168 esac
21169
21170cfgfile="$ofile"
21171
21172 cat <<__EOF__ >> "$cfgfile"
21173# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21174
21175# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21176
21177# Shell to use when invoking shell scripts.
21178SHELL=$lt_SHELL
21179
21180# Whether or not to build shared libraries.
21181build_libtool_libs=$enable_shared
21182
21183# Whether or not to build static libraries.
21184build_old_libs=$enable_static
21185
21186# Whether or not to add -lc for building shared libraries.
21187build_libtool_need_lc=$archive_cmds_need_lc_F77
21188
21189# Whether or not to disallow shared libs when runtime libs are static
21190allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21191
21192# Whether or not to optimize for fast installation.
21193fast_install=$enable_fast_install
21194
21195# The host system.
21196host_alias=$host_alias
21197host=$host
21198
21199# An echo program that does not interpret backslashes.
21200echo=$lt_echo
21201
21202# The archiver.
21203AR=$lt_AR
21204AR_FLAGS=$lt_AR_FLAGS
21205
21206# A C compiler.
21207LTCC=$lt_LTCC
21208
21209# A language-specific compiler.
21210CC=$lt_compiler_F77
21211
21212# Is the compiler the GNU C compiler?
21213with_gcc=$GCC_F77
21214
21215# An ERE matcher.
21216EGREP=$lt_EGREP
21217
21218# The linker used to build libraries.
21219LD=$lt_LD_F77
21220
21221# Whether we need hard or soft links.
21222LN_S=$lt_LN_S
21223
21224# A BSD-compatible nm program.
21225NM=$lt_NM
21226
21227# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021228STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021229
21230# Used to examine libraries when file_magic_cmd begins "file"
21231MAGIC_CMD=$MAGIC_CMD
21232
21233# Used on cygwin: DLL creation program.
21234DLLTOOL="$DLLTOOL"
21235
21236# Used on cygwin: object dumper.
21237OBJDUMP="$OBJDUMP"
21238
21239# Used on cygwin: assembler.
21240AS="$AS"
21241
21242# The name of the directory that contains temporary libtool files.
21243objdir=$objdir
21244
21245# How to create reloadable object files.
21246reload_flag=$lt_reload_flag
21247reload_cmds=$lt_reload_cmds
21248
21249# How to pass a linker flag through the compiler.
21250wl=$lt_lt_prog_compiler_wl_F77
21251
21252# Object file suffix (normally "o").
21253objext="$ac_objext"
21254
21255# Old archive suffix (normally "a").
21256libext="$libext"
21257
21258# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021259shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021260
21261# Executable file suffix (normally "").
21262exeext="$exeext"
21263
21264# Additional compiler flags for building library objects.
21265pic_flag=$lt_lt_prog_compiler_pic_F77
21266pic_mode=$pic_mode
21267
21268# What is the maximum length of a command?
21269max_cmd_len=$lt_cv_sys_max_cmd_len
21270
21271# Does compiler simultaneously support -c and -o options?
21272compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21273
21274# Must we lock files when doing compilation ?
21275need_locks=$lt_need_locks
21276
21277# Do we need the lib prefix for modules?
21278need_lib_prefix=$need_lib_prefix
21279
21280# Do we need a version for libraries?
21281need_version=$need_version
21282
21283# Whether dlopen is supported.
21284dlopen_support=$enable_dlopen
21285
21286# Whether dlopen of programs is supported.
21287dlopen_self=$enable_dlopen_self
21288
21289# Whether dlopen of statically linked programs is supported.
21290dlopen_self_static=$enable_dlopen_self_static
21291
21292# Compiler flag to prevent dynamic linking.
21293link_static_flag=$lt_lt_prog_compiler_static_F77
21294
21295# Compiler flag to turn off builtin functions.
21296no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21297
21298# Compiler flag to allow reflexive dlopens.
21299export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21300
21301# Compiler flag to generate shared objects directly from archives.
21302whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21303
21304# Compiler flag to generate thread-safe objects.
21305thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21306
21307# Library versioning type.
21308version_type=$version_type
21309
21310# Format of library name prefix.
21311libname_spec=$lt_libname_spec
21312
21313# List of archive names. First name is the real one, the rest are links.
21314# The last name is the one that the linker finds with -lNAME.
21315library_names_spec=$lt_library_names_spec
21316
21317# The coded name of the library, if different from the real name.
21318soname_spec=$lt_soname_spec
21319
21320# Commands used to build and install an old-style archive.
21321RANLIB=$lt_RANLIB
21322old_archive_cmds=$lt_old_archive_cmds_F77
21323old_postinstall_cmds=$lt_old_postinstall_cmds
21324old_postuninstall_cmds=$lt_old_postuninstall_cmds
21325
21326# Create an old-style archive from a shared archive.
21327old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21328
21329# Create a temporary old-style archive to link instead of a shared archive.
21330old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21331
21332# Commands used to build and install a shared archive.
21333archive_cmds=$lt_archive_cmds_F77
21334archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21335postinstall_cmds=$lt_postinstall_cmds
21336postuninstall_cmds=$lt_postuninstall_cmds
21337
21338# Commands used to build a loadable module (assumed same as above if empty)
21339module_cmds=$lt_module_cmds_F77
21340module_expsym_cmds=$lt_module_expsym_cmds_F77
21341
21342# Commands to strip libraries.
21343old_striplib=$lt_old_striplib
21344striplib=$lt_striplib
21345
21346# Dependencies to place before the objects being linked to create a
21347# shared library.
21348predep_objects=$lt_predep_objects_F77
21349
21350# Dependencies to place after the objects being linked to create a
21351# shared library.
21352postdep_objects=$lt_postdep_objects_F77
21353
21354# Dependencies to place before the objects being linked to create a
21355# shared library.
21356predeps=$lt_predeps_F77
21357
21358# Dependencies to place after the objects being linked to create a
21359# shared library.
21360postdeps=$lt_postdeps_F77
21361
21362# The library search path used internally by the compiler when linking
21363# a shared library.
21364compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21365
21366# Method to check whether dependent libraries are shared objects.
21367deplibs_check_method=$lt_deplibs_check_method
21368
21369# Command to use when deplibs_check_method == file_magic.
21370file_magic_cmd=$lt_file_magic_cmd
21371
21372# Flag that allows shared libraries with undefined symbols to be built.
21373allow_undefined_flag=$lt_allow_undefined_flag_F77
21374
21375# Flag that forces no undefined symbols.
21376no_undefined_flag=$lt_no_undefined_flag_F77
21377
21378# Commands used to finish a libtool library installation in a directory.
21379finish_cmds=$lt_finish_cmds
21380
21381# Same as above, but a single script fragment to be evaled but not shown.
21382finish_eval=$lt_finish_eval
21383
21384# Take the output of nm and produce a listing of raw symbols and C names.
21385global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21386
21387# Transform the output of nm in a proper C declaration
21388global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21389
21390# Transform the output of nm in a C name address pair
21391global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21392
21393# This is the shared library runtime path variable.
21394runpath_var=$runpath_var
21395
21396# This is the shared library path variable.
21397shlibpath_var=$shlibpath_var
21398
21399# Is shlibpath searched before the hard-coded library search path?
21400shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21401
21402# How to hardcode a shared library path into an executable.
21403hardcode_action=$hardcode_action_F77
21404
21405# Whether we should hardcode library paths into libraries.
21406hardcode_into_libs=$hardcode_into_libs
21407
21408# Flag to hardcode \$libdir into a binary during linking.
21409# This must work even if \$libdir does not exist.
21410hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21411
21412# If ld is used when linking, flag to hardcode \$libdir into
21413# a binary during linking. This must work even if \$libdir does
21414# not exist.
21415hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21416
21417# Whether we need a single -rpath flag with a separated argument.
21418hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21419
21420# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21421# resulting binary.
21422hardcode_direct=$hardcode_direct_F77
21423
21424# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21425# resulting binary.
21426hardcode_minus_L=$hardcode_minus_L_F77
21427
21428# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21429# the resulting binary.
21430hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21431
21432# Set to yes if building a shared library automatically hardcodes DIR into the library
21433# and all subsequent libraries and executables linked against it.
21434hardcode_automatic=$hardcode_automatic_F77
21435
21436# Variables whose values should be saved in libtool wrapper scripts and
21437# restored at relink time.
21438variables_saved_for_relink="$variables_saved_for_relink"
21439
21440# Whether libtool must link a program against all its dependency libraries.
21441link_all_deplibs=$link_all_deplibs_F77
21442
21443# Compile-time system search path for libraries
21444sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21445
21446# Run-time system search path for libraries
21447sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21448
21449# Fix the shell variable \$srcfile for the compiler.
21450fix_srcfile_path="$fix_srcfile_path_F77"
21451
21452# Set to yes if exported symbols are required.
21453always_export_symbols=$always_export_symbols_F77
21454
21455# The commands to list exported symbols.
21456export_symbols_cmds=$lt_export_symbols_cmds_F77
21457
21458# The commands to extract the exported symbol list from a shared archive.
21459extract_expsyms_cmds=$lt_extract_expsyms_cmds
21460
21461# Symbols that should not be listed in the preloaded symbols.
21462exclude_expsyms=$lt_exclude_expsyms_F77
21463
21464# Symbols that must always be exported.
21465include_expsyms=$lt_include_expsyms_F77
21466
21467# ### END LIBTOOL TAG CONFIG: $tagname
21468
21469__EOF__
21470
21471
21472else
21473 # If there is no Makefile yet, we rely on a make rule to execute
21474 # `config.status --recheck' to rerun these tests and create the
21475 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021476 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21477 if test -f "$ltmain_in"; then
21478 test -f Makefile && make "$ltmain"
21479 fi
John Criswell47fdd832003-07-14 16:52:07 +000021480fi
21481
21482
21483ac_ext=c
21484ac_cpp='$CPP $CPPFLAGS'
21485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487ac_compiler_gnu=$ac_cv_c_compiler_gnu
21488
21489CC="$lt_save_CC"
21490
21491 else
21492 tagname=""
21493 fi
21494 ;;
21495
21496 GCJ)
21497 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021498 ac_ext=c
21499ac_cpp='$CPP $CPPFLAGS'
21500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021503
21504
21505# Source file extension for Java test sources.
21506ac_ext=java
21507
21508# Object file extension for compiled Java test sources.
21509objext=o
21510objext_GCJ=$objext
21511
21512# Code to be used in simple compile tests
21513lt_simple_compile_test_code="class foo {}\n"
21514
21515# Code to be used in simple link tests
21516lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21517
21518# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21519
21520# If no C compiler was specified, use CC.
21521LTCC=${LTCC-"$CC"}
21522
21523# Allow CC to be a program name with arguments.
21524compiler=$CC
21525
21526
21527# Allow CC to be a program name with arguments.
21528lt_save_CC="$CC"
21529CC=${GCJ-"gcj"}
21530compiler=$CC
21531compiler_GCJ=$CC
21532
21533# GCJ did not exist at the time GCC didn't implicitly link libc in.
21534archive_cmds_need_lc_GCJ=no
21535
John Criswell47fdd832003-07-14 16:52:07 +000021536
21537lt_prog_compiler_no_builtin_flag_GCJ=
21538
21539if test "$GCC" = yes; then
21540 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21541
Reid Spencer2706f8c2004-09-19 23:53:36 +000021542
21543echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021544echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21545if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548 lt_cv_prog_compiler_rtti_exceptions=no
21549 ac_outfile=conftest.$ac_objext
21550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21551 lt_compiler_flag="-fno-rtti -fno-exceptions"
21552 # Insert the option either (1) after the last *FLAGS variable, or
21553 # (2) before a word containing "conftest.", or (3) at the end.
21554 # Note that $ac_compile itself does not contain backslashes and begins
21555 # with a dollar sign (not a hyphen), so the echo should work correctly.
21556 # The option is referenced via a variable to avoid confusing sed.
21557 lt_compile=`echo "$ac_compile" | $SED \
21558 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21560 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000021561 (eval echo "\"\$as_me:21561: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021562 (eval "$lt_compile" 2>conftest.err)
21563 ac_status=$?
21564 cat conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000021565 echo "$as_me:21565: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021566 if (exit $ac_status) && test -s "$ac_outfile"; then
21567 # The compiler can only warn and ignore the option if not recognized
21568 # So say no if there are warnings
21569 if test ! -s conftest.err; then
21570 lt_cv_prog_compiler_rtti_exceptions=yes
21571 fi
21572 fi
21573 $rm conftest*
21574
21575fi
21576echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21577echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21578
21579if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21580 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21581else
21582 :
21583fi
21584
21585fi
21586
21587lt_prog_compiler_wl_GCJ=
21588lt_prog_compiler_pic_GCJ=
21589lt_prog_compiler_static_GCJ=
21590
21591echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21592echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21593
21594 if test "$GCC" = yes; then
21595 lt_prog_compiler_wl_GCJ='-Wl,'
21596 lt_prog_compiler_static_GCJ='-static'
21597
21598 case $host_os in
21599 aix*)
21600 # All AIX code is PIC.
21601 if test "$host_cpu" = ia64; then
21602 # AIX 5 now supports IA64 processor
21603 lt_prog_compiler_static_GCJ='-Bstatic'
21604 fi
21605 ;;
21606
21607 amigaos*)
21608 # FIXME: we need at least 68020 code to build shared libraries, but
21609 # adding the `-m68020' flag to GCC prevents building anything better,
21610 # like `-m68040'.
21611 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21612 ;;
21613
21614 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21615 # PIC is the default for these OSes.
21616 ;;
21617
21618 mingw* | pw32* | os2*)
21619 # This hack is so that the source file can tell whether it is being
21620 # built for inclusion in a dll (and should export symbols for example).
21621 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21622 ;;
21623
21624 darwin* | rhapsody*)
21625 # PIC is the default on this platform
21626 # Common symbols not allowed in MH_DYLIB files
21627 lt_prog_compiler_pic_GCJ='-fno-common'
21628 ;;
21629
21630 msdosdjgpp*)
21631 # Just because we use GCC doesn't mean we suddenly get shared libraries
21632 # on systems that don't support them.
21633 lt_prog_compiler_can_build_shared_GCJ=no
21634 enable_shared=no
21635 ;;
21636
21637 sysv4*MP*)
21638 if test -d /usr/nec; then
21639 lt_prog_compiler_pic_GCJ=-Kconform_pic
21640 fi
21641 ;;
21642
21643 hpux*)
21644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21645 # not for PA HP-UX.
21646 case "$host_cpu" in
21647 hppa*64*|ia64*)
21648 # +Z the default
21649 ;;
21650 *)
21651 lt_prog_compiler_pic_GCJ='-fPIC'
21652 ;;
21653 esac
21654 ;;
21655
21656 *)
21657 lt_prog_compiler_pic_GCJ='-fPIC'
21658 ;;
21659 esac
21660 else
21661 # PORTME Check for flag to pass linker flags through the system compiler.
21662 case $host_os in
21663 aix*)
21664 lt_prog_compiler_wl_GCJ='-Wl,'
21665 if test "$host_cpu" = ia64; then
21666 # AIX 5 now supports IA64 processor
21667 lt_prog_compiler_static_GCJ='-Bstatic'
21668 else
21669 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21670 fi
21671 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021672 darwin*)
21673 # PIC is the default on this platform
21674 # Common symbols not allowed in MH_DYLIB files
21675 case "$cc_basename" in
21676 xlc*)
21677 lt_prog_compiler_pic_GCJ='-qnocommon'
21678 lt_prog_compiler_wl_GCJ='-Wl,'
21679 ;;
21680 esac
21681 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021682
21683 mingw* | pw32* | os2*)
21684 # This hack is so that the source file can tell whether it is being
21685 # built for inclusion in a dll (and should export symbols for example).
21686 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21687 ;;
21688
21689 hpux9* | hpux10* | hpux11*)
21690 lt_prog_compiler_wl_GCJ='-Wl,'
21691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21692 # not for PA HP-UX.
21693 case "$host_cpu" in
21694 hppa*64*|ia64*)
21695 # +Z the default
21696 ;;
21697 *)
21698 lt_prog_compiler_pic_GCJ='+Z'
21699 ;;
21700 esac
21701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21702 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21703 ;;
21704
21705 irix5* | irix6* | nonstopux*)
21706 lt_prog_compiler_wl_GCJ='-Wl,'
21707 # PIC (with -KPIC) is the default.
21708 lt_prog_compiler_static_GCJ='-non_shared'
21709 ;;
21710
21711 newsos6)
21712 lt_prog_compiler_pic_GCJ='-KPIC'
21713 lt_prog_compiler_static_GCJ='-Bstatic'
21714 ;;
21715
21716 linux*)
21717 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021718 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021719 lt_prog_compiler_wl_GCJ='-Wl,'
21720 lt_prog_compiler_pic_GCJ='-KPIC'
21721 lt_prog_compiler_static_GCJ='-static'
21722 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021723 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021724 lt_prog_compiler_wl_GCJ='-Wl,'
21725 # All Alpha code is PIC.
21726 lt_prog_compiler_static_GCJ='-non_shared'
21727 ;;
21728 esac
21729 ;;
21730
21731 osf3* | osf4* | osf5*)
21732 lt_prog_compiler_wl_GCJ='-Wl,'
21733 # All OSF/1 code is PIC.
21734 lt_prog_compiler_static_GCJ='-non_shared'
21735 ;;
21736
21737 sco3.2v5*)
21738 lt_prog_compiler_pic_GCJ='-Kpic'
21739 lt_prog_compiler_static_GCJ='-dn'
21740 ;;
21741
21742 solaris*)
21743 lt_prog_compiler_wl_GCJ='-Wl,'
21744 lt_prog_compiler_pic_GCJ='-KPIC'
21745 lt_prog_compiler_static_GCJ='-Bstatic'
21746 ;;
21747
21748 sunos4*)
21749 lt_prog_compiler_wl_GCJ='-Qoption ld '
21750 lt_prog_compiler_pic_GCJ='-PIC'
21751 lt_prog_compiler_static_GCJ='-Bstatic'
21752 ;;
21753
21754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21755 lt_prog_compiler_wl_GCJ='-Wl,'
21756 lt_prog_compiler_pic_GCJ='-KPIC'
21757 lt_prog_compiler_static_GCJ='-Bstatic'
21758 ;;
21759
21760 sysv4*MP*)
21761 if test -d /usr/nec ;then
21762 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21763 lt_prog_compiler_static_GCJ='-Bstatic'
21764 fi
21765 ;;
21766
21767 uts4*)
21768 lt_prog_compiler_pic_GCJ='-pic'
21769 lt_prog_compiler_static_GCJ='-Bstatic'
21770 ;;
21771
21772 *)
21773 lt_prog_compiler_can_build_shared_GCJ=no
21774 ;;
21775 esac
21776 fi
21777
21778echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21779echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21780
21781#
21782# Check to make sure the PIC flag actually works.
21783#
21784if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021785
21786echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021787echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21788if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21790else
21791 lt_prog_compiler_pic_works_GCJ=no
21792 ac_outfile=conftest.$ac_objext
21793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21794 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21795 # Insert the option either (1) after the last *FLAGS variable, or
21796 # (2) before a word containing "conftest.", or (3) at the end.
21797 # Note that $ac_compile itself does not contain backslashes and begins
21798 # with a dollar sign (not a hyphen), so the echo should work correctly.
21799 # The option is referenced via a variable to avoid confusing sed.
21800 lt_compile=`echo "$ac_compile" | $SED \
21801 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21803 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000021804 (eval echo "\"\$as_me:21804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021805 (eval "$lt_compile" 2>conftest.err)
21806 ac_status=$?
21807 cat conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000021808 echo "$as_me:21808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021809 if (exit $ac_status) && test -s "$ac_outfile"; then
21810 # The compiler can only warn and ignore the option if not recognized
21811 # So say no if there are warnings
21812 if test ! -s conftest.err; then
21813 lt_prog_compiler_pic_works_GCJ=yes
21814 fi
21815 fi
21816 $rm conftest*
21817
21818fi
21819echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21820echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21821
21822if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21823 case $lt_prog_compiler_pic_GCJ in
21824 "" | " "*) ;;
21825 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21826 esac
21827else
21828 lt_prog_compiler_pic_GCJ=
21829 lt_prog_compiler_can_build_shared_GCJ=no
21830fi
21831
21832fi
21833case "$host_os" in
21834 # For platforms which do not support PIC, -DPIC is meaningless:
21835 *djgpp*)
21836 lt_prog_compiler_pic_GCJ=
21837 ;;
21838 *)
21839 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21840 ;;
21841esac
21842
21843echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21844echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21845if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21847else
21848 lt_cv_prog_compiler_c_o_GCJ=no
21849 $rm -r conftest 2>/dev/null
21850 mkdir conftest
21851 cd conftest
21852 mkdir out
21853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21854
John Criswell47fdd832003-07-14 16:52:07 +000021855 lt_compiler_flag="-o out/conftest2.$ac_objext"
21856 # Insert the option either (1) after the last *FLAGS variable, or
21857 # (2) before a word containing "conftest.", or (3) at the end.
21858 # Note that $ac_compile itself does not contain backslashes and begins
21859 # with a dollar sign (not a hyphen), so the echo should work correctly.
21860 lt_compile=`echo "$ac_compile" | $SED \
21861 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21863 -e 's:$: $lt_compiler_flag:'`
Reid Spenceraea7fe42006-07-28 05:05:00 +000021864 (eval echo "\"\$as_me:21864: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021865 (eval "$lt_compile" 2>out/conftest.err)
21866 ac_status=$?
21867 cat out/conftest.err >&5
Reid Spenceraea7fe42006-07-28 05:05:00 +000021868 echo "$as_me:21868: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21870 then
21871 # The compiler can only warn and ignore the option if not recognized
21872 # So say no if there are warnings
21873 if test ! -s out/conftest.err; then
21874 lt_cv_prog_compiler_c_o_GCJ=yes
21875 fi
21876 fi
21877 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021878 $rm conftest*
21879 # SGI C++ compiler will create directory out/ii_files/ for
21880 # template instantiation
21881 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21882 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021883 cd ..
21884 rmdir conftest
21885 $rm conftest*
21886
21887fi
21888echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21889echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21890
21891
21892hard_links="nottested"
21893if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21894 # do not overwrite the value of need_locks provided by the user
21895 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21896echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21897 hard_links=yes
21898 $rm conftest*
21899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21900 touch conftest.a
21901 ln conftest.a conftest.b 2>&5 || hard_links=no
21902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21903 echo "$as_me:$LINENO: result: $hard_links" >&5
21904echo "${ECHO_T}$hard_links" >&6
21905 if test "$hard_links" = no; then
21906 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21907echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21908 need_locks=warn
21909 fi
21910else
21911 need_locks=no
21912fi
21913
21914echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21915echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21916
21917 runpath_var=
21918 allow_undefined_flag_GCJ=
21919 enable_shared_with_static_runtimes_GCJ=no
21920 archive_cmds_GCJ=
21921 archive_expsym_cmds_GCJ=
21922 old_archive_From_new_cmds_GCJ=
21923 old_archive_from_expsyms_cmds_GCJ=
21924 export_dynamic_flag_spec_GCJ=
21925 whole_archive_flag_spec_GCJ=
21926 thread_safe_flag_spec_GCJ=
21927 hardcode_libdir_flag_spec_GCJ=
21928 hardcode_libdir_flag_spec_ld_GCJ=
21929 hardcode_libdir_separator_GCJ=
21930 hardcode_direct_GCJ=no
21931 hardcode_minus_L_GCJ=no
21932 hardcode_shlibpath_var_GCJ=unsupported
21933 link_all_deplibs_GCJ=unknown
21934 hardcode_automatic_GCJ=no
21935 module_cmds_GCJ=
21936 module_expsym_cmds_GCJ=
21937 always_export_symbols_GCJ=no
21938 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21939 # include_expsyms should be a list of space-separated symbols to be *always*
21940 # included in the symbol list
21941 include_expsyms_GCJ=
21942 # exclude_expsyms can be an extended regexp of symbols to exclude
21943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21945 # as well as any symbol that contains `d'.
21946 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21948 # platforms (ab)use it in PIC code, but their linkers get confused if
21949 # the symbol is explicitly referenced. Since portable code cannot
21950 # rely on this symbol name, it's probably fine to never include it in
21951 # preloaded symbol tables.
21952 extract_expsyms_cmds=
21953
21954 case $host_os in
21955 cygwin* | mingw* | pw32*)
21956 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21957 # When not using gcc, we currently assume that we are using
21958 # Microsoft Visual C++.
21959 if test "$GCC" != yes; then
21960 with_gnu_ld=no
21961 fi
21962 ;;
21963 openbsd*)
21964 with_gnu_ld=no
21965 ;;
21966 esac
21967
21968 ld_shlibs_GCJ=yes
21969 if test "$with_gnu_ld" = yes; then
21970 # If archive_cmds runs LD, not CC, wlarc should be empty
21971 wlarc='${wl}'
21972
21973 # See if GNU ld supports shared libraries.
21974 case $host_os in
21975 aix3* | aix4* | aix5*)
21976 # On AIX/PPC, the GNU linker is very broken
21977 if test "$host_cpu" != ia64; then
21978 ld_shlibs_GCJ=no
21979 cat <<EOF 1>&2
21980
21981*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21982*** to be unable to reliably create shared libraries on AIX.
21983*** Therefore, libtool is disabling shared libraries support. If you
21984*** really care for shared libraries, you may want to modify your PATH
21985*** so that a non-GNU linker is found, and then restart.
21986
21987EOF
21988 fi
21989 ;;
21990
21991 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021992 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 +000021993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21994 hardcode_minus_L_GCJ=yes
21995
21996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21997 # that the semantics of dynamic libraries on AmigaOS, at least up
21998 # to version 4, is to share data among multiple programs linked
21999 # with the same dynamic library. Since this doesn't match the
22000 # behavior of shared libraries on other platforms, we can't use
22001 # them.
22002 ld_shlibs_GCJ=no
22003 ;;
22004
22005 beos*)
22006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22007 allow_undefined_flag_GCJ=unsupported
22008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22009 # support --undefined. This deserves some investigation. FIXME
22010 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22011 else
22012 ld_shlibs_GCJ=no
22013 fi
22014 ;;
22015
22016 cygwin* | mingw* | pw32*)
22017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22018 # as there is no search path for DLLs.
22019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22020 allow_undefined_flag_GCJ=unsupported
22021 always_export_symbols_GCJ=no
22022 enable_shared_with_static_runtimes_GCJ=yes
22023 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22024
22025 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22027 # If the export-symbols file already is a .def file (1st line
22028 # is EXPORTS), use it as is; otherwise, prepend...
22029 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22030 cp $export_symbols $output_objdir/$soname.def;
22031 else
22032 echo EXPORTS > $output_objdir/$soname.def;
22033 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022034 fi~
22035 $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 +000022036 else
22037 ld_shlibs=no
22038 fi
22039 ;;
22040
22041 netbsd*)
22042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22043 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22044 wlarc=
22045 else
22046 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22047 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22048 fi
22049 ;;
22050
22051 solaris* | sysv5*)
22052 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22053 ld_shlibs_GCJ=no
22054 cat <<EOF 1>&2
22055
22056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22057*** create shared libraries on Solaris systems. Therefore, libtool
22058*** is disabling shared libraries support. We urge you to upgrade GNU
22059*** binutils to release 2.9.1 or newer. Another option is to modify
22060*** your PATH or compiler configuration so that the native linker is
22061*** used, and then restart.
22062
22063EOF
22064 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22067 else
22068 ld_shlibs_GCJ=no
22069 fi
22070 ;;
22071
22072 sunos4*)
22073 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22074 wlarc=
22075 hardcode_direct_GCJ=yes
22076 hardcode_shlibpath_var_GCJ=no
22077 ;;
22078
Reid Spencer2706f8c2004-09-19 23:53:36 +000022079 linux*)
22080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082 archive_cmds_GCJ="$tmp_archive_cmds"
22083 supports_anon_versioning=no
22084 case `$LD -v 2>/dev/null` in
22085 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22088 *\ 2.11.*) ;; # other 2.11 versions
22089 *) supports_anon_versioning=yes ;;
22090 esac
22091 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022092 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22093cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22094$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000022095 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22096 else
22097 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22098 fi
22099 else
22100 ld_shlibs_GCJ=no
22101 fi
22102 ;;
22103
John Criswell47fdd832003-07-14 16:52:07 +000022104 *)
22105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22108 else
22109 ld_shlibs_GCJ=no
22110 fi
22111 ;;
22112 esac
22113
22114 if test "$ld_shlibs_GCJ" = yes; then
22115 runpath_var=LD_RUN_PATH
22116 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22117 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22118 # ancient GNU ld didn't support --whole-archive et. al.
22119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22120 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22121 else
22122 whole_archive_flag_spec_GCJ=
22123 fi
22124 fi
22125 else
22126 # PORTME fill in a description of your system's linker (not GNU ld)
22127 case $host_os in
22128 aix3*)
22129 allow_undefined_flag_GCJ=unsupported
22130 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022131 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 +000022132 # Note: this linker hardcodes the directories in LIBPATH if there
22133 # are no directories specified by -L.
22134 hardcode_minus_L_GCJ=yes
22135 if test "$GCC" = yes && test -z "$link_static_flag"; then
22136 # Neither direct hardcoding nor static linking is supported with a
22137 # broken collect2.
22138 hardcode_direct_GCJ=unsupported
22139 fi
22140 ;;
22141
22142 aix4* | aix5*)
22143 if test "$host_cpu" = ia64; then
22144 # On IA64, the linker does run time linking by default, so we don't
22145 # have to do anything special.
22146 aix_use_runtimelinking=no
22147 exp_sym_flag='-Bexport'
22148 no_entry_flag=""
22149 else
22150 # If we're using GNU nm, then we don't want the "-C" option.
22151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22152 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22153 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'
22154 else
22155 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'
22156 fi
22157 aix_use_runtimelinking=no
22158
22159 # Test if we are trying to use run time linking or normal
22160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22161 # need to do runtime linking.
22162 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22163 for ld_flag in $LDFLAGS; do
22164 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22165 aix_use_runtimelinking=yes
22166 break
22167 fi
22168 done
22169 esac
22170
22171 exp_sym_flag='-bexport'
22172 no_entry_flag='-bnoentry'
22173 fi
22174
22175 # When large executables or shared objects are built, AIX ld can
22176 # have problems creating the table of contents. If linking a library
22177 # or program results in "error TOC overflow" add -mminimal-toc to
22178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22180
22181 archive_cmds_GCJ=''
22182 hardcode_direct_GCJ=yes
22183 hardcode_libdir_separator_GCJ=':'
22184 link_all_deplibs_GCJ=yes
22185
22186 if test "$GCC" = yes; then
22187 case $host_os in aix4.012|aix4.012.*)
22188 # We only want to do this on AIX 4.2 and lower, the check
22189 # below for broken collect2 doesn't work under 4.3+
22190 collect2name=`${CC} -print-prog-name=collect2`
22191 if test -f "$collect2name" && \
22192 strings "$collect2name" | grep resolve_lib_name >/dev/null
22193 then
22194 # We have reworked collect2
22195 hardcode_direct_GCJ=yes
22196 else
22197 # We have old collect2
22198 hardcode_direct_GCJ=unsupported
22199 # It fails to find uninstalled libraries when the uninstalled
22200 # path is not listed in the libpath. Setting hardcode_minus_L
22201 # to unsupported forces relinking
22202 hardcode_minus_L_GCJ=yes
22203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22204 hardcode_libdir_separator_GCJ=
22205 fi
22206 esac
22207 shared_flag='-shared'
22208 else
22209 # not using gcc
22210 if test "$host_cpu" = ia64; then
22211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22212 # chokes on -Wl,-G. The following line is correct:
22213 shared_flag='-G'
22214 else
22215 if test "$aix_use_runtimelinking" = yes; then
22216 shared_flag='${wl}-G'
22217 else
22218 shared_flag='${wl}-bM:SRE'
22219 fi
22220 fi
22221 fi
22222
22223 # It seems that -bexpall does not export symbols beginning with
22224 # underscore (_), so it is better to generate a list of symbols to export.
22225 always_export_symbols_GCJ=yes
22226 if test "$aix_use_runtimelinking" = yes; then
22227 # Warning - without using the other runtime loading flags (-brtl),
22228 # -berok will link without error, but may produce a broken library.
22229 allow_undefined_flag_GCJ='-berok'
22230 # Determine the default libpath from the value encoded in an empty executable.
22231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022232/* confdefs.h. */
22233_ACEOF
22234cat confdefs.h >>conftest.$ac_ext
22235cat >>conftest.$ac_ext <<_ACEOF
22236/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022237
John Criswell47fdd832003-07-14 16:52:07 +000022238int
22239main ()
22240{
22241
22242 ;
22243 return 0;
22244}
22245_ACEOF
22246rm -f conftest.$ac_objext conftest$ac_exeext
22247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022248 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022255 { ac_try='test -z "$ac_c_werror_flag"
22256 || test ! -s conftest.err'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268
22269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22270}'`
22271# Check for a 64-bit object if we didn't find anything.
22272if 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; }
22273}'`; fi
22274else
22275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022276sed 's/^/| /' conftest.$ac_ext >&5
22277
John Criswell47fdd832003-07-14 16:52:07 +000022278fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022279rm -f conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22282
22283 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22284 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"
22285 else
22286 if test "$host_cpu" = ia64; then
22287 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22288 allow_undefined_flag_GCJ="-z nodefs"
22289 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"
22290 else
22291 # Determine the default libpath from the value encoded in an empty executable.
22292 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022293/* confdefs.h. */
22294_ACEOF
22295cat confdefs.h >>conftest.$ac_ext
22296cat >>conftest.$ac_ext <<_ACEOF
22297/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022298
John Criswell47fdd832003-07-14 16:52:07 +000022299int
22300main ()
22301{
22302
22303 ;
22304 return 0;
22305}
22306_ACEOF
22307rm -f conftest.$ac_objext conftest$ac_exeext
22308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022309 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022316 { ac_try='test -z "$ac_c_werror_flag"
22317 || test ! -s conftest.err'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; } &&
22323 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22329
22330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22331}'`
22332# Check for a 64-bit object if we didn't find anything.
22333if 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; }
22334}'`; fi
22335else
22336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022337sed 's/^/| /' conftest.$ac_ext >&5
22338
John Criswell47fdd832003-07-14 16:52:07 +000022339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022340rm -f conftest.err conftest.$ac_objext \
22341 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22343
22344 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22345 # Warning - without using the other run time loading flags,
22346 # -berok will link without error, but may produce a broken library.
22347 no_undefined_flag_GCJ=' ${wl}-bernotok'
22348 allow_undefined_flag_GCJ=' ${wl}-berok'
22349 # -bexpall does not export symbols beginning with underscore (_)
22350 always_export_symbols_GCJ=yes
22351 # Exported symbols can be pulled into shared objects from archives
22352 whole_archive_flag_spec_GCJ=' '
22353 archive_cmds_need_lc_GCJ=yes
22354 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022355 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 +000022356 fi
22357 fi
22358 ;;
22359
22360 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022361 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 +000022362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22363 hardcode_minus_L_GCJ=yes
22364 # see comment about different semantics on the GNU ld section
22365 ld_shlibs_GCJ=no
22366 ;;
22367
Reid Spencer2706f8c2004-09-19 23:53:36 +000022368 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022369 export_dynamic_flag_spec_GCJ=-rdynamic
22370 ;;
22371
22372 cygwin* | mingw* | pw32*)
22373 # When not using gcc, we currently assume that we are using
22374 # Microsoft Visual C++.
22375 # hardcode_libdir_flag_spec is actually meaningless, as there is
22376 # no search path for DLLs.
22377 hardcode_libdir_flag_spec_GCJ=' '
22378 allow_undefined_flag_GCJ=unsupported
22379 # Tell ltmain to make .lib files, not .a files.
22380 libext=lib
22381 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022382 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022383 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022384 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 +000022385 # The linker will automatically build a .lib file if we build a DLL.
22386 old_archive_From_new_cmds_GCJ='true'
22387 # FIXME: Should let the user specify the lib program.
22388 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22389 fix_srcfile_path='`cygpath -w "$srcfile"`'
22390 enable_shared_with_static_runtimes_GCJ=yes
22391 ;;
22392
22393 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022394 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022395 rhapsody* | darwin1.[012])
22396 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22397 ;;
22398 *) # Darwin 1.3 on
22399 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22400 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22401 else
22402 case ${MACOSX_DEPLOYMENT_TARGET} in
22403 10.[012])
22404 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22405 ;;
22406 10.*)
22407 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22408 ;;
22409 esac
22410 fi
22411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022412 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022413 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022414 hardcode_direct_GCJ=no
22415 hardcode_automatic_GCJ=yes
22416 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022417 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022418 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022419 if test "$GCC" = yes ; then
22420 output_verbose_link_cmd='echo'
22421 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22422 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22423 # 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 +000022424 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}'
22425 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 +000022426 else
22427 case "$cc_basename" in
22428 xlc*)
22429 output_verbose_link_cmd='echo'
22430 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22431 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22432 # 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 +000022433 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}'
22434 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 +000022435 ;;
22436 *)
22437 ld_shlibs_GCJ=no
22438 ;;
22439 esac
John Criswell47fdd832003-07-14 16:52:07 +000022440 fi
22441 ;;
22442
22443 dgux*)
22444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22446 hardcode_shlibpath_var_GCJ=no
22447 ;;
22448
22449 freebsd1*)
22450 ld_shlibs_GCJ=no
22451 ;;
22452
22453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22454 # support. Future versions do this automatically, but an explicit c++rt0.o
22455 # does not break anything, and helps significantly (at the cost of a little
22456 # extra space).
22457 freebsd2.2*)
22458 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22460 hardcode_direct_GCJ=yes
22461 hardcode_shlibpath_var_GCJ=no
22462 ;;
22463
22464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22465 freebsd2*)
22466 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22467 hardcode_direct_GCJ=yes
22468 hardcode_minus_L_GCJ=yes
22469 hardcode_shlibpath_var_GCJ=no
22470 ;;
22471
22472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022473 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022474 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22476 hardcode_direct_GCJ=yes
22477 hardcode_shlibpath_var_GCJ=no
22478 ;;
22479
22480 hpux9*)
22481 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022482 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 +000022483 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022484 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 +000022485 fi
22486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22487 hardcode_libdir_separator_GCJ=:
22488 hardcode_direct_GCJ=yes
22489
22490 # hardcode_minus_L: Not really in the search PATH,
22491 # but as the default location of the library.
22492 hardcode_minus_L_GCJ=yes
22493 export_dynamic_flag_spec_GCJ='${wl}-E'
22494 ;;
22495
22496 hpux10* | hpux11*)
22497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22498 case "$host_cpu" in
22499 hppa*64*|ia64*)
22500 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22501 ;;
22502 *)
22503 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22504 ;;
22505 esac
22506 else
22507 case "$host_cpu" in
22508 hppa*64*|ia64*)
22509 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22510 ;;
22511 *)
22512 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22513 ;;
22514 esac
22515 fi
22516 if test "$with_gnu_ld" = no; then
22517 case "$host_cpu" in
22518 hppa*64*)
22519 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22520 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22521 hardcode_libdir_separator_GCJ=:
22522 hardcode_direct_GCJ=no
22523 hardcode_shlibpath_var_GCJ=no
22524 ;;
22525 ia64*)
22526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22527 hardcode_direct_GCJ=no
22528 hardcode_shlibpath_var_GCJ=no
22529
22530 # hardcode_minus_L: Not really in the search PATH,
22531 # but as the default location of the library.
22532 hardcode_minus_L_GCJ=yes
22533 ;;
22534 *)
22535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22536 hardcode_libdir_separator_GCJ=:
22537 hardcode_direct_GCJ=yes
22538 export_dynamic_flag_spec_GCJ='${wl}-E'
22539
22540 # hardcode_minus_L: Not really in the search PATH,
22541 # but as the default location of the library.
22542 hardcode_minus_L_GCJ=yes
22543 ;;
22544 esac
22545 fi
22546 ;;
22547
22548 irix5* | irix6* | nonstopux*)
22549 if test "$GCC" = yes; then
22550 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'
22551 else
22552 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'
22553 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22554 fi
22555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22556 hardcode_libdir_separator_GCJ=:
22557 link_all_deplibs_GCJ=yes
22558 ;;
22559
22560 netbsd*)
22561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22563 else
22564 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22565 fi
22566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22567 hardcode_direct_GCJ=yes
22568 hardcode_shlibpath_var_GCJ=no
22569 ;;
22570
22571 newsos6)
22572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22573 hardcode_direct_GCJ=yes
22574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22575 hardcode_libdir_separator_GCJ=:
22576 hardcode_shlibpath_var_GCJ=no
22577 ;;
22578
22579 openbsd*)
22580 hardcode_direct_GCJ=yes
22581 hardcode_shlibpath_var_GCJ=no
22582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22583 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584 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 +000022585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22586 export_dynamic_flag_spec_GCJ='${wl}-E'
22587 else
22588 case $host_os in
22589 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22590 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22592 ;;
22593 *)
22594 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22596 ;;
22597 esac
22598 fi
22599 ;;
22600
22601 os2*)
22602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22603 hardcode_minus_L_GCJ=yes
22604 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022605 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 +000022606 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22607 ;;
22608
22609 osf3*)
22610 if test "$GCC" = yes; then
22611 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22612 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'
22613 else
22614 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22615 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'
22616 fi
22617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22618 hardcode_libdir_separator_GCJ=:
22619 ;;
22620
22621 osf4* | osf5*) # as osf3* with the addition of -msym flag
22622 if test "$GCC" = yes; then
22623 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22624 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'
22625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22626 else
22627 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22628 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 +000022629 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~
22630 $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'
22631
John Criswell47fdd832003-07-14 16:52:07 +000022632 # Both c and cxx compiler support -rpath directly
22633 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22634 fi
22635 hardcode_libdir_separator_GCJ=:
22636 ;;
22637
22638 sco3.2v5*)
22639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22640 hardcode_shlibpath_var_GCJ=no
22641 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22642 runpath_var=LD_RUN_PATH
22643 hardcode_runpath_var=yes
22644 ;;
22645
22646 solaris*)
22647 no_undefined_flag_GCJ=' -z text'
22648 if test "$GCC" = yes; then
22649 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022650 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22651 $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 +000022652 else
22653 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022654 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22655 $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 +000022656 fi
22657 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22658 hardcode_shlibpath_var_GCJ=no
22659 case $host_os in
22660 solaris2.[0-5] | solaris2.[0-5].*) ;;
22661 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22662 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22663 esac
22664 link_all_deplibs_GCJ=yes
22665 ;;
22666
22667 sunos4*)
22668 if test "x$host_vendor" = xsequent; then
22669 # Use $CC to link under sequent, because it throws in some extra .o
22670 # files that make .init and .fini sections work.
22671 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22672 else
22673 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22674 fi
22675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22676 hardcode_direct_GCJ=yes
22677 hardcode_minus_L_GCJ=yes
22678 hardcode_shlibpath_var_GCJ=no
22679 ;;
22680
22681 sysv4)
22682 case $host_vendor in
22683 sni)
22684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22685 hardcode_direct_GCJ=yes # is this really true???
22686 ;;
22687 siemens)
22688 ## LD is ld it makes a PLAMLIB
22689 ## CC just makes a GrossModule.
22690 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22691 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22692 hardcode_direct_GCJ=no
22693 ;;
22694 motorola)
22695 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22696 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22697 ;;
22698 esac
22699 runpath_var='LD_RUN_PATH'
22700 hardcode_shlibpath_var_GCJ=no
22701 ;;
22702
22703 sysv4.3*)
22704 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22705 hardcode_shlibpath_var_GCJ=no
22706 export_dynamic_flag_spec_GCJ='-Bexport'
22707 ;;
22708
22709 sysv4*MP*)
22710 if test -d /usr/nec; then
22711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22712 hardcode_shlibpath_var_GCJ=no
22713 runpath_var=LD_RUN_PATH
22714 hardcode_runpath_var=yes
22715 ld_shlibs_GCJ=yes
22716 fi
22717 ;;
22718
22719 sysv4.2uw2*)
22720 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22721 hardcode_direct_GCJ=yes
22722 hardcode_minus_L_GCJ=no
22723 hardcode_shlibpath_var_GCJ=no
22724 hardcode_runpath_var=yes
22725 runpath_var=LD_RUN_PATH
22726 ;;
22727
22728 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22729 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22730 if test "$GCC" = yes; then
22731 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22732 else
22733 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22734 fi
22735 runpath_var='LD_RUN_PATH'
22736 hardcode_shlibpath_var_GCJ=no
22737 ;;
22738
22739 sysv5*)
22740 no_undefined_flag_GCJ=' -z text'
22741 # $CC -shared without GNU ld will not create a library from C++
22742 # object files and a static libstdc++, better avoid it by now
22743 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022744 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22745 $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 +000022746 hardcode_libdir_flag_spec_GCJ=
22747 hardcode_shlibpath_var_GCJ=no
22748 runpath_var='LD_RUN_PATH'
22749 ;;
22750
22751 uts4*)
22752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22754 hardcode_shlibpath_var_GCJ=no
22755 ;;
22756
22757 *)
22758 ld_shlibs_GCJ=no
22759 ;;
22760 esac
22761 fi
22762
22763echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22764echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22765test "$ld_shlibs_GCJ" = no && can_build_shared=no
22766
22767variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22768if test "$GCC" = yes; then
22769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22770fi
22771
22772#
22773# Do we need to explicitly link libc?
22774#
22775case "x$archive_cmds_need_lc_GCJ" in
22776x|xyes)
22777 # Assume -lc should be added
22778 archive_cmds_need_lc_GCJ=yes
22779
22780 if test "$enable_shared" = yes && test "$GCC" = yes; then
22781 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022782 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022783 # FIXME: we may have to deal with multi-command sequences.
22784 ;;
22785 '$CC '*)
22786 # Test whether the compiler implicitly links with -lc since on some
22787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22788 # to ld, don't add -lc before -lgcc.
22789 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22790echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22791 $rm conftest*
22792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22793
22794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795 (eval $ac_compile) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } 2>conftest.err; then
22799 soname=conftest
22800 lib=conftest
22801 libobjs=conftest.$ac_objext
22802 deplibs=
22803 wl=$lt_prog_compiler_wl_GCJ
22804 compiler_flags=-v
22805 linker_flags=-v
22806 verstring=
22807 output_objdir=.
22808 libname=conftest
22809 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22810 allow_undefined_flag_GCJ=
22811 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22812 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22813 ac_status=$?
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }
22816 then
22817 archive_cmds_need_lc_GCJ=no
22818 else
22819 archive_cmds_need_lc_GCJ=yes
22820 fi
22821 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22822 else
22823 cat conftest.err 1>&5
22824 fi
22825 $rm conftest*
22826 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22827echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22828 ;;
22829 esac
22830 fi
22831 ;;
22832esac
22833
John Criswell47fdd832003-07-14 16:52:07 +000022834echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22835echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22836library_names_spec=
22837libname_spec='lib$name'
22838soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022839shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022840postinstall_cmds=
22841postuninstall_cmds=
22842finish_cmds=
22843finish_eval=
22844shlibpath_var=
22845shlibpath_overrides_runpath=unknown
22846version_type=none
22847dynamic_linker="$host_os ld.so"
22848sys_lib_dlsearch_path_spec="/lib /usr/lib"
22849if test "$GCC" = yes; then
22850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22851 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22852 # if the path contains ";" then we assume it to be the separator
22853 # otherwise default to the standard path separator (i.e. ":") - it is
22854 # assumed that no part of a normal pathname contains ";" but that should
22855 # okay in the real world where ";" in dirpaths is itself problematic.
22856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22857 else
22858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22859 fi
22860else
22861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22862fi
22863need_lib_prefix=unknown
22864hardcode_into_libs=no
22865
22866# when you set need_version to no, make sure it does not cause -set_version
22867# flags to be left without arguments
22868need_version=unknown
22869
22870case $host_os in
22871aix3*)
22872 version_type=linux
22873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22874 shlibpath_var=LIBPATH
22875
22876 # AIX 3 has no versioning support, so we append a major version to the name.
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 ;;
22879
22880aix4* | aix5*)
22881 version_type=linux
22882 need_lib_prefix=no
22883 need_version=no
22884 hardcode_into_libs=yes
22885 if test "$host_cpu" = ia64; then
22886 # AIX 5 supports IA64
22887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 else
22890 # With GCC up to 2.95.x, collect2 would create an import file
22891 # for dependence libraries. The import file would start with
22892 # the line `#! .'. This would cause the generated library to
22893 # depend on `.', always an invalid library. This was fixed in
22894 # development snapshots of GCC prior to 3.0.
22895 case $host_os in
22896 aix4 | aix4.[01] | aix4.[01].*)
22897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22898 echo ' yes '
22899 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22900 :
22901 else
22902 can_build_shared=no
22903 fi
22904 ;;
22905 esac
22906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22907 # soname into executable. Probably we can add versioning support to
22908 # collect2, so additional links can be useful in future.
22909 if test "$aix_use_runtimelinking" = yes; then
22910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22911 # instead of lib<name>.a to let people know that these are not
22912 # typical AIX shared libraries.
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 else
22915 # We preserve .a as extension for shared libraries through AIX4.2
22916 # and later when we are not doing run time linking.
22917 library_names_spec='${libname}${release}.a $libname.a'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 fi
22920 shlibpath_var=LIBPATH
22921 fi
22922 ;;
22923
22924amigaos*)
22925 library_names_spec='$libname.ixlibrary $libname.a'
22926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022927 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 +000022928 ;;
22929
22930beos*)
22931 library_names_spec='${libname}${shared_ext}'
22932 dynamic_linker="$host_os ld.so"
22933 shlibpath_var=LIBRARY_PATH
22934 ;;
22935
Reid Spencer2706f8c2004-09-19 23:53:36 +000022936bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022937 version_type=linux
22938 need_version=no
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22942 shlibpath_var=LD_LIBRARY_PATH
22943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22945 # the default ld.so.conf also contains /usr/contrib/lib and
22946 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22947 # libtool to hard-code these into programs
22948 ;;
22949
22950cygwin* | mingw* | pw32*)
22951 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022952 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022953 need_version=no
22954 need_lib_prefix=no
22955
22956 case $GCC,$host_os in
22957 yes,cygwin* | yes,mingw* | yes,pw32*)
22958 library_names_spec='$libname.dll.a'
22959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022960 postinstall_cmds='base_file=`basename \${file}`~
22961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22962 dldir=$destdir/`dirname \$dlpath`~
22963 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022964 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22966 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022967 $rm \$dlpath'
22968 shlibpath_overrides_runpath=yes
22969
22970 case $host_os in
22971 cygwin*)
22972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22973 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 +000022974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022975 ;;
22976 mingw*)
22977 # MinGW DLLs use traditional 'lib' prefix
22978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22981 # It is most probably a Windows format PATH printed by
22982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22983 # path with ; separators, and with drive letters. We can handle the
22984 # drive letters (cygwin fileutils understands them), so leave them,
22985 # especially as we might pass files found there to a mingw objdump,
22986 # which wouldn't understand a cygwinified path. Ahh.
22987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22988 else
22989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22990 fi
22991 ;;
22992 pw32*)
22993 # pw32 DLLs use 'pw' prefix rather than 'lib'
22994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22995 ;;
22996 esac
22997 ;;
22998
22999 *)
23000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23001 ;;
23002 esac
23003 dynamic_linker='Win32 ld.exe'
23004 # FIXME: first we should search . and the directory the executable is in
23005 shlibpath_var=PATH
23006 ;;
23007
23008darwin* | rhapsody*)
23009 dynamic_linker="$host_os dyld"
23010 version_type=darwin
23011 need_lib_prefix=no
23012 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023014 soname_spec='${libname}${release}${major}$shared_ext'
23015 shlibpath_overrides_runpath=yes
23016 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000023017 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000023018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019 if test "$GCC" = yes; then
23020 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"`
23021 else
23022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023023 fi
23024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23025 ;;
23026
23027dgux*)
23028 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 ;;
23035
23036freebsd1*)
23037 dynamic_linker=no
23038 ;;
23039
Reid Spencer2706f8c2004-09-19 23:53:36 +000023040kfreebsd*-gnu)
23041 version_type=linux
23042 need_lib_prefix=no
23043 need_version=no
23044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23045 soname_spec='${libname}${release}${shared_ext}$major'
23046 shlibpath_var=LD_LIBRARY_PATH
23047 shlibpath_overrides_runpath=no
23048 hardcode_into_libs=yes
23049 dynamic_linker='GNU ld.so'
23050 ;;
23051
John Criswell47fdd832003-07-14 16:52:07 +000023052freebsd*)
23053 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23054 version_type=freebsd-$objformat
23055 case $version_type in
23056 freebsd-elf*)
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23058 need_version=no
23059 need_lib_prefix=no
23060 ;;
23061 freebsd-*)
23062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23063 need_version=yes
23064 ;;
23065 esac
23066 shlibpath_var=LD_LIBRARY_PATH
23067 case $host_os in
23068 freebsd2*)
23069 shlibpath_overrides_runpath=yes
23070 ;;
23071 freebsd3.01* | freebsdelf3.01*)
23072 shlibpath_overrides_runpath=yes
23073 hardcode_into_libs=yes
23074 ;;
23075 *) # from 3.2 on
23076 shlibpath_overrides_runpath=no
23077 hardcode_into_libs=yes
23078 ;;
23079 esac
23080 ;;
23081
23082gnu*)
23083 version_type=linux
23084 need_lib_prefix=no
23085 need_version=no
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23087 soname_spec='${libname}${release}${shared_ext}$major'
23088 shlibpath_var=LD_LIBRARY_PATH
23089 hardcode_into_libs=yes
23090 ;;
23091
23092hpux9* | hpux10* | hpux11*)
23093 # Give a soname corresponding to the major version so that dld.sl refuses to
23094 # link against other versions.
23095 version_type=sunos
23096 need_lib_prefix=no
23097 need_version=no
23098 case "$host_cpu" in
23099 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023100 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023101 hardcode_into_libs=yes
23102 dynamic_linker="$host_os dld.so"
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106 soname_spec='${libname}${release}${shared_ext}$major'
23107 if test "X$HPUX_IA64_MODE" = X32; then
23108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23109 else
23110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23111 fi
23112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23113 ;;
23114 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023116 hardcode_into_libs=yes
23117 dynamic_linker="$host_os dld.sl"
23118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23121 soname_spec='${libname}${release}${shared_ext}$major'
23122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23124 ;;
23125 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023126 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023127 dynamic_linker="$host_os dld.sl"
23128 shlibpath_var=SHLIB_PATH
23129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23131 soname_spec='${libname}${release}${shared_ext}$major'
23132 ;;
23133 esac
23134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23135 postinstall_cmds='chmod 555 $lib'
23136 ;;
23137
23138irix5* | irix6* | nonstopux*)
23139 case $host_os in
23140 nonstopux*) version_type=nonstopux ;;
23141 *)
23142 if test "$lt_cv_prog_gnu_ld" = yes; then
23143 version_type=linux
23144 else
23145 version_type=irix
23146 fi ;;
23147 esac
23148 need_lib_prefix=no
23149 need_version=no
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23152 case $host_os in
23153 irix5* | nonstopux*)
23154 libsuff= shlibsuff=
23155 ;;
23156 *)
23157 case $LD in # libtool.m4 will add one of these switches to LD
23158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23159 libsuff= shlibsuff= libmagic=32-bit;;
23160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23161 libsuff=32 shlibsuff=N32 libmagic=N32;;
23162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23164 *) libsuff= shlibsuff= libmagic=never-match;;
23165 esac
23166 ;;
23167 esac
23168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23169 shlibpath_overrides_runpath=no
23170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23172 hardcode_into_libs=yes
23173 ;;
23174
23175# No shared lib support for Linux oldld, aout, or coff.
23176linux*oldld* | linux*aout* | linux*coff*)
23177 dynamic_linker=no
23178 ;;
23179
23180# This must be Linux ELF.
23181linux*)
23182 version_type=linux
23183 need_lib_prefix=no
23184 need_version=no
23185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23186 soname_spec='${libname}${release}${shared_ext}$major'
23187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23188 shlibpath_var=LD_LIBRARY_PATH
23189 shlibpath_overrides_runpath=no
23190 # This implies no fast_install, which is unacceptable.
23191 # Some rework will be needed to allow for fast_install
23192 # before this can be enabled.
23193 hardcode_into_libs=yes
23194
Reid Spencer2706f8c2004-09-19 23:53:36 +000023195 # Append ld.so.conf contents to the search path
23196 if test -f /etc/ld.so.conf; then
23197 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23198 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23199 fi
23200
John Criswell47fdd832003-07-14 16:52:07 +000023201 # We used to test for /lib/ld.so.1 and disable shared libraries on
23202 # powerpc, because MkLinux only supported shared libraries with the
23203 # GNU dynamic linker. Since this was broken with cross compilers,
23204 # most powerpc-linux boxes support dynamic linking these days and
23205 # people can always --disable-shared, the test was removed, and we
23206 # assume the GNU/Linux dynamic linker is in use.
23207 dynamic_linker='GNU/Linux ld.so'
23208 ;;
23209
Reid Spencer2706f8c2004-09-19 23:53:36 +000023210knetbsd*-gnu)
23211 version_type=linux
23212 need_lib_prefix=no
23213 need_version=no
23214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23215 soname_spec='${libname}${release}${shared_ext}$major'
23216 shlibpath_var=LD_LIBRARY_PATH
23217 shlibpath_overrides_runpath=no
23218 hardcode_into_libs=yes
23219 dynamic_linker='GNU ld.so'
23220 ;;
23221
John Criswell47fdd832003-07-14 16:52:07 +000023222netbsd*)
23223 version_type=sunos
23224 need_lib_prefix=no
23225 need_version=no
23226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23229 dynamic_linker='NetBSD (a.out) ld.so'
23230 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023232 soname_spec='${libname}${release}${shared_ext}$major'
23233 dynamic_linker='NetBSD ld.elf_so'
23234 fi
23235 shlibpath_var=LD_LIBRARY_PATH
23236 shlibpath_overrides_runpath=yes
23237 hardcode_into_libs=yes
23238 ;;
23239
23240newsos6)
23241 version_type=linux
23242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23243 shlibpath_var=LD_LIBRARY_PATH
23244 shlibpath_overrides_runpath=yes
23245 ;;
23246
Reid Spencer2706f8c2004-09-19 23:53:36 +000023247nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023248 version_type=linux
23249 need_lib_prefix=no
23250 need_version=no
23251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23252 soname_spec='${libname}${release}${shared_ext}$major'
23253 shlibpath_var=LD_LIBRARY_PATH
23254 shlibpath_overrides_runpath=yes
23255 ;;
23256
23257openbsd*)
23258 version_type=sunos
23259 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000023260 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000023261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23263 shlibpath_var=LD_LIBRARY_PATH
23264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23265 case $host_os in
23266 openbsd2.[89] | openbsd2.[89].*)
23267 shlibpath_overrides_runpath=no
23268 ;;
23269 *)
23270 shlibpath_overrides_runpath=yes
23271 ;;
23272 esac
23273 else
23274 shlibpath_overrides_runpath=yes
23275 fi
23276 ;;
23277
23278os2*)
23279 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023280 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023281 need_lib_prefix=no
23282 library_names_spec='$libname${shared_ext} $libname.a'
23283 dynamic_linker='OS/2 ld.exe'
23284 shlibpath_var=LIBPATH
23285 ;;
23286
23287osf3* | osf4* | osf5*)
23288 version_type=osf
23289 need_lib_prefix=no
23290 need_version=no
23291 soname_spec='${libname}${release}${shared_ext}$major'
23292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293 shlibpath_var=LD_LIBRARY_PATH
23294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23296 ;;
23297
23298sco3.2v5*)
23299 version_type=osf
23300 soname_spec='${libname}${release}${shared_ext}$major'
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23302 shlibpath_var=LD_LIBRARY_PATH
23303 ;;
23304
23305solaris*)
23306 version_type=linux
23307 need_lib_prefix=no
23308 need_version=no
23309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23310 soname_spec='${libname}${release}${shared_ext}$major'
23311 shlibpath_var=LD_LIBRARY_PATH
23312 shlibpath_overrides_runpath=yes
23313 hardcode_into_libs=yes
23314 # ldd complains unless libraries are executable
23315 postinstall_cmds='chmod +x $lib'
23316 ;;
23317
23318sunos4*)
23319 version_type=sunos
23320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23322 shlibpath_var=LD_LIBRARY_PATH
23323 shlibpath_overrides_runpath=yes
23324 if test "$with_gnu_ld" = yes; then
23325 need_lib_prefix=no
23326 fi
23327 need_version=yes
23328 ;;
23329
23330sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23331 version_type=linux
23332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23333 soname_spec='${libname}${release}${shared_ext}$major'
23334 shlibpath_var=LD_LIBRARY_PATH
23335 case $host_vendor in
23336 sni)
23337 shlibpath_overrides_runpath=no
23338 need_lib_prefix=no
23339 export_dynamic_flag_spec='${wl}-Blargedynsym'
23340 runpath_var=LD_RUN_PATH
23341 ;;
23342 siemens)
23343 need_lib_prefix=no
23344 ;;
23345 motorola)
23346 need_lib_prefix=no
23347 need_version=no
23348 shlibpath_overrides_runpath=no
23349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23350 ;;
23351 esac
23352 ;;
23353
23354sysv4*MP*)
23355 if test -d /usr/nec ;then
23356 version_type=linux
23357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23358 soname_spec='$libname${shared_ext}.$major'
23359 shlibpath_var=LD_LIBRARY_PATH
23360 fi
23361 ;;
23362
23363uts4*)
23364 version_type=linux
23365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23366 soname_spec='${libname}${release}${shared_ext}$major'
23367 shlibpath_var=LD_LIBRARY_PATH
23368 ;;
23369
23370*)
23371 dynamic_linker=no
23372 ;;
23373esac
23374echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23375echo "${ECHO_T}$dynamic_linker" >&6
23376test "$dynamic_linker" = no && can_build_shared=no
23377
Reid Spencer2706f8c2004-09-19 23:53:36 +000023378echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23379echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23380hardcode_action_GCJ=
23381if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23382 test -n "$runpath_var_GCJ" || \
23383 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23384
23385 # We can hardcode non-existant directories.
23386 if test "$hardcode_direct_GCJ" != no &&
23387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23388 # have to relink, otherwise we might link with an installed library
23389 # when we should be linking with a yet-to-be-installed one
23390 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23391 test "$hardcode_minus_L_GCJ" != no; then
23392 # Linking always hardcodes the temporary library directory.
23393 hardcode_action_GCJ=relink
23394 else
23395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23396 hardcode_action_GCJ=immediate
23397 fi
23398else
23399 # We cannot hardcode anything, or else we can only hardcode existing
23400 # directories.
23401 hardcode_action_GCJ=unsupported
23402fi
23403echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23404echo "${ECHO_T}$hardcode_action_GCJ" >&6
23405
23406if test "$hardcode_action_GCJ" = relink; then
23407 # Fast installation is not supported
23408 enable_fast_install=no
23409elif test "$shlibpath_overrides_runpath" = yes ||
23410 test "$enable_shared" = no; then
23411 # Fast installation is not necessary
23412 enable_fast_install=needless
23413fi
23414
23415striplib=
23416old_striplib=
23417echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23418echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23419if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23422 echo "$as_me:$LINENO: result: yes" >&5
23423echo "${ECHO_T}yes" >&6
23424else
23425# FIXME - insert some real tests, host_os isn't really good enough
23426 case $host_os in
23427 darwin*)
23428 if test -n "$STRIP" ; then
23429 striplib="$STRIP -x"
23430 echo "$as_me:$LINENO: result: yes" >&5
23431echo "${ECHO_T}yes" >&6
23432 else
23433 echo "$as_me:$LINENO: result: no" >&5
23434echo "${ECHO_T}no" >&6
23435fi
23436 ;;
23437 *)
23438 echo "$as_me:$LINENO: result: no" >&5
23439echo "${ECHO_T}no" >&6
23440 ;;
23441 esac
23442fi
23443
John Criswell47fdd832003-07-14 16:52:07 +000023444if test "x$enable_dlopen" != xyes; then
23445 enable_dlopen=unknown
23446 enable_dlopen_self=unknown
23447 enable_dlopen_self_static=unknown
23448else
23449 lt_cv_dlopen=no
23450 lt_cv_dlopen_libs=
23451
23452 case $host_os in
23453 beos*)
23454 lt_cv_dlopen="load_add_on"
23455 lt_cv_dlopen_libs=
23456 lt_cv_dlopen_self=yes
23457 ;;
23458
23459 mingw* | pw32*)
23460 lt_cv_dlopen="LoadLibrary"
23461 lt_cv_dlopen_libs=
23462 ;;
23463
23464 cygwin*)
23465 lt_cv_dlopen="dlopen"
23466 lt_cv_dlopen_libs=
23467 ;;
23468
23469 darwin*)
23470 # if libdl is installed we need to link against it
23471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23472echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23473if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475else
23476 ac_check_lib_save_LIBS=$LIBS
23477LIBS="-ldl $LIBS"
23478cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023479/* confdefs.h. */
23480_ACEOF
23481cat confdefs.h >>conftest.$ac_ext
23482cat >>conftest.$ac_ext <<_ACEOF
23483/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023484
23485/* Override any gcc2 internal prototype to avoid an error. */
23486#ifdef __cplusplus
23487extern "C"
23488#endif
23489/* We use char because int might match the return type of a gcc2
23490 builtin and then its argument prototype would still apply. */
23491char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023492int
23493main ()
23494{
23495dlopen ();
23496 ;
23497 return 0;
23498}
23499_ACEOF
23500rm -f conftest.$ac_objext conftest$ac_exeext
23501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023502 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023503 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023504 grep -v '^ *+' conftest.er1 >conftest.err
23505 rm -f conftest.er1
23506 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023509 { ac_try='test -z "$ac_c_werror_flag"
23510 || test ! -s conftest.err'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; } &&
23516 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_cv_lib_dl_dlopen=yes
23523else
23524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023525sed 's/^/| /' conftest.$ac_ext >&5
23526
John Criswell47fdd832003-07-14 16:52:07 +000023527ac_cv_lib_dl_dlopen=no
23528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023529rm -f conftest.err conftest.$ac_objext \
23530 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023531LIBS=$ac_check_lib_save_LIBS
23532fi
23533echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23534echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23535if test $ac_cv_lib_dl_dlopen = yes; then
23536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23537else
23538
23539 lt_cv_dlopen="dyld"
23540 lt_cv_dlopen_libs=
23541 lt_cv_dlopen_self=yes
23542
23543fi
23544
23545 ;;
23546
23547 *)
23548 echo "$as_me:$LINENO: checking for shl_load" >&5
23549echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23550if test "${ac_cv_func_shl_load+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23552else
23553 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023554/* confdefs.h. */
23555_ACEOF
23556cat confdefs.h >>conftest.$ac_ext
23557cat >>conftest.$ac_ext <<_ACEOF
23558/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023559/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23561#define shl_load innocuous_shl_load
23562
John Criswell47fdd832003-07-14 16:52:07 +000023563/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023564 which can conflict with char shl_load (); below.
23565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23566 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023567
John Criswell0c38eaf2003-09-10 15:17:25 +000023568#ifdef __STDC__
23569# include <limits.h>
23570#else
23571# include <assert.h>
23572#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573
23574#undef shl_load
23575
John Criswell47fdd832003-07-14 16:52:07 +000023576/* Override any gcc2 internal prototype to avoid an error. */
23577#ifdef __cplusplus
23578extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023579{
John Criswell47fdd832003-07-14 16:52:07 +000023580#endif
23581/* We use char because int might match the return type of a gcc2
23582 builtin and then its argument prototype would still apply. */
23583char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023584/* The GNU C library defines this for functions which it implements
23585 to always fail with ENOSYS. Some functions are actually named
23586 something starting with __ and the normal name is an alias. */
23587#if defined (__stub_shl_load) || defined (__stub___shl_load)
23588choke me
23589#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023590char (*f) () = shl_load;
23591#endif
23592#ifdef __cplusplus
23593}
John Criswell47fdd832003-07-14 16:52:07 +000023594#endif
23595
John Criswell0c38eaf2003-09-10 15:17:25 +000023596int
23597main ()
23598{
23599return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023600 ;
23601 return 0;
23602}
23603_ACEOF
23604rm -f conftest.$ac_objext conftest$ac_exeext
23605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023606 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023608 grep -v '^ *+' conftest.er1 >conftest.err
23609 rm -f conftest.er1
23610 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023613 { ac_try='test -z "$ac_c_werror_flag"
23614 || test ! -s conftest.err'
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023621 { (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); }; }; then
23626 ac_cv_func_shl_load=yes
23627else
23628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023629sed 's/^/| /' conftest.$ac_ext >&5
23630
John Criswell47fdd832003-07-14 16:52:07 +000023631ac_cv_func_shl_load=no
23632fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023633rm -f conftest.err conftest.$ac_objext \
23634 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023635fi
23636echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23637echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23638if test $ac_cv_func_shl_load = yes; then
23639 lt_cv_dlopen="shl_load"
23640else
23641 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23642echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23643if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645else
23646 ac_check_lib_save_LIBS=$LIBS
23647LIBS="-ldld $LIBS"
23648cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023649/* confdefs.h. */
23650_ACEOF
23651cat confdefs.h >>conftest.$ac_ext
23652cat >>conftest.$ac_ext <<_ACEOF
23653/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023654
23655/* Override any gcc2 internal prototype to avoid an error. */
23656#ifdef __cplusplus
23657extern "C"
23658#endif
23659/* We use char because int might match the return type of a gcc2
23660 builtin and then its argument prototype would still apply. */
23661char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023662int
23663main ()
23664{
23665shl_load ();
23666 ;
23667 return 0;
23668}
23669_ACEOF
23670rm -f conftest.$ac_objext conftest$ac_exeext
23671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023672 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023673 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023679 { ac_try='test -z "$ac_c_werror_flag"
23680 || test ! -s conftest.err'
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; } &&
23686 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688 (eval $ac_try) 2>&5
23689 ac_status=$?
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); }; }; then
23692 ac_cv_lib_dld_shl_load=yes
23693else
23694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023695sed 's/^/| /' conftest.$ac_ext >&5
23696
John Criswell47fdd832003-07-14 16:52:07 +000023697ac_cv_lib_dld_shl_load=no
23698fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023699rm -f conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023701LIBS=$ac_check_lib_save_LIBS
23702fi
23703echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23704echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23705if test $ac_cv_lib_dld_shl_load = yes; then
23706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23707else
23708 echo "$as_me:$LINENO: checking for dlopen" >&5
23709echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23710if test "${ac_cv_func_dlopen+set}" = set; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23712else
23713 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023714/* confdefs.h. */
23715_ACEOF
23716cat confdefs.h >>conftest.$ac_ext
23717cat >>conftest.$ac_ext <<_ACEOF
23718/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023719/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23721#define dlopen innocuous_dlopen
23722
John Criswell47fdd832003-07-14 16:52:07 +000023723/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023724 which can conflict with char dlopen (); below.
23725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23726 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023727
John Criswell0c38eaf2003-09-10 15:17:25 +000023728#ifdef __STDC__
23729# include <limits.h>
23730#else
23731# include <assert.h>
23732#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023733
23734#undef dlopen
23735
John Criswell47fdd832003-07-14 16:52:07 +000023736/* Override any gcc2 internal prototype to avoid an error. */
23737#ifdef __cplusplus
23738extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023739{
John Criswell47fdd832003-07-14 16:52:07 +000023740#endif
23741/* We use char because int might match the return type of a gcc2
23742 builtin and then its argument prototype would still apply. */
23743char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023744/* The GNU C library defines this for functions which it implements
23745 to always fail with ENOSYS. Some functions are actually named
23746 something starting with __ and the normal name is an alias. */
23747#if defined (__stub_dlopen) || defined (__stub___dlopen)
23748choke me
23749#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023750char (*f) () = dlopen;
23751#endif
23752#ifdef __cplusplus
23753}
John Criswell47fdd832003-07-14 16:52:07 +000023754#endif
23755
John Criswell0c38eaf2003-09-10 15:17:25 +000023756int
23757main ()
23758{
23759return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023760 ;
23761 return 0;
23762}
23763_ACEOF
23764rm -f conftest.$ac_objext conftest$ac_exeext
23765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023766 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023773 { ac_try='test -z "$ac_c_werror_flag"
23774 || test ! -s conftest.err'
23775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; } &&
23780 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; }; then
23786 ac_cv_func_dlopen=yes
23787else
23788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023789sed 's/^/| /' conftest.$ac_ext >&5
23790
John Criswell47fdd832003-07-14 16:52:07 +000023791ac_cv_func_dlopen=no
23792fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023793rm -f conftest.err conftest.$ac_objext \
23794 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023795fi
23796echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23797echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23798if test $ac_cv_func_dlopen = yes; then
23799 lt_cv_dlopen="dlopen"
23800else
23801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23802echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23803if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805else
23806 ac_check_lib_save_LIBS=$LIBS
23807LIBS="-ldl $LIBS"
23808cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023809/* confdefs.h. */
23810_ACEOF
23811cat confdefs.h >>conftest.$ac_ext
23812cat >>conftest.$ac_ext <<_ACEOF
23813/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023814
23815/* Override any gcc2 internal prototype to avoid an error. */
23816#ifdef __cplusplus
23817extern "C"
23818#endif
23819/* We use char because int might match the return type of a gcc2
23820 builtin and then its argument prototype would still apply. */
23821char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023822int
23823main ()
23824{
23825dlopen ();
23826 ;
23827 return 0;
23828}
23829_ACEOF
23830rm -f conftest.$ac_objext conftest$ac_exeext
23831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023832 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023833 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023834 grep -v '^ *+' conftest.er1 >conftest.err
23835 rm -f conftest.er1
23836 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 ac_cv_lib_dl_dlopen=yes
23853else
23854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023855sed 's/^/| /' conftest.$ac_ext >&5
23856
John Criswell47fdd832003-07-14 16:52:07 +000023857ac_cv_lib_dl_dlopen=no
23858fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023859rm -f conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023861LIBS=$ac_check_lib_save_LIBS
23862fi
23863echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23864echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23865if test $ac_cv_lib_dl_dlopen = yes; then
23866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23867else
23868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23869echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23870if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23871 echo $ECHO_N "(cached) $ECHO_C" >&6
23872else
23873 ac_check_lib_save_LIBS=$LIBS
23874LIBS="-lsvld $LIBS"
23875cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023876/* confdefs.h. */
23877_ACEOF
23878cat confdefs.h >>conftest.$ac_ext
23879cat >>conftest.$ac_ext <<_ACEOF
23880/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023881
23882/* Override any gcc2 internal prototype to avoid an error. */
23883#ifdef __cplusplus
23884extern "C"
23885#endif
23886/* We use char because int might match the return type of a gcc2
23887 builtin and then its argument prototype would still apply. */
23888char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023889int
23890main ()
23891{
23892dlopen ();
23893 ;
23894 return 0;
23895}
23896_ACEOF
23897rm -f conftest.$ac_objext conftest$ac_exeext
23898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023899 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023900 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023901 grep -v '^ *+' conftest.er1 >conftest.err
23902 rm -f conftest.er1
23903 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023906 { ac_try='test -z "$ac_c_werror_flag"
23907 || test ! -s conftest.err'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 ac_cv_lib_svld_dlopen=yes
23920else
23921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023922sed 's/^/| /' conftest.$ac_ext >&5
23923
John Criswell47fdd832003-07-14 16:52:07 +000023924ac_cv_lib_svld_dlopen=no
23925fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023926rm -f conftest.err conftest.$ac_objext \
23927 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023928LIBS=$ac_check_lib_save_LIBS
23929fi
23930echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23931echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23932if test $ac_cv_lib_svld_dlopen = yes; then
23933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23934else
23935 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23936echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23937if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23939else
23940 ac_check_lib_save_LIBS=$LIBS
23941LIBS="-ldld $LIBS"
23942cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023943/* confdefs.h. */
23944_ACEOF
23945cat confdefs.h >>conftest.$ac_ext
23946cat >>conftest.$ac_ext <<_ACEOF
23947/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023948
23949/* Override any gcc2 internal prototype to avoid an error. */
23950#ifdef __cplusplus
23951extern "C"
23952#endif
23953/* We use char because int might match the return type of a gcc2
23954 builtin and then its argument prototype would still apply. */
23955char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023956int
23957main ()
23958{
23959dld_link ();
23960 ;
23961 return 0;
23962}
23963_ACEOF
23964rm -f conftest.$ac_objext conftest$ac_exeext
23965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023966 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023968 grep -v '^ *+' conftest.er1 >conftest.err
23969 rm -f conftest.er1
23970 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023973 { ac_try='test -z "$ac_c_werror_flag"
23974 || test ! -s conftest.err'
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; } &&
23980 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 ac_cv_lib_dld_dld_link=yes
23987else
23988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023989sed 's/^/| /' conftest.$ac_ext >&5
23990
John Criswell47fdd832003-07-14 16:52:07 +000023991ac_cv_lib_dld_dld_link=no
23992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023993rm -f conftest.err conftest.$ac_objext \
23994 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023995LIBS=$ac_check_lib_save_LIBS
23996fi
23997echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23998echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23999if test $ac_cv_lib_dld_dld_link = yes; then
24000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24001fi
24002
24003
24004fi
24005
24006
24007fi
24008
24009
24010fi
24011
24012
24013fi
24014
24015
24016fi
24017
24018 ;;
24019 esac
24020
24021 if test "x$lt_cv_dlopen" != xno; then
24022 enable_dlopen=yes
24023 else
24024 enable_dlopen=no
24025 fi
24026
24027 case $lt_cv_dlopen in
24028 dlopen)
24029 save_CPPFLAGS="$CPPFLAGS"
24030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24031
24032 save_LDFLAGS="$LDFLAGS"
24033 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24034
24035 save_LIBS="$LIBS"
24036 LIBS="$lt_cv_dlopen_libs $LIBS"
24037
24038 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24039echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24040if test "${lt_cv_dlopen_self+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
24042else
24043 if test "$cross_compiling" = yes; then :
24044 lt_cv_dlopen_self=cross
24045else
24046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24047 lt_status=$lt_dlunknown
24048 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +000024049#line 24049 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000024050#include "confdefs.h"
24051
24052#if HAVE_DLFCN_H
24053#include <dlfcn.h>
24054#endif
24055
24056#include <stdio.h>
24057
24058#ifdef RTLD_GLOBAL
24059# define LT_DLGLOBAL RTLD_GLOBAL
24060#else
24061# ifdef DL_GLOBAL
24062# define LT_DLGLOBAL DL_GLOBAL
24063# else
24064# define LT_DLGLOBAL 0
24065# endif
24066#endif
24067
24068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24069 find out it does not work in some platform. */
24070#ifndef LT_DLLAZY_OR_NOW
24071# ifdef RTLD_LAZY
24072# define LT_DLLAZY_OR_NOW RTLD_LAZY
24073# else
24074# ifdef DL_LAZY
24075# define LT_DLLAZY_OR_NOW DL_LAZY
24076# else
24077# ifdef RTLD_NOW
24078# define LT_DLLAZY_OR_NOW RTLD_NOW
24079# else
24080# ifdef DL_NOW
24081# define LT_DLLAZY_OR_NOW DL_NOW
24082# else
24083# define LT_DLLAZY_OR_NOW 0
24084# endif
24085# endif
24086# endif
24087# endif
24088#endif
24089
24090#ifdef __cplusplus
24091extern "C" void exit (int);
24092#endif
24093
24094void fnord() { int i=42;}
24095int main ()
24096{
24097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24098 int status = $lt_dlunknown;
24099
24100 if (self)
24101 {
24102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24104 /* dlclose (self); */
24105 }
24106
24107 exit (status);
24108}
24109EOF
24110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24111 (eval $ac_link) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24115 (./conftest; exit; ) 2>/dev/null
24116 lt_status=$?
24117 case x$lt_status in
24118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24120 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24121 esac
24122 else :
24123 # compilation failed
24124 lt_cv_dlopen_self=no
24125 fi
24126fi
24127rm -fr conftest*
24128
24129
24130fi
24131echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24132echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24133
24134 if test "x$lt_cv_dlopen_self" = xyes; then
24135 LDFLAGS="$LDFLAGS $link_static_flag"
24136 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24137echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24138if test "${lt_cv_dlopen_self_static+set}" = set; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24140else
24141 if test "$cross_compiling" = yes; then :
24142 lt_cv_dlopen_self_static=cross
24143else
24144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24145 lt_status=$lt_dlunknown
24146 cat > conftest.$ac_ext <<EOF
Reid Spenceraea7fe42006-07-28 05:05:00 +000024147#line 24147 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000024148#include "confdefs.h"
24149
24150#if HAVE_DLFCN_H
24151#include <dlfcn.h>
24152#endif
24153
24154#include <stdio.h>
24155
24156#ifdef RTLD_GLOBAL
24157# define LT_DLGLOBAL RTLD_GLOBAL
24158#else
24159# ifdef DL_GLOBAL
24160# define LT_DLGLOBAL DL_GLOBAL
24161# else
24162# define LT_DLGLOBAL 0
24163# endif
24164#endif
24165
24166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24167 find out it does not work in some platform. */
24168#ifndef LT_DLLAZY_OR_NOW
24169# ifdef RTLD_LAZY
24170# define LT_DLLAZY_OR_NOW RTLD_LAZY
24171# else
24172# ifdef DL_LAZY
24173# define LT_DLLAZY_OR_NOW DL_LAZY
24174# else
24175# ifdef RTLD_NOW
24176# define LT_DLLAZY_OR_NOW RTLD_NOW
24177# else
24178# ifdef DL_NOW
24179# define LT_DLLAZY_OR_NOW DL_NOW
24180# else
24181# define LT_DLLAZY_OR_NOW 0
24182# endif
24183# endif
24184# endif
24185# endif
24186#endif
24187
24188#ifdef __cplusplus
24189extern "C" void exit (int);
24190#endif
24191
24192void fnord() { int i=42;}
24193int main ()
24194{
24195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24196 int status = $lt_dlunknown;
24197
24198 if (self)
24199 {
24200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24202 /* dlclose (self); */
24203 }
24204
24205 exit (status);
24206}
24207EOF
24208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24213 (./conftest; exit; ) 2>/dev/null
24214 lt_status=$?
24215 case x$lt_status in
24216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24218 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24219 esac
24220 else :
24221 # compilation failed
24222 lt_cv_dlopen_self_static=no
24223 fi
24224fi
24225rm -fr conftest*
24226
24227
24228fi
24229echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24230echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24231 fi
24232
24233 CPPFLAGS="$save_CPPFLAGS"
24234 LDFLAGS="$save_LDFLAGS"
24235 LIBS="$save_LIBS"
24236 ;;
24237 esac
24238
24239 case $lt_cv_dlopen_self in
24240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24241 *) enable_dlopen_self=unknown ;;
24242 esac
24243
24244 case $lt_cv_dlopen_self_static in
24245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24246 *) enable_dlopen_self_static=unknown ;;
24247 esac
24248fi
24249
24250
24251# The else clause should only fire when bootstrapping the
24252# libtool distribution, otherwise you forgot to ship ltmain.sh
24253# with your package, and you will get complaints that there are
24254# no rules to generate ltmain.sh.
24255if test -f "$ltmain"; then
24256 # See if we are running on zsh, and set the options which allow our commands through
24257 # without removal of \ escapes.
24258 if test -n "${ZSH_VERSION+set}" ; then
24259 setopt NO_GLOB_SUBST
24260 fi
24261 # Now quote all the things that may contain metacharacters while being
24262 # careful not to overquote the AC_SUBSTed values. We take copies of the
24263 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24265 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24268 deplibs_check_method reload_flag reload_cmds need_locks \
24269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24270 lt_cv_sys_global_symbol_to_c_name_address \
24271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24272 old_postinstall_cmds old_postuninstall_cmds \
24273 compiler_GCJ \
24274 CC_GCJ \
24275 LD_GCJ \
24276 lt_prog_compiler_wl_GCJ \
24277 lt_prog_compiler_pic_GCJ \
24278 lt_prog_compiler_static_GCJ \
24279 lt_prog_compiler_no_builtin_flag_GCJ \
24280 export_dynamic_flag_spec_GCJ \
24281 thread_safe_flag_spec_GCJ \
24282 whole_archive_flag_spec_GCJ \
24283 enable_shared_with_static_runtimes_GCJ \
24284 old_archive_cmds_GCJ \
24285 old_archive_from_new_cmds_GCJ \
24286 predep_objects_GCJ \
24287 postdep_objects_GCJ \
24288 predeps_GCJ \
24289 postdeps_GCJ \
24290 compiler_lib_search_path_GCJ \
24291 archive_cmds_GCJ \
24292 archive_expsym_cmds_GCJ \
24293 postinstall_cmds_GCJ \
24294 postuninstall_cmds_GCJ \
24295 old_archive_from_expsyms_cmds_GCJ \
24296 allow_undefined_flag_GCJ \
24297 no_undefined_flag_GCJ \
24298 export_symbols_cmds_GCJ \
24299 hardcode_libdir_flag_spec_GCJ \
24300 hardcode_libdir_flag_spec_ld_GCJ \
24301 hardcode_libdir_separator_GCJ \
24302 hardcode_automatic_GCJ \
24303 module_cmds_GCJ \
24304 module_expsym_cmds_GCJ \
24305 lt_cv_prog_compiler_c_o_GCJ \
24306 exclude_expsyms_GCJ \
24307 include_expsyms_GCJ; do
24308
24309 case $var in
24310 old_archive_cmds_GCJ | \
24311 old_archive_from_new_cmds_GCJ | \
24312 archive_cmds_GCJ | \
24313 archive_expsym_cmds_GCJ | \
24314 module_cmds_GCJ | \
24315 module_expsym_cmds_GCJ | \
24316 old_archive_from_expsyms_cmds_GCJ | \
24317 export_symbols_cmds_GCJ | \
24318 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24319 postinstall_cmds | postuninstall_cmds | \
24320 old_postinstall_cmds | old_postuninstall_cmds | \
24321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24322 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024323 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 +000024324 ;;
24325 *)
24326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24327 ;;
24328 esac
24329 done
24330
24331 case $lt_echo in
24332 *'\$0 --fallback-echo"')
24333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24334 ;;
24335 esac
24336
24337cfgfile="$ofile"
24338
24339 cat <<__EOF__ >> "$cfgfile"
24340# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24341
24342# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24343
24344# Shell to use when invoking shell scripts.
24345SHELL=$lt_SHELL
24346
24347# Whether or not to build shared libraries.
24348build_libtool_libs=$enable_shared
24349
24350# Whether or not to build static libraries.
24351build_old_libs=$enable_static
24352
24353# Whether or not to add -lc for building shared libraries.
24354build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24355
24356# Whether or not to disallow shared libs when runtime libs are static
24357allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24358
24359# Whether or not to optimize for fast installation.
24360fast_install=$enable_fast_install
24361
24362# The host system.
24363host_alias=$host_alias
24364host=$host
24365
24366# An echo program that does not interpret backslashes.
24367echo=$lt_echo
24368
24369# The archiver.
24370AR=$lt_AR
24371AR_FLAGS=$lt_AR_FLAGS
24372
24373# A C compiler.
24374LTCC=$lt_LTCC
24375
24376# A language-specific compiler.
24377CC=$lt_compiler_GCJ
24378
24379# Is the compiler the GNU C compiler?
24380with_gcc=$GCC_GCJ
24381
24382# An ERE matcher.
24383EGREP=$lt_EGREP
24384
24385# The linker used to build libraries.
24386LD=$lt_LD_GCJ
24387
24388# Whether we need hard or soft links.
24389LN_S=$lt_LN_S
24390
24391# A BSD-compatible nm program.
24392NM=$lt_NM
24393
24394# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024395STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024396
24397# Used to examine libraries when file_magic_cmd begins "file"
24398MAGIC_CMD=$MAGIC_CMD
24399
24400# Used on cygwin: DLL creation program.
24401DLLTOOL="$DLLTOOL"
24402
24403# Used on cygwin: object dumper.
24404OBJDUMP="$OBJDUMP"
24405
24406# Used on cygwin: assembler.
24407AS="$AS"
24408
24409# The name of the directory that contains temporary libtool files.
24410objdir=$objdir
24411
24412# How to create reloadable object files.
24413reload_flag=$lt_reload_flag
24414reload_cmds=$lt_reload_cmds
24415
24416# How to pass a linker flag through the compiler.
24417wl=$lt_lt_prog_compiler_wl_GCJ
24418
24419# Object file suffix (normally "o").
24420objext="$ac_objext"
24421
24422# Old archive suffix (normally "a").
24423libext="$libext"
24424
24425# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024426shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024427
24428# Executable file suffix (normally "").
24429exeext="$exeext"
24430
24431# Additional compiler flags for building library objects.
24432pic_flag=$lt_lt_prog_compiler_pic_GCJ
24433pic_mode=$pic_mode
24434
24435# What is the maximum length of a command?
24436max_cmd_len=$lt_cv_sys_max_cmd_len
24437
24438# Does compiler simultaneously support -c and -o options?
24439compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24440
24441# Must we lock files when doing compilation ?
24442need_locks=$lt_need_locks
24443
24444# Do we need the lib prefix for modules?
24445need_lib_prefix=$need_lib_prefix
24446
24447# Do we need a version for libraries?
24448need_version=$need_version
24449
24450# Whether dlopen is supported.
24451dlopen_support=$enable_dlopen
24452
24453# Whether dlopen of programs is supported.
24454dlopen_self=$enable_dlopen_self
24455
24456# Whether dlopen of statically linked programs is supported.
24457dlopen_self_static=$enable_dlopen_self_static
24458
24459# Compiler flag to prevent dynamic linking.
24460link_static_flag=$lt_lt_prog_compiler_static_GCJ
24461
24462# Compiler flag to turn off builtin functions.
24463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24464
24465# Compiler flag to allow reflexive dlopens.
24466export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24467
24468# Compiler flag to generate shared objects directly from archives.
24469whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24470
24471# Compiler flag to generate thread-safe objects.
24472thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24473
24474# Library versioning type.
24475version_type=$version_type
24476
24477# Format of library name prefix.
24478libname_spec=$lt_libname_spec
24479
24480# List of archive names. First name is the real one, the rest are links.
24481# The last name is the one that the linker finds with -lNAME.
24482library_names_spec=$lt_library_names_spec
24483
24484# The coded name of the library, if different from the real name.
24485soname_spec=$lt_soname_spec
24486
24487# Commands used to build and install an old-style archive.
24488RANLIB=$lt_RANLIB
24489old_archive_cmds=$lt_old_archive_cmds_GCJ
24490old_postinstall_cmds=$lt_old_postinstall_cmds
24491old_postuninstall_cmds=$lt_old_postuninstall_cmds
24492
24493# Create an old-style archive from a shared archive.
24494old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24495
24496# Create a temporary old-style archive to link instead of a shared archive.
24497old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24498
24499# Commands used to build and install a shared archive.
24500archive_cmds=$lt_archive_cmds_GCJ
24501archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24502postinstall_cmds=$lt_postinstall_cmds
24503postuninstall_cmds=$lt_postuninstall_cmds
24504
24505# Commands used to build a loadable module (assumed same as above if empty)
24506module_cmds=$lt_module_cmds_GCJ
24507module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24508
24509# Commands to strip libraries.
24510old_striplib=$lt_old_striplib
24511striplib=$lt_striplib
24512
24513# Dependencies to place before the objects being linked to create a
24514# shared library.
24515predep_objects=$lt_predep_objects_GCJ
24516
24517# Dependencies to place after the objects being linked to create a
24518# shared library.
24519postdep_objects=$lt_postdep_objects_GCJ
24520
24521# Dependencies to place before the objects being linked to create a
24522# shared library.
24523predeps=$lt_predeps_GCJ
24524
24525# Dependencies to place after the objects being linked to create a
24526# shared library.
24527postdeps=$lt_postdeps_GCJ
24528
24529# The library search path used internally by the compiler when linking
24530# a shared library.
24531compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24532
24533# Method to check whether dependent libraries are shared objects.
24534deplibs_check_method=$lt_deplibs_check_method
24535
24536# Command to use when deplibs_check_method == file_magic.
24537file_magic_cmd=$lt_file_magic_cmd
24538
24539# Flag that allows shared libraries with undefined symbols to be built.
24540allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24541
24542# Flag that forces no undefined symbols.
24543no_undefined_flag=$lt_no_undefined_flag_GCJ
24544
24545# Commands used to finish a libtool library installation in a directory.
24546finish_cmds=$lt_finish_cmds
24547
24548# Same as above, but a single script fragment to be evaled but not shown.
24549finish_eval=$lt_finish_eval
24550
24551# Take the output of nm and produce a listing of raw symbols and C names.
24552global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24553
24554# Transform the output of nm in a proper C declaration
24555global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24556
24557# Transform the output of nm in a C name address pair
24558global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24559
24560# This is the shared library runtime path variable.
24561runpath_var=$runpath_var
24562
24563# This is the shared library path variable.
24564shlibpath_var=$shlibpath_var
24565
24566# Is shlibpath searched before the hard-coded library search path?
24567shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24568
24569# How to hardcode a shared library path into an executable.
24570hardcode_action=$hardcode_action_GCJ
24571
24572# Whether we should hardcode library paths into libraries.
24573hardcode_into_libs=$hardcode_into_libs
24574
24575# Flag to hardcode \$libdir into a binary during linking.
24576# This must work even if \$libdir does not exist.
24577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24578
24579# If ld is used when linking, flag to hardcode \$libdir into
24580# a binary during linking. This must work even if \$libdir does
24581# not exist.
24582hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24583
24584# Whether we need a single -rpath flag with a separated argument.
24585hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24586
24587# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24588# resulting binary.
24589hardcode_direct=$hardcode_direct_GCJ
24590
24591# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24592# resulting binary.
24593hardcode_minus_L=$hardcode_minus_L_GCJ
24594
24595# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24596# the resulting binary.
24597hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24598
24599# Set to yes if building a shared library automatically hardcodes DIR into the library
24600# and all subsequent libraries and executables linked against it.
24601hardcode_automatic=$hardcode_automatic_GCJ
24602
24603# Variables whose values should be saved in libtool wrapper scripts and
24604# restored at relink time.
24605variables_saved_for_relink="$variables_saved_for_relink"
24606
24607# Whether libtool must link a program against all its dependency libraries.
24608link_all_deplibs=$link_all_deplibs_GCJ
24609
24610# Compile-time system search path for libraries
24611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24612
24613# Run-time system search path for libraries
24614sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24615
24616# Fix the shell variable \$srcfile for the compiler.
24617fix_srcfile_path="$fix_srcfile_path_GCJ"
24618
24619# Set to yes if exported symbols are required.
24620always_export_symbols=$always_export_symbols_GCJ
24621
24622# The commands to list exported symbols.
24623export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24624
24625# The commands to extract the exported symbol list from a shared archive.
24626extract_expsyms_cmds=$lt_extract_expsyms_cmds
24627
24628# Symbols that should not be listed in the preloaded symbols.
24629exclude_expsyms=$lt_exclude_expsyms_GCJ
24630
24631# Symbols that must always be exported.
24632include_expsyms=$lt_include_expsyms_GCJ
24633
24634# ### END LIBTOOL TAG CONFIG: $tagname
24635
24636__EOF__
24637
24638
24639else
24640 # If there is no Makefile yet, we rely on a make rule to execute
24641 # `config.status --recheck' to rerun these tests and create the
24642 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024643 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24644 if test -f "$ltmain_in"; then
24645 test -f Makefile && make "$ltmain"
24646 fi
John Criswell47fdd832003-07-14 16:52:07 +000024647fi
24648
24649
24650ac_ext=c
24651ac_cpp='$CPP $CPPFLAGS'
24652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24654ac_compiler_gnu=$ac_cv_c_compiler_gnu
24655
24656CC="$lt_save_CC"
24657
24658 else
24659 tagname=""
24660 fi
24661 ;;
24662
24663 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024664 ac_ext=c
24665ac_cpp='$CPP $CPPFLAGS'
24666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24668ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024669
24670
24671# Source file extension for RC test sources.
24672ac_ext=rc
24673
24674# Object file extension for compiled RC test sources.
24675objext=o
24676objext_RC=$objext
24677
24678# Code to be used in simple compile tests
24679lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24680
24681# Code to be used in simple link tests
24682lt_simple_link_test_code="$lt_simple_compile_test_code"
24683
24684# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24685
24686# If no C compiler was specified, use CC.
24687LTCC=${LTCC-"$CC"}
24688
24689# Allow CC to be a program name with arguments.
24690compiler=$CC
24691
24692
24693# Allow CC to be a program name with arguments.
24694lt_save_CC="$CC"
24695CC=${RC-"windres"}
24696compiler=$CC
24697compiler_RC=$CC
24698lt_cv_prog_compiler_c_o_RC=yes
24699
24700# The else clause should only fire when bootstrapping the
24701# libtool distribution, otherwise you forgot to ship ltmain.sh
24702# with your package, and you will get complaints that there are
24703# no rules to generate ltmain.sh.
24704if test -f "$ltmain"; then
24705 # See if we are running on zsh, and set the options which allow our commands through
24706 # without removal of \ escapes.
24707 if test -n "${ZSH_VERSION+set}" ; then
24708 setopt NO_GLOB_SUBST
24709 fi
24710 # Now quote all the things that may contain metacharacters while being
24711 # careful not to overquote the AC_SUBSTed values. We take copies of the
24712 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024713 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24714 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024715 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24716 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24717 deplibs_check_method reload_flag reload_cmds need_locks \
24718 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24719 lt_cv_sys_global_symbol_to_c_name_address \
24720 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24721 old_postinstall_cmds old_postuninstall_cmds \
24722 compiler_RC \
24723 CC_RC \
24724 LD_RC \
24725 lt_prog_compiler_wl_RC \
24726 lt_prog_compiler_pic_RC \
24727 lt_prog_compiler_static_RC \
24728 lt_prog_compiler_no_builtin_flag_RC \
24729 export_dynamic_flag_spec_RC \
24730 thread_safe_flag_spec_RC \
24731 whole_archive_flag_spec_RC \
24732 enable_shared_with_static_runtimes_RC \
24733 old_archive_cmds_RC \
24734 old_archive_from_new_cmds_RC \
24735 predep_objects_RC \
24736 postdep_objects_RC \
24737 predeps_RC \
24738 postdeps_RC \
24739 compiler_lib_search_path_RC \
24740 archive_cmds_RC \
24741 archive_expsym_cmds_RC \
24742 postinstall_cmds_RC \
24743 postuninstall_cmds_RC \
24744 old_archive_from_expsyms_cmds_RC \
24745 allow_undefined_flag_RC \
24746 no_undefined_flag_RC \
24747 export_symbols_cmds_RC \
24748 hardcode_libdir_flag_spec_RC \
24749 hardcode_libdir_flag_spec_ld_RC \
24750 hardcode_libdir_separator_RC \
24751 hardcode_automatic_RC \
24752 module_cmds_RC \
24753 module_expsym_cmds_RC \
24754 lt_cv_prog_compiler_c_o_RC \
24755 exclude_expsyms_RC \
24756 include_expsyms_RC; do
24757
24758 case $var in
24759 old_archive_cmds_RC | \
24760 old_archive_from_new_cmds_RC | \
24761 archive_cmds_RC | \
24762 archive_expsym_cmds_RC | \
24763 module_cmds_RC | \
24764 module_expsym_cmds_RC | \
24765 old_archive_from_expsyms_cmds_RC | \
24766 export_symbols_cmds_RC | \
24767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24768 postinstall_cmds | postuninstall_cmds | \
24769 old_postinstall_cmds | old_postuninstall_cmds | \
24770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24771 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024772 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 +000024773 ;;
24774 *)
24775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24776 ;;
24777 esac
24778 done
24779
24780 case $lt_echo in
24781 *'\$0 --fallback-echo"')
24782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24783 ;;
24784 esac
24785
24786cfgfile="$ofile"
24787
24788 cat <<__EOF__ >> "$cfgfile"
24789# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24790
24791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24792
24793# Shell to use when invoking shell scripts.
24794SHELL=$lt_SHELL
24795
24796# Whether or not to build shared libraries.
24797build_libtool_libs=$enable_shared
24798
24799# Whether or not to build static libraries.
24800build_old_libs=$enable_static
24801
24802# Whether or not to add -lc for building shared libraries.
24803build_libtool_need_lc=$archive_cmds_need_lc_RC
24804
24805# Whether or not to disallow shared libs when runtime libs are static
24806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24807
24808# Whether or not to optimize for fast installation.
24809fast_install=$enable_fast_install
24810
24811# The host system.
24812host_alias=$host_alias
24813host=$host
24814
24815# An echo program that does not interpret backslashes.
24816echo=$lt_echo
24817
24818# The archiver.
24819AR=$lt_AR
24820AR_FLAGS=$lt_AR_FLAGS
24821
24822# A C compiler.
24823LTCC=$lt_LTCC
24824
24825# A language-specific compiler.
24826CC=$lt_compiler_RC
24827
24828# Is the compiler the GNU C compiler?
24829with_gcc=$GCC_RC
24830
24831# An ERE matcher.
24832EGREP=$lt_EGREP
24833
24834# The linker used to build libraries.
24835LD=$lt_LD_RC
24836
24837# Whether we need hard or soft links.
24838LN_S=$lt_LN_S
24839
24840# A BSD-compatible nm program.
24841NM=$lt_NM
24842
24843# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024844STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024845
24846# Used to examine libraries when file_magic_cmd begins "file"
24847MAGIC_CMD=$MAGIC_CMD
24848
24849# Used on cygwin: DLL creation program.
24850DLLTOOL="$DLLTOOL"
24851
24852# Used on cygwin: object dumper.
24853OBJDUMP="$OBJDUMP"
24854
24855# Used on cygwin: assembler.
24856AS="$AS"
24857
24858# The name of the directory that contains temporary libtool files.
24859objdir=$objdir
24860
24861# How to create reloadable object files.
24862reload_flag=$lt_reload_flag
24863reload_cmds=$lt_reload_cmds
24864
24865# How to pass a linker flag through the compiler.
24866wl=$lt_lt_prog_compiler_wl_RC
24867
24868# Object file suffix (normally "o").
24869objext="$ac_objext"
24870
24871# Old archive suffix (normally "a").
24872libext="$libext"
24873
24874# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024875shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024876
24877# Executable file suffix (normally "").
24878exeext="$exeext"
24879
24880# Additional compiler flags for building library objects.
24881pic_flag=$lt_lt_prog_compiler_pic_RC
24882pic_mode=$pic_mode
24883
24884# What is the maximum length of a command?
24885max_cmd_len=$lt_cv_sys_max_cmd_len
24886
24887# Does compiler simultaneously support -c and -o options?
24888compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24889
24890# Must we lock files when doing compilation ?
24891need_locks=$lt_need_locks
24892
24893# Do we need the lib prefix for modules?
24894need_lib_prefix=$need_lib_prefix
24895
24896# Do we need a version for libraries?
24897need_version=$need_version
24898
24899# Whether dlopen is supported.
24900dlopen_support=$enable_dlopen
24901
24902# Whether dlopen of programs is supported.
24903dlopen_self=$enable_dlopen_self
24904
24905# Whether dlopen of statically linked programs is supported.
24906dlopen_self_static=$enable_dlopen_self_static
24907
24908# Compiler flag to prevent dynamic linking.
24909link_static_flag=$lt_lt_prog_compiler_static_RC
24910
24911# Compiler flag to turn off builtin functions.
24912no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24913
24914# Compiler flag to allow reflexive dlopens.
24915export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24916
24917# Compiler flag to generate shared objects directly from archives.
24918whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24919
24920# Compiler flag to generate thread-safe objects.
24921thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24922
24923# Library versioning type.
24924version_type=$version_type
24925
24926# Format of library name prefix.
24927libname_spec=$lt_libname_spec
24928
24929# List of archive names. First name is the real one, the rest are links.
24930# The last name is the one that the linker finds with -lNAME.
24931library_names_spec=$lt_library_names_spec
24932
24933# The coded name of the library, if different from the real name.
24934soname_spec=$lt_soname_spec
24935
24936# Commands used to build and install an old-style archive.
24937RANLIB=$lt_RANLIB
24938old_archive_cmds=$lt_old_archive_cmds_RC
24939old_postinstall_cmds=$lt_old_postinstall_cmds
24940old_postuninstall_cmds=$lt_old_postuninstall_cmds
24941
24942# Create an old-style archive from a shared archive.
24943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24944
24945# Create a temporary old-style archive to link instead of a shared archive.
24946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24947
24948# Commands used to build and install a shared archive.
24949archive_cmds=$lt_archive_cmds_RC
24950archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24951postinstall_cmds=$lt_postinstall_cmds
24952postuninstall_cmds=$lt_postuninstall_cmds
24953
24954# Commands used to build a loadable module (assumed same as above if empty)
24955module_cmds=$lt_module_cmds_RC
24956module_expsym_cmds=$lt_module_expsym_cmds_RC
24957
24958# Commands to strip libraries.
24959old_striplib=$lt_old_striplib
24960striplib=$lt_striplib
24961
24962# Dependencies to place before the objects being linked to create a
24963# shared library.
24964predep_objects=$lt_predep_objects_RC
24965
24966# Dependencies to place after the objects being linked to create a
24967# shared library.
24968postdep_objects=$lt_postdep_objects_RC
24969
24970# Dependencies to place before the objects being linked to create a
24971# shared library.
24972predeps=$lt_predeps_RC
24973
24974# Dependencies to place after the objects being linked to create a
24975# shared library.
24976postdeps=$lt_postdeps_RC
24977
24978# The library search path used internally by the compiler when linking
24979# a shared library.
24980compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24981
24982# Method to check whether dependent libraries are shared objects.
24983deplibs_check_method=$lt_deplibs_check_method
24984
24985# Command to use when deplibs_check_method == file_magic.
24986file_magic_cmd=$lt_file_magic_cmd
24987
24988# Flag that allows shared libraries with undefined symbols to be built.
24989allow_undefined_flag=$lt_allow_undefined_flag_RC
24990
24991# Flag that forces no undefined symbols.
24992no_undefined_flag=$lt_no_undefined_flag_RC
24993
24994# Commands used to finish a libtool library installation in a directory.
24995finish_cmds=$lt_finish_cmds
24996
24997# Same as above, but a single script fragment to be evaled but not shown.
24998finish_eval=$lt_finish_eval
24999
25000# Take the output of nm and produce a listing of raw symbols and C names.
25001global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25002
25003# Transform the output of nm in a proper C declaration
25004global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25005
25006# Transform the output of nm in a C name address pair
25007global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25008
25009# This is the shared library runtime path variable.
25010runpath_var=$runpath_var
25011
25012# This is the shared library path variable.
25013shlibpath_var=$shlibpath_var
25014
25015# Is shlibpath searched before the hard-coded library search path?
25016shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25017
25018# How to hardcode a shared library path into an executable.
25019hardcode_action=$hardcode_action_RC
25020
25021# Whether we should hardcode library paths into libraries.
25022hardcode_into_libs=$hardcode_into_libs
25023
25024# Flag to hardcode \$libdir into a binary during linking.
25025# This must work even if \$libdir does not exist.
25026hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25027
25028# If ld is used when linking, flag to hardcode \$libdir into
25029# a binary during linking. This must work even if \$libdir does
25030# not exist.
25031hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25032
25033# Whether we need a single -rpath flag with a separated argument.
25034hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25035
25036# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25037# resulting binary.
25038hardcode_direct=$hardcode_direct_RC
25039
25040# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25041# resulting binary.
25042hardcode_minus_L=$hardcode_minus_L_RC
25043
25044# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25045# the resulting binary.
25046hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25047
25048# Set to yes if building a shared library automatically hardcodes DIR into the library
25049# and all subsequent libraries and executables linked against it.
25050hardcode_automatic=$hardcode_automatic_RC
25051
25052# Variables whose values should be saved in libtool wrapper scripts and
25053# restored at relink time.
25054variables_saved_for_relink="$variables_saved_for_relink"
25055
25056# Whether libtool must link a program against all its dependency libraries.
25057link_all_deplibs=$link_all_deplibs_RC
25058
25059# Compile-time system search path for libraries
25060sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25061
25062# Run-time system search path for libraries
25063sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25064
25065# Fix the shell variable \$srcfile for the compiler.
25066fix_srcfile_path="$fix_srcfile_path_RC"
25067
25068# Set to yes if exported symbols are required.
25069always_export_symbols=$always_export_symbols_RC
25070
25071# The commands to list exported symbols.
25072export_symbols_cmds=$lt_export_symbols_cmds_RC
25073
25074# The commands to extract the exported symbol list from a shared archive.
25075extract_expsyms_cmds=$lt_extract_expsyms_cmds
25076
25077# Symbols that should not be listed in the preloaded symbols.
25078exclude_expsyms=$lt_exclude_expsyms_RC
25079
25080# Symbols that must always be exported.
25081include_expsyms=$lt_include_expsyms_RC
25082
25083# ### END LIBTOOL TAG CONFIG: $tagname
25084
25085__EOF__
25086
25087
25088else
25089 # If there is no Makefile yet, we rely on a make rule to execute
25090 # `config.status --recheck' to rerun these tests and create the
25091 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25093 if test -f "$ltmain_in"; then
25094 test -f Makefile && make "$ltmain"
25095 fi
John Criswell47fdd832003-07-14 16:52:07 +000025096fi
25097
25098
25099ac_ext=c
25100ac_cpp='$CPP $CPPFLAGS'
25101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25103ac_compiler_gnu=$ac_cv_c_compiler_gnu
25104
25105CC="$lt_save_CC"
25106
25107 ;;
25108
25109 *)
25110 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25111echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25112 { (exit 1); exit 1; }; }
25113 ;;
25114 esac
25115
25116 # Append the new tag name to the list of available tags.
25117 if test -n "$tagname" ; then
25118 available_tags="$available_tags $tagname"
25119 fi
25120 fi
25121 done
25122 IFS="$lt_save_ifs"
25123
25124 # Now substitute the updated list of available tags.
25125 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25126 mv "${ofile}T" "$ofile"
25127 chmod +x "$ofile"
25128 else
25129 rm -f "${ofile}T"
25130 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25131echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25132 { (exit 1); exit 1; }; }
25133 fi
25134fi
John Criswell7a73b802003-06-30 21:59:07 +000025135
25136
25137
25138# This can be used to rebuild libtool when needed
25139LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25140
25141# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025142LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000025143
25144# Prevent multiple expansion
25145
25146
25147
John Criswell47fdd832003-07-14 16:52:07 +000025148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025165
Reid Spencer582a23c2004-12-29 07:07:57 +000025166if test "$lt_cv_dlopen_self" = "yes" ; then
25167
25168cat >>confdefs.h <<\_ACEOF
25169#define CAN_DLOPEN_SELF 1
25170_ACEOF
25171
25172fi
25173
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025174etags_version=`$ETAGS --version 2>&1`
25175case "$etags_version" in
25176 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25177 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25178 *) ETAGSFLAGS="" ;;
25179esac
25180ETAGSFLAGS=$ETAGSFLAGS
25181
25182
Reid Spencer7931a782004-12-27 06:15:02 +000025183if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000025184 LLVMGCC="llvm-gcc${EXEEXT}"
25185 LLVMGXX="llvm-g++${EXEEXT}"
25186 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25187set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000025188echo "$as_me:$LINENO: checking for $ac_word" >&5
25189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25190if test "${ac_cv_path_LLVMGCC+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25192else
25193 case $LLVMGCC in
25194 [\\/]* | ?:[\\/]*)
25195 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25196 ;;
25197 *)
25198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25199for as_dir in $PATH
25200do
25201 IFS=$as_save_IFS
25202 test -z "$as_dir" && as_dir=.
25203 for ac_exec_ext in '' $ac_executable_extensions; do
25204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25205 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25207 break 2
25208 fi
25209done
25210done
25211
Reid Spencer59473af2004-12-25 07:31:29 +000025212 ;;
25213esac
25214fi
25215LLVMGCC=$ac_cv_path_LLVMGCC
25216
25217if test -n "$LLVMGCC"; then
25218 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25219echo "${ECHO_T}$LLVMGCC" >&6
25220else
25221 echo "$as_me:$LINENO: result: no" >&5
25222echo "${ECHO_T}no" >&6
25223fi
25224
Reid Spencerc84492c2005-06-02 22:34:49 +000025225 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25226set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000025227echo "$as_me:$LINENO: checking for $ac_word" >&5
25228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25229if test "${ac_cv_path_LLVMGXX+set}" = set; then
25230 echo $ECHO_N "(cached) $ECHO_C" >&6
25231else
25232 case $LLVMGXX in
25233 [\\/]* | ?:[\\/]*)
25234 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25235 ;;
25236 *)
25237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238for as_dir in $PATH
25239do
25240 IFS=$as_save_IFS
25241 test -z "$as_dir" && as_dir=.
25242 for ac_exec_ext in '' $ac_executable_extensions; do
25243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25244 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25246 break 2
25247 fi
25248done
25249done
25250
Reid Spencer59473af2004-12-25 07:31:29 +000025251 ;;
25252esac
25253fi
25254LLVMGXX=$ac_cv_path_LLVMGXX
25255
25256if test -n "$LLVMGXX"; then
25257 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25258echo "${ECHO_T}$LLVMGXX" >&6
25259else
25260 echo "$as_me:$LINENO: result: no" >&5
25261echo "${ECHO_T}no" >&6
25262fi
25263
25264else
Reid Spencerc84492c2005-06-02 22:34:49 +000025265 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25266 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000025267 LLVMGCC=$LLVMGCC
25268
25269 LLVMGXX=$LLVMGXX
25270
25271fi
25272
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025273echo "$as_me:$LINENO: checking tool compatibility" >&5
25274echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25275
Reid Spencer86901802004-12-08 23:07:27 +000025276ICC=no
25277IXX=no
25278case $CC in
25279 icc*|icpc*)
25280 ICC=yes
25281 IXX=yes
25282 ;;
25283 *)
25284 ;;
25285esac
25286
Duraid Madina937c60a2006-02-15 07:57:42 +000025287if test "$GCC" != "yes" && test "$ICC" != "yes"
25288then
25289 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25290echo "$as_me: error: gcc|icc required but not found" >&2;}
25291 { (exit 1); exit 1; }; }
25292fi
25293
25294if test "$GXX" != "yes" && test "$IXX" != "yes"
25295then
25296 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25297echo "$as_me: error: g++|icc required but not found" >&2;}
25298 { (exit 1); exit 1; }; }
25299fi
25300
Reid Spencer86901802004-12-08 23:07:27 +000025301if test "$GCC" = "yes"
25302then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025303 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025304 if test "$gccmajor" -lt "3"
25305 then
25306 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025307echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25308 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025309 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025310fi
25311
25312if test -z "$llvm_cv_gnu_make_command"
25313then
25314 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25315echo "$as_me: error: GNU Make required but not found" >&2;}
25316 { (exit 1); exit 1; }; }
25317fi
25318
25319echo "$as_me:$LINENO: result: ok" >&5
25320echo "${ECHO_T}ok" >&6
25321
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025322
John Criswell7a73b802003-06-30 21:59:07 +000025323
John Criswell7a73b802003-06-30 21:59:07 +000025324echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25325echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25326if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25328else
25329 ac_check_lib_save_LIBS=$LIBS
25330LIBS="-lelf $LIBS"
25331cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025332/* confdefs.h. */
25333_ACEOF
25334cat confdefs.h >>conftest.$ac_ext
25335cat >>conftest.$ac_ext <<_ACEOF
25336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025337
25338/* Override any gcc2 internal prototype to avoid an error. */
25339#ifdef __cplusplus
25340extern "C"
25341#endif
25342/* We use char because int might match the return type of a gcc2
25343 builtin and then its argument prototype would still apply. */
25344char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025345int
25346main ()
25347{
25348elf_begin ();
25349 ;
25350 return 0;
25351}
25352_ACEOF
25353rm -f conftest.$ac_objext conftest$ac_exeext
25354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025355 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025357 grep -v '^ *+' conftest.er1 >conftest.err
25358 rm -f conftest.er1
25359 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025362 { ac_try='test -z "$ac_c_werror_flag"
25363 || test ! -s conftest.err'
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; } &&
25369 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25371 (eval $ac_try) 2>&5
25372 ac_status=$?
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); }; }; then
25375 ac_cv_lib_elf_elf_begin=yes
25376else
25377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025378sed 's/^/| /' conftest.$ac_ext >&5
25379
John Criswell7a73b802003-06-30 21:59:07 +000025380ac_cv_lib_elf_elf_begin=no
25381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025382rm -f conftest.err conftest.$ac_objext \
25383 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025384LIBS=$ac_check_lib_save_LIBS
25385fi
25386echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25387echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25388if test $ac_cv_lib_elf_elf_begin = yes; then
25389 cat >>confdefs.h <<_ACEOF
25390#define HAVE_LIBELF 1
25391_ACEOF
25392
25393 LIBS="-lelf $LIBS"
25394
25395fi
25396
25397
Reid Spencer3484a992006-01-19 08:31:08 +000025398echo "$as_me:$LINENO: checking for sin in -lm" >&5
25399echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25400if test "${ac_cv_lib_m_sin+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402else
25403 ac_check_lib_save_LIBS=$LIBS
25404LIBS="-lm $LIBS"
25405cat >conftest.$ac_ext <<_ACEOF
25406/* confdefs.h. */
25407_ACEOF
25408cat confdefs.h >>conftest.$ac_ext
25409cat >>conftest.$ac_ext <<_ACEOF
25410/* end confdefs.h. */
25411
25412/* Override any gcc2 internal prototype to avoid an error. */
25413#ifdef __cplusplus
25414extern "C"
25415#endif
25416/* We use char because int might match the return type of a gcc2
25417 builtin and then its argument prototype would still apply. */
25418char sin ();
25419int
25420main ()
25421{
25422sin ();
25423 ;
25424 return 0;
25425}
25426_ACEOF
25427rm -f conftest.$ac_objext conftest$ac_exeext
25428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25429 (eval $ac_link) 2>conftest.er1
25430 ac_status=$?
25431 grep -v '^ *+' conftest.er1 >conftest.err
25432 rm -f conftest.er1
25433 cat conftest.err >&5
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); } &&
25436 { ac_try='test -z "$ac_c_werror_flag"
25437 || test ! -s conftest.err'
25438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439 (eval $ac_try) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); }; } &&
25443 { ac_try='test -s conftest$ac_exeext'
25444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; }; then
25449 ac_cv_lib_m_sin=yes
25450else
25451 echo "$as_me: failed program was:" >&5
25452sed 's/^/| /' conftest.$ac_ext >&5
25453
25454ac_cv_lib_m_sin=no
25455fi
25456rm -f conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25458LIBS=$ac_check_lib_save_LIBS
25459fi
25460echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25461echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25462if test $ac_cv_lib_m_sin = yes; then
25463 cat >>confdefs.h <<_ACEOF
25464#define HAVE_LIBM 1
25465_ACEOF
25466
25467 LIBS="-lm $LIBS"
25468
25469fi
25470
Reid Spencer484fc8e2006-06-01 16:55:59 +000025471if test "$llvm_cv_os_type" == "MingW" ; then
25472
Reid Spencer48fdf912006-06-01 19:03:21 +000025473echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25474echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25475if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477else
25478 ac_check_lib_save_LIBS=$LIBS
25479LIBS="-limagehlp $LIBS"
25480cat >conftest.$ac_ext <<_ACEOF
25481/* confdefs.h. */
25482_ACEOF
25483cat confdefs.h >>conftest.$ac_ext
25484cat >>conftest.$ac_ext <<_ACEOF
25485/* end confdefs.h. */
25486
Reid Spencer48fdf912006-06-01 19:03:21 +000025487
Reid Spencer484fc8e2006-06-01 16:55:59 +000025488int
25489main ()
25490{
Reid Spencer48fdf912006-06-01 19:03:21 +000025491main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025492 ;
25493 return 0;
25494}
25495_ACEOF
25496rm -f conftest.$ac_objext conftest$ac_exeext
25497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25498 (eval $ac_link) 2>conftest.er1
25499 ac_status=$?
25500 grep -v '^ *+' conftest.er1 >conftest.err
25501 rm -f conftest.er1
25502 cat conftest.err >&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } &&
25505 { ac_try='test -z "$ac_c_werror_flag"
25506 || test ! -s conftest.err'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; } &&
25512 { ac_try='test -s conftest$ac_exeext'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025518 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025519else
25520 echo "$as_me: failed program was:" >&5
25521sed 's/^/| /' conftest.$ac_ext >&5
25522
Reid Spencer48fdf912006-06-01 19:03:21 +000025523ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025524fi
25525rm -f conftest.err conftest.$ac_objext \
25526 conftest$ac_exeext conftest.$ac_ext
25527LIBS=$ac_check_lib_save_LIBS
25528fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025529echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25530echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25531if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025532 cat >>confdefs.h <<_ACEOF
25533#define HAVE_LIBIMAGEHLP 1
25534_ACEOF
25535
25536 LIBS="-limagehlp $LIBS"
25537
25538fi
25539
25540
Reid Spencer48fdf912006-06-01 19:03:21 +000025541echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25542echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25543if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545else
25546 ac_check_lib_save_LIBS=$LIBS
25547LIBS="-lpsapi $LIBS"
25548cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h. */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h. */
25554
Reid Spencer48fdf912006-06-01 19:03:21 +000025555
Reid Spencer484fc8e2006-06-01 16:55:59 +000025556int
25557main ()
25558{
Reid Spencer48fdf912006-06-01 19:03:21 +000025559main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025560 ;
25561 return 0;
25562}
25563_ACEOF
25564rm -f conftest.$ac_objext conftest$ac_exeext
25565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25566 (eval $ac_link) 2>conftest.er1
25567 ac_status=$?
25568 grep -v '^ *+' conftest.er1 >conftest.err
25569 rm -f conftest.er1
25570 cat conftest.err >&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } &&
25573 { ac_try='test -z "$ac_c_werror_flag"
25574 || test ! -s conftest.err'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; } &&
25580 { ac_try='test -s conftest$ac_exeext'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025586 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
Reid Spencer48fdf912006-06-01 19:03:21 +000025591ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025592fi
25593rm -f conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
25595LIBS=$ac_check_lib_save_LIBS
25596fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025597echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25598echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25599if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025600 cat >>confdefs.h <<_ACEOF
25601#define HAVE_LIBPSAPI 1
25602_ACEOF
25603
25604 LIBS="-lpsapi $LIBS"
25605
25606fi
25607
25608fi
Reid Spencer22177fe2005-07-12 15:24:20 +000025609
Reid Spencer17795972004-11-18 09:47:37 +000025610echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25611echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25612if test "${ac_cv_search_lt_dlopen+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25614else
25615 ac_func_search_save_LIBS=$LIBS
25616ac_cv_search_lt_dlopen=no
25617cat >conftest.$ac_ext <<_ACEOF
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
25623
25624/* Override any gcc2 internal prototype to avoid an error. */
25625#ifdef __cplusplus
25626extern "C"
25627#endif
25628/* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25630char lt_dlopen ();
25631int
25632main ()
25633{
25634lt_dlopen ();
25635 ;
25636 return 0;
25637}
25638_ACEOF
25639rm -f conftest.$ac_objext conftest$ac_exeext
25640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25641 (eval $ac_link) 2>conftest.er1
25642 ac_status=$?
25643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
25648 { ac_try='test -z "$ac_c_werror_flag"
25649 || test ! -s conftest.err'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest$ac_exeext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_search_lt_dlopen="none required"
25662else
25663 echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
25665
25666fi
25667rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
25669if test "$ac_cv_search_lt_dlopen" = no; then
25670 for ac_lib in ltdl; do
25671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25672 cat >conftest.$ac_ext <<_ACEOF
25673/* confdefs.h. */
25674_ACEOF
25675cat confdefs.h >>conftest.$ac_ext
25676cat >>conftest.$ac_ext <<_ACEOF
25677/* end confdefs.h. */
25678
25679/* Override any gcc2 internal prototype to avoid an error. */
25680#ifdef __cplusplus
25681extern "C"
25682#endif
25683/* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25685char lt_dlopen ();
25686int
25687main ()
25688{
25689lt_dlopen ();
25690 ;
25691 return 0;
25692}
25693_ACEOF
25694rm -f conftest.$ac_objext conftest$ac_exeext
25695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696 (eval $ac_link) 2>conftest.er1
25697 ac_status=$?
25698 grep -v '^ *+' conftest.er1 >conftest.err
25699 rm -f conftest.er1
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_search_lt_dlopen="-l$ac_lib"
25717break
25718else
25719 echo "$as_me: failed program was:" >&5
25720sed 's/^/| /' conftest.$ac_ext >&5
25721
25722fi
25723rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
25725 done
25726fi
25727LIBS=$ac_func_search_save_LIBS
25728fi
25729echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25730echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25731if test "$ac_cv_search_lt_dlopen" != no; then
25732 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25733
25734cat >>confdefs.h <<\_ACEOF
25735#define HAVE_LT_DLOPEN 1
25736_ACEOF
25737
25738else
25739 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25740 not be available" >&5
25741echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25742 not be available" >&2;}
25743fi
25744
25745
John Criswell7a73b802003-06-30 21:59:07 +000025746echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25747echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25748if test "${ac_cv_search_dlopen+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25750else
25751 ac_func_search_save_LIBS=$LIBS
25752ac_cv_search_dlopen=no
25753cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025754/* confdefs.h. */
25755_ACEOF
25756cat confdefs.h >>conftest.$ac_ext
25757cat >>conftest.$ac_ext <<_ACEOF
25758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025759
25760/* Override any gcc2 internal prototype to avoid an error. */
25761#ifdef __cplusplus
25762extern "C"
25763#endif
25764/* We use char because int might match the return type of a gcc2
25765 builtin and then its argument prototype would still apply. */
25766char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025767int
25768main ()
25769{
25770dlopen ();
25771 ;
25772 return 0;
25773}
25774_ACEOF
25775rm -f conftest.$ac_objext conftest$ac_exeext
25776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025777 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025778 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025779 grep -v '^ *+' conftest.er1 >conftest.err
25780 rm -f conftest.er1
25781 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025784 { ac_try='test -z "$ac_c_werror_flag"
25785 || test ! -s conftest.err'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; } &&
25791 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25794 ac_status=$?
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; }; then
25797 ac_cv_search_dlopen="none required"
25798else
25799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025800sed 's/^/| /' conftest.$ac_ext >&5
25801
John Criswell7a73b802003-06-30 21:59:07 +000025802fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025803rm -f conftest.err conftest.$ac_objext \
25804 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025805if test "$ac_cv_search_dlopen" = no; then
25806 for ac_lib in dl; do
25807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25808 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025809/* confdefs.h. */
25810_ACEOF
25811cat confdefs.h >>conftest.$ac_ext
25812cat >>conftest.$ac_ext <<_ACEOF
25813/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025814
25815/* Override any gcc2 internal prototype to avoid an error. */
25816#ifdef __cplusplus
25817extern "C"
25818#endif
25819/* We use char because int might match the return type of a gcc2
25820 builtin and then its argument prototype would still apply. */
25821char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025822int
25823main ()
25824{
25825dlopen ();
25826 ;
25827 return 0;
25828}
25829_ACEOF
25830rm -f conftest.$ac_objext conftest$ac_exeext
25831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025832 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025833 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025834 grep -v '^ *+' conftest.er1 >conftest.err
25835 rm -f conftest.er1
25836 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025839 { ac_try='test -z "$ac_c_werror_flag"
25840 || test ! -s conftest.err'
25841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); }; } &&
25846 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 ac_cv_search_dlopen="-l$ac_lib"
25853break
25854else
25855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025856sed 's/^/| /' conftest.$ac_ext >&5
25857
John Criswell7a73b802003-06-30 21:59:07 +000025858fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025859rm -f conftest.err conftest.$ac_objext \
25860 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025861 done
25862fi
25863LIBS=$ac_func_search_save_LIBS
25864fi
25865echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25866echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25867if test "$ac_cv_search_dlopen" != no; then
25868 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025869
25870cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025871#define HAVE_DLOPEN 1
25872_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025873
25874else
Brian Gaekec45be042003-10-07 06:01:34 +000025875 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25876echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025877fi
25878
25879
25880echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25881echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25882if test "${ac_cv_search_mallinfo+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25884else
25885 ac_func_search_save_LIBS=$LIBS
25886ac_cv_search_mallinfo=no
25887cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025888/* confdefs.h. */
25889_ACEOF
25890cat confdefs.h >>conftest.$ac_ext
25891cat >>conftest.$ac_ext <<_ACEOF
25892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025893
25894/* Override any gcc2 internal prototype to avoid an error. */
25895#ifdef __cplusplus
25896extern "C"
25897#endif
25898/* We use char because int might match the return type of a gcc2
25899 builtin and then its argument prototype would still apply. */
25900char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025901int
25902main ()
25903{
25904mallinfo ();
25905 ;
25906 return 0;
25907}
25908_ACEOF
25909rm -f conftest.$ac_objext conftest$ac_exeext
25910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025911 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025912 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025913 grep -v '^ *+' conftest.er1 >conftest.err
25914 rm -f conftest.er1
25915 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025918 { ac_try='test -z "$ac_c_werror_flag"
25919 || test ! -s conftest.err'
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; } &&
25925 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25928 ac_status=$?
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; }; then
25931 ac_cv_search_mallinfo="none required"
25932else
25933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025934sed 's/^/| /' conftest.$ac_ext >&5
25935
John Criswell7a73b802003-06-30 21:59:07 +000025936fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025937rm -f conftest.err conftest.$ac_objext \
25938 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025939if test "$ac_cv_search_mallinfo" = no; then
25940 for ac_lib in malloc; do
25941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025943/* confdefs.h. */
25944_ACEOF
25945cat confdefs.h >>conftest.$ac_ext
25946cat >>conftest.$ac_ext <<_ACEOF
25947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025948
25949/* Override any gcc2 internal prototype to avoid an error. */
25950#ifdef __cplusplus
25951extern "C"
25952#endif
25953/* We use char because int might match the return type of a gcc2
25954 builtin and then its argument prototype would still apply. */
25955char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025956int
25957main ()
25958{
25959mallinfo ();
25960 ;
25961 return 0;
25962}
25963_ACEOF
25964rm -f conftest.$ac_objext conftest$ac_exeext
25965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025966 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025968 grep -v '^ *+' conftest.er1 >conftest.err
25969 rm -f conftest.er1
25970 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025973 { ac_try='test -z "$ac_c_werror_flag"
25974 || test ! -s conftest.err'
25975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; } &&
25980 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25983 ac_status=$?
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; }; then
25986 ac_cv_search_mallinfo="-l$ac_lib"
25987break
25988else
25989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025990sed 's/^/| /' conftest.$ac_ext >&5
25991
John Criswell7a73b802003-06-30 21:59:07 +000025992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025993rm -f conftest.err conftest.$ac_objext \
25994 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025995 done
25996fi
25997LIBS=$ac_func_search_save_LIBS
25998fi
25999echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26000echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
26001if test "$ac_cv_search_mallinfo" != no; then
26002 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000026003
26004cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026005#define HAVE_MALLINFO 1
26006_ACEOF
26007
26008fi
26009
26010
Reid Spencer0a262ba2005-08-24 10:07:20 +000026011if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000026012
26013echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26014echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
26015if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26017else
26018 ac_check_lib_save_LIBS=$LIBS
26019LIBS="-lpthread $LIBS"
26020cat >conftest.$ac_ext <<_ACEOF
26021/* confdefs.h. */
26022_ACEOF
26023cat confdefs.h >>conftest.$ac_ext
26024cat >>conftest.$ac_ext <<_ACEOF
26025/* end confdefs.h. */
26026
26027/* Override any gcc2 internal prototype to avoid an error. */
26028#ifdef __cplusplus
26029extern "C"
26030#endif
26031/* We use char because int might match the return type of a gcc2
26032 builtin and then its argument prototype would still apply. */
26033char pthread_mutex_init ();
26034int
26035main ()
26036{
26037pthread_mutex_init ();
26038 ;
26039 return 0;
26040}
26041_ACEOF
26042rm -f conftest.$ac_objext conftest$ac_exeext
26043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26044 (eval $ac_link) 2>conftest.er1
26045 ac_status=$?
26046 grep -v '^ *+' conftest.er1 >conftest.err
26047 rm -f conftest.er1
26048 cat conftest.err >&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try='test -z "$ac_c_werror_flag"
26052 || test ! -s conftest.err'
26053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26055 ac_status=$?
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; } &&
26058 { ac_try='test -s conftest$ac_exeext'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; }; then
26064 ac_cv_lib_pthread_pthread_mutex_init=yes
26065else
26066 echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069ac_cv_lib_pthread_pthread_mutex_init=no
26070fi
26071rm -f conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26073LIBS=$ac_check_lib_save_LIBS
26074fi
26075echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26076echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26077if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079#define HAVE_LIBPTHREAD 1
26080_ACEOF
26081
26082 LIBS="-lpthread $LIBS"
26083
26084fi
26085
Reid Spencer0a262ba2005-08-24 10:07:20 +000026086 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026087echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26088if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26090else
26091 ac_func_search_save_LIBS=$LIBS
26092ac_cv_search_pthread_mutex_lock=no
26093cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026094/* confdefs.h. */
26095_ACEOF
26096cat confdefs.h >>conftest.$ac_ext
26097cat >>conftest.$ac_ext <<_ACEOF
26098/* end confdefs.h. */
26099
26100/* Override any gcc2 internal prototype to avoid an error. */
26101#ifdef __cplusplus
26102extern "C"
26103#endif
26104/* We use char because int might match the return type of a gcc2
26105 builtin and then its argument prototype would still apply. */
26106char pthread_mutex_lock ();
26107int
26108main ()
26109{
26110pthread_mutex_lock ();
26111 ;
26112 return 0;
26113}
26114_ACEOF
26115rm -f conftest.$ac_objext conftest$ac_exeext
26116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026117 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026118 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026119 grep -v '^ *+' conftest.er1 >conftest.err
26120 rm -f conftest.er1
26121 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000026132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_search_pthread_mutex_lock="none required"
26138else
26139 echo "$as_me: failed program was:" >&5
26140sed 's/^/| /' conftest.$ac_ext >&5
26141
26142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026143rm -f conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026145if test "$ac_cv_search_pthread_mutex_lock" = no; then
26146 for ac_lib in pthread; do
26147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26148 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000026149/* confdefs.h. */
26150_ACEOF
26151cat confdefs.h >>conftest.$ac_ext
26152cat >>conftest.$ac_ext <<_ACEOF
26153/* end confdefs.h. */
26154
26155/* Override any gcc2 internal prototype to avoid an error. */
26156#ifdef __cplusplus
26157extern "C"
26158#endif
26159/* We use char because int might match the return type of a gcc2
26160 builtin and then its argument prototype would still apply. */
26161char pthread_mutex_lock ();
26162int
26163main ()
26164{
26165pthread_mutex_lock ();
26166 ;
26167 return 0;
26168}
26169_ACEOF
26170rm -f conftest.$ac_objext conftest$ac_exeext
26171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026172 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000026173 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026174 grep -v '^ *+' conftest.er1 >conftest.err
26175 rm -f conftest.er1
26176 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000026177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026179 { ac_try='test -z "$ac_c_werror_flag"
26180 || test ! -s conftest.err'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26183 ac_status=$?
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; } &&
26186 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000026187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26193break
26194else
26195 echo "$as_me: failed program was:" >&5
26196sed 's/^/| /' conftest.$ac_ext >&5
26197
26198fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026199rm -f conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000026201 done
26202fi
26203LIBS=$ac_func_search_save_LIBS
26204fi
26205echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26206echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26207if test "$ac_cv_search_pthread_mutex_lock" != no; then
26208 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000026209
John Criswell40468462004-09-24 21:19:06 +000026210cat >>confdefs.h <<\_ACEOF
26211#define HAVE_PTHREAD_MUTEX_LOCK 1
26212_ACEOF
26213
26214fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000026215
Reid Spencer0a262ba2005-08-24 10:07:20 +000026216fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000026217
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026218
Reid Spencer59473af2004-12-25 07:31:29 +000026219
26220
26221
26222
26223
26224ac_header_dirent=no
26225for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26226 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26227echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26228echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26229if eval "test \"\${$as_ac_Header+set}\" = set"; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26231else
26232 cat >conftest.$ac_ext <<_ACEOF
26233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
26238#include <sys/types.h>
26239#include <$ac_hdr>
26240
26241int
26242main ()
26243{
26244if ((DIR *) 0)
26245return 0;
26246 ;
26247 return 0;
26248}
26249_ACEOF
26250rm -f conftest.$ac_objext
26251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26252 (eval $ac_compile) 2>conftest.er1
26253 ac_status=$?
26254 grep -v '^ *+' conftest.er1 >conftest.err
26255 rm -f conftest.er1
26256 cat conftest.err >&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); } &&
26259 { ac_try='test -z "$ac_c_werror_flag"
26260 || test ! -s conftest.err'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; } &&
26266 { ac_try='test -s conftest.$ac_objext'
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
26272 eval "$as_ac_Header=yes"
26273else
26274 echo "$as_me: failed program was:" >&5
26275sed 's/^/| /' conftest.$ac_ext >&5
26276
26277eval "$as_ac_Header=no"
26278fi
26279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26280fi
26281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26283if test `eval echo '${'$as_ac_Header'}'` = yes; then
26284 cat >>confdefs.h <<_ACEOF
26285#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26286_ACEOF
26287
26288ac_header_dirent=$ac_hdr; break
26289fi
26290
26291done
26292# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26293if test $ac_header_dirent = dirent.h; then
26294 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26295echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26296if test "${ac_cv_search_opendir+set}" = set; then
26297 echo $ECHO_N "(cached) $ECHO_C" >&6
26298else
26299 ac_func_search_save_LIBS=$LIBS
26300ac_cv_search_opendir=no
26301cat >conftest.$ac_ext <<_ACEOF
26302/* confdefs.h. */
26303_ACEOF
26304cat confdefs.h >>conftest.$ac_ext
26305cat >>conftest.$ac_ext <<_ACEOF
26306/* end confdefs.h. */
26307
26308/* Override any gcc2 internal prototype to avoid an error. */
26309#ifdef __cplusplus
26310extern "C"
26311#endif
26312/* We use char because int might match the return type of a gcc2
26313 builtin and then its argument prototype would still apply. */
26314char opendir ();
26315int
26316main ()
26317{
26318opendir ();
26319 ;
26320 return 0;
26321}
26322_ACEOF
26323rm -f conftest.$ac_objext conftest$ac_exeext
26324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26325 (eval $ac_link) 2>conftest.er1
26326 ac_status=$?
26327 grep -v '^ *+' conftest.er1 >conftest.err
26328 rm -f conftest.er1
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } &&
26332 { ac_try='test -z "$ac_c_werror_flag"
26333 || test ! -s conftest.err'
26334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); }; } &&
26339 { ac_try='test -s conftest$ac_exeext'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; }; then
26345 ac_cv_search_opendir="none required"
26346else
26347 echo "$as_me: failed program was:" >&5
26348sed 's/^/| /' conftest.$ac_ext >&5
26349
26350fi
26351rm -f conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
26353if test "$ac_cv_search_opendir" = no; then
26354 for ac_lib in dir; do
26355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26356 cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h. */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h. */
26362
26363/* Override any gcc2 internal prototype to avoid an error. */
26364#ifdef __cplusplus
26365extern "C"
26366#endif
26367/* We use char because int might match the return type of a gcc2
26368 builtin and then its argument prototype would still apply. */
26369char opendir ();
26370int
26371main ()
26372{
26373opendir ();
26374 ;
26375 return 0;
26376}
26377_ACEOF
26378rm -f conftest.$ac_objext conftest$ac_exeext
26379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26380 (eval $ac_link) 2>conftest.er1
26381 ac_status=$?
26382 grep -v '^ *+' conftest.er1 >conftest.err
26383 rm -f conftest.er1
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
26387 { ac_try='test -z "$ac_c_werror_flag"
26388 || test ! -s conftest.err'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest$ac_exeext'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26397 ac_status=$?
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; }; then
26400 ac_cv_search_opendir="-l$ac_lib"
26401break
26402else
26403 echo "$as_me: failed program was:" >&5
26404sed 's/^/| /' conftest.$ac_ext >&5
26405
26406fi
26407rm -f conftest.err conftest.$ac_objext \
26408 conftest$ac_exeext conftest.$ac_ext
26409 done
26410fi
26411LIBS=$ac_func_search_save_LIBS
26412fi
26413echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26414echo "${ECHO_T}$ac_cv_search_opendir" >&6
26415if test "$ac_cv_search_opendir" != no; then
26416 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26417
26418fi
26419
26420else
26421 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26422echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26423if test "${ac_cv_search_opendir+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26425else
26426 ac_func_search_save_LIBS=$LIBS
26427ac_cv_search_opendir=no
26428cat >conftest.$ac_ext <<_ACEOF
26429/* confdefs.h. */
26430_ACEOF
26431cat confdefs.h >>conftest.$ac_ext
26432cat >>conftest.$ac_ext <<_ACEOF
26433/* end confdefs.h. */
26434
26435/* Override any gcc2 internal prototype to avoid an error. */
26436#ifdef __cplusplus
26437extern "C"
26438#endif
26439/* We use char because int might match the return type of a gcc2
26440 builtin and then its argument prototype would still apply. */
26441char opendir ();
26442int
26443main ()
26444{
26445opendir ();
26446 ;
26447 return 0;
26448}
26449_ACEOF
26450rm -f conftest.$ac_objext conftest$ac_exeext
26451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26452 (eval $ac_link) 2>conftest.er1
26453 ac_status=$?
26454 grep -v '^ *+' conftest.er1 >conftest.err
26455 rm -f conftest.er1
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try='test -z "$ac_c_werror_flag"
26460 || test ! -s conftest.err'
26461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462 (eval $ac_try) 2>&5
26463 ac_status=$?
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); }; } &&
26466 { ac_try='test -s conftest$ac_exeext'
26467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468 (eval $ac_try) 2>&5
26469 ac_status=$?
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; }; then
26472 ac_cv_search_opendir="none required"
26473else
26474 echo "$as_me: failed program was:" >&5
26475sed 's/^/| /' conftest.$ac_ext >&5
26476
26477fi
26478rm -f conftest.err conftest.$ac_objext \
26479 conftest$ac_exeext conftest.$ac_ext
26480if test "$ac_cv_search_opendir" = no; then
26481 for ac_lib in x; do
26482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26483 cat >conftest.$ac_ext <<_ACEOF
26484/* confdefs.h. */
26485_ACEOF
26486cat confdefs.h >>conftest.$ac_ext
26487cat >>conftest.$ac_ext <<_ACEOF
26488/* end confdefs.h. */
26489
26490/* Override any gcc2 internal prototype to avoid an error. */
26491#ifdef __cplusplus
26492extern "C"
26493#endif
26494/* We use char because int might match the return type of a gcc2
26495 builtin and then its argument prototype would still apply. */
26496char opendir ();
26497int
26498main ()
26499{
26500opendir ();
26501 ;
26502 return 0;
26503}
26504_ACEOF
26505rm -f conftest.$ac_objext conftest$ac_exeext
26506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26507 (eval $ac_link) 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } &&
26514 { ac_try='test -z "$ac_c_werror_flag"
26515 || test ! -s conftest.err'
26516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26517 (eval $ac_try) 2>&5
26518 ac_status=$?
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); }; } &&
26521 { ac_try='test -s conftest$ac_exeext'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527 ac_cv_search_opendir="-l$ac_lib"
26528break
26529else
26530 echo "$as_me: failed program was:" >&5
26531sed 's/^/| /' conftest.$ac_ext >&5
26532
26533fi
26534rm -f conftest.err conftest.$ac_objext \
26535 conftest$ac_exeext conftest.$ac_ext
26536 done
26537fi
26538LIBS=$ac_func_search_save_LIBS
26539fi
26540echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26541echo "${ECHO_T}$ac_cv_search_opendir" >&6
26542if test "$ac_cv_search_opendir" != no; then
26543 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26544
26545fi
26546
26547fi
26548
26549echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26550echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26551if test "${ac_cv_header_mmap_anon+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26553else
26554 ac_ext=c
26555ac_cpp='$CPP $CPPFLAGS'
26556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26558ac_compiler_gnu=$ac_cv_c_compiler_gnu
26559
26560 cat >conftest.$ac_ext <<_ACEOF
26561/* confdefs.h. */
26562_ACEOF
26563cat confdefs.h >>conftest.$ac_ext
26564cat >>conftest.$ac_ext <<_ACEOF
26565/* end confdefs.h. */
26566#include <sys/mman.h>
26567#include <unistd.h>
26568#include <fcntl.h>
26569int
26570main ()
26571{
26572mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26573 ;
26574 return 0;
26575}
26576_ACEOF
26577rm -f conftest.$ac_objext
26578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26579 (eval $ac_compile) 2>conftest.er1
26580 ac_status=$?
26581 grep -v '^ *+' conftest.er1 >conftest.err
26582 rm -f conftest.er1
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } &&
26586 { ac_try='test -z "$ac_c_werror_flag"
26587 || test ! -s conftest.err'
26588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); }; } &&
26593 { ac_try='test -s conftest.$ac_objext'
26594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); }; }; then
26599 ac_cv_header_mmap_anon=yes
26600else
26601 echo "$as_me: failed program was:" >&5
26602sed 's/^/| /' conftest.$ac_ext >&5
26603
26604ac_cv_header_mmap_anon=no
26605fi
26606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26607 ac_ext=c
26608ac_cpp='$CPP $CPPFLAGS'
26609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26611ac_compiler_gnu=$ac_cv_c_compiler_gnu
26612
26613
26614fi
26615echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26616echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26617if test "$ac_cv_header_mmap_anon" = yes; then
26618
26619cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026620#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026621_ACEOF
26622
26623fi
26624
26625echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26626echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26627if test "${ac_cv_header_stat_broken+set}" = set; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26629else
26630 cat >conftest.$ac_ext <<_ACEOF
26631/* confdefs.h. */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h. */
26636#include <sys/types.h>
26637#include <sys/stat.h>
26638
26639#if defined(S_ISBLK) && defined(S_IFDIR)
26640# if S_ISBLK (S_IFDIR)
26641You lose.
26642# endif
26643#endif
26644
26645#if defined(S_ISBLK) && defined(S_IFCHR)
26646# if S_ISBLK (S_IFCHR)
26647You lose.
26648# endif
26649#endif
26650
26651#if defined(S_ISLNK) && defined(S_IFREG)
26652# if S_ISLNK (S_IFREG)
26653You lose.
26654# endif
26655#endif
26656
26657#if defined(S_ISSOCK) && defined(S_IFREG)
26658# if S_ISSOCK (S_IFREG)
26659You lose.
26660# endif
26661#endif
26662
26663_ACEOF
26664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26665 $EGREP "You lose" >/dev/null 2>&1; then
26666 ac_cv_header_stat_broken=yes
26667else
26668 ac_cv_header_stat_broken=no
26669fi
26670rm -f conftest*
26671
26672fi
26673echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26674echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26675if test $ac_cv_header_stat_broken = yes; then
26676
26677cat >>confdefs.h <<\_ACEOF
26678#define STAT_MACROS_BROKEN 1
26679_ACEOF
26680
26681fi
26682
John Criswell7a73b802003-06-30 21:59:07 +000026683echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26684echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26685if test "${ac_cv_header_stdc+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26687else
26688 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026689/* confdefs.h. */
26690_ACEOF
26691cat confdefs.h >>conftest.$ac_ext
26692cat >>conftest.$ac_ext <<_ACEOF
26693/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026694#include <stdlib.h>
26695#include <stdarg.h>
26696#include <string.h>
26697#include <float.h>
26698
John Criswell0c38eaf2003-09-10 15:17:25 +000026699int
26700main ()
26701{
26702
26703 ;
26704 return 0;
26705}
John Criswell7a73b802003-06-30 21:59:07 +000026706_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026707rm -f conftest.$ac_objext
26708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026709 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026711 grep -v '^ *+' conftest.er1 >conftest.err
26712 rm -f conftest.er1
26713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026715 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026716 { ac_try='test -z "$ac_c_werror_flag"
26717 || test ! -s conftest.err'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26726 ac_status=$?
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026729 ac_cv_header_stdc=yes
26730else
26731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026732sed 's/^/| /' conftest.$ac_ext >&5
26733
26734ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026735fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026737
26738if test $ac_cv_header_stdc = yes; then
26739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26740 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026741/* confdefs.h. */
26742_ACEOF
26743cat confdefs.h >>conftest.$ac_ext
26744cat >>conftest.$ac_ext <<_ACEOF
26745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026746#include <string.h>
26747
26748_ACEOF
26749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026750 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026751 :
26752else
26753 ac_cv_header_stdc=no
26754fi
26755rm -f conftest*
26756
26757fi
26758
26759if test $ac_cv_header_stdc = yes; then
26760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026762/* confdefs.h. */
26763_ACEOF
26764cat confdefs.h >>conftest.$ac_ext
26765cat >>conftest.$ac_ext <<_ACEOF
26766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026767#include <stdlib.h>
26768
26769_ACEOF
26770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026771 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026772 :
26773else
26774 ac_cv_header_stdc=no
26775fi
26776rm -f conftest*
26777
26778fi
26779
26780if test $ac_cv_header_stdc = yes; then
26781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26782 if test "$cross_compiling" = yes; then
26783 :
26784else
26785 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026786/* confdefs.h. */
26787_ACEOF
26788cat confdefs.h >>conftest.$ac_ext
26789cat >>conftest.$ac_ext <<_ACEOF
26790/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026791#include <ctype.h>
26792#if ((' ' & 0x0FF) == 0x020)
26793# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26794# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26795#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026796# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026797 (('a' <= (c) && (c) <= 'i') \
26798 || ('j' <= (c) && (c) <= 'r') \
26799 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026800# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26801#endif
26802
26803#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26804int
26805main ()
26806{
26807 int i;
26808 for (i = 0; i < 256; i++)
26809 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026810 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026811 exit(2);
26812 exit (0);
26813}
26814_ACEOF
26815rm -f conftest$ac_exeext
26816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817 (eval $ac_link) 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 :
26827else
26828 echo "$as_me: program exited with status $ac_status" >&5
26829echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026830sed 's/^/| /' conftest.$ac_ext >&5
26831
John Criswell7a73b802003-06-30 21:59:07 +000026832( exit $ac_status )
26833ac_cv_header_stdc=no
26834fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026836fi
26837fi
26838fi
26839echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26840echo "${ECHO_T}$ac_cv_header_stdc" >&6
26841if test $ac_cv_header_stdc = yes; then
26842
26843cat >>confdefs.h <<\_ACEOF
26844#define STDC_HEADERS 1
26845_ACEOF
26846
26847fi
26848
26849echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26850echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26851if test "${ac_cv_header_sys_wait_h+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853else
26854 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026855/* confdefs.h. */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026860#include <sys/types.h>
26861#include <sys/wait.h>
26862#ifndef WEXITSTATUS
26863# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26864#endif
26865#ifndef WIFEXITED
26866# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26867#endif
26868
John Criswell7a73b802003-06-30 21:59:07 +000026869int
26870main ()
26871{
26872 int s;
26873 wait (&s);
26874 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26875 ;
26876 return 0;
26877}
26878_ACEOF
26879rm -f conftest.$ac_objext
26880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026881 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026882 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026883 grep -v '^ *+' conftest.er1 >conftest.err
26884 rm -f conftest.er1
26885 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026888 { ac_try='test -z "$ac_c_werror_flag"
26889 || test ! -s conftest.err'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
26895 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
26901 ac_cv_header_sys_wait_h=yes
26902else
26903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026904sed 's/^/| /' conftest.$ac_ext >&5
26905
John Criswell7a73b802003-06-30 21:59:07 +000026906ac_cv_header_sys_wait_h=no
26907fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026909fi
26910echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26911echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26912if test $ac_cv_header_sys_wait_h = yes; then
26913
26914cat >>confdefs.h <<\_ACEOF
26915#define HAVE_SYS_WAIT_H 1
26916_ACEOF
26917
26918fi
26919
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026920echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26921echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26922if test "${ac_cv_header_time+set}" = set; then
26923 echo $ECHO_N "(cached) $ECHO_C" >&6
26924else
26925 cat >conftest.$ac_ext <<_ACEOF
26926/* confdefs.h. */
26927_ACEOF
26928cat confdefs.h >>conftest.$ac_ext
26929cat >>conftest.$ac_ext <<_ACEOF
26930/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026931#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026932#include <sys/time.h>
26933#include <time.h>
26934
26935int
26936main ()
26937{
26938if ((struct tm *) 0)
26939return 0;
26940 ;
26941 return 0;
26942}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026943_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026944rm -f conftest.$ac_objext
26945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026947 ac_status=$?
26948 grep -v '^ *+' conftest.er1 >conftest.err
26949 rm -f conftest.er1
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026952 (exit $ac_status); } &&
26953 { ac_try='test -z "$ac_c_werror_flag"
26954 || test ! -s conftest.err'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; } &&
26960 { ac_try='test -s conftest.$ac_objext'
26961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962 (eval $ac_try) 2>&5
26963 ac_status=$?
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026967else
26968 echo "$as_me: failed program was:" >&5
26969sed 's/^/| /' conftest.$ac_ext >&5
26970
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026971ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026972fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26974fi
26975echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26976echo "${ECHO_T}$ac_cv_header_time" >&6
26977if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026978
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026979cat >>confdefs.h <<\_ACEOF
26980#define TIME_WITH_SYS_TIME 1
26981_ACEOF
26982
26983fi
26984
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026985
Reid Spencer59473af2004-12-25 07:31:29 +000026986
26987
26988
26989
26990
26991
26992for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26993do
26994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26995if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo "$as_me:$LINENO: checking for $ac_header" >&5
26997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26998if eval "test \"\${$as_ac_Header+set}\" = set"; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27000fi
27001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27003else
27004 # Is the header compilable?
27005echo "$as_me:$LINENO: checking $ac_header usability" >&5
27006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27007cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027008/* confdefs.h. */
27009_ACEOF
27010cat confdefs.h >>conftest.$ac_ext
27011cat >>conftest.$ac_ext <<_ACEOF
27012/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000027013$ac_includes_default
27014#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027015_ACEOF
27016rm -f conftest.$ac_objext
27017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27018 (eval $ac_compile) 2>conftest.er1
27019 ac_status=$?
27020 grep -v '^ *+' conftest.er1 >conftest.err
27021 rm -f conftest.er1
27022 cat conftest.err >&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } &&
27025 { ac_try='test -z "$ac_c_werror_flag"
27026 || test ! -s conftest.err'
27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest.$ac_objext'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027038 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027039else
27040 echo "$as_me: failed program was:" >&5
27041sed 's/^/| /' conftest.$ac_ext >&5
27042
Reid Spencer59473af2004-12-25 07:31:29 +000027043ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027044fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27047echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027048
Reid Spencer59473af2004-12-25 07:31:29 +000027049# Is the header present?
27050echo "$as_me:$LINENO: checking $ac_header presence" >&5
27051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27052cat >conftest.$ac_ext <<_ACEOF
27053/* confdefs.h. */
27054_ACEOF
27055cat confdefs.h >>conftest.$ac_ext
27056cat >>conftest.$ac_ext <<_ACEOF
27057/* end confdefs.h. */
27058#include <$ac_header>
27059_ACEOF
27060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27062 ac_status=$?
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } >/dev/null; then
27068 if test -s conftest.err; then
27069 ac_cpp_err=$ac_c_preproc_warn_flag
27070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27071 else
27072 ac_cpp_err=
27073 fi
27074else
27075 ac_cpp_err=yes
27076fi
27077if test -z "$ac_cpp_err"; then
27078 ac_header_preproc=yes
27079else
27080 echo "$as_me: failed program was:" >&5
27081sed 's/^/| /' conftest.$ac_ext >&5
27082
27083 ac_header_preproc=no
27084fi
27085rm -f conftest.err conftest.$ac_ext
27086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27087echo "${ECHO_T}$ac_header_preproc" >&6
27088
27089# So? What about this header?
27090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27091 yes:no: )
27092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27096 ac_header_preproc=yes
27097 ;;
27098 no:yes:* )
27099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27111 (
27112 cat <<\_ASBOX
27113## ----------------------------------- ##
27114## Report this to llvmbugs@cs.uiuc.edu ##
27115## ----------------------------------- ##
27116_ASBOX
27117 ) |
27118 sed "s/^/$as_me: WARNING: /" >&2
27119 ;;
27120esac
27121echo "$as_me:$LINENO: checking for $ac_header" >&5
27122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27123if eval "test \"\${$as_ac_Header+set}\" = set"; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27125else
27126 eval "$as_ac_Header=\$ac_header_preproc"
27127fi
27128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027130
27131fi
Reid Spencer59473af2004-12-25 07:31:29 +000027132if test `eval echo '${'$as_ac_Header'}'` = yes; then
27133 cat >>confdefs.h <<_ACEOF
27134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027135_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027136
27137fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027138
Reid Spencer59473af2004-12-25 07:31:29 +000027139done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027140
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027141
27142
Reid Spencer59473af2004-12-25 07:31:29 +000027143
27144
27145
27146
Reid Spencercdb08a32006-06-05 16:11:07 +000027147for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000027148do
27149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27150if eval "test \"\${$as_ac_Header+set}\" = set"; then
27151 echo "$as_me:$LINENO: checking for $ac_header" >&5
27152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27153if eval "test \"\${$as_ac_Header+set}\" = set"; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27155fi
27156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27158else
27159 # Is the header compilable?
27160echo "$as_me:$LINENO: checking $ac_header usability" >&5
27161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27162cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h. */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h. */
27168$ac_includes_default
27169#include <$ac_header>
27170_ACEOF
27171rm -f conftest.$ac_objext
27172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27173 (eval $ac_compile) 2>conftest.er1
27174 ac_status=$?
27175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 ac_header_compiler=yes
27194else
27195 echo "$as_me: failed program was:" >&5
27196sed 's/^/| /' conftest.$ac_ext >&5
27197
27198ac_header_compiler=no
27199fi
27200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27202echo "${ECHO_T}$ac_header_compiler" >&6
27203
27204# Is the header present?
27205echo "$as_me:$LINENO: checking $ac_header presence" >&5
27206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27207cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h. */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h. */
27213#include <$ac_header>
27214_ACEOF
27215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27217 ac_status=$?
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } >/dev/null; then
27223 if test -s conftest.err; then
27224 ac_cpp_err=$ac_c_preproc_warn_flag
27225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27226 else
27227 ac_cpp_err=
27228 fi
27229else
27230 ac_cpp_err=yes
27231fi
27232if test -z "$ac_cpp_err"; then
27233 ac_header_preproc=yes
27234else
27235 echo "$as_me: failed program was:" >&5
27236sed 's/^/| /' conftest.$ac_ext >&5
27237
27238 ac_header_preproc=no
27239fi
27240rm -f conftest.err conftest.$ac_ext
27241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27242echo "${ECHO_T}$ac_header_preproc" >&6
27243
27244# So? What about this header?
27245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27246 yes:no: )
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27251 ac_header_preproc=yes
27252 ;;
27253 no:yes:* )
27254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27266 (
27267 cat <<\_ASBOX
27268## ----------------------------------- ##
27269## Report this to llvmbugs@cs.uiuc.edu ##
27270## ----------------------------------- ##
27271_ASBOX
27272 ) |
27273 sed "s/^/$as_me: WARNING: /" >&2
27274 ;;
27275esac
27276echo "$as_me:$LINENO: checking for $ac_header" >&5
27277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27278if eval "test \"\${$as_ac_Header+set}\" = set"; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280else
27281 eval "$as_ac_Header=\$ac_header_preproc"
27282fi
27283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27285
27286fi
27287if test `eval echo '${'$as_ac_Header'}'` = yes; then
27288 cat >>confdefs.h <<_ACEOF
27289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27290_ACEOF
27291
27292fi
27293
27294done
27295
27296
27297
27298
27299
27300
Reid Spencercdb08a32006-06-05 16:11:07 +000027301for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027302do
27303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27304if eval "test \"\${$as_ac_Header+set}\" = set"; then
27305 echo "$as_me:$LINENO: checking for $ac_header" >&5
27306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27307if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027308 echo $ECHO_N "(cached) $ECHO_C" >&6
27309fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027312else
27313 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027314echo "$as_me:$LINENO: checking $ac_header usability" >&5
27315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027316cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027317/* confdefs.h. */
27318_ACEOF
27319cat confdefs.h >>conftest.$ac_ext
27320cat >>conftest.$ac_ext <<_ACEOF
27321/* end confdefs.h. */
27322$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027323#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027324_ACEOF
27325rm -f conftest.$ac_objext
27326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027327 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027328 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027329 grep -v '^ *+' conftest.er1 >conftest.err
27330 rm -f conftest.er1
27331 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027334 { ac_try='test -z "$ac_c_werror_flag"
27335 || test ! -s conftest.err'
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; } &&
27341 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; }; then
27347 ac_header_compiler=yes
27348else
27349 echo "$as_me: failed program was:" >&5
27350sed 's/^/| /' conftest.$ac_ext >&5
27351
27352ac_header_compiler=no
27353fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27356echo "${ECHO_T}$ac_header_compiler" >&6
27357
27358# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027359echo "$as_me:$LINENO: checking $ac_header presence" >&5
27360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027361cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027362/* confdefs.h. */
27363_ACEOF
27364cat confdefs.h >>conftest.$ac_ext
27365cat >>conftest.$ac_ext <<_ACEOF
27366/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027367#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027368_ACEOF
27369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27371 ac_status=$?
27372 grep -v '^ *+' conftest.er1 >conftest.err
27373 rm -f conftest.er1
27374 cat conftest.err >&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } >/dev/null; then
27377 if test -s conftest.err; then
27378 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000027379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027380 else
27381 ac_cpp_err=
27382 fi
27383else
27384 ac_cpp_err=yes
27385fi
27386if test -z "$ac_cpp_err"; then
27387 ac_header_preproc=yes
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 ac_header_preproc=no
27393fi
27394rm -f conftest.err conftest.$ac_ext
27395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27396echo "${ECHO_T}$ac_header_preproc" >&6
27397
27398# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27400 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027405 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027406 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027407 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000027420 (
27421 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027422## ----------------------------------- ##
27423## Report this to llvmbugs@cs.uiuc.edu ##
27424## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027425_ASBOX
27426 ) |
27427 sed "s/^/$as_me: WARNING: /" >&2
27428 ;;
27429esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027430echo "$as_me:$LINENO: checking for $ac_header" >&5
27431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27432if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027435 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027436fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027439
27440fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027441if test `eval echo '${'$as_ac_Header'}'` = yes; then
27442 cat >>confdefs.h <<_ACEOF
27443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027444_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027445
27446fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027447
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027448done
27449
John Criswell7ed43ad2004-07-19 16:12:29 +000027450
Reid Spencercdb08a32006-06-05 16:11:07 +000027451
27452for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000027453do
27454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27455if eval "test \"\${$as_ac_Header+set}\" = set"; then
27456 echo "$as_me:$LINENO: checking for $ac_header" >&5
27457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27458if eval "test \"\${$as_ac_Header+set}\" = set"; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27460fi
27461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27463else
27464 # Is the header compilable?
27465echo "$as_me:$LINENO: checking $ac_header usability" >&5
27466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27467cat >conftest.$ac_ext <<_ACEOF
27468/* confdefs.h. */
27469_ACEOF
27470cat confdefs.h >>conftest.$ac_ext
27471cat >>conftest.$ac_ext <<_ACEOF
27472/* end confdefs.h. */
27473$ac_includes_default
27474#include <$ac_header>
27475_ACEOF
27476rm -f conftest.$ac_objext
27477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27478 (eval $ac_compile) 2>conftest.er1
27479 ac_status=$?
27480 grep -v '^ *+' conftest.er1 >conftest.err
27481 rm -f conftest.er1
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag"
27486 || test ! -s conftest.err'
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; } &&
27492 { ac_try='test -s conftest.$ac_objext'
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
27498 ac_header_compiler=yes
27499else
27500 echo "$as_me: failed program was:" >&5
27501sed 's/^/| /' conftest.$ac_ext >&5
27502
27503ac_header_compiler=no
27504fi
27505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27507echo "${ECHO_T}$ac_header_compiler" >&6
27508
27509# Is the header present?
27510echo "$as_me:$LINENO: checking $ac_header presence" >&5
27511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27512cat >conftest.$ac_ext <<_ACEOF
27513/* confdefs.h. */
27514_ACEOF
27515cat confdefs.h >>conftest.$ac_ext
27516cat >>conftest.$ac_ext <<_ACEOF
27517/* end confdefs.h. */
27518#include <$ac_header>
27519_ACEOF
27520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27522 ac_status=$?
27523 grep -v '^ *+' conftest.er1 >conftest.err
27524 rm -f conftest.er1
27525 cat conftest.err >&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); } >/dev/null; then
27528 if test -s conftest.err; then
27529 ac_cpp_err=$ac_c_preproc_warn_flag
27530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27531 else
27532 ac_cpp_err=
27533 fi
27534else
27535 ac_cpp_err=yes
27536fi
27537if test -z "$ac_cpp_err"; then
27538 ac_header_preproc=yes
27539else
27540 echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
27543 ac_header_preproc=no
27544fi
27545rm -f conftest.err conftest.$ac_ext
27546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27547echo "${ECHO_T}$ac_header_preproc" >&6
27548
27549# So? What about this header?
27550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27551 yes:no: )
27552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27556 ac_header_preproc=yes
27557 ;;
27558 no:yes:* )
27559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27571 (
27572 cat <<\_ASBOX
27573## ----------------------------------- ##
27574## Report this to llvmbugs@cs.uiuc.edu ##
27575## ----------------------------------- ##
27576_ASBOX
27577 ) |
27578 sed "s/^/$as_me: WARNING: /" >&2
27579 ;;
27580esac
27581echo "$as_me:$LINENO: checking for $ac_header" >&5
27582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27583if eval "test \"\${$as_ac_Header+set}\" = set"; then
27584 echo $ECHO_N "(cached) $ECHO_C" >&6
27585else
27586 eval "$as_ac_Header=\$ac_header_preproc"
27587fi
27588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27590
27591fi
27592if test `eval echo '${'$as_ac_Header'}'` = yes; then
27593 cat >>confdefs.h <<_ACEOF
27594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27595_ACEOF
27596
27597fi
27598
27599done
27600
Reid Spencer0a262ba2005-08-24 10:07:20 +000027601if test "$ENABLE_THREADS" -eq 1 ; then
27602
27603for ac_header in pthread.h
27604do
27605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27606if eval "test \"\${$as_ac_Header+set}\" = set"; then
27607 echo "$as_me:$LINENO: checking for $ac_header" >&5
27608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27609if eval "test \"\${$as_ac_Header+set}\" = set"; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27611fi
27612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27614else
27615 # Is the header compilable?
27616echo "$as_me:$LINENO: checking $ac_header usability" >&5
27617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27618cat >conftest.$ac_ext <<_ACEOF
27619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
27624$ac_includes_default
27625#include <$ac_header>
27626_ACEOF
27627rm -f conftest.$ac_objext
27628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27629 (eval $ac_compile) 2>conftest.er1
27630 ac_status=$?
27631 grep -v '^ *+' conftest.er1 >conftest.err
27632 rm -f conftest.er1
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag"
27637 || test ! -s conftest.err'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest.$ac_objext'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 ac_header_compiler=yes
27650else
27651 echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654ac_header_compiler=no
27655fi
27656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27658echo "${ECHO_T}$ac_header_compiler" >&6
27659
27660# Is the header present?
27661echo "$as_me:$LINENO: checking $ac_header presence" >&5
27662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27663cat >conftest.$ac_ext <<_ACEOF
27664/* confdefs.h. */
27665_ACEOF
27666cat confdefs.h >>conftest.$ac_ext
27667cat >>conftest.$ac_ext <<_ACEOF
27668/* end confdefs.h. */
27669#include <$ac_header>
27670_ACEOF
27671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27673 ac_status=$?
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } >/dev/null; then
27679 if test -s conftest.err; then
27680 ac_cpp_err=$ac_c_preproc_warn_flag
27681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27682 else
27683 ac_cpp_err=
27684 fi
27685else
27686 ac_cpp_err=yes
27687fi
27688if test -z "$ac_cpp_err"; then
27689 ac_header_preproc=yes
27690else
27691 echo "$as_me: failed program was:" >&5
27692sed 's/^/| /' conftest.$ac_ext >&5
27693
27694 ac_header_preproc=no
27695fi
27696rm -f conftest.err conftest.$ac_ext
27697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27698echo "${ECHO_T}$ac_header_preproc" >&6
27699
27700# So? What about this header?
27701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27702 yes:no: )
27703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27707 ac_header_preproc=yes
27708 ;;
27709 no:yes:* )
27710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27722 (
27723 cat <<\_ASBOX
27724## ----------------------------------- ##
27725## Report this to llvmbugs@cs.uiuc.edu ##
27726## ----------------------------------- ##
27727_ASBOX
27728 ) |
27729 sed "s/^/$as_me: WARNING: /" >&2
27730 ;;
27731esac
27732echo "$as_me:$LINENO: checking for $ac_header" >&5
27733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27734if eval "test \"\${$as_ac_Header+set}\" = set"; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27736else
27737 eval "$as_ac_Header=\$ac_header_preproc"
27738fi
27739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27741
27742fi
27743if test `eval echo '${'$as_ac_Header'}'` = yes; then
27744 cat >>confdefs.h <<_ACEOF
27745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27746_ACEOF
27747
27748fi
27749
27750done
27751
27752fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027753
27754
John Criswell7a73b802003-06-30 21:59:07 +000027755echo "$as_me:$LINENO: checking for pid_t" >&5
27756echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27757if test "${ac_cv_type_pid_t+set}" = set; then
27758 echo $ECHO_N "(cached) $ECHO_C" >&6
27759else
27760 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027761/* confdefs.h. */
27762_ACEOF
27763cat confdefs.h >>conftest.$ac_ext
27764cat >>conftest.$ac_ext <<_ACEOF
27765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027766$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027767int
27768main ()
27769{
27770if ((pid_t *) 0)
27771 return 0;
27772if (sizeof (pid_t))
27773 return 0;
27774 ;
27775 return 0;
27776}
27777_ACEOF
27778rm -f conftest.$ac_objext
27779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027780 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027782 grep -v '^ *+' conftest.er1 >conftest.err
27783 rm -f conftest.er1
27784 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027787 { ac_try='test -z "$ac_c_werror_flag"
27788 || test ! -s conftest.err'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; } &&
27794 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 ac_cv_type_pid_t=yes
27801else
27802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027803sed 's/^/| /' conftest.$ac_ext >&5
27804
John Criswell7a73b802003-06-30 21:59:07 +000027805ac_cv_type_pid_t=no
27806fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027808fi
27809echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27810echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27811if test $ac_cv_type_pid_t = yes; then
27812 :
27813else
27814
27815cat >>confdefs.h <<_ACEOF
27816#define pid_t int
27817_ACEOF
27818
27819fi
27820
27821echo "$as_me:$LINENO: checking for size_t" >&5
27822echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27823if test "${ac_cv_type_size_t+set}" = set; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
27825else
27826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027832$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027833int
27834main ()
27835{
27836if ((size_t *) 0)
27837 return 0;
27838if (sizeof (size_t))
27839 return 0;
27840 ;
27841 return 0;
27842}
27843_ACEOF
27844rm -f conftest.$ac_objext
27845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027846 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027848 grep -v '^ *+' conftest.er1 >conftest.err
27849 rm -f conftest.er1
27850 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027853 { ac_try='test -z "$ac_c_werror_flag"
27854 || test ! -s conftest.err'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; } &&
27860 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27863 ac_status=$?
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
27866 ac_cv_type_size_t=yes
27867else
27868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027869sed 's/^/| /' conftest.$ac_ext >&5
27870
John Criswell7a73b802003-06-30 21:59:07 +000027871ac_cv_type_size_t=no
27872fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027874fi
27875echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27876echo "${ECHO_T}$ac_cv_type_size_t" >&6
27877if test $ac_cv_type_size_t = yes; then
27878 :
27879else
27880
27881cat >>confdefs.h <<_ACEOF
27882#define size_t unsigned
27883_ACEOF
27884
27885fi
27886
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027887echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27888echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27889if test "${ac_cv_type_signal+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27891else
27892 cat >conftest.$ac_ext <<_ACEOF
27893/* confdefs.h. */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h. */
27898#include <sys/types.h>
27899#include <signal.h>
27900#ifdef signal
27901# undef signal
27902#endif
27903#ifdef __cplusplus
27904extern "C" void (*signal (int, void (*)(int)))(int);
27905#else
27906void (*signal ()) ();
27907#endif
27908
27909int
27910main ()
27911{
27912int i;
27913 ;
27914 return 0;
27915}
27916_ACEOF
27917rm -f conftest.$ac_objext
27918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27919 (eval $ac_compile) 2>conftest.er1
27920 ac_status=$?
27921 grep -v '^ *+' conftest.er1 >conftest.err
27922 rm -f conftest.er1
27923 cat conftest.err >&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
27926 { ac_try='test -z "$ac_c_werror_flag"
27927 || test ! -s conftest.err'
27928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929 (eval $ac_try) 2>&5
27930 ac_status=$?
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; } &&
27933 { ac_try='test -s conftest.$ac_objext'
27934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; }; then
27939 ac_cv_type_signal=void
27940else
27941 echo "$as_me: failed program was:" >&5
27942sed 's/^/| /' conftest.$ac_ext >&5
27943
27944ac_cv_type_signal=int
27945fi
27946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27947fi
27948echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27949echo "${ECHO_T}$ac_cv_type_signal" >&6
27950
27951cat >>confdefs.h <<_ACEOF
27952#define RETSIGTYPE $ac_cv_type_signal
27953_ACEOF
27954
27955
27956echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27957echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27958if test "${ac_cv_struct_tm+set}" = set; then
27959 echo $ECHO_N "(cached) $ECHO_C" >&6
27960else
27961 cat >conftest.$ac_ext <<_ACEOF
27962/* confdefs.h. */
27963_ACEOF
27964cat confdefs.h >>conftest.$ac_ext
27965cat >>conftest.$ac_ext <<_ACEOF
27966/* end confdefs.h. */
27967#include <sys/types.h>
27968#include <time.h>
27969
27970int
27971main ()
27972{
27973struct tm *tp; tp->tm_sec;
27974 ;
27975 return 0;
27976}
27977_ACEOF
27978rm -f conftest.$ac_objext
27979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27980 (eval $ac_compile) 2>conftest.er1
27981 ac_status=$?
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag"
27988 || test ! -s conftest.err'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest.$ac_objext'
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27997 ac_status=$?
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_struct_tm=time.h
28001else
28002 echo "$as_me: failed program was:" >&5
28003sed 's/^/| /' conftest.$ac_ext >&5
28004
28005ac_cv_struct_tm=sys/time.h
28006fi
28007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28008fi
28009echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28010echo "${ECHO_T}$ac_cv_struct_tm" >&6
28011if test $ac_cv_struct_tm = sys/time.h; then
28012
28013cat >>confdefs.h <<\_ACEOF
28014#define TM_IN_SYS_TIME 1
28015_ACEOF
28016
28017fi
28018
John Criswell7a73b802003-06-30 21:59:07 +000028019echo "$as_me:$LINENO: checking for int64_t" >&5
28020echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
28021if test "${ac_cv_type_int64_t+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023else
28024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028025/* confdefs.h. */
28026_ACEOF
28027cat confdefs.h >>conftest.$ac_ext
28028cat >>conftest.$ac_ext <<_ACEOF
28029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028030$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000028031int
28032main ()
28033{
28034if ((int64_t *) 0)
28035 return 0;
28036if (sizeof (int64_t))
28037 return 0;
28038 ;
28039 return 0;
28040}
28041_ACEOF
28042rm -f conftest.$ac_objext
28043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028044 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028046 grep -v '^ *+' conftest.er1 >conftest.err
28047 rm -f conftest.er1
28048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028051 { ac_try='test -z "$ac_c_werror_flag"
28052 || test ! -s conftest.err'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_type_int64_t=yes
28065else
28066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028067sed 's/^/| /' conftest.$ac_ext >&5
28068
John Criswell7a73b802003-06-30 21:59:07 +000028069ac_cv_type_int64_t=no
28070fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028072fi
28073echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28074echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28075if test $ac_cv_type_int64_t = yes; then
28076
28077cat >>confdefs.h <<_ACEOF
28078#define HAVE_INT64_T 1
28079_ACEOF
28080
28081
28082else
28083 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28084echo "$as_me: error: Type int64_t required but not found" >&2;}
28085 { (exit 1); exit 1; }; }
28086fi
28087
28088echo "$as_me:$LINENO: checking for uint64_t" >&5
28089echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28090if test "${ac_cv_type_uint64_t+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28092else
28093 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028094/* confdefs.h. */
28095_ACEOF
28096cat confdefs.h >>conftest.$ac_ext
28097cat >>conftest.$ac_ext <<_ACEOF
28098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028099$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000028100int
28101main ()
28102{
28103if ((uint64_t *) 0)
28104 return 0;
28105if (sizeof (uint64_t))
28106 return 0;
28107 ;
28108 return 0;
28109}
28110_ACEOF
28111rm -f conftest.$ac_objext
28112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028113 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028120 { ac_try='test -z "$ac_c_werror_flag"
28121 || test ! -s conftest.err'
28122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123 (eval $ac_try) 2>&5
28124 ac_status=$?
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; } &&
28127 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129 (eval $ac_try) 2>&5
28130 ac_status=$?
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; }; then
28133 ac_cv_type_uint64_t=yes
28134else
28135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028136sed 's/^/| /' conftest.$ac_ext >&5
28137
John Criswell7a73b802003-06-30 21:59:07 +000028138ac_cv_type_uint64_t=no
28139fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028141fi
28142echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28143echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28144if test $ac_cv_type_uint64_t = yes; then
28145
28146cat >>confdefs.h <<_ACEOF
28147#define HAVE_UINT64_T 1
28148_ACEOF
28149
28150
28151else
Misha Brukmanceca9042004-09-02 23:02:30 +000028152 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000028153echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28154if test "${ac_cv_type_u_int64_t+set}" = set; then
28155 echo $ECHO_N "(cached) $ECHO_C" >&6
28156else
28157 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000028158/* confdefs.h. */
28159_ACEOF
28160cat confdefs.h >>conftest.$ac_ext
28161cat >>conftest.$ac_ext <<_ACEOF
28162/* end confdefs.h. */
28163$ac_includes_default
28164int
28165main ()
28166{
28167if ((u_int64_t *) 0)
28168 return 0;
28169if (sizeof (u_int64_t))
28170 return 0;
28171 ;
28172 return 0;
28173}
28174_ACEOF
28175rm -f conftest.$ac_objext
28176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028177 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000028178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028179 grep -v '^ *+' conftest.er1 >conftest.err
28180 rm -f conftest.er1
28181 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000028182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028184 { ac_try='test -z "$ac_c_werror_flag"
28185 || test ! -s conftest.err'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000028192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
28197 ac_cv_type_u_int64_t=yes
28198else
28199 echo "$as_me: failed program was:" >&5
28200sed 's/^/| /' conftest.$ac_ext >&5
28201
28202ac_cv_type_u_int64_t=no
28203fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000028205fi
28206echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28207echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28208if test $ac_cv_type_u_int64_t = yes; then
28209
28210cat >>confdefs.h <<_ACEOF
28211#define HAVE_U_INT64_T 1
28212_ACEOF
28213
28214
Misha Brukmanceca9042004-09-02 23:02:30 +000028215else
28216 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28217echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28218 { (exit 1); exit 1; }; }
28219fi
28220
John Criswell679ff312004-09-02 18:44:44 +000028221fi
28222
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028223
28224
28225
28226
28227
28228
28229
Reid Spencerf4bb9b12006-01-19 08:22:40 +000028230
28231
Reid Spencerdf3be822006-01-23 08:15:53 +000028232for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028233do
28234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28235echo "$as_me:$LINENO: checking for $ac_func" >&5
28236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28237if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239else
28240 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028241/* confdefs.h. */
28242_ACEOF
28243cat confdefs.h >>conftest.$ac_ext
28244cat >>conftest.$ac_ext <<_ACEOF
28245/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28248#define $ac_func innocuous_$ac_func
28249
28250/* System header to define __stub macros and hopefully few prototypes,
28251 which can conflict with char $ac_func (); below.
28252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28253 <limits.h> exists even on freestanding compilers. */
28254
28255#ifdef __STDC__
28256# include <limits.h>
28257#else
28258# include <assert.h>
28259#endif
28260
28261#undef $ac_func
28262
28263/* Override any gcc2 internal prototype to avoid an error. */
28264#ifdef __cplusplus
28265extern "C"
28266{
28267#endif
28268/* We use char because int might match the return type of a gcc2
28269 builtin and then its argument prototype would still apply. */
28270char $ac_func ();
28271/* The GNU C library defines this for functions which it implements
28272 to always fail with ENOSYS. Some functions are actually named
28273 something starting with __ and the normal name is an alias. */
28274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28275choke me
28276#else
28277char (*f) () = $ac_func;
28278#endif
28279#ifdef __cplusplus
28280}
28281#endif
John Criswell7a73b802003-06-30 21:59:07 +000028282
John Criswell7a73b802003-06-30 21:59:07 +000028283int
28284main ()
28285{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028286return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028287 ;
28288 return 0;
28289}
28290_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028291rm -f conftest.$ac_objext conftest$ac_exeext
28292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28293 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028295 grep -v '^ *+' conftest.er1 >conftest.err
28296 rm -f conftest.er1
28297 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028300 { ac_try='test -z "$ac_c_werror_flag"
28301 || test ! -s conftest.err'
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028307 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028313 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028314else
28315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028316sed 's/^/| /' conftest.$ac_ext >&5
28317
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028318eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028319fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028320rm -f conftest.err conftest.$ac_objext \
28321 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028322fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28325if test `eval echo '${'$as_ac_var'}'` = yes; then
28326 cat >>confdefs.h <<_ACEOF
28327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028328_ACEOF
28329
28330fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028331done
John Criswell7a73b802003-06-30 21:59:07 +000028332
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028333
28334
28335
Reid Spencer6af3d262004-12-15 04:01:48 +000028336
28337
Reid Spencer59473af2004-12-25 07:31:29 +000028338
Reid Spencerdf3be822006-01-23 08:15:53 +000028339for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28340do
28341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28342echo "$as_me:$LINENO: checking for $ac_func" >&5
28343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28344if eval "test \"\${$as_ac_var+set}\" = set"; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346else
28347 cat >conftest.$ac_ext <<_ACEOF
28348/* confdefs.h. */
28349_ACEOF
28350cat confdefs.h >>conftest.$ac_ext
28351cat >>conftest.$ac_ext <<_ACEOF
28352/* end confdefs.h. */
28353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28355#define $ac_func innocuous_$ac_func
28356
28357/* System header to define __stub macros and hopefully few prototypes,
28358 which can conflict with char $ac_func (); below.
28359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28360 <limits.h> exists even on freestanding compilers. */
28361
28362#ifdef __STDC__
28363# include <limits.h>
28364#else
28365# include <assert.h>
28366#endif
28367
28368#undef $ac_func
28369
28370/* Override any gcc2 internal prototype to avoid an error. */
28371#ifdef __cplusplus
28372extern "C"
28373{
28374#endif
28375/* We use char because int might match the return type of a gcc2
28376 builtin and then its argument prototype would still apply. */
28377char $ac_func ();
28378/* The GNU C library defines this for functions which it implements
28379 to always fail with ENOSYS. Some functions are actually named
28380 something starting with __ and the normal name is an alias. */
28381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28382choke me
28383#else
28384char (*f) () = $ac_func;
28385#endif
28386#ifdef __cplusplus
28387}
28388#endif
28389
28390int
28391main ()
28392{
28393return f != $ac_func;
28394 ;
28395 return 0;
28396}
28397_ACEOF
28398rm -f conftest.$ac_objext conftest$ac_exeext
28399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28400 (eval $ac_link) 2>conftest.er1
28401 ac_status=$?
28402 grep -v '^ *+' conftest.er1 >conftest.err
28403 rm -f conftest.er1
28404 cat conftest.err >&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); } &&
28407 { ac_try='test -z "$ac_c_werror_flag"
28408 || test ! -s conftest.err'
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; } &&
28414 { ac_try='test -s conftest$ac_exeext'
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
28420 eval "$as_ac_var=yes"
28421else
28422 echo "$as_me: failed program was:" >&5
28423sed 's/^/| /' conftest.$ac_ext >&5
28424
28425eval "$as_ac_var=no"
28426fi
28427rm -f conftest.err conftest.$ac_objext \
28428 conftest$ac_exeext conftest.$ac_ext
28429fi
28430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28432if test `eval echo '${'$as_ac_var'}'` = yes; then
28433 cat >>confdefs.h <<_ACEOF
28434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28435_ACEOF
28436
28437fi
28438done
28439
28440
28441
28442
28443
28444
28445
28446
28447for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000028448do
28449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28450echo "$as_me:$LINENO: checking for $ac_func" >&5
28451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28452if eval "test \"\${$as_ac_var+set}\" = set"; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28454else
28455 cat >conftest.$ac_ext <<_ACEOF
28456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
28461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28463#define $ac_func innocuous_$ac_func
28464
28465/* System header to define __stub macros and hopefully few prototypes,
28466 which can conflict with char $ac_func (); below.
28467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28468 <limits.h> exists even on freestanding compilers. */
28469
28470#ifdef __STDC__
28471# include <limits.h>
28472#else
28473# include <assert.h>
28474#endif
28475
28476#undef $ac_func
28477
28478/* Override any gcc2 internal prototype to avoid an error. */
28479#ifdef __cplusplus
28480extern "C"
28481{
28482#endif
28483/* We use char because int might match the return type of a gcc2
28484 builtin and then its argument prototype would still apply. */
28485char $ac_func ();
28486/* The GNU C library defines this for functions which it implements
28487 to always fail with ENOSYS. Some functions are actually named
28488 something starting with __ and the normal name is an alias. */
28489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28490choke me
28491#else
28492char (*f) () = $ac_func;
28493#endif
28494#ifdef __cplusplus
28495}
28496#endif
28497
28498int
28499main ()
28500{
28501return f != $ac_func;
28502 ;
28503 return 0;
28504}
28505_ACEOF
28506rm -f conftest.$ac_objext conftest$ac_exeext
28507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28508 (eval $ac_link) 2>conftest.er1
28509 ac_status=$?
28510 grep -v '^ *+' conftest.er1 >conftest.err
28511 rm -f conftest.er1
28512 cat conftest.err >&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
28515 { ac_try='test -z "$ac_c_werror_flag"
28516 || test ! -s conftest.err'
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest$ac_exeext'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; }; then
28528 eval "$as_ac_var=yes"
28529else
28530 echo "$as_me: failed program was:" >&5
28531sed 's/^/| /' conftest.$ac_ext >&5
28532
28533eval "$as_ac_var=no"
28534fi
28535rm -f conftest.err conftest.$ac_objext \
28536 conftest$ac_exeext conftest.$ac_ext
28537fi
28538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28540if test `eval echo '${'$as_ac_var'}'` = yes; then
28541 cat >>confdefs.h <<_ACEOF
28542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28543_ACEOF
28544
28545fi
28546done
28547
28548
Reid Spencerba46ca32004-12-31 05:49:15 +000028549
28550
Chris Lattner0b142592005-11-14 06:57:34 +000028551
Chris Lattner511f11d2005-11-14 07:25:50 +000028552for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028553do
28554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555echo "$as_me:$LINENO: checking for $ac_func" >&5
28556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28557if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028558 echo $ECHO_N "(cached) $ECHO_C" >&6
28559else
28560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28568#define $ac_func innocuous_$ac_func
28569
28570/* System header to define __stub macros and hopefully few prototypes,
28571 which can conflict with char $ac_func (); below.
28572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28573 <limits.h> exists even on freestanding compilers. */
28574
28575#ifdef __STDC__
28576# include <limits.h>
28577#else
28578# include <assert.h>
28579#endif
28580
28581#undef $ac_func
28582
28583/* Override any gcc2 internal prototype to avoid an error. */
28584#ifdef __cplusplus
28585extern "C"
28586{
28587#endif
28588/* We use char because int might match the return type of a gcc2
28589 builtin and then its argument prototype would still apply. */
28590char $ac_func ();
28591/* The GNU C library defines this for functions which it implements
28592 to always fail with ENOSYS. Some functions are actually named
28593 something starting with __ and the normal name is an alias. */
28594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28595choke me
28596#else
28597char (*f) () = $ac_func;
28598#endif
28599#ifdef __cplusplus
28600}
28601#endif
John Criswell7a73b802003-06-30 21:59:07 +000028602
John Criswell7a73b802003-06-30 21:59:07 +000028603int
28604main ()
28605{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028606return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028607 ;
28608 return 0;
28609}
28610_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028611rm -f conftest.$ac_objext conftest$ac_exeext
28612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28613 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028620 { ac_try='test -z "$ac_c_werror_flag"
28621 || test ! -s conftest.err'
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028627 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028633 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028634else
28635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028636sed 's/^/| /' conftest.$ac_ext >&5
28637
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028638eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028639fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028640rm -f conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028642fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28645if test `eval echo '${'$as_ac_var'}'` = yes; then
28646 cat >>confdefs.h <<_ACEOF
28647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028648_ACEOF
28649
28650fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028651done
John Criswell7a73b802003-06-30 21:59:07 +000028652
Reid Spencercdb08a32006-06-05 16:11:07 +000028653
28654
28655
28656
28657
28658
28659for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28660do
28661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28662echo "$as_me:$LINENO: checking for $ac_func" >&5
28663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28664if eval "test \"\${$as_ac_var+set}\" = set"; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666else
28667 cat >conftest.$ac_ext <<_ACEOF
28668/* confdefs.h. */
28669_ACEOF
28670cat confdefs.h >>conftest.$ac_ext
28671cat >>conftest.$ac_ext <<_ACEOF
28672/* end confdefs.h. */
28673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28675#define $ac_func innocuous_$ac_func
28676
28677/* System header to define __stub macros and hopefully few prototypes,
28678 which can conflict with char $ac_func (); below.
28679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28680 <limits.h> exists even on freestanding compilers. */
28681
28682#ifdef __STDC__
28683# include <limits.h>
28684#else
28685# include <assert.h>
28686#endif
28687
28688#undef $ac_func
28689
28690/* Override any gcc2 internal prototype to avoid an error. */
28691#ifdef __cplusplus
28692extern "C"
28693{
28694#endif
28695/* We use char because int might match the return type of a gcc2
28696 builtin and then its argument prototype would still apply. */
28697char $ac_func ();
28698/* The GNU C library defines this for functions which it implements
28699 to always fail with ENOSYS. Some functions are actually named
28700 something starting with __ and the normal name is an alias. */
28701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28702choke me
28703#else
28704char (*f) () = $ac_func;
28705#endif
28706#ifdef __cplusplus
28707}
28708#endif
28709
28710int
28711main ()
28712{
28713return f != $ac_func;
28714 ;
28715 return 0;
28716}
28717_ACEOF
28718rm -f conftest.$ac_objext conftest$ac_exeext
28719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720 (eval $ac_link) 2>conftest.er1
28721 ac_status=$?
28722 grep -v '^ *+' conftest.er1 >conftest.err
28723 rm -f conftest.er1
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -z "$ac_c_werror_flag"
28728 || test ! -s conftest.err'
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28731 ac_status=$?
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest$ac_exeext'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740 eval "$as_ac_var=yes"
28741else
28742 echo "$as_me: failed program was:" >&5
28743sed 's/^/| /' conftest.$ac_ext >&5
28744
28745eval "$as_ac_var=no"
28746fi
28747rm -f conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28749fi
28750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28752if test `eval echo '${'$as_ac_var'}'` = yes; then
28753 cat >>confdefs.h <<_ACEOF
28754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28755_ACEOF
28756
28757fi
28758done
28759
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028760echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28761echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028762if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028763 echo $ECHO_N "(cached) $ECHO_C" >&6
28764else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028765 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028766ac_cpp='$CPP $CPPFLAGS'
28767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769ac_compiler_gnu=$ac_cv_c_compiler_gnu
28770
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028771 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028772 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028773else
28774 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028775
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028776 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028777_ACEOF
28778cat confdefs.h >>conftest.$ac_ext
28779cat >>conftest.$ac_ext <<_ACEOF
28780/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028781
John Criswella0137d32003-10-13 16:22:01 +000028782#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028783#include <stdlib.h>
28784
John Criswella0137d32003-10-13 16:22:01 +000028785int
28786main ()
28787{
28788
Reid Spencer2706f8c2004-09-19 23:53:36 +000028789volatile double A, B;
28790char Buffer[100];
28791A = 1;
28792A /= 10.0;
28793sprintf(Buffer, "%a", A);
28794B = atof(Buffer);
28795if (A != B)
28796 return (1);
28797if (A != 0x1.999999999999ap-4)
28798 return (1);
28799return (0);
John Criswella0137d32003-10-13 16:22:01 +000028800 ;
28801 return 0;
28802}
28803_ACEOF
28804rm -f conftest$ac_exeext
28805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28806 (eval $ac_link) 2>&5
28807 ac_status=$?
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028815 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028816else
28817 echo "$as_me: program exited with status $ac_status" >&5
28818echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028822llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028823fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028825fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028826 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028827ac_cpp='$CPP $CPPFLAGS'
28828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28830ac_compiler_gnu=$ac_cv_c_compiler_gnu
28831
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028832fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028833echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28834echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28835 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028836
28837cat >>confdefs.h <<\_ACEOF
28838#define HAVE_PRINTF_A 1
28839_ACEOF
28840
Reid Spencer2706f8c2004-09-19 23:53:36 +000028841 fi
John Criswella0137d32003-10-13 16:22:01 +000028842
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028843# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28844# for constant arguments. Useless!
28845echo "$as_me:$LINENO: checking for working alloca.h" >&5
28846echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28847if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028848 echo $ECHO_N "(cached) $ECHO_C" >&6
28849else
John Criswell0021c312004-02-13 21:57:29 +000028850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028851/* confdefs.h. */
28852_ACEOF
28853cat confdefs.h >>conftest.$ac_ext
28854cat >>conftest.$ac_ext <<_ACEOF
28855/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028856#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028857int
28858main ()
28859{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028860char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028861 ;
28862 return 0;
28863}
28864_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028865rm -f conftest.$ac_objext conftest$ac_exeext
28866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28867 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028869 grep -v '^ *+' conftest.er1 >conftest.err
28870 rm -f conftest.er1
28871 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028874 { ac_try='test -z "$ac_c_werror_flag"
28875 || test ! -s conftest.err'
28876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28877 (eval $ac_try) 2>&5
28878 ac_status=$?
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028881 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028887 ac_cv_working_alloca_h=yes
28888else
28889 echo "$as_me: failed program was:" >&5
28890sed 's/^/| /' conftest.$ac_ext >&5
28891
28892ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028893fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028894rm -f conftest.err conftest.$ac_objext \
28895 conftest$ac_exeext conftest.$ac_ext
28896fi
28897echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28898echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28899if test $ac_cv_working_alloca_h = yes; then
28900
28901cat >>confdefs.h <<\_ACEOF
28902#define HAVE_ALLOCA_H 1
28903_ACEOF
28904
28905fi
28906
28907echo "$as_me:$LINENO: checking for alloca" >&5
28908echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28909if test "${ac_cv_func_alloca_works+set}" = set; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28911else
28912 cat >conftest.$ac_ext <<_ACEOF
28913/* confdefs.h. */
28914_ACEOF
28915cat confdefs.h >>conftest.$ac_ext
28916cat >>conftest.$ac_ext <<_ACEOF
28917/* end confdefs.h. */
28918#ifdef __GNUC__
28919# define alloca __builtin_alloca
28920#else
28921# ifdef _MSC_VER
28922# include <malloc.h>
28923# define alloca _alloca
28924# else
28925# if HAVE_ALLOCA_H
28926# include <alloca.h>
28927# else
28928# ifdef _AIX
28929 #pragma alloca
28930# else
28931# ifndef alloca /* predefined by HP cc +Olibcalls */
28932char *alloca ();
28933# endif
28934# endif
28935# endif
28936# endif
28937#endif
28938
28939int
28940main ()
28941{
28942char *p = (char *) alloca (1);
28943 ;
28944 return 0;
28945}
28946_ACEOF
28947rm -f conftest.$ac_objext conftest$ac_exeext
28948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28949 (eval $ac_link) 2>conftest.er1
28950 ac_status=$?
28951 grep -v '^ *+' conftest.er1 >conftest.err
28952 rm -f conftest.er1
28953 cat conftest.err >&5
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); } &&
28956 { ac_try='test -z "$ac_c_werror_flag"
28957 || test ! -s conftest.err'
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; } &&
28963 { ac_try='test -s conftest$ac_exeext'
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28966 ac_status=$?
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; }; then
28969 ac_cv_func_alloca_works=yes
28970else
28971 echo "$as_me: failed program was:" >&5
28972sed 's/^/| /' conftest.$ac_ext >&5
28973
28974ac_cv_func_alloca_works=no
28975fi
28976rm -f conftest.err conftest.$ac_objext \
28977 conftest$ac_exeext conftest.$ac_ext
28978fi
28979echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28980echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28981
28982if test $ac_cv_func_alloca_works = yes; then
28983
28984cat >>confdefs.h <<\_ACEOF
28985#define HAVE_ALLOCA 1
28986_ACEOF
28987
28988else
28989 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28990# that cause trouble. Some versions do not even contain alloca or
28991# contain a buggy version. If you still want to use their alloca,
28992# use ar to extract alloca.o from them instead of compiling alloca.c.
28993
28994ALLOCA=alloca.$ac_objext
28995
28996cat >>confdefs.h <<\_ACEOF
28997#define C_ALLOCA 1
28998_ACEOF
28999
29000
29001echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29002echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
29003if test "${ac_cv_os_cray+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29005else
29006 cat >conftest.$ac_ext <<_ACEOF
29007/* confdefs.h. */
29008_ACEOF
29009cat confdefs.h >>conftest.$ac_ext
29010cat >>conftest.$ac_ext <<_ACEOF
29011/* end confdefs.h. */
29012#if defined(CRAY) && ! defined(CRAY2)
29013webecray
29014#else
29015wenotbecray
29016#endif
29017
29018_ACEOF
29019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29020 $EGREP "webecray" >/dev/null 2>&1; then
29021 ac_cv_os_cray=yes
29022else
29023 ac_cv_os_cray=no
29024fi
29025rm -f conftest*
29026
29027fi
29028echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29029echo "${ECHO_T}$ac_cv_os_cray" >&6
29030if test $ac_cv_os_cray = yes; then
29031 for ac_func in _getb67 GETB67 getb67; do
29032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29033echo "$as_me:$LINENO: checking for $ac_func" >&5
29034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29035if eval "test \"\${$as_ac_var+set}\" = set"; then
29036 echo $ECHO_N "(cached) $ECHO_C" >&6
29037else
29038 cat >conftest.$ac_ext <<_ACEOF
29039/* confdefs.h. */
29040_ACEOF
29041cat confdefs.h >>conftest.$ac_ext
29042cat >>conftest.$ac_ext <<_ACEOF
29043/* end confdefs.h. */
29044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29046#define $ac_func innocuous_$ac_func
29047
29048/* System header to define __stub macros and hopefully few prototypes,
29049 which can conflict with char $ac_func (); below.
29050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29051 <limits.h> exists even on freestanding compilers. */
29052
29053#ifdef __STDC__
29054# include <limits.h>
29055#else
29056# include <assert.h>
29057#endif
29058
29059#undef $ac_func
29060
29061/* Override any gcc2 internal prototype to avoid an error. */
29062#ifdef __cplusplus
29063extern "C"
29064{
29065#endif
29066/* We use char because int might match the return type of a gcc2
29067 builtin and then its argument prototype would still apply. */
29068char $ac_func ();
29069/* The GNU C library defines this for functions which it implements
29070 to always fail with ENOSYS. Some functions are actually named
29071 something starting with __ and the normal name is an alias. */
29072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29073choke me
29074#else
29075char (*f) () = $ac_func;
29076#endif
29077#ifdef __cplusplus
29078}
29079#endif
29080
29081int
29082main ()
29083{
29084return f != $ac_func;
29085 ;
29086 return 0;
29087}
29088_ACEOF
29089rm -f conftest.$ac_objext conftest$ac_exeext
29090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29091 (eval $ac_link) 2>conftest.er1
29092 ac_status=$?
29093 grep -v '^ *+' conftest.er1 >conftest.err
29094 rm -f conftest.er1
29095 cat conftest.err >&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
29098 { ac_try='test -z "$ac_c_werror_flag"
29099 || test ! -s conftest.err'
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest$ac_exeext'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 eval "$as_ac_var=yes"
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116eval "$as_ac_var=no"
29117fi
29118rm -f conftest.err conftest.$ac_objext \
29119 conftest$ac_exeext conftest.$ac_ext
29120fi
29121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29123if test `eval echo '${'$as_ac_var'}'` = yes; then
29124
29125cat >>confdefs.h <<_ACEOF
29126#define CRAY_STACKSEG_END $ac_func
29127_ACEOF
29128
29129 break
29130fi
29131
29132 done
29133fi
29134
29135echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29136echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29137if test "${ac_cv_c_stack_direction+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29139else
29140 if test "$cross_compiling" = yes; then
29141 ac_cv_c_stack_direction=0
29142else
29143 cat >conftest.$ac_ext <<_ACEOF
29144/* confdefs.h. */
29145_ACEOF
29146cat confdefs.h >>conftest.$ac_ext
29147cat >>conftest.$ac_ext <<_ACEOF
29148/* end confdefs.h. */
29149int
29150find_stack_direction ()
29151{
29152 static char *addr = 0;
29153 auto char dummy;
29154 if (addr == 0)
29155 {
29156 addr = &dummy;
29157 return find_stack_direction ();
29158 }
John Criswell0021c312004-02-13 21:57:29 +000029159 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029160 return (&dummy > addr) ? 1 : -1;
29161}
John Criswell0021c312004-02-13 21:57:29 +000029162
John Criswell0021c312004-02-13 21:57:29 +000029163int
29164main ()
29165{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029166 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000029167}
29168_ACEOF
29169rm -f conftest$ac_exeext
29170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171 (eval $ac_link) 2>&5
29172 ac_status=$?
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029180 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000029181else
29182 echo "$as_me: program exited with status $ac_status" >&5
29183echo "$as_me: failed program was:" >&5
29184sed 's/^/| /' conftest.$ac_ext >&5
29185
29186( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029187ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000029188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000029190fi
29191fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029192echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29193echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29194
29195cat >>confdefs.h <<_ACEOF
29196#define STACK_DIRECTION $ac_cv_c_stack_direction
29197_ACEOF
29198
29199
John Criswell0021c312004-02-13 21:57:29 +000029200fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029201
29202
29203echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29204echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29205if test "${ac_cv_func_rand48+set}" = set; then
29206 echo $ECHO_N "(cached) $ECHO_C" >&6
29207else
29208 ac_ext=cc
29209ac_cpp='$CXXCPP $CPPFLAGS'
29210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29213
29214 cat >conftest.$ac_ext <<_ACEOF
29215/* confdefs.h. */
29216_ACEOF
29217cat confdefs.h >>conftest.$ac_ext
29218cat >>conftest.$ac_ext <<_ACEOF
29219/* end confdefs.h. */
29220#include <stdlib.h>
29221int
29222main ()
29223{
29224srand48(0);lrand48();drand48();
29225 ;
29226 return 0;
29227}
29228_ACEOF
29229rm -f conftest.$ac_objext
29230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29231 (eval $ac_compile) 2>conftest.er1
29232 ac_status=$?
29233 grep -v '^ *+' conftest.er1 >conftest.err
29234 rm -f conftest.er1
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } &&
29238 { ac_try='test -z "$ac_cxx_werror_flag"
29239 || test ! -s conftest.err'
29240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); }; } &&
29245 { ac_try='test -s conftest.$ac_objext'
29246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29247 (eval $ac_try) 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251 ac_cv_func_rand48=yes
29252else
29253 echo "$as_me: failed program was:" >&5
29254sed 's/^/| /' conftest.$ac_ext >&5
29255
29256ac_cv_func_rand48=no
29257fi
29258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29259 ac_ext=c
29260ac_cpp='$CPP $CPPFLAGS'
29261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263ac_compiler_gnu=$ac_cv_c_compiler_gnu
29264
29265fi
29266echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29267echo "${ECHO_T}$ac_cv_func_rand48" >&6
29268
29269if test "$ac_cv_func_rand48" = "yes" ; then
29270
29271cat >>confdefs.h <<\_ACEOF
29272#define HAVE_RAND48 1
29273_ACEOF
29274
29275fi
John Criswell0021c312004-02-13 21:57:29 +000029276
29277
John Criswell7a73b802003-06-30 21:59:07 +000029278echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29279echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29280if test "${ac_cv_cxx_namespaces+set}" = set; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029283 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000029284ac_cpp='$CXXCPP $CPPFLAGS'
29285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29288
29289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029290/* confdefs.h. */
29291_ACEOF
29292cat confdefs.h >>conftest.$ac_ext
29293cat >>conftest.$ac_ext <<_ACEOF
29294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029295namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029296int
29297main ()
29298{
29299using namespace Outer::Inner; return i;
29300 ;
29301 return 0;
29302}
29303_ACEOF
29304rm -f conftest.$ac_objext
29305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029306 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029308 grep -v '^ *+' conftest.er1 >conftest.err
29309 rm -f conftest.er1
29310 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029313 { ac_try='test -z "$ac_cxx_werror_flag"
29314 || test ! -s conftest.err'
29315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316 (eval $ac_try) 2>&5
29317 ac_status=$?
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; } &&
29320 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_cxx_namespaces=yes
29327else
29328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029329sed 's/^/| /' conftest.$ac_ext >&5
29330
John Criswell7a73b802003-06-30 21:59:07 +000029331ac_cv_cxx_namespaces=no
29332fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029334 ac_ext=c
29335ac_cpp='$CPP $CPPFLAGS'
29336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29338ac_compiler_gnu=$ac_cv_c_compiler_gnu
29339
29340
29341fi
29342echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29343echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29344if test "$ac_cv_cxx_namespaces" = yes; then
29345
29346cat >>confdefs.h <<\_ACEOF
29347#define HAVE_NAMESPACES
29348_ACEOF
29349
29350fi
29351
Brian Gaeke90583492003-11-10 03:06:28 +000029352echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29353echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29354if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357
John Criswell7a73b802003-06-30 21:59:07 +000029358 ac_ext=cc
29359ac_cpp='$CXXCPP $CPPFLAGS'
29360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29363
29364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029365/* confdefs.h. */
29366_ACEOF
29367cat confdefs.h >>conftest.$ac_ext
29368cat >>conftest.$ac_ext <<_ACEOF
29369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029370#include <ext/hash_map>
29371#ifdef HAVE_NAMESPACES
29372using namespace std;
29373#endif
John Criswell7a73b802003-06-30 21:59:07 +000029374int
29375main ()
29376{
Brian Gaeke90583492003-11-10 03:06:28 +000029377hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029378 ;
29379 return 0;
29380}
29381_ACEOF
29382rm -f conftest.$ac_objext
29383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029384 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029386 grep -v '^ *+' conftest.er1 >conftest.err
29387 rm -f conftest.er1
29388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029391 { ac_try='test -z "$ac_cxx_werror_flag"
29392 || test ! -s conftest.err'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029404 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029405else
29406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029407sed 's/^/| /' conftest.$ac_ext >&5
29408
Brian Gaeke90583492003-11-10 03:06:28 +000029409ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029410fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029412 ac_ext=c
29413ac_cpp='$CPP $CPPFLAGS'
29414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29416ac_compiler_gnu=$ac_cv_c_compiler_gnu
29417
John Criswell7a73b802003-06-30 21:59:07 +000029418fi
Brian Gaeke90583492003-11-10 03:06:28 +000029419echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29420echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029421 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29422 then
John Criswell9f011862004-09-24 18:28:00 +000029423
29424cat >>confdefs.h <<\_ACEOF
29425#define HAVE_STD_EXT_HASH_MAP 1
29426_ACEOF
29427
29428 else
29429
29430cat >>confdefs.h <<\_ACEOF
29431#define HAVE_STD_EXT_HASH_MAP 0
29432_ACEOF
29433
Brian Gaeke90583492003-11-10 03:06:28 +000029434 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029435
Brian Gaeke90583492003-11-10 03:06:28 +000029436 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29437echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29438if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29440else
29441
Brian Gaeke90583492003-11-10 03:06:28 +000029442 ac_ext=cc
29443ac_cpp='$CXXCPP $CPPFLAGS'
29444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29447
29448 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029449/* confdefs.h. */
29450_ACEOF
29451cat confdefs.h >>conftest.$ac_ext
29452cat >>conftest.$ac_ext <<_ACEOF
29453/* end confdefs.h. */
29454#include <ext/hash_map>
29455#ifdef HAVE_NAMESPACES
29456using namespace __gnu_cxx;
29457#endif
29458int
29459main ()
29460{
29461hash_map<int,int> t;
29462 ;
29463 return 0;
29464}
29465_ACEOF
29466rm -f conftest.$ac_objext
29467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029468 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029475 { ac_try='test -z "$ac_cxx_werror_flag"
29476 || test ! -s conftest.err'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } &&
29482 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 ac_cv_cxx_have_gnu_ext_hash_map=yes
29489else
29490 echo "$as_me: failed program was:" >&5
29491sed 's/^/| /' conftest.$ac_ext >&5
29492
29493ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029494fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029496 ac_ext=c
29497ac_cpp='$CPP $CPPFLAGS'
29498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500ac_compiler_gnu=$ac_cv_c_compiler_gnu
29501
29502fi
29503echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29504echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029505 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29506 then
John Criswell9f011862004-09-24 18:28:00 +000029507
29508cat >>confdefs.h <<\_ACEOF
29509#define HAVE_GNU_EXT_HASH_MAP 1
29510_ACEOF
29511
29512 else
29513
29514cat >>confdefs.h <<\_ACEOF
29515#define HAVE_GNU_EXT_HASH_MAP 0
29516_ACEOF
29517
Brian Gaeke90583492003-11-10 03:06:28 +000029518 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029519
Brian Gaeke90583492003-11-10 03:06:28 +000029520 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29521echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29522if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524else
John Criswell7a73b802003-06-30 21:59:07 +000029525
Brian Gaeke90583492003-11-10 03:06:28 +000029526 ac_ext=cc
29527ac_cpp='$CXXCPP $CPPFLAGS'
29528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29531
29532 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029533/* confdefs.h. */
29534_ACEOF
29535cat confdefs.h >>conftest.$ac_ext
29536cat >>conftest.$ac_ext <<_ACEOF
29537/* end confdefs.h. */
29538#include <hash_map>
29539int
29540main ()
29541{
29542hash_map<int,int> t;
29543 ;
29544 return 0;
29545}
29546_ACEOF
29547rm -f conftest.$ac_objext
29548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029549 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029556 { ac_try='test -z "$ac_cxx_werror_flag"
29557 || test ! -s conftest.err'
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 ac_cv_cxx_have_global_hash_map=yes
29570else
29571 echo "$as_me: failed program was:" >&5
29572sed 's/^/| /' conftest.$ac_ext >&5
29573
29574ac_cv_cxx_have_global_hash_map=no
29575fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029577 ac_ext=c
29578ac_cpp='$CPP $CPPFLAGS'
29579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29581ac_compiler_gnu=$ac_cv_c_compiler_gnu
29582
29583fi
29584echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29585echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029586 if test "$ac_cv_cxx_have_global_hash_map" = yes
29587 then
John Criswell9f011862004-09-24 18:28:00 +000029588
29589cat >>confdefs.h <<\_ACEOF
29590#define HAVE_GLOBAL_HASH_MAP 1
29591_ACEOF
29592
29593 else
29594
29595cat >>confdefs.h <<\_ACEOF
29596#define HAVE_GLOBAL_HASH_MAP 0
29597_ACEOF
29598
Brian Gaeke90583492003-11-10 03:06:28 +000029599 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029600
Brian Gaeke90583492003-11-10 03:06:28 +000029601echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29602echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29603if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029604 echo $ECHO_N "(cached) $ECHO_C" >&6
29605else
29606
John Criswell7a73b802003-06-30 21:59:07 +000029607 ac_ext=cc
29608ac_cpp='$CXXCPP $CPPFLAGS'
29609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29612
29613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029614/* confdefs.h. */
29615_ACEOF
29616cat confdefs.h >>conftest.$ac_ext
29617cat >>conftest.$ac_ext <<_ACEOF
29618/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029619#include <ext/hash_set>
29620#ifdef HAVE_NAMESPACES
29621using namespace std;
29622#endif
John Criswell7a73b802003-06-30 21:59:07 +000029623int
29624main ()
29625{
Brian Gaeke90583492003-11-10 03:06:28 +000029626hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029627 ;
29628 return 0;
29629}
29630_ACEOF
29631rm -f conftest.$ac_objext
29632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029633 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029634 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029635 grep -v '^ *+' conftest.er1 >conftest.err
29636 rm -f conftest.er1
29637 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029640 { ac_try='test -z "$ac_cxx_werror_flag"
29641 || test ! -s conftest.err'
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; } &&
29647 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29649 (eval $ac_try) 2>&5
29650 ac_status=$?
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029653 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029654else
29655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029656sed 's/^/| /' conftest.$ac_ext >&5
29657
Brian Gaeke90583492003-11-10 03:06:28 +000029658ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029659fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029661 ac_ext=c
29662ac_cpp='$CPP $CPPFLAGS'
29663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29665ac_compiler_gnu=$ac_cv_c_compiler_gnu
29666
29667fi
29668echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29669echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029670 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29671 then
John Criswell9f011862004-09-24 18:28:00 +000029672
29673cat >>confdefs.h <<\_ACEOF
29674#define HAVE_STD_EXT_HASH_SET 1
29675_ACEOF
29676
29677 else
29678
29679cat >>confdefs.h <<\_ACEOF
29680#define HAVE_STD_EXT_HASH_SET 0
29681_ACEOF
29682
Brian Gaeke90583492003-11-10 03:06:28 +000029683 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029684
Brian Gaeke90583492003-11-10 03:06:28 +000029685 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29686echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29687if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29689else
29690
Brian Gaeke90583492003-11-10 03:06:28 +000029691 ac_ext=cc
29692ac_cpp='$CXXCPP $CPPFLAGS'
29693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29696
John Criswell7a73b802003-06-30 21:59:07 +000029697 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029698/* confdefs.h. */
29699_ACEOF
29700cat confdefs.h >>conftest.$ac_ext
29701cat >>conftest.$ac_ext <<_ACEOF
29702/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029703#include <ext/hash_set>
29704#ifdef HAVE_NAMESPACES
29705using namespace __gnu_cxx;
29706#endif
John Criswell7a73b802003-06-30 21:59:07 +000029707int
29708main ()
29709{
Brian Gaeke90583492003-11-10 03:06:28 +000029710hash_set<int> t;
29711 ;
29712 return 0;
29713}
29714_ACEOF
29715rm -f conftest.$ac_objext
29716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029717 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029718 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029719 grep -v '^ *+' conftest.er1 >conftest.err
29720 rm -f conftest.er1
29721 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029724 { ac_try='test -z "$ac_cxx_werror_flag"
29725 || test ! -s conftest.err'
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29728 ac_status=$?
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; } &&
29731 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733 (eval $ac_try) 2>&5
29734 ac_status=$?
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; }; then
29737 ac_cv_cxx_have_gnu_ext_hash_set=yes
29738else
29739 echo "$as_me: failed program was:" >&5
29740sed 's/^/| /' conftest.$ac_ext >&5
29741
29742ac_cv_cxx_have_gnu_ext_hash_set=no
29743fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029745 ac_ext=c
29746ac_cpp='$CPP $CPPFLAGS'
29747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29749ac_compiler_gnu=$ac_cv_c_compiler_gnu
29750
29751fi
29752echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29753echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029754 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29755 then
John Criswell9f011862004-09-24 18:28:00 +000029756
29757cat >>confdefs.h <<\_ACEOF
29758#define HAVE_GNU_EXT_HASH_SET 1
29759_ACEOF
29760
29761 else
29762
29763cat >>confdefs.h <<\_ACEOF
29764#define HAVE_GNU_EXT_HASH_SET 0
29765_ACEOF
29766
Brian Gaeke90583492003-11-10 03:06:28 +000029767 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029768
Brian Gaeke90583492003-11-10 03:06:28 +000029769 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29770echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29771if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29773else
29774
Brian Gaeke90583492003-11-10 03:06:28 +000029775 ac_ext=cc
29776ac_cpp='$CXXCPP $CPPFLAGS'
29777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29780
29781 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029782/* confdefs.h. */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h. */
29787#include <hash_set>
29788int
29789main ()
29790{
John Criswell7a73b802003-06-30 21:59:07 +000029791hash_set<int> t; return 0;
29792 ;
29793 return 0;
29794}
29795_ACEOF
29796rm -f conftest.$ac_objext
29797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029798 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029799 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029800 grep -v '^ *+' conftest.er1 >conftest.err
29801 rm -f conftest.er1
29802 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029805 { ac_try='test -z "$ac_cxx_werror_flag"
29806 || test ! -s conftest.err'
29807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808 (eval $ac_try) 2>&5
29809 ac_status=$?
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; } &&
29812 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029818 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029819else
29820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029821sed 's/^/| /' conftest.$ac_ext >&5
29822
Brian Gaeke90583492003-11-10 03:06:28 +000029823ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029824fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029826 ac_ext=c
29827ac_cpp='$CPP $CPPFLAGS'
29828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29830ac_compiler_gnu=$ac_cv_c_compiler_gnu
29831
John Criswell7a73b802003-06-30 21:59:07 +000029832fi
Brian Gaeke90583492003-11-10 03:06:28 +000029833echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29834echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029835 if test "$ac_cv_cxx_have_global_hash_set" = yes
29836 then
John Criswell9f011862004-09-24 18:28:00 +000029837
29838cat >>confdefs.h <<\_ACEOF
29839#define HAVE_GLOBAL_HASH_SET 1
29840_ACEOF
29841
29842 else
29843
29844cat >>confdefs.h <<\_ACEOF
29845#define HAVE_GLOBAL_HASH_SET 0
29846_ACEOF
29847
Brian Gaeke90583492003-11-10 03:06:28 +000029848 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029849
John Criswell7a73b802003-06-30 21:59:07 +000029850echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29851echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29852if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29853 echo $ECHO_N "(cached) $ECHO_C" >&6
29854else
29855
John Criswell7a73b802003-06-30 21:59:07 +000029856 ac_ext=cc
29857ac_cpp='$CXXCPP $CPPFLAGS'
29858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29861
29862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029863/* confdefs.h. */
29864_ACEOF
29865cat confdefs.h >>conftest.$ac_ext
29866cat >>conftest.$ac_ext <<_ACEOF
29867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029868#include <iterator>
29869#ifdef HAVE_NAMESPACES
29870using namespace std;
29871#endif
John Criswell7a73b802003-06-30 21:59:07 +000029872int
29873main ()
29874{
29875iterator<int,int,int> t; return 0;
29876 ;
29877 return 0;
29878}
29879_ACEOF
29880rm -f conftest.$ac_objext
29881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029882 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029884 grep -v '^ *+' conftest.er1 >conftest.err
29885 rm -f conftest.er1
29886 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029889 { ac_try='test -z "$ac_cxx_werror_flag"
29890 || test ! -s conftest.err'
29891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892 (eval $ac_try) 2>&5
29893 ac_status=$?
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; } &&
29896 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898 (eval $ac_try) 2>&5
29899 ac_status=$?
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; }; then
29902 ac_cv_cxx_have_std_iterator=yes
29903else
29904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029905sed 's/^/| /' conftest.$ac_ext >&5
29906
John Criswell7a73b802003-06-30 21:59:07 +000029907ac_cv_cxx_have_std_iterator=no
29908fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029910 ac_ext=c
29911ac_cpp='$CPP $CPPFLAGS'
29912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29914ac_compiler_gnu=$ac_cv_c_compiler_gnu
29915
29916
29917fi
29918echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29919echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029920if test "$ac_cv_cxx_have_std_iterator" = yes
29921then
John Criswell40468462004-09-24 21:19:06 +000029922
29923cat >>confdefs.h <<\_ACEOF
29924#define HAVE_STD_ITERATOR 1
29925_ACEOF
29926
29927else
29928
29929cat >>confdefs.h <<\_ACEOF
29930#define HAVE_STD_ITERATOR 0
29931_ACEOF
29932
John Criswell7a73b802003-06-30 21:59:07 +000029933fi
29934
29935echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29936echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29937if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29938 echo $ECHO_N "(cached) $ECHO_C" >&6
29939else
29940
John Criswell7a73b802003-06-30 21:59:07 +000029941 ac_ext=cc
29942ac_cpp='$CXXCPP $CPPFLAGS'
29943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29946
29947 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029948/* confdefs.h. */
29949_ACEOF
29950cat confdefs.h >>conftest.$ac_ext
29951cat >>conftest.$ac_ext <<_ACEOF
29952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029953#include <iterator>
29954#ifdef HAVE_NAMESPACES
29955using namespace std;
29956#endif
John Criswell7a73b802003-06-30 21:59:07 +000029957int
29958main ()
29959{
John Criswellc78022e2003-07-29 19:11:58 +000029960bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029961 ;
29962 return 0;
29963}
29964_ACEOF
29965rm -f conftest.$ac_objext
29966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029967 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029968 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029969 grep -v '^ *+' conftest.er1 >conftest.err
29970 rm -f conftest.er1
29971 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029974 { ac_try='test -z "$ac_cxx_werror_flag"
29975 || test ! -s conftest.err'
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; } &&
29981 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; }; then
29987 ac_cv_cxx_have_bi_iterator=yes
29988else
29989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029990sed 's/^/| /' conftest.$ac_ext >&5
29991
John Criswell7a73b802003-06-30 21:59:07 +000029992ac_cv_cxx_have_bi_iterator=no
29993fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029995 ac_ext=c
29996ac_cpp='$CPP $CPPFLAGS'
29997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29999ac_compiler_gnu=$ac_cv_c_compiler_gnu
30000
30001
30002fi
30003echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30004echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000030005if test "$ac_cv_cxx_have_bi_iterator" = yes
30006then
John Criswell40468462004-09-24 21:19:06 +000030007
30008cat >>confdefs.h <<\_ACEOF
30009#define HAVE_BI_ITERATOR 1
30010_ACEOF
30011
30012else
30013
30014cat >>confdefs.h <<\_ACEOF
30015#define HAVE_BI_ITERATOR 0
30016_ACEOF
30017
John Criswell7a73b802003-06-30 21:59:07 +000030018fi
30019
30020echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30021echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
30022if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30024else
30025
John Criswell7a73b802003-06-30 21:59:07 +000030026 ac_ext=cc
30027ac_cpp='$CXXCPP $CPPFLAGS'
30028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30031
30032 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030033/* confdefs.h. */
30034_ACEOF
30035cat confdefs.h >>conftest.$ac_ext
30036cat >>conftest.$ac_ext <<_ACEOF
30037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030038#include <iterator>
30039#ifdef HAVE_NAMESPACES
30040using namespace std;
30041#endif
John Criswell7a73b802003-06-30 21:59:07 +000030042int
30043main ()
30044{
John Criswellc78022e2003-07-29 19:11:58 +000030045forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000030046 ;
30047 return 0;
30048}
30049_ACEOF
30050rm -f conftest.$ac_objext
30051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030052 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030054 grep -v '^ *+' conftest.er1 >conftest.err
30055 rm -f conftest.er1
30056 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030059 { ac_try='test -z "$ac_cxx_werror_flag"
30060 || test ! -s conftest.err'
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; } &&
30066 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30069 ac_status=$?
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; }; then
30072 ac_cv_cxx_have_fwd_iterator=yes
30073else
30074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030075sed 's/^/| /' conftest.$ac_ext >&5
30076
John Criswell7a73b802003-06-30 21:59:07 +000030077ac_cv_cxx_have_fwd_iterator=no
30078fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030080 ac_ext=c
30081ac_cpp='$CPP $CPPFLAGS'
30082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30084ac_compiler_gnu=$ac_cv_c_compiler_gnu
30085
30086
30087fi
30088echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30089echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000030090if test "$ac_cv_cxx_have_fwd_iterator" = yes
30091then
John Criswell40468462004-09-24 21:19:06 +000030092
30093cat >>confdefs.h <<\_ACEOF
30094#define HAVE_FWD_ITERATOR 1
30095_ACEOF
30096
30097else
30098
30099cat >>confdefs.h <<\_ACEOF
30100#define HAVE_FWD_ITERATOR 0
30101_ACEOF
30102
John Criswell7a73b802003-06-30 21:59:07 +000030103fi
30104
30105
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030106echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30107echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30108if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30110else
30111 ac_ext=cc
30112ac_cpp='$CXXCPP $CPPFLAGS'
30113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30116
Reid Spencerabec8f92004-10-27 23:03:44 +000030117 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030118/* confdefs.h. */
30119_ACEOF
30120cat confdefs.h >>conftest.$ac_ext
30121cat >>conftest.$ac_ext <<_ACEOF
30122/* end confdefs.h. */
30123#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030124int
30125main ()
30126{
30127float f; isnan(f);
30128 ;
30129 return 0;
30130}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030131_ACEOF
30132rm -f conftest.$ac_objext
30133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030134 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030135 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030136 grep -v '^ *+' conftest.er1 >conftest.err
30137 rm -f conftest.er1
30138 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030141 { ac_try='test -z "$ac_cxx_werror_flag"
30142 || test ! -s conftest.err'
30143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 (eval $ac_try) 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; } &&
30148 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 ac_cv_func_isnan_in_math_h=yes
30155else
30156 echo "$as_me: failed program was:" >&5
30157sed 's/^/| /' conftest.$ac_ext >&5
30158
30159ac_cv_func_isnan_in_math_h=no
30160fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030162 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030163ac_cpp='$CPP $CPPFLAGS'
30164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30166ac_compiler_gnu=$ac_cv_c_compiler_gnu
30167
30168fi
30169echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30170echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030171
30172
30173if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030174
30175cat >>confdefs.h <<\_ACEOF
30176#define HAVE_ISNAN_IN_MATH_H 1
30177_ACEOF
30178
Reid Spencerabec8f92004-10-27 23:03:44 +000030179fi
30180
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030181echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30182echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30183if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30184 echo $ECHO_N "(cached) $ECHO_C" >&6
30185else
30186 ac_ext=cc
30187ac_cpp='$CXXCPP $CPPFLAGS'
30188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30191
Reid Spencerabec8f92004-10-27 23:03:44 +000030192 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030193/* confdefs.h. */
30194_ACEOF
30195cat confdefs.h >>conftest.$ac_ext
30196cat >>conftest.$ac_ext <<_ACEOF
30197/* end confdefs.h. */
30198#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030199int
30200main ()
30201{
30202float f; isnan(f);
30203 ;
30204 return 0;
30205}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030206_ACEOF
30207rm -f conftest.$ac_objext
30208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030209 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030210 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030211 grep -v '^ *+' conftest.er1 >conftest.err
30212 rm -f conftest.er1
30213 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030216 { ac_try='test -z "$ac_cxx_werror_flag"
30217 || test ! -s conftest.err'
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225 (eval $ac_try) 2>&5
30226 ac_status=$?
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
30229 ac_cv_func_isnan_in_cmath=yes
30230else
30231 echo "$as_me: failed program was:" >&5
30232sed 's/^/| /' conftest.$ac_ext >&5
30233
30234ac_cv_func_isnan_in_cmath=no
30235fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030237 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030238ac_cpp='$CPP $CPPFLAGS'
30239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30241ac_compiler_gnu=$ac_cv_c_compiler_gnu
30242
30243fi
30244echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30245echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030246
30247if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030248
30249cat >>confdefs.h <<\_ACEOF
30250#define HAVE_ISNAN_IN_CMATH 1
30251_ACEOF
30252
Reid Spencerabec8f92004-10-27 23:03:44 +000030253fi
30254
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030255echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30256echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30257if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30258 echo $ECHO_N "(cached) $ECHO_C" >&6
30259else
30260 ac_ext=cc
30261ac_cpp='$CXXCPP $CPPFLAGS'
30262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30265
Reid Spencerabec8f92004-10-27 23:03:44 +000030266 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030267/* confdefs.h. */
30268_ACEOF
30269cat confdefs.h >>conftest.$ac_ext
30270cat >>conftest.$ac_ext <<_ACEOF
30271/* end confdefs.h. */
30272#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030273int
30274main ()
30275{
30276float f; std::isnan(f);
30277 ;
30278 return 0;
30279}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030280_ACEOF
30281rm -f conftest.$ac_objext
30282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030283 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030284 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030285 grep -v '^ *+' conftest.er1 >conftest.err
30286 rm -f conftest.er1
30287 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030290 { ac_try='test -z "$ac_cxx_werror_flag"
30291 || test ! -s conftest.err'
30292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30293 (eval $ac_try) 2>&5
30294 ac_status=$?
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; } &&
30297 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30299 (eval $ac_try) 2>&5
30300 ac_status=$?
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); }; }; then
30303 ac_cv_func_std_isnan_in_cmath=yes
30304else
30305 echo "$as_me: failed program was:" >&5
30306sed 's/^/| /' conftest.$ac_ext >&5
30307
30308ac_cv_func_std_isnan_in_cmath=no
30309fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030311 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030312ac_cpp='$CPP $CPPFLAGS'
30313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30315ac_compiler_gnu=$ac_cv_c_compiler_gnu
30316
30317fi
30318echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30319echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030320
30321if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030322
30323cat >>confdefs.h <<\_ACEOF
30324#define HAVE_STD_ISNAN_IN_CMATH 1
30325_ACEOF
30326
Reid Spencerabec8f92004-10-27 23:03:44 +000030327fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030328
30329
Brian Gaeke52a551d2004-07-21 03:14:12 +000030330echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30331echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30332if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30334else
30335 ac_ext=cc
30336ac_cpp='$CXXCPP $CPPFLAGS'
30337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30340
Reid Spencerabec8f92004-10-27 23:03:44 +000030341 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030342/* confdefs.h. */
30343_ACEOF
30344cat confdefs.h >>conftest.$ac_ext
30345cat >>conftest.$ac_ext <<_ACEOF
30346/* end confdefs.h. */
30347#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030348int
30349main ()
30350{
30351float f; isinf(f);
30352 ;
30353 return 0;
30354}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030355_ACEOF
30356rm -f conftest.$ac_objext
30357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030358 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030359 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030360 grep -v '^ *+' conftest.er1 >conftest.err
30361 rm -f conftest.er1
30362 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030365 { ac_try='test -z "$ac_cxx_werror_flag"
30366 || test ! -s conftest.err'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; } &&
30372 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30378 ac_cv_func_isinf_in_math_h=yes
30379else
30380 echo "$as_me: failed program was:" >&5
30381sed 's/^/| /' conftest.$ac_ext >&5
30382
30383ac_cv_func_isinf_in_math_h=no
30384fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030386 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030387ac_cpp='$CPP $CPPFLAGS'
30388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30390ac_compiler_gnu=$ac_cv_c_compiler_gnu
30391
30392fi
30393echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30394echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030395
30396if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030397
30398cat >>confdefs.h <<\_ACEOF
30399#define HAVE_ISINF_IN_MATH_H 1
30400_ACEOF
30401
Reid Spencerabec8f92004-10-27 23:03:44 +000030402fi
30403
Brian Gaeke52a551d2004-07-21 03:14:12 +000030404echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30405echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30406if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30407 echo $ECHO_N "(cached) $ECHO_C" >&6
30408else
30409 ac_ext=cc
30410ac_cpp='$CXXCPP $CPPFLAGS'
30411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30414
Reid Spencerabec8f92004-10-27 23:03:44 +000030415 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030416/* confdefs.h. */
30417_ACEOF
30418cat confdefs.h >>conftest.$ac_ext
30419cat >>conftest.$ac_ext <<_ACEOF
30420/* end confdefs.h. */
30421#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030422int
30423main ()
30424{
30425float f; isinf(f);
30426 ;
30427 return 0;
30428}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030429_ACEOF
30430rm -f conftest.$ac_objext
30431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030432 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030434 grep -v '^ *+' conftest.er1 >conftest.err
30435 rm -f conftest.er1
30436 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 { ac_try='test -z "$ac_cxx_werror_flag"
30440 || test ! -s conftest.err'
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; } &&
30446 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448 (eval $ac_try) 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; }; then
30452 ac_cv_func_isinf_in_cmath=yes
30453else
30454 echo "$as_me: failed program was:" >&5
30455sed 's/^/| /' conftest.$ac_ext >&5
30456
30457ac_cv_func_isinf_in_cmath=no
30458fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030460 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030461ac_cpp='$CPP $CPPFLAGS'
30462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30464ac_compiler_gnu=$ac_cv_c_compiler_gnu
30465
30466fi
30467echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30468echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030469
30470if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030471
30472cat >>confdefs.h <<\_ACEOF
30473#define HAVE_ISINF_IN_CMATH 1
30474_ACEOF
30475
Reid Spencerabec8f92004-10-27 23:03:44 +000030476fi
30477
Brian Gaeke52a551d2004-07-21 03:14:12 +000030478echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30479echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30480if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30481 echo $ECHO_N "(cached) $ECHO_C" >&6
30482else
30483 ac_ext=cc
30484ac_cpp='$CXXCPP $CPPFLAGS'
30485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30488
Reid Spencerabec8f92004-10-27 23:03:44 +000030489 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030490/* confdefs.h. */
30491_ACEOF
30492cat confdefs.h >>conftest.$ac_ext
30493cat >>conftest.$ac_ext <<_ACEOF
30494/* end confdefs.h. */
30495#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030496int
30497main ()
30498{
30499float f; std::isinf(f)}
30500 ;
30501 return 0;
30502}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030503_ACEOF
30504rm -f conftest.$ac_objext
30505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030506 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030508 grep -v '^ *+' conftest.er1 >conftest.err
30509 rm -f conftest.er1
30510 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030513 { ac_try='test -z "$ac_cxx_werror_flag"
30514 || test ! -s conftest.err'
30515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30516 (eval $ac_try) 2>&5
30517 ac_status=$?
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; } &&
30520 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30523 ac_status=$?
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 ac_cv_func_std_isinf_in_cmath=yes
30527else
30528 echo "$as_me: failed program was:" >&5
30529sed 's/^/| /' conftest.$ac_ext >&5
30530
30531ac_cv_func_std_isinf_in_cmath=no
30532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030534 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030535ac_cpp='$CPP $CPPFLAGS'
30536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30538ac_compiler_gnu=$ac_cv_c_compiler_gnu
30539
30540fi
30541echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30542echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030543
30544if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030545
30546cat >>confdefs.h <<\_ACEOF
30547#define HAVE_STD_ISINF_IN_CMATH 1
30548_ACEOF
30549
Reid Spencerabec8f92004-10-27 23:03:44 +000030550fi
30551
Brian Gaeked59a6472004-07-21 03:33:58 +000030552echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30553echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30554if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557 ac_ext=cc
30558ac_cpp='$CXXCPP $CPPFLAGS'
30559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30562
Reid Spencerabec8f92004-10-27 23:03:44 +000030563 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000030564/* confdefs.h. */
30565_ACEOF
30566cat confdefs.h >>conftest.$ac_ext
30567cat >>conftest.$ac_ext <<_ACEOF
30568/* end confdefs.h. */
30569#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030570int
30571main ()
30572{
30573float f; finite(f);
30574 ;
30575 return 0;
30576}
Brian Gaeked59a6472004-07-21 03:33:58 +000030577_ACEOF
30578rm -f conftest.$ac_objext
30579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030580 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030582 grep -v '^ *+' conftest.er1 >conftest.err
30583 rm -f conftest.er1
30584 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030587 { ac_try='test -z "$ac_cxx_werror_flag"
30588 || test ! -s conftest.err'
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; } &&
30594 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30596 (eval $ac_try) 2>&5
30597 ac_status=$?
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); }; }; then
30600 ac_cv_func_finite_in_ieeefp_h=yes
30601else
30602 echo "$as_me: failed program was:" >&5
30603sed 's/^/| /' conftest.$ac_ext >&5
30604
30605ac_cv_func_finite_in_ieeefp_h=no
30606fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030608 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030609ac_cpp='$CPP $CPPFLAGS'
30610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30612ac_compiler_gnu=$ac_cv_c_compiler_gnu
30613
30614fi
30615echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30616echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030617
Brian Gaeke6802b552004-10-28 05:06:45 +000030618if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030619
30620cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030621#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030622_ACEOF
30623
Reid Spencerabec8f92004-10-27 23:03:44 +000030624fi
30625
30626
30627
John Criswell7a73b802003-06-30 21:59:07 +000030628
30629
30630for ac_header in stdlib.h unistd.h
30631do
30632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30633if eval "test \"\${$as_ac_Header+set}\" = set"; then
30634 echo "$as_me:$LINENO: checking for $ac_header" >&5
30635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30636if eval "test \"\${$as_ac_Header+set}\" = set"; then
30637 echo $ECHO_N "(cached) $ECHO_C" >&6
30638fi
30639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30641else
30642 # Is the header compilable?
30643echo "$as_me:$LINENO: checking $ac_header usability" >&5
30644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30645cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030646/* confdefs.h. */
30647_ACEOF
30648cat confdefs.h >>conftest.$ac_ext
30649cat >>conftest.$ac_ext <<_ACEOF
30650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030651$ac_includes_default
30652#include <$ac_header>
30653_ACEOF
30654rm -f conftest.$ac_objext
30655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030656 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030657 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030658 grep -v '^ *+' conftest.er1 >conftest.err
30659 rm -f conftest.er1
30660 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030663 { ac_try='test -z "$ac_c_werror_flag"
30664 || test ! -s conftest.err'
30665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30666 (eval $ac_try) 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; } &&
30670 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30673 ac_status=$?
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; }; then
30676 ac_header_compiler=yes
30677else
30678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030679sed 's/^/| /' conftest.$ac_ext >&5
30680
John Criswell7a73b802003-06-30 21:59:07 +000030681ac_header_compiler=no
30682fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30685echo "${ECHO_T}$ac_header_compiler" >&6
30686
30687# Is the header present?
30688echo "$as_me:$LINENO: checking $ac_header presence" >&5
30689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30690cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030691/* confdefs.h. */
30692_ACEOF
30693cat confdefs.h >>conftest.$ac_ext
30694cat >>conftest.$ac_ext <<_ACEOF
30695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030696#include <$ac_header>
30697_ACEOF
30698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30700 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030701 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030702 rm -f conftest.er1
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } >/dev/null; then
30706 if test -s conftest.err; then
30707 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030709 else
30710 ac_cpp_err=
30711 fi
30712else
30713 ac_cpp_err=yes
30714fi
30715if test -z "$ac_cpp_err"; then
30716 ac_header_preproc=yes
30717else
30718 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030719sed 's/^/| /' conftest.$ac_ext >&5
30720
John Criswell7a73b802003-06-30 21:59:07 +000030721 ac_header_preproc=no
30722fi
30723rm -f conftest.err conftest.$ac_ext
30724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30725echo "${ECHO_T}$ac_header_preproc" >&6
30726
30727# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30729 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30734 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030735 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030736 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030749 (
30750 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030751## ----------------------------------- ##
30752## Report this to llvmbugs@cs.uiuc.edu ##
30753## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030754_ASBOX
30755 ) |
30756 sed "s/^/$as_me: WARNING: /" >&2
30757 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030758esac
30759echo "$as_me:$LINENO: checking for $ac_header" >&5
30760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30761if eval "test \"\${$as_ac_Header+set}\" = set"; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30763else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030764 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030765fi
30766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30768
30769fi
30770if test `eval echo '${'$as_ac_Header'}'` = yes; then
30771 cat >>confdefs.h <<_ACEOF
30772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30773_ACEOF
30774
30775fi
30776
30777done
30778
30779
30780for ac_func in getpagesize
30781do
30782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30783echo "$as_me:$LINENO: checking for $ac_func" >&5
30784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30785if eval "test \"\${$as_ac_var+set}\" = set"; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30787else
30788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030789/* confdefs.h. */
30790_ACEOF
30791cat confdefs.h >>conftest.$ac_ext
30792cat >>conftest.$ac_ext <<_ACEOF
30793/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30796#define $ac_func innocuous_$ac_func
30797
John Criswell7a73b802003-06-30 21:59:07 +000030798/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030799 which can conflict with char $ac_func (); below.
30800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030802
John Criswell0c38eaf2003-09-10 15:17:25 +000030803#ifdef __STDC__
30804# include <limits.h>
30805#else
30806# include <assert.h>
30807#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030808
30809#undef $ac_func
30810
John Criswell7a73b802003-06-30 21:59:07 +000030811/* Override any gcc2 internal prototype to avoid an error. */
30812#ifdef __cplusplus
30813extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030814{
John Criswell7a73b802003-06-30 21:59:07 +000030815#endif
30816/* We use char because int might match the return type of a gcc2
30817 builtin and then its argument prototype would still apply. */
30818char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030819/* The GNU C library defines this for functions which it implements
30820 to always fail with ENOSYS. Some functions are actually named
30821 something starting with __ and the normal name is an alias. */
30822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30823choke me
30824#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030825char (*f) () = $ac_func;
30826#endif
30827#ifdef __cplusplus
30828}
John Criswell7a73b802003-06-30 21:59:07 +000030829#endif
30830
John Criswell0c38eaf2003-09-10 15:17:25 +000030831int
30832main ()
30833{
30834return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030835 ;
30836 return 0;
30837}
30838_ACEOF
30839rm -f conftest.$ac_objext conftest$ac_exeext
30840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030841 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030842 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030843 grep -v '^ *+' conftest.er1 >conftest.err
30844 rm -f conftest.er1
30845 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030848 { ac_try='test -z "$ac_c_werror_flag"
30849 || test ! -s conftest.err'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30852 ac_status=$?
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; } &&
30855 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; }; then
30861 eval "$as_ac_var=yes"
30862else
30863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030864sed 's/^/| /' conftest.$ac_ext >&5
30865
John Criswell7a73b802003-06-30 21:59:07 +000030866eval "$as_ac_var=no"
30867fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030868rm -f conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030870fi
30871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30873if test `eval echo '${'$as_ac_var'}'` = yes; then
30874 cat >>confdefs.h <<_ACEOF
30875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30876_ACEOF
30877
30878fi
30879done
30880
30881echo "$as_me:$LINENO: checking for working mmap" >&5
30882echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30883if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30885else
30886 if test "$cross_compiling" = yes; then
30887 ac_cv_func_mmap_fixed_mapped=no
30888else
30889 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030890/* confdefs.h. */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030895$ac_includes_default
30896/* malloc might have been renamed as rpl_malloc. */
30897#undef malloc
30898
30899/* Thanks to Mike Haertel and Jim Avera for this test.
30900 Here is a matrix of mmap possibilities:
30901 mmap private not fixed
30902 mmap private fixed at somewhere currently unmapped
30903 mmap private fixed at somewhere already mapped
30904 mmap shared not fixed
30905 mmap shared fixed at somewhere currently unmapped
30906 mmap shared fixed at somewhere already mapped
30907 For private mappings, we should verify that changes cannot be read()
30908 back from the file, nor mmap's back from the file at a different
30909 address. (There have been systems where private was not correctly
30910 implemented like the infamous i386 svr4.0, and systems where the
30911 VM page cache was not coherent with the file system buffer cache
30912 like early versions of FreeBSD and possibly contemporary NetBSD.)
30913 For shared mappings, we should conversely verify that changes get
30914 propagated back to all the places they're supposed to be.
30915
30916 Grep wants private fixed already mapped.
30917 The main things grep needs to know about mmap are:
30918 * does it exist and is it safe to write into the mmap'd area
30919 * how to use it (BSD variants) */
30920
30921#include <fcntl.h>
30922#include <sys/mman.h>
30923
30924#if !STDC_HEADERS && !HAVE_STDLIB_H
30925char *malloc ();
30926#endif
30927
30928/* This mess was copied from the GNU getpagesize.h. */
30929#if !HAVE_GETPAGESIZE
30930/* Assume that all systems that can run configure have sys/param.h. */
30931# if !HAVE_SYS_PARAM_H
30932# define HAVE_SYS_PARAM_H 1
30933# endif
30934
30935# ifdef _SC_PAGESIZE
30936# define getpagesize() sysconf(_SC_PAGESIZE)
30937# else /* no _SC_PAGESIZE */
30938# if HAVE_SYS_PARAM_H
30939# include <sys/param.h>
30940# ifdef EXEC_PAGESIZE
30941# define getpagesize() EXEC_PAGESIZE
30942# else /* no EXEC_PAGESIZE */
30943# ifdef NBPG
30944# define getpagesize() NBPG * CLSIZE
30945# ifndef CLSIZE
30946# define CLSIZE 1
30947# endif /* no CLSIZE */
30948# else /* no NBPG */
30949# ifdef NBPC
30950# define getpagesize() NBPC
30951# else /* no NBPC */
30952# ifdef PAGESIZE
30953# define getpagesize() PAGESIZE
30954# endif /* PAGESIZE */
30955# endif /* no NBPC */
30956# endif /* no NBPG */
30957# endif /* no EXEC_PAGESIZE */
30958# else /* no HAVE_SYS_PARAM_H */
30959# define getpagesize() 8192 /* punt totally */
30960# endif /* no HAVE_SYS_PARAM_H */
30961# endif /* no _SC_PAGESIZE */
30962
30963#endif /* no HAVE_GETPAGESIZE */
30964
30965int
30966main ()
30967{
30968 char *data, *data2, *data3;
30969 int i, pagesize;
30970 int fd;
30971
30972 pagesize = getpagesize ();
30973
30974 /* First, make a file with some known garbage in it. */
30975 data = (char *) malloc (pagesize);
30976 if (!data)
30977 exit (1);
30978 for (i = 0; i < pagesize; ++i)
30979 *(data + i) = rand ();
30980 umask (0);
30981 fd = creat ("conftest.mmap", 0600);
30982 if (fd < 0)
30983 exit (1);
30984 if (write (fd, data, pagesize) != pagesize)
30985 exit (1);
30986 close (fd);
30987
30988 /* Next, try to mmap the file at a fixed address which already has
30989 something else allocated at it. If we can, also make sure that
30990 we see the same garbage. */
30991 fd = open ("conftest.mmap", O_RDWR);
30992 if (fd < 0)
30993 exit (1);
30994 data2 = (char *) malloc (2 * pagesize);
30995 if (!data2)
30996 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030997 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030998 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030999 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000031000 exit (1);
31001 for (i = 0; i < pagesize; ++i)
31002 if (*(data + i) != *(data2 + i))
31003 exit (1);
31004
31005 /* Finally, make sure that changes to the mapped area do not
31006 percolate back to the file as seen by read(). (This is a bug on
31007 some variants of i386 svr4.0.) */
31008 for (i = 0; i < pagesize; ++i)
31009 *(data2 + i) = *(data2 + i) + 1;
31010 data3 = (char *) malloc (pagesize);
31011 if (!data3)
31012 exit (1);
31013 if (read (fd, data3, pagesize) != pagesize)
31014 exit (1);
31015 for (i = 0; i < pagesize; ++i)
31016 if (*(data + i) != *(data3 + i))
31017 exit (1);
31018 close (fd);
31019 exit (0);
31020}
31021_ACEOF
31022rm -f conftest$ac_exeext
31023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024 (eval $ac_link) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029 (eval $ac_try) 2>&5
31030 ac_status=$?
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ac_cv_func_mmap_fixed_mapped=yes
31034else
31035 echo "$as_me: program exited with status $ac_status" >&5
31036echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031037sed 's/^/| /' conftest.$ac_ext >&5
31038
John Criswell7a73b802003-06-30 21:59:07 +000031039( exit $ac_status )
31040ac_cv_func_mmap_fixed_mapped=no
31041fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031042rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031043fi
31044fi
31045echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31046echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31047if test $ac_cv_func_mmap_fixed_mapped = yes; then
31048
31049cat >>confdefs.h <<\_ACEOF
31050#define HAVE_MMAP 1
31051_ACEOF
31052
31053fi
31054rm -f conftest.mmap
31055
31056echo "$as_me:$LINENO: checking for mmap of files" >&5
31057echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31058if test "${ac_cv_func_mmap_file+set}" = set; then
31059 echo $ECHO_N "(cached) $ECHO_C" >&6
31060else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031061 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000031062ac_cpp='$CPP $CPPFLAGS'
31063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065ac_compiler_gnu=$ac_cv_c_compiler_gnu
31066
31067 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031068 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000031069else
31070 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031071
Reid Spencer777ce172004-09-20 04:09:56 +000031072 /* confdefs.h. */
31073_ACEOF
31074cat confdefs.h >>conftest.$ac_ext
31075cat >>conftest.$ac_ext <<_ACEOF
31076/* end confdefs.h. */
31077
John Criswell7a73b802003-06-30 21:59:07 +000031078#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000031079#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000031080#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000031081
31082int
31083main ()
31084{
John Criswell7a73b802003-06-30 21:59:07 +000031085
31086 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000031087 fd = creat ("foo",0777);
31088 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31089 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000031090 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000031091 ;
31092 return 0;
31093}
John Criswell7a73b802003-06-30 21:59:07 +000031094_ACEOF
31095rm -f conftest$ac_exeext
31096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31097 (eval $ac_link) 2>&5
31098 ac_status=$?
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 ac_cv_func_mmap_file=yes
31107else
31108 echo "$as_me: program exited with status $ac_status" >&5
31109echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031110sed 's/^/| /' conftest.$ac_ext >&5
31111
John Criswell7a73b802003-06-30 21:59:07 +000031112( exit $ac_status )
31113ac_cv_func_mmap_file=no
31114fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031116fi
31117 ac_ext=c
31118ac_cpp='$CPP $CPPFLAGS'
31119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31121ac_compiler_gnu=$ac_cv_c_compiler_gnu
31122
31123
31124fi
31125echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31126echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31127if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000031128
31129cat >>confdefs.h <<\_ACEOF
31130#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000031131_ACEOF
31132
31133 MMAP_FILE=yes
31134
31135fi
31136
Reid Spencer7931a782004-12-27 06:15:02 +000031137echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31138echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31139if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31140 echo $ECHO_N "(cached) $ECHO_C" >&6
31141else
Reid Spencer582a23c2004-12-29 07:07:57 +000031142 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000031143 ac_cv_need_dev_zero_for_mmap=yes
31144 else
31145 ac_cv_need_dev_zero_for_mmap=no
31146 fi
31147
31148fi
31149echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31150echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31151if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31152
31153cat >>confdefs.h <<\_ACEOF
31154#define NEED_DEV_ZERO_FOR_MMAP 1
31155_ACEOF
31156
31157fi
John Criswell7a73b802003-06-30 21:59:07 +000031158echo "$as_me:$LINENO: checking for mprotect" >&5
31159echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31160if test "${ac_cv_func_mprotect+set}" = set; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31162else
31163 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031164/* confdefs.h. */
31165_ACEOF
31166cat confdefs.h >>conftest.$ac_ext
31167cat >>conftest.$ac_ext <<_ACEOF
31168/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031169/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31171#define mprotect innocuous_mprotect
31172
John Criswell7a73b802003-06-30 21:59:07 +000031173/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000031174 which can conflict with char mprotect (); below.
31175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31176 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031177
John Criswell0c38eaf2003-09-10 15:17:25 +000031178#ifdef __STDC__
31179# include <limits.h>
31180#else
31181# include <assert.h>
31182#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000031183
31184#undef mprotect
31185
John Criswell7a73b802003-06-30 21:59:07 +000031186/* Override any gcc2 internal prototype to avoid an error. */
31187#ifdef __cplusplus
31188extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000031189{
John Criswell7a73b802003-06-30 21:59:07 +000031190#endif
31191/* We use char because int might match the return type of a gcc2
31192 builtin and then its argument prototype would still apply. */
31193char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000031194/* The GNU C library defines this for functions which it implements
31195 to always fail with ENOSYS. Some functions are actually named
31196 something starting with __ and the normal name is an alias. */
31197#if defined (__stub_mprotect) || defined (__stub___mprotect)
31198choke me
31199#else
John Criswell0c38eaf2003-09-10 15:17:25 +000031200char (*f) () = mprotect;
31201#endif
31202#ifdef __cplusplus
31203}
John Criswell7a73b802003-06-30 21:59:07 +000031204#endif
31205
John Criswell0c38eaf2003-09-10 15:17:25 +000031206int
31207main ()
31208{
31209return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000031210 ;
31211 return 0;
31212}
31213_ACEOF
31214rm -f conftest.$ac_objext conftest$ac_exeext
31215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031216 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031217 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031218 grep -v '^ *+' conftest.er1 >conftest.err
31219 rm -f conftest.er1
31220 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000031223 { ac_try='test -z "$ac_c_werror_flag"
31224 || test ! -s conftest.err'
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000031231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31232 (eval $ac_try) 2>&5
31233 ac_status=$?
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); }; }; then
31236 ac_cv_func_mprotect=yes
31237else
31238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031239sed 's/^/| /' conftest.$ac_ext >&5
31240
John Criswell7a73b802003-06-30 21:59:07 +000031241ac_cv_func_mprotect=no
31242fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031243rm -f conftest.err conftest.$ac_objext \
31244 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031245fi
31246echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31247echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31248if test $ac_cv_func_mprotect = yes; then
31249 :
31250else
31251 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31252echo "$as_me: error: Function mprotect() required but not found" >&2;}
31253 { (exit 1); exit 1; }; }
31254fi
31255
31256
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031257if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031258then
Reid Spencer582a23c2004-12-29 07:07:57 +000031259 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31260echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031261fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031263then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031264 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31265echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031266fi
John Criswell7a73b802003-06-30 21:59:07 +000031267
31268
Brian Gaekef3b24102003-11-16 18:38:14 +000031269echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31270echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031271if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31272 echo $ECHO_N "(cached) $ECHO_C" >&6
31273else
31274 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031275if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031276 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000031277 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031278 if test $? -eq 0 ; then
31279 llvm_cv_llvmgcc_sanity="yes"
31280 fi
31281 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031282fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031283fi
31284echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31285echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31286
31287if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031288 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031289 LLVMCC1=$llvmcc1path
31290
Reid Spencer502935f2004-12-22 05:56:56 +000031291 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292 LLVMCC1PLUS=$llvmcc1pluspath
31293
Reid Spencer502935f2004-12-22 05:56:56 +000031294 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31295 LLVMGCCDIR=$llvmgccdir
31296
Reid Spencerb5d75b82006-05-09 00:31:01 +000031297 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031298 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31299 LLVMGCC_VERSION=$llvmgccversion
31300
31301 LLVMGCC_MAJVERS=$llvmgccmajvers
31302
Brian Gaekef3b24102003-11-16 18:38:14 +000031303fi
31304
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031305SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031306
31307
Reid Spencere9de0912004-08-20 09:03:57 +000031308# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309# information into substitutions that will end up in Makefile.config.in
31310# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000031311if test "${prefix}" == "NONE" ; then
31312 prefix="/usr/local"
31313fi
Reid Spencere9de0912004-08-20 09:03:57 +000031314eval LLVM_PREFIX="${prefix}";
31315eval LLVM_BINDIR="${prefix}/bin";
31316eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031317eval LLVM_DATADIR="${prefix}/share/llvm";
31318eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31319eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031320eval LLVM_INCLUDEDIR="${prefix}/include";
31321eval LLVM_INFODIR="${prefix}/info";
31322eval LLVM_MANDIR="${prefix}/man";
31323LLVM_CONFIGTIME=`date`
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031335# Place the various directores into the config.h file as #defines so that we
31336# can know about the installation paths within LLVM.
31337
Reid Spencere9de0912004-08-20 09:03:57 +000031338cat >>confdefs.h <<_ACEOF
31339#define LLVM_PREFIX "$LLVM_PREFIX"
31340_ACEOF
31341
31342
31343cat >>confdefs.h <<_ACEOF
31344#define LLVM_BINDIR "$LLVM_BINDIR"
31345_ACEOF
31346
31347
31348cat >>confdefs.h <<_ACEOF
31349#define LLVM_LIBDIR "$LLVM_LIBDIR"
31350_ACEOF
31351
31352
31353cat >>confdefs.h <<_ACEOF
31354#define LLVM_DATADIR "$LLVM_DATADIR"
31355_ACEOF
31356
31357
31358cat >>confdefs.h <<_ACEOF
31359#define LLVM_DATADIR "$LLVM_DOCSDIR"
31360_ACEOF
31361
31362
31363cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031364#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031365_ACEOF
31366
31367
31368cat >>confdefs.h <<_ACEOF
31369#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31370_ACEOF
31371
31372
31373cat >>confdefs.h <<_ACEOF
31374#define LLVM_INFODIR "$LLVM_INFODIR"
31375_ACEOF
31376
31377
31378cat >>confdefs.h <<_ACEOF
31379#define LLVM_MANDIR "$LLVM_MANDIR"
31380_ACEOF
31381
31382
31383cat >>confdefs.h <<_ACEOF
31384#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31385_ACEOF
31386
31387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031388
31389 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31390
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031391 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31392
31393 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31394
31395 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31396
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031397 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31398
31399
31400 ac_config_files="$ac_config_files Makefile.config"
31401
31402
Reid Spencer1f319422004-11-29 04:56:35 +000031403 ac_config_files="$ac_config_files docs/doxygen.cfg"
31404
31405
Reid Spencere198afc2006-04-20 22:15:30 +000031406 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000031407
31408
Reid Spencerc0682832005-02-24 19:05:19 +000031409 ac_config_commands="$ac_config_commands setup"
31410
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031411 ac_config_commands="$ac_config_commands Makefile"
31412
31413
31414 ac_config_commands="$ac_config_commands Makefile.common"
31415
31416
31417 ac_config_commands="$ac_config_commands examples/Makefile"
31418
31419
31420 ac_config_commands="$ac_config_commands lib/Makefile"
31421
31422
31423 ac_config_commands="$ac_config_commands runtime/Makefile"
31424
31425
31426 ac_config_commands="$ac_config_commands test/Makefile"
31427
31428
31429 ac_config_commands="$ac_config_commands test/Makefile.tests"
31430
31431
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031432 ac_config_commands="$ac_config_commands tools/Makefile"
31433
31434
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031435 ac_config_commands="$ac_config_commands utils/Makefile"
31436
31437
31438 ac_config_commands="$ac_config_commands projects/Makefile"
31439
31440
31441
John Criswell7a73b802003-06-30 21:59:07 +000031442cat >confcache <<\_ACEOF
31443# This file is a shell script that caches the results of configure
31444# tests run on this system so they can be shared between configure
31445# scripts and configure runs, see configure's option --config-cache.
31446# It is not useful on other systems. If it contains results you don't
31447# want to keep, you may remove or edit it.
31448#
31449# config.status only pays attention to the cache file if you give it
31450# the --recheck option to rerun configure.
31451#
John Criswell0c38eaf2003-09-10 15:17:25 +000031452# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000031453# loading this file, other *unset* `ac_cv_foo' will be assigned the
31454# following values.
31455
31456_ACEOF
31457
31458# The following way of writing the cache mishandles newlines in values,
31459# but we know of no workaround that is simple, portable, and efficient.
31460# So, don't put newlines in cache variables' values.
31461# Ultrix sh set writes to stderr and can't be redirected directly,
31462# and sets the high bit in the cache file unless we assign to the vars.
31463{
31464 (set) 2>&1 |
31465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31466 *ac_space=\ *)
31467 # `set' does not quote correctly, so add quotes (double-quote
31468 # substitution turns \\\\ into \\, and sed turns \\ into \).
31469 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031470 "s/'/'\\\\''/g;
31471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000031472 ;;
31473 *)
31474 # `set' quotes correctly as required by POSIX, so do not add quotes.
31475 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031476 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000031477 ;;
31478 esac;
31479} |
31480 sed '
31481 t clear
31482 : clear
31483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31484 t end
31485 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31486 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000031487if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000031488 if test -w $cache_file; then
31489 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31490 cat confcache >$cache_file
31491 else
31492 echo "not updating unwritable cache $cache_file"
31493 fi
31494fi
31495rm -f confcache
31496
31497test "x$prefix" = xNONE && prefix=$ac_default_prefix
31498# Let make expand exec_prefix.
31499test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31500
31501# VPATH may cause trouble with some makes, so we remove $(srcdir),
31502# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31503# trailing colons and then remove the whole line if VPATH becomes empty
31504# (actually we leave an empty line to preserve line numbers).
31505if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031506 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000031507s/:*\$(srcdir):*/:/;
31508s/:*\${srcdir}:*/:/;
31509s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031510s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000031511s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031512s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000031513}'
31514fi
31515
31516DEFS=-DHAVE_CONFIG_H
31517
John Criswell0c38eaf2003-09-10 15:17:25 +000031518ac_libobjs=
31519ac_ltlibobjs=
31520for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31521 # 1. Remove the extension, and $U if already installed.
31522 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031523 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031524 # 2. Add them.
31525 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31526 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31527done
31528LIBOBJS=$ac_libobjs
31529
31530LTLIBOBJS=$ac_ltlibobjs
31531
31532
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031533if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31534 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31535Usually this means the macro was only invoked conditionally." >&5
31536echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31537Usually this means the macro was only invoked conditionally." >&2;}
31538 { (exit 1); exit 1; }; }
31539fi
31540if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31541 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31542Usually this means the macro was only invoked conditionally." >&5
31543echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31544Usually this means the macro was only invoked conditionally." >&2;}
31545 { (exit 1); exit 1; }; }
31546fi
John Criswell7a73b802003-06-30 21:59:07 +000031547
31548: ${CONFIG_STATUS=./config.status}
31549ac_clean_files_save=$ac_clean_files
31550ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31551{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31552echo "$as_me: creating $CONFIG_STATUS" >&6;}
31553cat >$CONFIG_STATUS <<_ACEOF
31554#! $SHELL
31555# Generated by $as_me.
31556# Run this file to recreate the current configuration.
31557# Compiler output produced by configure, useful for debugging
31558# configure, is in config.log if it exists.
31559
31560debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000031561ac_cs_recheck=false
31562ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000031563SHELL=\${CONFIG_SHELL-$SHELL}
31564_ACEOF
31565
31566cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031567## --------------------- ##
31568## M4sh Initialization. ##
31569## --------------------- ##
31570
31571# Be Bourne compatible
31572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31573 emulate sh
31574 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31576 # is contrary to our usage. Disable this feature.
31577 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031578elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31579 set -o posix
31580fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031581DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031582
John Criswell7a73b802003-06-30 21:59:07 +000031583# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031584if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031585 as_unset=unset
31586else
31587 as_unset=false
31588fi
31589
John Criswell0c38eaf2003-09-10 15:17:25 +000031590
31591# Work around bugs in pre-3.0 UWIN ksh.
31592$as_unset ENV MAIL MAILPATH
31593PS1='$ '
31594PS2='> '
31595PS4='+ '
31596
31597# NLS nuisances.
31598for as_var in \
31599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31601 LC_TELEPHONE LC_TIME
31602do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031604 eval $as_var=C; export $as_var
31605 else
31606 $as_unset $as_var
31607 fi
31608done
31609
31610# Required to use basename.
31611if expr a : '\(a\)' >/dev/null 2>&1; then
31612 as_expr=expr
31613else
31614 as_expr=false
31615fi
31616
31617if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31618 as_basename=basename
31619else
31620 as_basename=false
31621fi
John Criswell7a73b802003-06-30 21:59:07 +000031622
31623
31624# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031625as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031626$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31627 X"$0" : 'X\(//\)$' \| \
31628 X"$0" : 'X\(/\)$' \| \
31629 . : '\(.\)' 2>/dev/null ||
31630echo X/"$0" |
31631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31632 /^X\/\(\/\/\)$/{ s//\1/; q; }
31633 /^X\/\(\/\).*/{ s//\1/; q; }
31634 s/.*/./; q'`
31635
John Criswell0c38eaf2003-09-10 15:17:25 +000031636
John Criswell7a73b802003-06-30 21:59:07 +000031637# PATH needs CR, and LINENO needs CR and PATH.
31638# Avoid depending upon Character Ranges.
31639as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31641as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31642as_cr_digits='0123456789'
31643as_cr_alnum=$as_cr_Letters$as_cr_digits
31644
31645# The user is always right.
31646if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031647 echo "#! /bin/sh" >conf$$.sh
31648 echo "exit 0" >>conf$$.sh
31649 chmod +x conf$$.sh
31650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031651 PATH_SEPARATOR=';'
31652 else
31653 PATH_SEPARATOR=:
31654 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031655 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031656fi
31657
31658
31659 as_lineno_1=$LINENO
31660 as_lineno_2=$LINENO
31661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31662 test "x$as_lineno_1" != "x$as_lineno_2" &&
31663 test "x$as_lineno_3" = "x$as_lineno_2" || {
31664 # Find who we are. Look in the path if we contain no path at all
31665 # relative or not.
31666 case $0 in
31667 *[\\/]* ) as_myself=$0 ;;
31668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31669for as_dir in $PATH
31670do
31671 IFS=$as_save_IFS
31672 test -z "$as_dir" && as_dir=.
31673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31674done
31675
31676 ;;
31677 esac
31678 # We did not find ourselves, most probably we were run as `sh COMMAND'
31679 # in which case we are not to be found in the path.
31680 if test "x$as_myself" = x; then
31681 as_myself=$0
31682 fi
31683 if test ! -f "$as_myself"; then
31684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31685echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31686 { (exit 1); exit 1; }; }
31687 fi
31688 case $CONFIG_SHELL in
31689 '')
31690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31691for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31692do
31693 IFS=$as_save_IFS
31694 test -z "$as_dir" && as_dir=.
31695 for as_base in sh bash ksh sh5; do
31696 case $as_dir in
31697 /*)
31698 if ("$as_dir/$as_base" -c '
31699 as_lineno_1=$LINENO
31700 as_lineno_2=$LINENO
31701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31702 test "x$as_lineno_1" != "x$as_lineno_2" &&
31703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031704 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31705 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031706 CONFIG_SHELL=$as_dir/$as_base
31707 export CONFIG_SHELL
31708 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31709 fi;;
31710 esac
31711 done
31712done
31713;;
31714 esac
31715
31716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31717 # uniformly replaced by the line number. The first 'sed' inserts a
31718 # line-number line before each line; the second 'sed' does the real
31719 # work. The second script uses 'N' to pair each line-number line
31720 # with the numbered line, and appends trailing '-' during
31721 # substitution so that $LINENO is not a special case at line end.
31722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31724 sed '=' <$as_myself |
31725 sed '
31726 N
31727 s,$,-,
31728 : loop
31729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31730 t loop
31731 s,-$,,
31732 s,^['$as_cr_digits']*\n,,
31733 ' >$as_me.lineno &&
31734 chmod +x $as_me.lineno ||
31735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31736echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31737 { (exit 1); exit 1; }; }
31738
31739 # Don't try to exec as it changes $[0], causing all sort of problems
31740 # (the dirname of $[0] is not the place where we might find the
31741 # original and so on. Autoconf is especially sensible to this).
31742 . ./$as_me.lineno
31743 # Exit status is that of the last command.
31744 exit
31745}
31746
31747
31748case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31749 *c*,-n*) ECHO_N= ECHO_C='
31750' ECHO_T=' ' ;;
31751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31753esac
31754
31755if expr a : '\(a\)' >/dev/null 2>&1; then
31756 as_expr=expr
31757else
31758 as_expr=false
31759fi
31760
31761rm -f conf$$ conf$$.exe conf$$.file
31762echo >conf$$.file
31763if ln -s conf$$.file conf$$ 2>/dev/null; then
31764 # We could just check for DJGPP; but this test a) works b) is more generic
31765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31766 if test -f conf$$.exe; then
31767 # Don't use ln at all; we don't have any links
31768 as_ln_s='cp -p'
31769 else
31770 as_ln_s='ln -s'
31771 fi
31772elif ln conf$$.file conf$$ 2>/dev/null; then
31773 as_ln_s=ln
31774else
31775 as_ln_s='cp -p'
31776fi
31777rm -f conf$$ conf$$.exe conf$$.file
31778
John Criswell0c38eaf2003-09-10 15:17:25 +000031779if mkdir -p . 2>/dev/null; then
31780 as_mkdir_p=:
31781else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031782 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031783 as_mkdir_p=false
31784fi
31785
John Criswell7a73b802003-06-30 21:59:07 +000031786as_executable_p="test -f"
31787
31788# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031790
31791# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031793
31794
31795# IFS
31796# We need space, tab and new line, in precisely that order.
31797as_nl='
31798'
31799IFS=" $as_nl"
31800
31801# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031802$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031803
31804exec 6>&1
31805
31806# Open the log real soon, to keep \$[0] and so on meaningful, and to
31807# report actual input values of CONFIG_FILES etc. instead of their
31808# values after options handling. Logging --version etc. is OK.
31809exec 5>>config.log
31810{
31811 echo
31812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31813## Running $as_me. ##
31814_ASBOX
31815} >&5
31816cat >&5 <<_CSEOF
31817
Reid Spencer1bc68642006-07-27 23:00:30 +000031818This file was extended by llvm $as_me 1.9cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031819generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031820
31821 CONFIG_FILES = $CONFIG_FILES
31822 CONFIG_HEADERS = $CONFIG_HEADERS
31823 CONFIG_LINKS = $CONFIG_LINKS
31824 CONFIG_COMMANDS = $CONFIG_COMMANDS
31825 $ $0 $@
31826
31827_CSEOF
31828echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31829echo >&5
31830_ACEOF
31831
31832# Files that config.status was made for.
31833if test -n "$ac_config_files"; then
31834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31835fi
31836
31837if test -n "$ac_config_headers"; then
31838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31839fi
31840
31841if test -n "$ac_config_links"; then
31842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31843fi
31844
31845if test -n "$ac_config_commands"; then
31846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31847fi
31848
31849cat >>$CONFIG_STATUS <<\_ACEOF
31850
31851ac_cs_usage="\
31852\`$as_me' instantiates files from templates according to the
31853current configuration.
31854
31855Usage: $0 [OPTIONS] [FILE]...
31856
31857 -h, --help print this help, then exit
31858 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031859 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031860 -d, --debug don't remove temporary files
31861 --recheck update $as_me by reconfiguring in the same conditions
31862 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031863 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031864 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031865 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031866
31867Configuration files:
31868$config_files
31869
31870Configuration headers:
31871$config_headers
31872
John Criswellc764fbc2003-09-06 15:17:13 +000031873Configuration commands:
31874$config_commands
31875
John Criswell7a73b802003-06-30 21:59:07 +000031876Report bugs to <bug-autoconf@gnu.org>."
31877_ACEOF
31878
31879cat >>$CONFIG_STATUS <<_ACEOF
31880ac_cs_version="\\
Reid Spencer1bc68642006-07-27 23:00:30 +000031881llvm config.status 1.9cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031882configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31884
Reid Spencer2706f8c2004-09-19 23:53:36 +000031885Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031886This config.status script is free software; the Free Software Foundation
31887gives unlimited permission to copy, distribute and modify it."
31888srcdir=$srcdir
31889INSTALL="$INSTALL"
31890_ACEOF
31891
31892cat >>$CONFIG_STATUS <<\_ACEOF
31893# If no file are specified by the user, then we need to provide default
31894# value. By we need to know if files were specified by the user.
31895ac_need_defaults=:
31896while test $# != 0
31897do
31898 case $1 in
31899 --*=*)
31900 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31901 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031902 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031903 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031904 -*)
31905 ac_option=$1
31906 ac_optarg=$2
31907 ac_shift=shift
31908 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031909 *) # This is not an option, so the user has probably given explicit
31910 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031911 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031912 ac_need_defaults=false;;
31913 esac
31914
John Criswell0c38eaf2003-09-10 15:17:25 +000031915 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031916 # Handling of the options.
31917_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031918cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31920 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031921 --version | --vers* | -V )
31922 echo "$ac_cs_version"; exit 0 ;;
31923 --he | --h)
31924 # Conflict between --help and --header
31925 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31926Try \`$0 --help' for more information." >&5
31927echo "$as_me: error: ambiguous option: $1
31928Try \`$0 --help' for more information." >&2;}
31929 { (exit 1); exit 1; }; };;
31930 --help | --hel | -h )
31931 echo "$ac_cs_usage"; exit 0 ;;
31932 --debug | --d* | -d )
31933 debug=: ;;
31934 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031935 $ac_shift
31936 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031937 ac_need_defaults=false;;
31938 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031939 $ac_shift
31940 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031941 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31944 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031945
31946 # This is an error.
31947 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31948Try \`$0 --help' for more information." >&5
31949echo "$as_me: error: unrecognized option: $1
31950Try \`$0 --help' for more information." >&2;}
31951 { (exit 1); exit 1; }; } ;;
31952
31953 *) ac_config_targets="$ac_config_targets $1" ;;
31954
31955 esac
31956 shift
31957done
31958
John Criswell0c38eaf2003-09-10 15:17:25 +000031959ac_configure_extra_args=
31960
31961if $ac_cs_silent; then
31962 exec 6>/dev/null
31963 ac_configure_extra_args="$ac_configure_extra_args --silent"
31964fi
31965
31966_ACEOF
31967cat >>$CONFIG_STATUS <<_ACEOF
31968if \$ac_cs_recheck; then
31969 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31970 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31971fi
31972
John Criswell7a73b802003-06-30 21:59:07 +000031973_ACEOF
31974
John Criswellc764fbc2003-09-06 15:17:13 +000031975cat >>$CONFIG_STATUS <<_ACEOF
31976#
31977# INIT-COMMANDS section.
31978#
John Criswell7a73b802003-06-30 21:59:07 +000031979
Reid Spencerc0682832005-02-24 19:05:19 +000031980llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031981
31982_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031983
31984
31985
31986cat >>$CONFIG_STATUS <<\_ACEOF
31987for ac_config_target in $ac_config_targets
31988do
31989 case "$ac_config_target" in
31990 # Handling of arguments.
31991 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031992 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencere198afc2006-04-20 22:15:30 +000031993 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031994 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031995 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31996 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031997 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031998 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031999 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032000 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32001 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032002 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000032003 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032004 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000032005 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000032006 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000032007 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32008 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000032009 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000032010 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32011echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32012 { (exit 1); exit 1; }; };;
32013 esac
32014done
32015
32016# If the user did not use the arguments to specify the items to instantiate,
32017# then the envvar interface is used. Set only those that are not.
32018# We use the long form for the default assignment because of an extremely
32019# bizarre bug on SunOS 4.1.3.
32020if $ac_need_defaults; then
32021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000032023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000032024fi
32025
John Criswell0c38eaf2003-09-10 15:17:25 +000032026# Have a temporary directory for convenience. Make it in the build tree
32027# simply because there is no reason to put it here, and in addition,
32028# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000032029# Create a temporary directory, and hook for its removal unless debugging.
32030$debug ||
32031{
32032 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32033 trap '{ (exit 1); exit 1; }' 1 2 13 15
32034}
32035
32036# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000032037
John Criswell7a73b802003-06-30 21:59:07 +000032038{
John Criswell0c38eaf2003-09-10 15:17:25 +000032039 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000032040 test -n "$tmp" && test -d "$tmp"
32041} ||
32042{
John Criswell0c38eaf2003-09-10 15:17:25 +000032043 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000032044 (umask 077 && mkdir $tmp)
32045} ||
32046{
John Criswell0c38eaf2003-09-10 15:17:25 +000032047 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000032048 { (exit 1); exit 1; }
32049}
32050
32051_ACEOF
32052
32053cat >>$CONFIG_STATUS <<_ACEOF
32054
32055#
32056# CONFIG_FILES section.
32057#
32058
32059# No need to generate the scripts if there are no CONFIG_FILES.
32060# This happens for instance when ./config.status config.h
32061if test -n "\$CONFIG_FILES"; then
32062 # Protect against being on the right side of a sed subst in config.status.
32063 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32064 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32065s,@SHELL@,$SHELL,;t t
32066s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32067s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32068s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32069s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32070s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32071s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32072s,@exec_prefix@,$exec_prefix,;t t
32073s,@prefix@,$prefix,;t t
32074s,@program_transform_name@,$program_transform_name,;t t
32075s,@bindir@,$bindir,;t t
32076s,@sbindir@,$sbindir,;t t
32077s,@libexecdir@,$libexecdir,;t t
32078s,@datadir@,$datadir,;t t
32079s,@sysconfdir@,$sysconfdir,;t t
32080s,@sharedstatedir@,$sharedstatedir,;t t
32081s,@localstatedir@,$localstatedir,;t t
32082s,@libdir@,$libdir,;t t
32083s,@includedir@,$includedir,;t t
32084s,@oldincludedir@,$oldincludedir,;t t
32085s,@infodir@,$infodir,;t t
32086s,@mandir@,$mandir,;t t
32087s,@build_alias@,$build_alias,;t t
32088s,@host_alias@,$host_alias,;t t
32089s,@target_alias@,$target_alias,;t t
32090s,@DEFS@,$DEFS,;t t
32091s,@ECHO_C@,$ECHO_C,;t t
32092s,@ECHO_N@,$ECHO_N,;t t
32093s,@ECHO_T@,$ECHO_T,;t t
32094s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032095s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000032096s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032097s,@build@,$build,;t t
32098s,@build_cpu@,$build_cpu,;t t
32099s,@build_vendor@,$build_vendor,;t t
32100s,@build_os@,$build_os,;t t
32101s,@host@,$host,;t t
32102s,@host_cpu@,$host_cpu,;t t
32103s,@host_vendor@,$host_vendor,;t t
32104s,@host_os@,$host_os,;t t
32105s,@target@,$target,;t t
32106s,@target_cpu@,$target_cpu,;t t
32107s,@target_vendor@,$target_vendor,;t t
32108s,@target_os@,$target_os,;t t
32109s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000032110s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32111s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000032112s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032113s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032114s,@CC@,$CC,;t t
32115s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032116s,@LDFLAGS@,$LDFLAGS,;t t
32117s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032118s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032119s,@EXEEXT@,$EXEEXT,;t t
32120s,@OBJEXT@,$OBJEXT,;t t
Reid Spencere2cfe5d2006-07-26 21:14:56 +000032121s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32122s,@BUILD_CC@,$BUILD_CC,;t t
32123s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000032124s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032125s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000032126s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000032127s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032128s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000032129s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032130s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000032131s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000032132s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
Evan Chengcf9be262006-06-20 22:16:32 +000032133s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032134s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032135s,@CXX@,$CXX,;t t
32136s,@CXXFLAGS@,$CXXFLAGS,;t t
32137s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032138s,@LEX@,$LEX,;t t
32139s,@LEXLIB@,$LEXLIB,;t t
32140s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000032141s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032142s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000032143s,@BISON@,$BISON,;t t
Reid Spencer1bc68642006-07-27 23:00:30 +000032144s,@NM@,$NM,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032145s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032146s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000032147s,@CMP@,$CMP,;t t
32148s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032149s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032150s,@FIND@,$FIND,;t t
32151s,@GREP@,$GREP,;t t
32152s,@MKDIR@,$MKDIR,;t t
32153s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032154s,@RANLIB@,$RANLIB,;t t
32155s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032156s,@RM@,$RM,;t t
32157s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000032158s,@TAR@,$TAR,;t t
Reid Spenceraea7fe42006-07-28 05:05:00 +000032159s,@BINPWD@,$BINPWD,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000032160s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencercaf0ece2006-06-05 15:54:38 +000032161s,@DOT@,$DOT,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000032162s,@GV@,$GV,;t t
Reid Spencerecbd2422006-06-02 23:13:18 +000032163s,@DOTTY@,$DOTTY,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000032164s,@PERL@,$PERL,;t t
32165s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032166s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32167s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32168s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032169s,@BZIP2@,$BZIP2,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032170s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032171s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032172s,@GROFF@,$GROFF,;t t
32173s,@GZIP@,$GZIP,;t t
32174s,@POD2HTML@,$POD2HTML,;t t
32175s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000032176s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000032177s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000032178s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000032179s,@EGREP@,$EGREP,;t t
32180s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32181s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32182s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32183s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32184s,@LIBADD_DL@,$LIBADD_DL,;t t
32185s,@ECHO@,$ECHO,;t t
32186s,@AR@,$AR,;t t
32187s,@ac_ct_AR@,$ac_ct_AR,;t t
32188s,@STRIP@,$STRIP,;t t
32189s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32190s,@CXXCPP@,$CXXCPP,;t t
32191s,@F77@,$F77,;t t
32192s,@FFLAGS@,$FFLAGS,;t t
32193s,@ac_ct_F77@,$ac_ct_F77,;t t
32194s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032195s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000032196s,@LLVMGCC@,$LLVMGCC,;t t
32197s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032198s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032199s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000032200s,@LLVMCC1@,$LLVMCC1,;t t
32201s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000032202s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000032203s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32204s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000032205s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000032206s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32207s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32208s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32209s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32210s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32211s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32212s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32213s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32214s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32215s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000032216s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000032217s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000032218CEOF
32219
32220_ACEOF
32221
32222 cat >>$CONFIG_STATUS <<\_ACEOF
32223 # Split the substitutions into bite-sized pieces for seds with
32224 # small command number limits, like on Digital OSF/1 and HP-UX.
32225 ac_max_sed_lines=48
32226 ac_sed_frag=1 # Number of current file.
32227 ac_beg=1 # First line for current file.
32228 ac_end=$ac_max_sed_lines # Line after last line for current file.
32229 ac_more_lines=:
32230 ac_sed_cmds=
32231 while $ac_more_lines; do
32232 if test $ac_beg -gt 1; then
32233 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32234 else
32235 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32236 fi
32237 if test ! -s $tmp/subs.frag; then
32238 ac_more_lines=false
32239 else
32240 # The purpose of the label and of the branching condition is to
32241 # speed up the sed processing (if there are no `@' at all, there
32242 # is no need to browse any of the substitutions).
32243 # These are the two extra sed commands mentioned above.
32244 (echo ':t
32245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32246 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000032247 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032248 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032249 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032250 fi
32251 ac_sed_frag=`expr $ac_sed_frag + 1`
32252 ac_beg=$ac_end
32253 ac_end=`expr $ac_end + $ac_max_sed_lines`
32254 fi
32255 done
32256 if test -z "$ac_sed_cmds"; then
32257 ac_sed_cmds=cat
32258 fi
32259fi # test -n "$CONFIG_FILES"
32260
32261_ACEOF
32262cat >>$CONFIG_STATUS <<\_ACEOF
32263for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32265 case $ac_file in
32266 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032267 cat >$tmp/stdin
32268 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032270 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032271 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032272 * ) ac_file_in=$ac_file.in ;;
32273 esac
32274
32275 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32276 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032278 X"$ac_file" : 'X\(//\)[^/]' \| \
32279 X"$ac_file" : 'X\(//\)$' \| \
32280 X"$ac_file" : 'X\(/\)' \| \
32281 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032282echo X"$ac_file" |
32283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32285 /^X\(\/\/\)$/{ s//\1/; q; }
32286 /^X\(\/\).*/{ s//\1/; q; }
32287 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032288 { if $as_mkdir_p; then
32289 mkdir -p "$ac_dir"
32290 else
32291 as_dir="$ac_dir"
32292 as_dirs=
32293 while test ! -d "$as_dir"; do
32294 as_dirs="$as_dir $as_dirs"
32295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032297 X"$as_dir" : 'X\(//\)[^/]' \| \
32298 X"$as_dir" : 'X\(//\)$' \| \
32299 X"$as_dir" : 'X\(/\)' \| \
32300 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032301echo X"$as_dir" |
32302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32304 /^X\(\/\/\)$/{ s//\1/; q; }
32305 /^X\(\/\).*/{ s//\1/; q; }
32306 s/.*/./; q'`
32307 done
32308 test ! -n "$as_dirs" || mkdir $as_dirs
32309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32310echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32311 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032312
32313 ac_builddir=.
32314
32315if test "$ac_dir" != .; then
32316 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32317 # A "../" for each directory in $ac_dir_suffix.
32318 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32319else
32320 ac_dir_suffix= ac_top_builddir=
32321fi
32322
32323case $srcdir in
32324 .) # No --srcdir option. We are building in place.
32325 ac_srcdir=.
32326 if test -z "$ac_top_builddir"; then
32327 ac_top_srcdir=.
32328 else
32329 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32330 fi ;;
32331 [\\/]* | ?:[\\/]* ) # Absolute path.
32332 ac_srcdir=$srcdir$ac_dir_suffix;
32333 ac_top_srcdir=$srcdir ;;
32334 *) # Relative path.
32335 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32336 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32337esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032338
32339# Do not use `cd foo && pwd` to compute absolute paths, because
32340# the directories may not exist.
32341case `pwd` in
32342.) ac_abs_builddir="$ac_dir";;
32343*)
32344 case "$ac_dir" in
32345 .) ac_abs_builddir=`pwd`;;
32346 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32347 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32348 esac;;
32349esac
32350case $ac_abs_builddir in
32351.) ac_abs_top_builddir=${ac_top_builddir}.;;
32352*)
32353 case ${ac_top_builddir}. in
32354 .) ac_abs_top_builddir=$ac_abs_builddir;;
32355 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32356 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32357 esac;;
32358esac
32359case $ac_abs_builddir in
32360.) ac_abs_srcdir=$ac_srcdir;;
32361*)
32362 case $ac_srcdir in
32363 .) ac_abs_srcdir=$ac_abs_builddir;;
32364 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32365 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32366 esac;;
32367esac
32368case $ac_abs_builddir in
32369.) ac_abs_top_srcdir=$ac_top_srcdir;;
32370*)
32371 case $ac_top_srcdir in
32372 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32373 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32374 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32375 esac;;
32376esac
John Criswell7a73b802003-06-30 21:59:07 +000032377
32378
32379 case $INSTALL in
32380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32381 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32382 esac
32383
32384 if test x"$ac_file" != x-; then
32385 { echo "$as_me:$LINENO: creating $ac_file" >&5
32386echo "$as_me: creating $ac_file" >&6;}
32387 rm -f "$ac_file"
32388 fi
32389 # Let's still pretend it is `configure' which instantiates (i.e., don't
32390 # use $as_me), people would be surprised to read:
32391 # /* config.h. Generated by config.status. */
32392 if test x"$ac_file" = x-; then
32393 configure_input=
32394 else
32395 configure_input="$ac_file. "
32396 fi
32397 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000032398 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000032399
32400 # First look for the input files in the build tree, otherwise in the
32401 # src tree.
32402 ac_file_inputs=`IFS=:
32403 for f in $ac_file_in; do
32404 case $f in
32405 -) echo $tmp/stdin ;;
32406 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032407 # Absolute (can't be DOS-style, as IFS=:)
32408 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032409echo "$as_me: error: cannot find input file: $f" >&2;}
32410 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032411 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032412 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032413 if test -f "$f"; then
32414 # Build tree
32415 echo "$f"
32416 elif test -f "$srcdir/$f"; then
32417 # Source tree
32418 echo "$srcdir/$f"
32419 else
32420 # /dev/null tree
32421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032422echo "$as_me: error: cannot find input file: $f" >&2;}
32423 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032424 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032425 esac
32426 done` || { (exit 1); exit 1; }
32427_ACEOF
32428cat >>$CONFIG_STATUS <<_ACEOF
32429 sed "$ac_vpsub
32430$extrasub
32431_ACEOF
32432cat >>$CONFIG_STATUS <<\_ACEOF
32433:t
32434/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32435s,@configure_input@,$configure_input,;t t
32436s,@srcdir@,$ac_srcdir,;t t
32437s,@abs_srcdir@,$ac_abs_srcdir,;t t
32438s,@top_srcdir@,$ac_top_srcdir,;t t
32439s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32440s,@builddir@,$ac_builddir,;t t
32441s,@abs_builddir@,$ac_abs_builddir,;t t
32442s,@top_builddir@,$ac_top_builddir,;t t
32443s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32444s,@INSTALL@,$ac_INSTALL,;t t
32445" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32446 rm -f $tmp/stdin
32447 if test x"$ac_file" != x-; then
32448 mv $tmp/out $ac_file
32449 else
32450 cat $tmp/out
32451 rm -f $tmp/out
32452 fi
32453
32454done
32455_ACEOF
32456cat >>$CONFIG_STATUS <<\_ACEOF
32457
32458#
32459# CONFIG_HEADER section.
32460#
32461
32462# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32463# NAME is the cpp macro being defined and VALUE is the value it is being given.
32464#
32465# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032466ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32467ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000032468ac_dC=' '
32469ac_dD=',;t'
32470# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000032471ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000032472ac_uB='$,\1#\2define\3'
32473ac_uC=' '
32474ac_uD=',;t'
32475
32476for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32478 case $ac_file in
32479 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032480 cat >$tmp/stdin
32481 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032483 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032485 * ) ac_file_in=$ac_file.in ;;
32486 esac
32487
32488 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32489echo "$as_me: creating $ac_file" >&6;}
32490
32491 # First look for the input files in the build tree, otherwise in the
32492 # src tree.
32493 ac_file_inputs=`IFS=:
32494 for f in $ac_file_in; do
32495 case $f in
32496 -) echo $tmp/stdin ;;
32497 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032498 # Absolute (can't be DOS-style, as IFS=:)
32499 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032500echo "$as_me: error: cannot find input file: $f" >&2;}
32501 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032502 # Do quote $f, to prevent DOS paths from being IFS'd.
32503 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032504 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032505 if test -f "$f"; then
32506 # Build tree
32507 echo "$f"
32508 elif test -f "$srcdir/$f"; then
32509 # Source tree
32510 echo "$srcdir/$f"
32511 else
32512 # /dev/null tree
32513 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032514echo "$as_me: error: cannot find input file: $f" >&2;}
32515 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032516 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032517 esac
32518 done` || { (exit 1); exit 1; }
32519 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032520 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000032521
32522_ACEOF
32523
32524# Transform confdefs.h into two sed scripts, `conftest.defines' and
32525# `conftest.undefs', that substitutes the proper values into
32526# config.h.in to produce config.h. The first handles `#define'
32527# templates, and the second `#undef' templates.
32528# And first: Protect against being on the right side of a sed subst in
32529# config.status. Protect against being in an unquoted here document
32530# in config.status.
32531rm -f conftest.defines conftest.undefs
32532# Using a here document instead of a string reduces the quoting nightmare.
32533# Putting comments in sed scripts is not portable.
32534#
32535# `end' is used to avoid that the second main sed command (meant for
32536# 0-ary CPP macros) applies to n-ary macro definitions.
32537# See the Autoconf documentation for `clear'.
32538cat >confdef2sed.sed <<\_ACEOF
32539s/[\\&,]/\\&/g
32540s,[\\$`],\\&,g
32541t clear
32542: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000032543s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032544t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000032545s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032546: end
32547_ACEOF
32548# If some macros were called several times there might be several times
32549# the same #defines, which is useless. Nevertheless, we may not want to
32550# sort them, since we want the *last* AC-DEFINE to be honored.
32551uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32552sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32553rm -f confdef2sed.sed
32554
32555# This sed command replaces #undef with comments. This is necessary, for
32556# example, in the case of _POSIX_SOURCE, which is predefined and required
32557# on some systems where configure will not decide to define it.
32558cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032559s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000032560_ACEOF
32561
32562# Break up conftest.defines because some shells have a limit on the size
32563# of here documents, and old seds have small limits too (100 cmds).
32564echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000032565echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032566echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32567echo ' :' >>$CONFIG_STATUS
32568rm -f conftest.tail
32569while grep . conftest.defines >/dev/null
32570do
32571 # Write a limited-size here document to $tmp/defines.sed.
32572 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32573 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032574 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032575 # Work around the forget-to-reset-the-flag bug.
32576 echo 't clr' >>$CONFIG_STATUS
32577 echo ': clr' >>$CONFIG_STATUS
32578 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32579 echo 'CEOF
32580 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32581 rm -f $tmp/in
32582 mv $tmp/out $tmp/in
32583' >>$CONFIG_STATUS
32584 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32585 rm -f conftest.defines
32586 mv conftest.tail conftest.defines
32587done
32588rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032589echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032590echo >>$CONFIG_STATUS
32591
32592# Break up conftest.undefs because some shells have a limit on the size
32593# of here documents, and old seds have small limits too (100 cmds).
32594echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32595rm -f conftest.tail
32596while grep . conftest.undefs >/dev/null
32597do
32598 # Write a limited-size here document to $tmp/undefs.sed.
32599 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32600 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032601 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032602 # Work around the forget-to-reset-the-flag bug.
32603 echo 't clr' >>$CONFIG_STATUS
32604 echo ': clr' >>$CONFIG_STATUS
32605 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32606 echo 'CEOF
32607 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32608 rm -f $tmp/in
32609 mv $tmp/out $tmp/in
32610' >>$CONFIG_STATUS
32611 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32612 rm -f conftest.undefs
32613 mv conftest.tail conftest.undefs
32614done
32615rm -f conftest.undefs
32616
32617cat >>$CONFIG_STATUS <<\_ACEOF
32618 # Let's still pretend it is `configure' which instantiates (i.e., don't
32619 # use $as_me), people would be surprised to read:
32620 # /* config.h. Generated by config.status. */
32621 if test x"$ac_file" = x-; then
32622 echo "/* Generated by configure. */" >$tmp/config.h
32623 else
32624 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32625 fi
32626 cat $tmp/in >>$tmp/config.h
32627 rm -f $tmp/in
32628 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032629 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032630 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32631echo "$as_me: $ac_file is unchanged" >&6;}
32632 else
32633 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032635 X"$ac_file" : 'X\(//\)[^/]' \| \
32636 X"$ac_file" : 'X\(//\)$' \| \
32637 X"$ac_file" : 'X\(/\)' \| \
32638 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032639echo X"$ac_file" |
32640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32642 /^X\(\/\/\)$/{ s//\1/; q; }
32643 /^X\(\/\).*/{ s//\1/; q; }
32644 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032645 { if $as_mkdir_p; then
32646 mkdir -p "$ac_dir"
32647 else
32648 as_dir="$ac_dir"
32649 as_dirs=
32650 while test ! -d "$as_dir"; do
32651 as_dirs="$as_dir $as_dirs"
32652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32653$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032654 X"$as_dir" : 'X\(//\)[^/]' \| \
32655 X"$as_dir" : 'X\(//\)$' \| \
32656 X"$as_dir" : 'X\(/\)' \| \
32657 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032658echo X"$as_dir" |
32659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32661 /^X\(\/\/\)$/{ s//\1/; q; }
32662 /^X\(\/\).*/{ s//\1/; q; }
32663 s/.*/./; q'`
32664 done
32665 test ! -n "$as_dirs" || mkdir $as_dirs
32666 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32667echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32668 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032669
32670 rm -f $ac_file
32671 mv $tmp/config.h $ac_file
32672 fi
32673 else
32674 cat $tmp/config.h
32675 rm -f $tmp/config.h
32676 fi
32677done
32678_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032679cat >>$CONFIG_STATUS <<\_ACEOF
32680
32681#
32682# CONFIG_COMMANDS section.
32683#
32684for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32685 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32686 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32687 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32688$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032689 X"$ac_dest" : 'X\(//\)[^/]' \| \
32690 X"$ac_dest" : 'X\(//\)$' \| \
32691 X"$ac_dest" : 'X\(/\)' \| \
32692 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032693echo X"$ac_dest" |
32694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32696 /^X\(\/\/\)$/{ s//\1/; q; }
32697 /^X\(\/\).*/{ s//\1/; q; }
32698 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032699 { if $as_mkdir_p; then
32700 mkdir -p "$ac_dir"
32701 else
32702 as_dir="$ac_dir"
32703 as_dirs=
32704 while test ! -d "$as_dir"; do
32705 as_dirs="$as_dir $as_dirs"
32706 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32708 X"$as_dir" : 'X\(//\)[^/]' \| \
32709 X"$as_dir" : 'X\(//\)$' \| \
32710 X"$as_dir" : 'X\(/\)' \| \
32711 . : '\(.\)' 2>/dev/null ||
32712echo X"$as_dir" |
32713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32715 /^X\(\/\/\)$/{ s//\1/; q; }
32716 /^X\(\/\).*/{ s//\1/; q; }
32717 s/.*/./; q'`
32718 done
32719 test ! -n "$as_dirs" || mkdir $as_dirs
32720 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32721echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32722 { (exit 1); exit 1; }; }; }
32723
John Criswellc764fbc2003-09-06 15:17:13 +000032724 ac_builddir=.
32725
32726if test "$ac_dir" != .; then
32727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32728 # A "../" for each directory in $ac_dir_suffix.
32729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32730else
32731 ac_dir_suffix= ac_top_builddir=
32732fi
32733
32734case $srcdir in
32735 .) # No --srcdir option. We are building in place.
32736 ac_srcdir=.
32737 if test -z "$ac_top_builddir"; then
32738 ac_top_srcdir=.
32739 else
32740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32741 fi ;;
32742 [\\/]* | ?:[\\/]* ) # Absolute path.
32743 ac_srcdir=$srcdir$ac_dir_suffix;
32744 ac_top_srcdir=$srcdir ;;
32745 *) # Relative path.
32746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32747 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32748esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032749
32750# Do not use `cd foo && pwd` to compute absolute paths, because
32751# the directories may not exist.
32752case `pwd` in
32753.) ac_abs_builddir="$ac_dir";;
32754*)
32755 case "$ac_dir" in
32756 .) ac_abs_builddir=`pwd`;;
32757 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32758 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32759 esac;;
32760esac
32761case $ac_abs_builddir in
32762.) ac_abs_top_builddir=${ac_top_builddir}.;;
32763*)
32764 case ${ac_top_builddir}. in
32765 .) ac_abs_top_builddir=$ac_abs_builddir;;
32766 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32767 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32768 esac;;
32769esac
32770case $ac_abs_builddir in
32771.) ac_abs_srcdir=$ac_srcdir;;
32772*)
32773 case $ac_srcdir in
32774 .) ac_abs_srcdir=$ac_abs_builddir;;
32775 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32776 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32777 esac;;
32778esac
32779case $ac_abs_builddir in
32780.) ac_abs_top_srcdir=$ac_top_srcdir;;
32781*)
32782 case $ac_top_srcdir in
32783 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32784 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32785 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32786 esac;;
32787esac
John Criswellc764fbc2003-09-06 15:17:13 +000032788
32789
32790 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32791echo "$as_me: executing $ac_dest commands" >&6;}
32792 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032793 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32794 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32795 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32796 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32797 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32798 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32799 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32800 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32801 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32802 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32803 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32804 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32805 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32806 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32807 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32808 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32809 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32810 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32811 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32812 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032813 esac
32814done
32815_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032816
32817cat >>$CONFIG_STATUS <<\_ACEOF
32818
32819{ (exit 0); exit 0; }
32820_ACEOF
32821chmod +x $CONFIG_STATUS
32822ac_clean_files=$ac_clean_files_save
32823
32824
32825# configure is writing to config.log, and then calls config.status.
32826# config.status does its own redirection, appending to config.log.
32827# Unfortunately, on DOS this fails, as config.log is still kept open
32828# by configure, so config.status won't be able to write to it; its
32829# output is simply discarded. So we exec the FD to /dev/null,
32830# effectively closing config.log, so it can be properly (re)opened and
32831# appended to by config.status. When coming back to configure, we
32832# need to make the FD available again.
32833if test "$no_create" != yes; then
32834 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032835 ac_config_status_args=
32836 test "$silent" = yes &&
32837 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032838 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032840 exec 5>>config.log
32841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32842 # would make configure fail if this is the last instruction.
32843 $ac_cs_success || { (exit 1); exit 1; }
32844fi
32845
John Criswell12399a12003-09-30 15:55:44 +000032846#
32847# CONFIG_SUBDIRS section.
32848#
32849if test "$no_recursion" != yes; then
32850
32851 # Remove --cache-file and --srcdir arguments so they do not pile up.
32852 ac_sub_configure_args=
32853 ac_prev=
32854 for ac_arg in $ac_configure_args; do
32855 if test -n "$ac_prev"; then
32856 ac_prev=
32857 continue
32858 fi
32859 case $ac_arg in
32860 -cache-file | --cache-file | --cache-fil | --cache-fi \
32861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32862 ac_prev=cache_file ;;
32863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32865 | --c=*)
32866 ;;
32867 --config-cache | -C)
32868 ;;
32869 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32870 ac_prev=srcdir ;;
32871 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32872 ;;
32873 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32874 ac_prev=prefix ;;
32875 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32876 ;;
32877 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32878 esac
32879 done
32880
32881 # Always prepend --prefix to ensure using the same prefix
32882 # in subdir configurations.
32883 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32884
32885 ac_popdir=`pwd`
32886 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32887
32888 # Do not complain, so a configure script can configure whichever
32889 # parts of a large source tree are present.
32890 test -d $srcdir/$ac_dir || continue
32891
32892 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32893echo "$as_me: configuring in $ac_dir" >&6;}
32894 { if $as_mkdir_p; then
32895 mkdir -p "$ac_dir"
32896 else
32897 as_dir="$ac_dir"
32898 as_dirs=
32899 while test ! -d "$as_dir"; do
32900 as_dirs="$as_dir $as_dirs"
32901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032903 X"$as_dir" : 'X\(//\)[^/]' \| \
32904 X"$as_dir" : 'X\(//\)$' \| \
32905 X"$as_dir" : 'X\(/\)' \| \
32906 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032907echo X"$as_dir" |
32908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32910 /^X\(\/\/\)$/{ s//\1/; q; }
32911 /^X\(\/\).*/{ s//\1/; q; }
32912 s/.*/./; q'`
32913 done
32914 test ! -n "$as_dirs" || mkdir $as_dirs
32915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32916echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32917 { (exit 1); exit 1; }; }; }
32918
32919 ac_builddir=.
32920
32921if test "$ac_dir" != .; then
32922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32923 # A "../" for each directory in $ac_dir_suffix.
32924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32925else
32926 ac_dir_suffix= ac_top_builddir=
32927fi
32928
32929case $srcdir in
32930 .) # No --srcdir option. We are building in place.
32931 ac_srcdir=.
32932 if test -z "$ac_top_builddir"; then
32933 ac_top_srcdir=.
32934 else
32935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32936 fi ;;
32937 [\\/]* | ?:[\\/]* ) # Absolute path.
32938 ac_srcdir=$srcdir$ac_dir_suffix;
32939 ac_top_srcdir=$srcdir ;;
32940 *) # Relative path.
32941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32943esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032944
32945# Do not use `cd foo && pwd` to compute absolute paths, because
32946# the directories may not exist.
32947case `pwd` in
32948.) ac_abs_builddir="$ac_dir";;
32949*)
32950 case "$ac_dir" in
32951 .) ac_abs_builddir=`pwd`;;
32952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32954 esac;;
32955esac
32956case $ac_abs_builddir in
32957.) ac_abs_top_builddir=${ac_top_builddir}.;;
32958*)
32959 case ${ac_top_builddir}. in
32960 .) ac_abs_top_builddir=$ac_abs_builddir;;
32961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32963 esac;;
32964esac
32965case $ac_abs_builddir in
32966.) ac_abs_srcdir=$ac_srcdir;;
32967*)
32968 case $ac_srcdir in
32969 .) ac_abs_srcdir=$ac_abs_builddir;;
32970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32972 esac;;
32973esac
32974case $ac_abs_builddir in
32975.) ac_abs_top_srcdir=$ac_top_srcdir;;
32976*)
32977 case $ac_top_srcdir in
32978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32981 esac;;
32982esac
John Criswell12399a12003-09-30 15:55:44 +000032983
32984
32985 cd $ac_dir
32986
32987 # Check for guested configure; otherwise get Cygnus style configure.
32988 if test -f $ac_srcdir/configure.gnu; then
32989 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32990 elif test -f $ac_srcdir/configure; then
32991 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32992 elif test -f $ac_srcdir/configure.in; then
32993 ac_sub_configure=$ac_configure
32994 else
32995 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32996echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32997 ac_sub_configure=
32998 fi
32999
33000 # The recursion is here.
33001 if test -n "$ac_sub_configure"; then
33002 # Make the cache file name correct relative to the subdirectory.
33003 case $cache_file in
33004 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33005 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033006 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000033007 esac
33008
33009 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33010echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33011 # The eval makes quoting arguments work.
33012 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033013 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
33014 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000033015echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33016 { (exit 1); exit 1; }; }
33017 fi
33018
33019 cd $ac_popdir
33020 done
33021fi
33022
Brian Gaekef3b24102003-11-16 18:38:14 +000033023
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033024if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000033025 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
33026echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000033027 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
33028echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
33029 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
33030echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
33031 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
33032echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
33033 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
33034echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000033035fi