blob: 7a29ebe602913a7df8eb7dfcfce128f44c900fca [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer57d37252006-04-14 03:01:27 +00003# Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencer57d37252006-04-14 03:01:27 +0000428PACKAGE_VERSION='1.8cvs'
429PACKAGE_STRING='llvm 1.8cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
John Criswell0389cf72006-06-20 17:44:40 +0000435ac_subdirs_all="$ac_subdirs_all projects/privbracket"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000436ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000442ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
John Criswell7a73b802003-06-30 21:59:07 +0000443# Factoring default headers for most tests.
444ac_includes_default="\
445#include <stdio.h>
446#if HAVE_SYS_TYPES_H
447# include <sys/types.h>
448#endif
449#if HAVE_SYS_STAT_H
450# include <sys/stat.h>
451#endif
452#if STDC_HEADERS
453# include <stdlib.h>
454# include <stddef.h>
455#else
456# if HAVE_STDLIB_H
457# include <stdlib.h>
458# endif
459#endif
460#if HAVE_STRING_H
461# if !STDC_HEADERS && HAVE_MEMORY_H
462# include <memory.h>
463# endif
464# include <string.h>
465#endif
466#if HAVE_STRINGS_H
467# include <strings.h>
468#endif
469#if HAVE_INTTYPES_H
470# include <inttypes.h>
471#else
472# if HAVE_STDINT_H
473# include <stdint.h>
474# endif
475#endif
476#if HAVE_UNISTD_H
477# include <unistd.h>
478#endif"
479
Reid Spencercaf0ece2006-06-05 15:54:38 +0000480ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000481ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000482
483# Initialize some variables set by options.
484ac_init_help=
485ac_init_version=false
486# The variables have the same names as the options, with
487# dashes changed to underlines.
488cache_file=/dev/null
489exec_prefix=NONE
490no_create=
491no_recursion=
492prefix=NONE
493program_prefix=NONE
494program_suffix=NONE
495program_transform_name=s,x,x,
496silent=
497site=
498srcdir=
499verbose=
500x_includes=NONE
501x_libraries=NONE
502
503# Installation directory options.
504# These are left unexpanded so users can "make install exec_prefix=/foo"
505# and all the variables that are supposed to be based on exec_prefix
506# by default will actually change.
507# Use braces instead of parens because sh, perl, etc. also accept them.
508bindir='${exec_prefix}/bin'
509sbindir='${exec_prefix}/sbin'
510libexecdir='${exec_prefix}/libexec'
511datadir='${prefix}/share'
512sysconfdir='${prefix}/etc'
513sharedstatedir='${prefix}/com'
514localstatedir='${prefix}/var'
515libdir='${exec_prefix}/lib'
516includedir='${prefix}/include'
517oldincludedir='/usr/include'
518infodir='${prefix}/info'
519mandir='${prefix}/man'
520
521ac_prev=
522for ac_option
523do
524 # If the previous option needs an argument, assign it.
525 if test -n "$ac_prev"; then
526 eval "$ac_prev=\$ac_option"
527 ac_prev=
528 continue
529 fi
530
531 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533 # Accept the important Cygnus configure options, so we can diagnose typos.
534
535 case $ac_option in
536
537 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 ac_prev=bindir ;;
539 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 bindir=$ac_optarg ;;
541
542 -build | --build | --buil | --bui | --bu)
543 ac_prev=build_alias ;;
544 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545 build_alias=$ac_optarg ;;
546
547 -cache-file | --cache-file | --cache-fil | --cache-fi \
548 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549 ac_prev=cache_file ;;
550 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552 cache_file=$ac_optarg ;;
553
554 --config-cache | -C)
555 cache_file=config.cache ;;
556
557 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 ac_prev=datadir ;;
559 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 | --da=*)
561 datadir=$ac_optarg ;;
562
563 -disable-* | --disable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 eval "enable_$ac_feature=no" ;;
571
572 -enable-* | --enable-*)
573 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577 { (exit 1); exit 1; }; }
578 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 *) ac_optarg=yes ;;
582 esac
583 eval "enable_$ac_feature='$ac_optarg'" ;;
584
585 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587 | --exec | --exe | --ex)
588 ac_prev=exec_prefix ;;
589 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591 | --exec=* | --exe=* | --ex=*)
592 exec_prefix=$ac_optarg ;;
593
594 -gas | --gas | --ga | --g)
595 # Obsolete; use --with-gas.
596 with_gas=yes ;;
597
598 -help | --help | --hel | --he | -h)
599 ac_init_help=long ;;
600 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601 ac_init_help=recursive ;;
602 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603 ac_init_help=short ;;
604
605 -host | --host | --hos | --ho)
606 ac_prev=host_alias ;;
607 -host=* | --host=* | --hos=* | --ho=*)
608 host_alias=$ac_optarg ;;
609
610 -includedir | --includedir | --includedi | --included | --include \
611 | --includ | --inclu | --incl | --inc)
612 ac_prev=includedir ;;
613 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614 | --includ=* | --inclu=* | --incl=* | --inc=*)
615 includedir=$ac_optarg ;;
616
617 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 ac_prev=infodir ;;
619 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620 infodir=$ac_optarg ;;
621
622 -libdir | --libdir | --libdi | --libd)
623 ac_prev=libdir ;;
624 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 libdir=$ac_optarg ;;
626
627 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628 | --libexe | --libex | --libe)
629 ac_prev=libexecdir ;;
630 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631 | --libexe=* | --libex=* | --libe=*)
632 libexecdir=$ac_optarg ;;
633
634 -localstatedir | --localstatedir | --localstatedi | --localstated \
635 | --localstate | --localstat | --localsta | --localst \
636 | --locals | --local | --loca | --loc | --lo)
637 ac_prev=localstatedir ;;
638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641 localstatedir=$ac_optarg ;;
642
643 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 ac_prev=mandir ;;
645 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 mandir=$ac_optarg ;;
647
648 -nfp | --nfp | --nf)
649 # Obsolete; use --without-fp.
650 with_fp=no ;;
651
652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653 | --no-cr | --no-c | -n)
654 no_create=yes ;;
655
656 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 no_recursion=yes ;;
659
660 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662 | --oldin | --oldi | --old | --ol | --o)
663 ac_prev=oldincludedir ;;
664 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667 oldincludedir=$ac_optarg ;;
668
669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 ac_prev=prefix ;;
671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 prefix=$ac_optarg ;;
673
674 -program-prefix | --program-prefix | --program-prefi | --program-pref \
675 | --program-pre | --program-pr | --program-p)
676 ac_prev=program_prefix ;;
677 -program-prefix=* | --program-prefix=* | --program-prefi=* \
678 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679 program_prefix=$ac_optarg ;;
680
681 -program-suffix | --program-suffix | --program-suffi | --program-suff \
682 | --program-suf | --program-su | --program-s)
683 ac_prev=program_suffix ;;
684 -program-suffix=* | --program-suffix=* | --program-suffi=* \
685 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686 program_suffix=$ac_optarg ;;
687
688 -program-transform-name | --program-transform-name \
689 | --program-transform-nam | --program-transform-na \
690 | --program-transform-n | --program-transform- \
691 | --program-transform | --program-transfor \
692 | --program-transfo | --program-transf \
693 | --program-trans | --program-tran \
694 | --progr-tra | --program-tr | --program-t)
695 ac_prev=program_transform_name ;;
696 -program-transform-name=* | --program-transform-name=* \
697 | --program-transform-nam=* | --program-transform-na=* \
698 | --program-transform-n=* | --program-transform-=* \
699 | --program-transform=* | --program-transfor=* \
700 | --program-transfo=* | --program-transf=* \
701 | --program-trans=* | --program-tran=* \
702 | --progr-tra=* | --program-tr=* | --program-t=*)
703 program_transform_name=$ac_optarg ;;
704
705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706 | -silent | --silent | --silen | --sile | --sil)
707 silent=yes ;;
708
709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 ac_prev=sbindir ;;
711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 | --sbi=* | --sb=*)
713 sbindir=$ac_optarg ;;
714
715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717 | --sharedst | --shareds | --shared | --share | --shar \
718 | --sha | --sh)
719 ac_prev=sharedstatedir ;;
720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 | --sha=* | --sh=*)
724 sharedstatedir=$ac_optarg ;;
725
726 -site | --site | --sit)
727 ac_prev=site ;;
728 -site=* | --site=* | --sit=*)
729 site=$ac_optarg ;;
730
731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 ac_prev=srcdir ;;
733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 srcdir=$ac_optarg ;;
735
736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737 | --syscon | --sysco | --sysc | --sys | --sy)
738 ac_prev=sysconfdir ;;
739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741 sysconfdir=$ac_optarg ;;
742
743 -target | --target | --targe | --targ | --tar | --ta | --t)
744 ac_prev=target_alias ;;
745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746 target_alias=$ac_optarg ;;
747
748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 verbose=yes ;;
750
751 -version | --version | --versio | --versi | --vers | -V)
752 ac_init_version=: ;;
753
754 -with-* | --with-*)
755 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 case $ac_option in
762 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 *) ac_optarg=yes ;;
764 esac
765 eval "with_$ac_package='$ac_optarg'" ;;
766
767 -without-* | --without-*)
768 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771 { echo "$as_me: error: invalid package name: $ac_package" >&2
772 { (exit 1); exit 1; }; }
773 ac_package=`echo $ac_package | sed 's/-/_/g'`
774 eval "with_$ac_package=no" ;;
775
776 --x)
777 # Obsolete; use --with-x.
778 with_x=yes ;;
779
780 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781 | --x-incl | --x-inc | --x-in | --x-i)
782 ac_prev=x_includes ;;
783 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785 x_includes=$ac_optarg ;;
786
787 -x-libraries | --x-libraries | --x-librarie | --x-librari \
788 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789 ac_prev=x_libraries ;;
790 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792 x_libraries=$ac_optarg ;;
793
794 -*) { echo "$as_me: error: unrecognized option: $ac_option
795Try \`$0 --help' for more information." >&2
796 { (exit 1); exit 1; }; }
797 ;;
798
799 *=*)
800 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804 { (exit 1); exit 1; }; }
805 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806 eval "$ac_envvar='$ac_optarg'"
807 export $ac_envvar ;;
808
809 *)
810 # FIXME: should be removed in autoconf 3.0.
811 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815 ;;
816
817 esac
818done
819
820if test -n "$ac_prev"; then
821 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822 { echo "$as_me: error: missing argument to $ac_option" >&2
823 { (exit 1); exit 1; }; }
824fi
825
826# Be sure to have absolute paths.
827for ac_var in exec_prefix prefix
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# Be sure to have absolute paths.
838for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000839 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000840do
841 eval ac_val=$`echo $ac_var`
842 case $ac_val in
843 [\\/$]* | ?:[\\/]* ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
846 esac
847done
848
849# There might be people who depend on the old broken behavior: `$host'
850# used to hold the argument of --host etc.
851# FIXME: To remove some day.
852build=$build_alias
853host=$host_alias
854target=$target_alias
855
856# FIXME: To remove some day.
857if test "x$host_alias" != x; then
858 if test "x$build_alias" = x; then
859 cross_compiling=maybe
860 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861 If a cross compiler is detected then cross compile mode will be used." >&2
862 elif test "x$build_alias" != "x$host_alias"; then
863 cross_compiling=yes
864 fi
865fi
866
867ac_tool_prefix=
868test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870test "$silent" = yes && exec 6>/dev/null
871
872
873# Find the source files, if location was not specified.
874if test -z "$srcdir"; then
875 ac_srcdir_defaulted=yes
876 # Try the directory containing this script, then its parent.
877 ac_confdir=`(dirname "$0") 2>/dev/null ||
878$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000879 X"$0" : 'X\(//\)[^/]' \| \
880 X"$0" : 'X\(//\)$' \| \
881 X"$0" : 'X\(/\)' \| \
882 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000883echo X"$0" |
884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886 /^X\(\/\/\)$/{ s//\1/; q; }
887 /^X\(\/\).*/{ s//\1/; q; }
888 s/.*/./; q'`
889 srcdir=$ac_confdir
890 if test ! -r $srcdir/$ac_unique_file; then
891 srcdir=..
892 fi
893else
894 ac_srcdir_defaulted=no
895fi
896if test ! -r $srcdir/$ac_unique_file; then
897 if test "$ac_srcdir_defaulted" = yes; then
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899 { (exit 1); exit 1; }; }
900 else
901 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902 { (exit 1); exit 1; }; }
903 fi
904fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000905(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000908srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909ac_env_build_alias_set=${build_alias+set}
910ac_env_build_alias_value=$build_alias
911ac_cv_env_build_alias_set=${build_alias+set}
912ac_cv_env_build_alias_value=$build_alias
913ac_env_host_alias_set=${host_alias+set}
914ac_env_host_alias_value=$host_alias
915ac_cv_env_host_alias_set=${host_alias+set}
916ac_cv_env_host_alias_value=$host_alias
917ac_env_target_alias_set=${target_alias+set}
918ac_env_target_alias_value=$target_alias
919ac_cv_env_target_alias_set=${target_alias+set}
920ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000921ac_env_CC_set=${CC+set}
922ac_env_CC_value=$CC
923ac_cv_env_CC_set=${CC+set}
924ac_cv_env_CC_value=$CC
925ac_env_CFLAGS_set=${CFLAGS+set}
926ac_env_CFLAGS_value=$CFLAGS
927ac_cv_env_CFLAGS_set=${CFLAGS+set}
928ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000937ac_env_CPP_set=${CPP+set}
938ac_env_CPP_value=$CPP
939ac_cv_env_CPP_set=${CPP+set}
940ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000941ac_env_CXX_set=${CXX+set}
942ac_env_CXX_value=$CXX
943ac_cv_env_CXX_set=${CXX+set}
944ac_cv_env_CXX_value=$CXX
945ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_env_CXXFLAGS_value=$CXXFLAGS
947ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000949ac_env_CXXCPP_set=${CXXCPP+set}
950ac_env_CXXCPP_value=$CXXCPP
951ac_cv_env_CXXCPP_set=${CXXCPP+set}
952ac_cv_env_CXXCPP_value=$CXXCPP
953ac_env_F77_set=${F77+set}
954ac_env_F77_value=$F77
955ac_cv_env_F77_set=${F77+set}
956ac_cv_env_F77_value=$F77
957ac_env_FFLAGS_set=${FFLAGS+set}
958ac_env_FFLAGS_value=$FFLAGS
959ac_cv_env_FFLAGS_set=${FFLAGS+set}
960ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +0000969\`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE. See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991 cat <<_ACEOF
992Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000996 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018_ACEOF
1019
1020 cat <<\_ACEOF
1021
1022System types:
1023 --build=BUILD configure for building on BUILD [guessed]
1024 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1025 --target=TARGET configure for building compilers for TARGET [HOST]
1026_ACEOF
1027fi
1028
1029if test -n "$ac_init_help"; then
1030 case $ac_init_help in
Reid Spencer57d37252006-04-14 03:01:27 +00001031 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001032 esac
1033 cat <<\_ACEOF
1034
1035Optional Features:
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001038 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001039 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001040 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001042 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001043 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001044 --enable-target Build specific host targets:
1045 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)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001060 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001061 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1062 --with-pic try to use only PIC/non-PIC objects [default=use
1063 both]
1064 --with-tags[=TAGS]
1065 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001066
1067Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001068 CC C compiler command
1069 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001070 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1071 nonstandard directory <lib dir>
1072 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001074 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001075 CXX C++ compiler command
1076 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001077 CXXCPP C++ preprocessor
1078 F77 Fortran 77 compiler command
1079 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001080
1081Use these variables to override the choices made by `configure' or to help
1082it to find libraries and programs with nonstandard names/locations.
1083
1084Report bugs to <llvmbugs@cs.uiuc.edu>.
1085_ACEOF
1086fi
1087
1088if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1090 ac_popdir=`pwd`
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1093 ac_builddir=.
1094
1095if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099else
1100 ac_dir_suffix= ac_top_builddir=
1101fi
1102
1103case $srcdir in
1104 .) # No --srcdir option. We are building in place.
1105 ac_srcdir=.
1106 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=.
1108 else
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 fi ;;
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1114 *) # Relative path.
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001118
1119# Do not use `cd foo && pwd` to compute absolute paths, because
1120# the directories may not exist.
1121case `pwd` in
1122.) ac_abs_builddir="$ac_dir";;
1123*)
1124 case "$ac_dir" in
1125 .) ac_abs_builddir=`pwd`;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128 esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_builddir=${ac_top_builddir}.;;
1132*)
1133 case ${ac_top_builddir}. in
1134 .) ac_abs_top_builddir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137 esac;;
1138esac
1139case $ac_abs_builddir in
1140.) ac_abs_srcdir=$ac_srcdir;;
1141*)
1142 case $ac_srcdir in
1143 .) ac_abs_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_srcdir=$ac_top_srcdir;;
1150*)
1151 case $ac_top_srcdir in
1152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155 esac;;
1156esac
John Criswell7a73b802003-06-30 21:59:07 +00001157
1158 cd $ac_dir
1159 # Check for guested configure; otherwise get Cygnus style configure.
1160 if test -f $ac_srcdir/configure.gnu; then
1161 echo
1162 $SHELL $ac_srcdir/configure.gnu --help=recursive
1163 elif test -f $ac_srcdir/configure; then
1164 echo
1165 $SHELL $ac_srcdir/configure --help=recursive
1166 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001167 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001168 echo
1169 $ac_configure --help
1170 else
1171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172 fi
1173 cd $ac_popdir
1174 done
1175fi
1176
1177test -n "$ac_init_help" && exit 0
1178if $ac_init_version; then
1179 cat <<\_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +00001180llvm configure 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001181generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001182
Reid Spencer2706f8c2004-09-19 23:53:36 +00001183Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001184This configure script is free software; the Free Software Foundation
1185gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001186
John Criswellc0c186d2005-11-08 21:11:33 +00001187Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001188_ACEOF
1189 exit 0
1190fi
1191exec 5>config.log
1192cat >&5 <<_ACEOF
1193This file contains any messages produced by compilers while
1194running configure, to aid debugging if configure makes a mistake.
1195
Reid Spencer57d37252006-04-14 03:01:27 +00001196It was created by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001197generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001198
1199 $ $0 $@
1200
1201_ACEOF
1202{
1203cat <<_ASUNAME
1204## --------- ##
1205## Platform. ##
1206## --------- ##
1207
1208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213
1214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216
1217/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1218/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1221/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1222/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1223/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224
1225_ASUNAME
1226
1227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228for as_dir in $PATH
1229do
1230 IFS=$as_save_IFS
1231 test -z "$as_dir" && as_dir=.
1232 echo "PATH: $as_dir"
1233done
1234
1235} >&5
1236
1237cat >&5 <<_ACEOF
1238
1239
1240## ----------- ##
1241## Core tests. ##
1242## ----------- ##
1243
1244_ACEOF
1245
1246
1247# Keep a trace of the command line.
1248# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001249# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001250# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001251# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001252ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001253ac_configure_args0=
1254ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001255ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001256ac_must_keep_next=false
1257for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001258do
John Criswell0c38eaf2003-09-10 15:17:25 +00001259 for ac_arg
1260 do
1261 case $ac_arg in
1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 continue ;;
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 esac
1269 case $ac_pass in
1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 2)
1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001274 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001275 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001276 case $ac_arg in
1277 *=* | --config-cache | -C | -disable-* | --disable-* \
1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280 | -with-* | --with-* | -without-* | --without-* | --x)
1281 case "$ac_configure_args0 " in
1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283 esac
1284 ;;
1285 -* ) ac_must_keep_next=true ;;
1286 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001287 fi
1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289 # Get rid of the leading space.
1290 ac_sep=" "
1291 ;;
1292 esac
1293 done
John Criswell7a73b802003-06-30 21:59:07 +00001294done
John Criswell0c38eaf2003-09-10 15:17:25 +00001295$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296$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 +00001297
1298# When interrupted or exit'd, cleanup temporary files, and complete
1299# config.log. We remove comments because anyway the quotes in there
1300# would cause problems or look ugly.
1301# WARNING: Be sure not to use single quotes in there, as some shells,
1302# such as our DU 5.0 friend, will then `close' the trap.
1303trap 'exit_status=$?
1304 # Save into config.log some information that might help in debugging.
1305 {
1306 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001307
John Criswell7a73b802003-06-30 21:59:07 +00001308 cat <<\_ASBOX
1309## ---------------- ##
1310## Cache variables. ##
1311## ---------------- ##
1312_ASBOX
1313 echo
1314 # The following way of writing the cache mishandles newlines in values,
1315{
1316 (set) 2>&1 |
1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318 *ac_space=\ *)
1319 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001322 ;;
1323 *)
1324 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001326 ;;
1327 esac;
1328}
1329 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001330
1331 cat <<\_ASBOX
1332## ----------------- ##
1333## Output variables. ##
1334## ----------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_vars
1338 do
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1341 done | sort
1342 echo
1343
1344 if test -n "$ac_subst_files"; then
1345 cat <<\_ASBOX
1346## ------------- ##
1347## Output files. ##
1348## ------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_files
1352 do
1353 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001354 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001355 done | sort
1356 echo
1357 fi
1358
John Criswell7a73b802003-06-30 21:59:07 +00001359 if test -s confdefs.h; then
1360 cat <<\_ASBOX
1361## ----------- ##
1362## confdefs.h. ##
1363## ----------- ##
1364_ASBOX
1365 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001366 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001367 echo
1368 fi
1369 test "$ac_signal" != 0 &&
1370 echo "$as_me: caught signal $ac_signal"
1371 echo "$as_me: exit $exit_status"
1372 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001373 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001374 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375 exit $exit_status
1376 ' 0
1377for ac_signal in 1 2 13 15; do
1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379done
1380ac_signal=0
1381
1382# confdefs.h avoids OS command line length limits that DEFS can exceed.
1383rm -rf conftest* confdefs.h
1384# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385echo >confdefs.h
1386
1387# Predefined preprocessor variables.
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_NAME "$PACKAGE_NAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_VERSION "$PACKAGE_VERSION"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_STRING "$PACKAGE_STRING"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411_ACEOF
1412
1413
1414# Let the site file select an alternate cache file if it wants to.
1415# Prefer explicitly selected file to automatically selected ones.
1416if test -z "$CONFIG_SITE"; then
1417 if test "x$prefix" != xNONE; then
1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 else
1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421 fi
1422fi
1423for ac_site_file in $CONFIG_SITE; do
1424 if test -r "$ac_site_file"; then
1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426echo "$as_me: loading site script $ac_site_file" >&6;}
1427 sed 's/^/| /' "$ac_site_file" >&5
1428 . "$ac_site_file"
1429 fi
1430done
1431
1432if test -r "$cache_file"; then
1433 # Some versions of bash will fail to source /dev/null (special
1434 # files actually), so we avoid doing that.
1435 if test -f "$cache_file"; then
1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437echo "$as_me: loading cache $cache_file" >&6;}
1438 case $cache_file in
1439 [\\/]* | ?:[\\/]* ) . $cache_file;;
1440 *) . ./$cache_file;;
1441 esac
1442 fi
1443else
1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445echo "$as_me: creating cache $cache_file" >&6;}
1446 >$cache_file
1447fi
1448
1449# Check that the precious variables saved in the cache have kept the same
1450# value.
1451ac_cache_corrupted=false
1452for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455 eval ac_new_set=\$ac_env_${ac_var}_set
1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457 eval ac_new_val="\$ac_env_${ac_var}_value"
1458 case $ac_old_set,$ac_new_set in
1459 set,)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,set)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,);;
1468 *)
1469 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001471echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001473echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001475echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001476 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001477 fi;;
1478 esac
1479 # Pass precious variables to config.status.
1480 if test "$ac_new_set" = set; then
1481 case $ac_new_val in
1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484 *) ac_arg=$ac_var=$ac_new_val ;;
1485 esac
1486 case " $ac_configure_args " in
1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 esac
1490 fi
1491done
1492if $ac_cache_corrupted; then
1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497 { (exit 1); exit 1; }; }
1498fi
1499
1500ac_ext=c
1501ac_cpp='$CPP $CPPFLAGS'
1502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001532
Misha Brukman19098e52005-05-12 22:15:34 +00001533LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534
1535
1536
1537
1538
1539
1540
John Criswell7a73b802003-06-30 21:59:07 +00001541ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001542for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001543 if test -f $ac_dir/install-sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 break
1547 elif test -f $ac_dir/install.sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 break
1551 elif test -f $ac_dir/shtool; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1554 break
1555 fi
1556done
1557if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1559echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001560 { (exit 1); exit 1; }; }
1561fi
1562ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565
John Criswell392aaa32003-07-22 19:18:09 +00001566
Reid Spencer2706f8c2004-09-19 23:53:36 +00001567if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001568 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1569 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001570echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1571 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001572 fi
John Criswell93e1c722003-09-15 17:04:06 +00001573fi
1574
John Criswell33a911a2003-11-25 20:36:46 +00001575for i in `ls ${srcdir}/projects`
1576do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001577 if test -d ${srcdir}/projects/${i} ; then
1578 case ${i} in
1579 "CVS") ;;
1580 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001581
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582subdirs="$subdirs projects/sample"
1583 ;;
1584 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001585
Reid Spencer4d68ba22004-09-07 16:35:45 +00001586subdirs="$subdirs projects/Stacker"
1587 ;;
John Criswell0389cf72006-06-20 17:44:40 +00001588 "privbracket")
1589
1590subdirs="$subdirs projects/privbracket"
1591 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001592 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001593
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594subdirs="$subdirs projects/llvm-test"
1595 ;;
1596 "llvm-reopt")
1597
1598subdirs="$subdirs projects/llvm-reopt"
1599;;
1600 "llvm-gcc")
1601
1602subdirs="$subdirs projects/llvm-gcc"
1603 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001604 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001605
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001606subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001607 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001608 "llvm-tv")
1609
1610subdirs="$subdirs projects/llvm-tv"
1611 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001612 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001613
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001614subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001615 ;;
John Criswell241116f2005-12-19 20:27:24 +00001616 "llvm-kernel")
1617
1618subdirs="$subdirs projects/llvm-kernel"
1619 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001620 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001621 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1622echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001623 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001624 esac
John Criswell33a911a2003-11-25 20:36:46 +00001625 fi
1626done
John Criswell559a6c12003-09-30 16:31:48 +00001627
John Criswell7a73b802003-06-30 21:59:07 +00001628
1629# Make sure we can run config.sub.
1630$ac_config_sub sun4 >/dev/null 2>&1 ||
1631 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633 { (exit 1); exit 1; }; }
1634
1635echo "$as_me:$LINENO: checking build system type" >&5
1636echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637if test "${ac_cv_build+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 ac_cv_build_alias=$build_alias
1641test -z "$ac_cv_build_alias" &&
1642 ac_cv_build_alias=`$ac_config_guess`
1643test -z "$ac_cv_build_alias" &&
1644 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646 { (exit 1); exit 1; }; }
1647ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1651
1652fi
1653echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654echo "${ECHO_T}$ac_cv_build" >&6
1655build=$ac_cv_build
1656build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661echo "$as_me:$LINENO: checking host system type" >&5
1662echo $ECHO_N "checking host system type... $ECHO_C" >&6
1663if test "${ac_cv_host+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 ac_cv_host_alias=$host_alias
1667test -z "$ac_cv_host_alias" &&
1668 ac_cv_host_alias=$ac_cv_build_alias
1669ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1672 { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1676echo "${ECHO_T}$ac_cv_host" >&6
1677host=$ac_cv_host
1678host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683echo "$as_me:$LINENO: checking target system type" >&5
1684echo $ECHO_N "checking target system type... $ECHO_C" >&6
1685if test "${ac_cv_target+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 ac_cv_target_alias=$target_alias
1689test "x$ac_cv_target_alias" = "x" &&
1690 ac_cv_target_alias=$ac_cv_host_alias
1691ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1693echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1694 { (exit 1); exit 1; }; }
1695
1696fi
1697echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1698echo "${ECHO_T}$ac_cv_target" >&6
1699target=$ac_cv_target
1700target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703
1704
1705# The aliases save the names the user supplied, while $host etc.
1706# will get canonicalized.
1707test -n "$target_alias" &&
1708 test "$program_prefix$program_suffix$program_transform_name" = \
1709 NONENONEs,x,x, &&
1710 program_prefix=${target_alias}-
1711
Reid Spencer7b3e8512004-12-24 06:29:05 +00001712echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1713echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1714if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001718 *-*-aix*)
1719 llvm_cv_os_type="AIX"
1720 llvm_cv_platform_type="Unix" ;;
1721 *-*-cygwin*)
1722 llvm_cv_os_type="Cygwin"
1723 llvm_cv_platform_type="Unix" ;;
1724 *-*-darwin*)
1725 llvm_cv_os_type="Darwin"
1726 llvm_cv_platform_type="Unix" ;;
1727 *-*-freebsd*)
1728 llvm_cv_os_type="FreeBSD"
1729 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00001730 *-*-openbsd*)
1731 llvm_cv_os_type="OpenBSD"
1732 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001733 *-*-hpux*)
1734 llvm_cv_os_type="HP-UX"
1735 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001736 *-*-interix*)
1737 llvm_cv_os_type="Interix"
1738 llvm_cv_platform_type="Unix" ;;
1739 *-*-linux*)
1740 llvm_cv_os_type="Linux"
1741 llvm_cv_platform_type="Unix" ;;
1742 *-*-solaris*)
1743 llvm_cv_os_type="SunOS"
1744 llvm_cv_platform_type="Unix" ;;
1745 *-*-win32*)
1746 llvm_cv_os_type="Win32"
1747 llvm_cv_platform_type="Win32" ;;
1748 *-*-mingw*)
1749 llvm_cv_os_type="MingW"
1750 llvm_cv_platform_type="Win32" ;;
1751 *)
1752 llvm_cv_os_type="Unknown"
1753 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001754esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001755fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001756echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1757echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001758
Reid Spencer7b3e8512004-12-24 06:29:05 +00001759if test "$llvm_cv_os_type" = "Unknown" ; then
1760 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1761echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001762 { (exit 1); exit 1; }; }
1763fi
1764
Reid Spencer7b3e8512004-12-24 06:29:05 +00001765OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001766
1767
Reid Spencer7b3e8512004-12-24 06:29:05 +00001768case $llvm_cv_platform_type in
1769 Unix)
1770
1771cat >>confdefs.h <<\_ACEOF
1772#define LLVM_ON_UNIX 1
1773_ACEOF
1774
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001775 LLVM_ON_UNIX=1
1776
1777 LLVM_ON_WIN32=0
1778
Reid Spencer7b3e8512004-12-24 06:29:05 +00001779 ;;
1780 Win32)
1781
1782cat >>confdefs.h <<\_ACEOF
1783#define LLVM_ON_WIN32 1
1784_ACEOF
1785
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001786 LLVM_ON_UNIX=0
1787
1788 LLVM_ON_WIN32=1
1789
Reid Spencer7b3e8512004-12-24 06:29:05 +00001790 ;;
1791esac
1792
Reid Spencer73fb5482004-08-31 14:20:36 +00001793echo "$as_me:$LINENO: checking target architecture" >&5
1794echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001795if test "${llvm_cv_target_arch+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001799 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001800 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001801 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1802 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001803 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001804 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001805 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001806esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001807fi
1808echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1809echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001810
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001811if test "$llvm_cv_target_arch" = "Unknown" ; then
1812 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1813echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1814fi
John Criswell76595452003-07-01 22:07:39 +00001815
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001816ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001817
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001818
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001819ac_ext=c
1820ac_cpp='$CPP $CPPFLAGS'
1821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001824if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001825 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
1847done
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6
1855else
1856 echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860fi
1861if test -z "$ac_cv_prog_CC"; then
1862 ac_ct_CC=$CC
1863 # Extract the first word of "gcc", so it can be a program name with args.
1864set dummy gcc; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="gcc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884done
1885done
1886
1887fi
1888fi
1889ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892echo "${ECHO_T}$ac_ct_CC" >&6
1893else
1894 echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898 CC=$ac_ct_CC
1899else
1900 CC="$ac_cv_prog_CC"
1901fi
1902
1903if test -z "$CC"; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906set dummy ${ac_tool_prefix}cc; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1925 fi
1926done
1927done
1928
1929fi
1930fi
1931CC=$ac_cv_prog_CC
1932if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934echo "${ECHO_T}$CC" >&6
1935else
1936 echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6
1938fi
1939
1940fi
1941if test -z "$ac_cv_prog_CC"; then
1942 ac_ct_CC=$CC
1943 # Extract the first word of "cc", so it can be a program name with args.
1944set dummy cc; ac_word=$2
1945echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952else
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964done
1965done
1966
1967fi
1968fi
1969ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972echo "${ECHO_T}$ac_ct_CC" >&6
1973else
1974 echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978 CC=$ac_ct_CC
1979else
1980 CC="$ac_cv_prog_CC"
1981fi
1982
1983fi
1984if test -z "$CC"; then
1985 # Extract the first word of "cc", so it can be a program name with args.
1986set dummy cc; ac_word=$2
1987echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994else
1995 ac_prog_rejected=no
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004 ac_prog_rejected=yes
2005 continue
2006 fi
2007 ac_cv_prog_CC="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011done
2012done
2013
2014if test $ac_prog_rejected = yes; then
2015 # We found a bogon in the path, so make sure we never use it.
2016 set dummy $ac_cv_prog_CC
2017 shift
2018 if test $# != 0; then
2019 # We chose a different compiler from the bogus one.
2020 # However, it has the same basename, so the bogon will be chosen
2021 # first if we set CC to just the basename; use the full file name.
2022 shift
2023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024 fi
2025fi
2026fi
2027fi
2028CC=$ac_cv_prog_CC
2029if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031echo "${ECHO_T}$CC" >&6
2032else
2033 echo "$as_me:$LINENO: result: no" >&5
2034echo "${ECHO_T}no" >&6
2035fi
2036
2037fi
2038if test -z "$CC"; then
2039 if test -n "$ac_tool_prefix"; then
2040 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002041 do
2042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044echo "$as_me:$LINENO: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002046if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002051else
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 break 2
2062 fi
2063done
2064done
2065
2066fi
2067fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068CC=$ac_cv_prog_CC
2069if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
2073 echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6
2075fi
2076
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002078 done
2079fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080if test -z "$CC"; then
2081 ac_ct_CC=$CC
2082 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002083do
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085set dummy $ac_prog; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002101 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105done
2106done
2107
2108fi
2109fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002114else
2115 echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002119 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002120done
John Criswell7a73b802003-06-30 21:59:07 +00002121
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002122 CC=$ac_ct_CC
2123fi
2124
John Criswell7a73b802003-06-30 21:59:07 +00002125fi
2126
2127
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002128test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: no acceptable C compiler found in \$PATH
2131See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }
2133
John Criswell7a73b802003-06-30 21:59:07 +00002134# Provide some information about the compiler.
2135echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002136 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002137ac_compiler=`set X $ac_compile; echo $2`
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139 (eval $ac_compiler --version </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144 (eval $ac_compiler -v </dev/null >&5) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149 (eval $ac_compiler -V </dev/null >&5) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153
2154cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002155/* confdefs.h. */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002160
John Criswell7a73b802003-06-30 21:59:07 +00002161int
2162main ()
2163{
2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002170ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002171# Try to create an executable without -o first, disregard a.out.
2172# It will help us diagnose broken compilers, and finding out an intuition
2173# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002174echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002176ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178 (eval $ac_link_default) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 # Find the output, starting from the most likely. This scheme is
2183# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2184# resort.
2185
2186# Be careful to initialize this variable, since it used to be cached.
2187# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2188ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002189# b.out is created by i960 compilers.
2190for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2191do
2192 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002193 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002196 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002197 # This is the source file.
2198 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002199 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002200 # We found the default executable, but exeext='' is most
2201 # certainly right.
2202 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002203 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 # FIXME: I believe we export ac_cv_exeext for Libtool,
2206 # but it would be cool to find out if it's true. Does anybody
2207 # maintain Libtool? --akim.
2208 export ac_cv_exeext
2209 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002210 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002211 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002212 esac
2213done
2214else
2215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002216sed 's/^/| /' conftest.$ac_ext >&5
2217
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002218{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002219See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002220echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002221See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002222 { (exit 77); exit 77; }; }
2223fi
2224
2225ac_exeext=$ac_cv_exeext
2226echo "$as_me:$LINENO: result: $ac_file" >&5
2227echo "${ECHO_T}$ac_file" >&6
2228
2229# Check the compiler produces executables we can run. If not, either
2230# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002231echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002233# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234# If not cross compiling, check that we can run a simple program.
2235if test "$cross_compiling" != yes; then
2236 if { ac_try='./$ac_file'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cross_compiling=no
2243 else
2244 if test "$cross_compiling" = maybe; then
2245 cross_compiling=yes
2246 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002253 { (exit 1); exit 1; }; }
2254 fi
2255 fi
2256fi
2257echo "$as_me:$LINENO: result: yes" >&5
2258echo "${ECHO_T}yes" >&6
2259
John Criswell0c38eaf2003-09-10 15:17:25 +00002260rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002261ac_clean_files=$ac_clean_files_save
2262# Check the compiler produces executables we can run. If not, either
2263# the compiler is broken, or we cross compile.
2264echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267echo "${ECHO_T}$cross_compiling" >&6
2268
2269echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272 (eval $ac_link) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278# work properly (i.e., refer to `conftest.exe'), while it won't with
2279# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002280for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002282 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002285 export ac_cv_exeext
2286 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002287 * ) break;;
2288 esac
2289done
2290else
John Criswell0c38eaf2003-09-10 15:17:25 +00002291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&5
2293echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002295 { (exit 1); exit 1; }; }
2296fi
2297
2298rm -f conftest$ac_cv_exeext
2299echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300echo "${ECHO_T}$ac_cv_exeext" >&6
2301
2302rm -f conftest.$ac_ext
2303EXEEXT=$ac_cv_exeext
2304ac_exeext=$EXEEXT
2305echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002311/* confdefs.h. */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002316
John Criswell7a73b802003-06-30 21:59:07 +00002317int
2318main ()
2319{
2320
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325rm -f conftest.o conftest.obj
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337done
2338else
2339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002346 { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
2351echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6
2353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002366
John Criswell7a73b802003-06-30 21:59:07 +00002367int
2368main ()
2369{
2370#ifndef __GNUC__
2371 choke me
2372#endif
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002380 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_compiler_gnu=yes
2401else
2402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002403sed 's/^/| /' conftest.$ac_ext >&5
2404
John Criswell7a73b802003-06-30 21:59:07 +00002405ac_compiler_gnu=no
2406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002409
2410fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413GCC=`test $ac_compiler_gnu = yes && echo yes`
2414ac_test_CFLAGS=${CFLAGS+set}
2415ac_save_CFLAGS=$CFLAGS
2416CFLAGS="-g"
2417echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002428
John Criswell7a73b802003-06-30 21:59:07 +00002429int
2430main ()
2431{
2432
2433 ;
2434 return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext
2438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002439 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002460else
2461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002462sed 's/^/| /' conftest.$ac_ext >&5
2463
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002465fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002467fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2469echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2470if test "$ac_test_CFLAGS" = set; then
2471 CFLAGS=$ac_save_CFLAGS
2472elif test $ac_cv_prog_cc_g = yes; then
2473 if test "$GCC" = yes; then
2474 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002475 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002477 fi
2478else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479 if test "$GCC" = yes; then
2480 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002481 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002483 fi
2484fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2486echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2487if test "${ac_cv_prog_cc_stdc+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 ac_cv_prog_cc_stdc=no
2491ac_save_CC=$CC
2492cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h. */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h. */
2498#include <stdarg.h>
2499#include <stdio.h>
2500#include <sys/types.h>
2501#include <sys/stat.h>
2502/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2503struct buf { int x; };
2504FILE * (*rcsopen) (struct buf *, struct stat *, int);
2505static char *e (p, i)
2506 char **p;
2507 int i;
2508{
2509 return p[i];
2510}
2511static char *f (char * (*g) (char **, int), char **p, ...)
2512{
2513 char *s;
2514 va_list v;
2515 va_start (v,p);
2516 s = g (p, va_arg (v,int));
2517 va_end (v);
2518 return s;
2519}
2520
2521/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2522 function prototypes and stuff, but not '\xHH' hex character constants.
2523 These don't provoke an error unfortunately, instead are silently treated
2524 as 'x'. The following induces an error, until -std1 is added to get
2525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2526 array size at least. It's necessary to write '\x00'==0 to get something
2527 that's true only with -std1. */
2528int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2529
2530int test (int i, double x);
2531struct s1 {int (*f) (int a);};
2532struct s2 {int (*f) (double a);};
2533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534int argc;
2535char **argv;
2536int
2537main ()
2538{
2539return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544# Don't try gcc -ansi; that turns off useful extensions and
2545# breaks some systems' header files.
2546# AIX -qlanglvl=ansi
2547# Ultrix and OSF/1 -std1
2548# HP-UX 10.20 and later -Ae
2549# HP-UX older versions -Aa -D_HPUX_SOURCE
2550# SVR4 -Xc -D__EXTENSIONS__
2551for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2552do
2553 CC="$ac_save_CC $ac_arg"
2554 rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_prog_cc_stdc=$ac_arg
2577break
2578else
2579 echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582fi
2583rm -f conftest.err conftest.$ac_objext
2584done
2585rm -f conftest.$ac_ext conftest.$ac_objext
2586CC=$ac_save_CC
2587
2588fi
2589
2590case "x$ac_cv_prog_cc_stdc" in
2591 x|xno)
2592 echo "$as_me:$LINENO: result: none needed" >&5
2593echo "${ECHO_T}none needed" >&6 ;;
2594 *)
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597 CC="$CC $ac_cv_prog_cc_stdc" ;;
2598esac
2599
2600# Some people use a C++ compiler to compile C. Since we use `exit',
2601# in C++ we need to declare it. In case someone uses the same compiler
2602# for both compiling C and C++ we need to have the C++ compiler decide
2603# the declaration of exit, since it's the most demanding environment.
2604cat >conftest.$ac_ext <<_ACEOF
2605#ifndef __cplusplus
2606 choke me
2607#endif
2608_ACEOF
2609rm -f conftest.$ac_objext
2610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002632 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002633 'extern "C" void std::exit (int) throw (); using std::exit;' \
2634 'extern "C" void std::exit (int); using std::exit;' \
2635 'extern "C" void exit (int) throw ();' \
2636 'extern "C" void exit (int);' \
2637 'void exit (int);'
2638do
2639 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002645$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002647int
2648main ()
2649{
2650exit (42);
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655rm -f conftest.$ac_objext
2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002657 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002658 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 :
2678else
2679 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002680sed 's/^/| /' conftest.$ac_ext >&5
2681
John Criswell7a73b802003-06-30 21:59:07 +00002682continue
2683fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002685 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002691$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002692int
2693main ()
2694{
2695exit (42);
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002702 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 break
2723else
2724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002725sed 's/^/| /' conftest.$ac_ext >&5
2726
John Criswell7a73b802003-06-30 21:59:07 +00002727fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002729done
2730rm -f conftest*
2731if test -n "$ac_declaration"; then
2732 echo '#ifdef __cplusplus' >>confdefs.h
2733 echo $ac_declaration >>confdefs.h
2734 echo '#endif' >>confdefs.h
2735fi
2736
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737else
2738 echo "$as_me: failed program was:" >&5
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
2741fi
2742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2751echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2752if test "${ac_cv_c_bigendian+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755 # See if sys/param.h defines the BYTE_ORDER macro.
2756cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
2762#include <sys/types.h>
2763#include <sys/param.h>
2764
2765int
2766main ()
2767{
2768#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2769 bogus endian macros
2770#endif
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 # It does; now see whether it defined to BIG_ENDIAN or not.
2799cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
2805#include <sys/types.h>
2806#include <sys/param.h>
2807
2808int
2809main ()
2810{
2811#if BYTE_ORDER != BIG_ENDIAN
2812 not big endian
2813#endif
2814
2815 ;
2816 return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext
2820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_cv_c_bigendian=yes
2842else
2843 echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846ac_cv_c_bigendian=no
2847fi
2848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849else
2850 echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853# It does not; compile a test program.
2854if test "$cross_compiling" = yes; then
2855 # try to guess the endianness by grepping values into an object file
2856 ac_cv_c_bigendian=unknown
2857 cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h. */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h. */
2863short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2864short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2865void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2866short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2867short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2868void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2869int
2870main ()
2871{
2872 _ascii (); _ebcdic ();
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext
2878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2900 ac_cv_c_bigendian=yes
2901fi
2902if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2903 if test "$ac_cv_c_bigendian" = unknown; then
2904 ac_cv_c_bigendian=no
2905 else
2906 # finding both strings is unlikely to happen, but who knows?
2907 ac_cv_c_bigendian=unknown
2908 fi
2909fi
2910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914fi
2915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916else
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923int
2924main ()
2925{
2926 /* Are we little or big endian? From Harbison&Steele. */
2927 union
2928 {
2929 long l;
2930 char c[sizeof (long)];
2931 } u;
2932 u.l = 1;
2933 exit (u.c[sizeof (long) - 1] == 1);
2934}
2935_ACEOF
2936rm -f conftest$ac_exeext
2937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938 (eval $ac_link) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 ac_cv_c_bigendian=no
2948else
2949 echo "$as_me: program exited with status $ac_status" >&5
2950echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953( exit $ac_status )
2954ac_cv_c_bigendian=yes
2955fi
2956rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2957fi
2958fi
2959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960fi
2961echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2962echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2963case $ac_cv_c_bigendian in
2964 yes)
2965 ENDIAN=big
2966 ;;
2967 no)
2968 ENDIAN=little
2969 ;;
2970 *)
2971 { { echo "$as_me:$LINENO: error: unknown endianness
2972presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2973echo "$as_me: error: unknown endianness
2974presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2975 { (exit 1); exit 1; }; } ;;
2976esac
2977
2978
Reid Spencer4ebf3312006-04-08 01:41:26 +00002979if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00002980 cvsbuild="yes"
2981 optimize="no"
Reid Spencer54d14482006-04-07 16:01:51 +00002982 CVSBUILD=CVSBUILD=1
2983
2984else
2985 cvsbuild="no"
2986 optimize="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00002987fi
2988
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002989
2990# Check whether --enable-optimized or --disable-optimized was given.
2991if test "${enable_optimized+set}" = set; then
2992 enableval="$enable_optimized"
2993
2994else
Reid Spencer54d14482006-04-07 16:01:51 +00002995 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002996fi;
2997if test ${enableval} = "no" ; then
2998 ENABLE_OPTIMIZED=
2999
3000else
3001 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3002
3003fi
3004
Reid Spencer54d14482006-04-07 16:01:51 +00003005# Check whether --enable-assertions or --disable-assertions was given.
3006if test "${enable_assertions+set}" = set; then
3007 enableval="$enable_assertions"
3008
3009else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003010 enableval="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003011fi;
Reid Spencerc28ccd82006-04-09 20:42:14 +00003012if test ${enableval} = "yes" ; then
3013 DISABLE_ASSERTIONS=
Reid Spencer54d14482006-04-07 16:01:51 +00003014
3015else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003016 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
Reid Spencer54d14482006-04-07 16:01:51 +00003017
3018fi
3019
Reid Spencer6e96d812005-12-21 03:31:53 +00003020# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3021if test "${enable_debug_runtime+set}" = set; then
3022 enableval="$enable_debug_runtime"
3023
3024else
3025 enableval=no
3026fi;
3027if test ${enableval} = "no" ; then
3028 DEBUG_RUNTIME=
3029
3030else
3031 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3032
3033fi
3034
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003035# Check whether --enable-jit or --disable-jit was given.
3036if test "${enable_jit+set}" = set; then
3037 enableval="$enable_jit"
3038
3039else
3040 enableval=default
3041fi;
3042if test ${enableval} = "no"
3043then
3044 JIT=
3045
3046else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003047 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003048 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003049 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003050 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003051 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003052 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003053 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003054 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003055 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003056 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003057 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003058 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003059 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003060 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061 ;;
3062 esac
3063fi
3064
Reid Spencer1f319422004-11-29 04:56:35 +00003065# Check whether --enable-doxygen or --disable-doxygen was given.
3066if test "${enable_doxygen+set}" = set; then
3067 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003068
Reid Spencer1f319422004-11-29 04:56:35 +00003069else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003070 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003071fi;
3072case "$enableval" in
3073 yes) ENABLE_DOXYGEN=1
3074 ;;
3075 no) ENABLE_DOXYGEN=0
3076 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003077 default) ENABLE_DOXYGEN=0
3078 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3080echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3081 { (exit 1); exit 1; }; } ;;
3082esac
3083
Reid Spencer0a262ba2005-08-24 10:07:20 +00003084# Check whether --enable-threads or --disable-threads was given.
3085if test "${enable_threads+set}" = set; then
3086 enableval="$enable_threads"
3087
3088else
3089 enableval=yes
3090fi;
3091case "$enableval" in
3092 yes) ENABLE_THREADS=1
3093 ;;
3094 no) ENABLE_THREADS=0
3095 ;;
3096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3097echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3098 { (exit 1); exit 1; }; } ;;
3099esac
3100
3101cat >>confdefs.h <<_ACEOF
3102#define ENABLE_THREADS $ENABLE_THREADS
3103_ACEOF
3104
3105
Reid Spencer945de9b2005-04-22 07:27:28 +00003106TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003107# Check whether --enable-targets or --disable-targets was given.
3108if test "${enable_targets+set}" = set; then
3109 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003110
3111else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003112 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003113fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003114case "$enableval" in
Rafael Espindola7bc59bc2006-05-14 22:18:28 +00003115 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003116 host-only)
3117 case "$llvm_cv_target_arch" in
3118 x86) TARGETS_TO_BUILD="X86" ;;
3119 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003120 Sparc) TARGETS_TO_BUILD="Sparc" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003121 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3122 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3123 IA64) TARGETS_TO_BUILD="IA64" ;;
3124 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003125echo "$as_me: error: Can not set target to build" >&2;}
3126 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003127 esac
3128 ;;
3129 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3130 case "$a_target" in
3131 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3132 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003133 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003134 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3135 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3136 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003137 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3138echo "$as_me: error: Unrecognized target $a_target" >&2;}
3139 { (exit 1); exit 1; }; } ;;
3140 esac
3141 done
3142 ;;
3143esac
Reid Spencer675f0922005-04-22 17:06:18 +00003144TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003145TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3146
3147
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003148
Reid Spencer59473af2004-12-25 07:31:29 +00003149# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3150if test "${with_llvmgccdir+set}" = set; then
3151 withval="$with_llvmgccdir"
3152
3153else
3154 withval=default
3155fi;
3156case "$withval" in
3157 default) WITH_LLVMGCCDIR=default ;;
Reid Spencer0fa145d2006-05-21 10:40:20 +00003158 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Reid Spencer59473af2004-12-25 07:31:29 +00003159 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3160echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3161 { (exit 1); exit 1; }; } ;;
3162esac
3163
3164
Reid Spencer945de9b2005-04-22 07:27:28 +00003165
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3172echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3173# On Suns, sometimes $CPP names a directory.
3174if test -n "$CPP" && test -d "$CPP"; then
3175 CPP=
3176fi
3177if test -z "$CPP"; then
3178 if test "${ac_cv_prog_CPP+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181 # Double quotes because CPP needs to be expanded
3182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3183 do
3184 ac_preproc_ok=false
3185for ac_c_preproc_warn_flag in '' yes
3186do
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat >conftest.$ac_ext <<_ACEOF
3194/* confdefs.h. */
3195_ACEOF
3196cat confdefs.h >>conftest.$ac_ext
3197cat >>conftest.$ac_ext <<_ACEOF
3198/* end confdefs.h. */
3199#ifdef __STDC__
3200# include <limits.h>
3201#else
3202# include <assert.h>
3203#endif
3204 Syntax error
3205_ACEOF
3206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217 else
3218 ac_cpp_err=
3219 fi
3220else
3221 ac_cpp_err=yes
3222fi
3223if test -z "$ac_cpp_err"; then
3224 :
3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 # Broken: fails on valid input.
3230continue
3231fi
3232rm -f conftest.err conftest.$ac_ext
3233
3234 # OK, works on sane cases. Now check whether non-existent headers
3235 # can be detected and how.
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242#include <ac_nonexistent.h>
3243_ACEOF
3244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 else
3256 ac_cpp_err=
3257 fi
3258else
3259 ac_cpp_err=yes
3260fi
3261if test -z "$ac_cpp_err"; then
3262 # Broken: success on invalid input.
3263continue
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 # Passes both tests.
3269ac_preproc_ok=:
3270break
3271fi
3272rm -f conftest.err conftest.$ac_ext
3273
3274done
3275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276rm -f conftest.err conftest.$ac_ext
3277if $ac_preproc_ok; then
3278 break
3279fi
3280
3281 done
3282 ac_cv_prog_CPP=$CPP
3283
3284fi
3285 CPP=$ac_cv_prog_CPP
3286else
3287 ac_cv_prog_CPP=$CPP
3288fi
3289echo "$as_me:$LINENO: result: $CPP" >&5
3290echo "${ECHO_T}$CPP" >&6
3291ac_preproc_ok=false
3292for ac_c_preproc_warn_flag in '' yes
3293do
3294 # Use a header file that comes with gcc, so configuring glibc
3295 # with a fresh cross-compiler works.
3296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297 # <limits.h> exists even on freestanding compilers.
3298 # On the NeXT, cc -E runs the code through the compiler's parser,
3299 # not just through cpp. "Syntax error" is here to catch this case.
3300 cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306#ifdef __STDC__
3307# include <limits.h>
3308#else
3309# include <assert.h>
3310#endif
3311 Syntax error
3312_ACEOF
3313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 else
3325 ac_cpp_err=
3326 fi
3327else
3328 ac_cpp_err=yes
3329fi
3330if test -z "$ac_cpp_err"; then
3331 :
3332else
3333 echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 # Broken: fails on valid input.
3337continue
3338fi
3339rm -f conftest.err conftest.$ac_ext
3340
3341 # OK, works on sane cases. Now check whether non-existent headers
3342 # can be detected and how.
3343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349#include <ac_nonexistent.h>
3350_ACEOF
3351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
3365else
3366 ac_cpp_err=yes
3367fi
3368if test -z "$ac_cpp_err"; then
3369 # Broken: success on invalid input.
3370continue
3371else
3372 echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 # Passes both tests.
3376ac_preproc_ok=:
3377break
3378fi
3379rm -f conftest.err conftest.$ac_ext
3380
3381done
3382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3383rm -f conftest.err conftest.$ac_ext
3384if $ac_preproc_ok; then
3385 :
3386else
3387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3388See \`config.log' for more details." >&5
3389echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3390See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3392fi
3393
John Criswell7a73b802003-06-30 21:59:07 +00003394ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405if test -n "$ac_tool_prefix"; then
3406 for ac_prog in gcc
3407 do
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410echo "$as_me:$LINENO: checking for $ac_word" >&5
3411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3412if test "${ac_cv_prog_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417else
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429done
3430done
3431
3432fi
3433fi
3434CC=$ac_cv_prog_CC
3435if test -n "$CC"; then
3436 echo "$as_me:$LINENO: result: $CC" >&5
3437echo "${ECHO_T}$CC" >&6
3438else
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441fi
3442
3443 test -n "$CC" && break
3444 done
3445fi
3446if test -z "$CC"; then
3447 ac_ct_CC=$CC
3448 for ac_prog in gcc
3449do
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451set dummy $ac_prog; ac_word=$2
3452echo "$as_me:$LINENO: checking for $ac_word" >&5
3453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459else
3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="$ac_prog"
3468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471done
3472done
3473
3474fi
3475fi
3476ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477if test -n "$ac_ct_CC"; then
3478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3479echo "${ECHO_T}$ac_ct_CC" >&6
3480else
3481 echo "$as_me:$LINENO: result: no" >&5
3482echo "${ECHO_T}no" >&6
3483fi
3484
3485 test -n "$ac_ct_CC" && break
3486done
3487
3488 CC=$ac_ct_CC
3489fi
3490
3491
John Criswell0c38eaf2003-09-10 15:17:25 +00003492test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3493See \`config.log' for more details." >&5
3494echo "$as_me: error: no acceptable C compiler found in \$PATH
3495See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003496 { (exit 1); exit 1; }; }
3497
3498# Provide some information about the compiler.
3499echo "$as_me:$LINENO:" \
3500 "checking for C compiler version" >&5
3501ac_compiler=`set X $ac_compile; echo $2`
3502{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503 (eval $ac_compiler --version </dev/null >&5) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508 (eval $ac_compiler -v </dev/null >&5) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513 (eval $ac_compiler -V </dev/null >&5) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }
3517
3518echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3519echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3520if test "${ac_cv_c_compiler_gnu+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522else
3523 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003529
John Criswell7a73b802003-06-30 21:59:07 +00003530int
3531main ()
3532{
3533#ifndef __GNUC__
3534 choke me
3535#endif
3536
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541rm -f conftest.$ac_objext
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003543 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_compiler_gnu=yes
3564else
3565 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003566sed 's/^/| /' conftest.$ac_ext >&5
3567
John Criswell7a73b802003-06-30 21:59:07 +00003568ac_compiler_gnu=no
3569fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003571ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572
3573fi
3574echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3575echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3576GCC=`test $ac_compiler_gnu = yes && echo yes`
3577ac_test_CFLAGS=${CFLAGS+set}
3578ac_save_CFLAGS=$CFLAGS
3579CFLAGS="-g"
3580echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3581echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3582if test "${ac_cv_prog_cc_g+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003591
John Criswell7a73b802003-06-30 21:59:07 +00003592int
3593main ()
3594{
3595
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext
3601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003602 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003609 { ac_try='test -z "$ac_c_werror_flag"
3610 || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_prog_cc_g=yes
3623else
3624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003625sed 's/^/| /' conftest.$ac_ext >&5
3626
John Criswell7a73b802003-06-30 21:59:07 +00003627ac_cv_prog_cc_g=no
3628fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003630fi
3631echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3632echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3633if test "$ac_test_CFLAGS" = set; then
3634 CFLAGS=$ac_save_CFLAGS
3635elif test $ac_cv_prog_cc_g = yes; then
3636 if test "$GCC" = yes; then
3637 CFLAGS="-g -O2"
3638 else
3639 CFLAGS="-g"
3640 fi
3641else
3642 if test "$GCC" = yes; then
3643 CFLAGS="-O2"
3644 else
3645 CFLAGS=
3646 fi
3647fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003648echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3649echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3650if test "${ac_cv_prog_cc_stdc+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 ac_cv_prog_cc_stdc=no
3654ac_save_CC=$CC
3655cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h. */
3661#include <stdarg.h>
3662#include <stdio.h>
3663#include <sys/types.h>
3664#include <sys/stat.h>
3665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666struct buf { int x; };
3667FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668static char *e (p, i)
3669 char **p;
3670 int i;
3671{
3672 return p[i];
3673}
3674static char *f (char * (*g) (char **, int), char **p, ...)
3675{
3676 char *s;
3677 va_list v;
3678 va_start (v,p);
3679 s = g (p, va_arg (v,int));
3680 va_end (v);
3681 return s;
3682}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003683
3684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std1 is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std1. */
3691int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3692
John Criswell0c38eaf2003-09-10 15:17:25 +00003693int test (int i, double x);
3694struct s1 {int (*f) (int a);};
3695struct s2 {int (*f) (double a);};
3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697int argc;
3698char **argv;
3699int
3700main ()
3701{
3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 ;
3704 return 0;
3705}
3706_ACEOF
3707# Don't try gcc -ansi; that turns off useful extensions and
3708# breaks some systems' header files.
3709# AIX -qlanglvl=ansi
3710# Ultrix and OSF/1 -std1
3711# HP-UX 10.20 and later -Ae
3712# HP-UX older versions -Aa -D_HPUX_SOURCE
3713# SVR4 -Xc -D__EXTENSIONS__
3714for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715do
3716 CC="$ac_save_CC $ac_arg"
3717 rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003719 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_cv_prog_cc_stdc=$ac_arg
3740break
3741else
3742 echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003747done
3748rm -f conftest.$ac_ext conftest.$ac_objext
3749CC=$ac_save_CC
3750
3751fi
3752
3753case "x$ac_cv_prog_cc_stdc" in
3754 x|xno)
3755 echo "$as_me:$LINENO: result: none needed" >&5
3756echo "${ECHO_T}none needed" >&6 ;;
3757 *)
3758 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3759echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3760 CC="$CC $ac_cv_prog_cc_stdc" ;;
3761esac
3762
John Criswell7a73b802003-06-30 21:59:07 +00003763# Some people use a C++ compiler to compile C. Since we use `exit',
3764# in C++ we need to declare it. In case someone uses the same compiler
3765# for both compiling C and C++ we need to have the C++ compiler decide
3766# the declaration of exit, since it's the most demanding environment.
3767cat >conftest.$ac_ext <<_ACEOF
3768#ifndef __cplusplus
3769 choke me
3770#endif
3771_ACEOF
3772rm -f conftest.$ac_objext
3773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003774 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003775 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003781 { ac_try='test -z "$ac_c_werror_flag"
3782 || test ! -s conftest.err'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003795 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003796 'extern "C" void std::exit (int) throw (); using std::exit;' \
3797 'extern "C" void std::exit (int); using std::exit;' \
3798 'extern "C" void exit (int) throw ();' \
3799 'extern "C" void exit (int);' \
3800 'void exit (int);'
3801do
3802 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003808$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003809#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003810int
3811main ()
3812{
3813exit (42);
3814 ;
3815 return 0;
3816}
3817_ACEOF
3818rm -f conftest.$ac_objext
3819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003820 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003821 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003827 { ac_try='test -z "$ac_c_werror_flag"
3828 || test ! -s conftest.err'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; } &&
3834 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 :
3841else
3842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003843sed 's/^/| /' conftest.$ac_ext >&5
3844
John Criswell7a73b802003-06-30 21:59:07 +00003845continue
3846fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003848 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003854$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003855int
3856main ()
3857{
3858exit (42);
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863rm -f conftest.$ac_objext
3864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003865 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003867 grep -v '^ *+' conftest.er1 >conftest.err
3868 rm -f conftest.er1
3869 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003872 { ac_try='test -z "$ac_c_werror_flag"
3873 || test ! -s conftest.err'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 (eval $ac_try) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 break
3886else
3887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003888sed 's/^/| /' conftest.$ac_ext >&5
3889
John Criswell7a73b802003-06-30 21:59:07 +00003890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003892done
3893rm -f conftest*
3894if test -n "$ac_declaration"; then
3895 echo '#ifdef __cplusplus' >>confdefs.h
3896 echo $ac_declaration >>confdefs.h
3897 echo '#endif' >>confdefs.h
3898fi
3899
3900else
3901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003902sed 's/^/| /' conftest.$ac_ext >&5
3903
John Criswell7a73b802003-06-30 21:59:07 +00003904fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003906ac_ext=c
3907ac_cpp='$CPP $CPPFLAGS'
3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003912ac_ext=cc
3913ac_cpp='$CXXCPP $CPPFLAGS'
3914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3917if test -n "$ac_tool_prefix"; then
3918 for ac_prog in $CCC g++
3919 do
3920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3922echo "$as_me:$LINENO: checking for $ac_word" >&5
3923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003927 if test -n "$CXX"; then
3928 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003932do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942done
3943
3944fi
3945fi
3946CXX=$ac_cv_prog_CXX
3947if test -n "$CXX"; then
3948 echo "$as_me:$LINENO: result: $CXX" >&5
3949echo "${ECHO_T}$CXX" >&6
3950else
3951 echo "$as_me:$LINENO: result: no" >&5
3952echo "${ECHO_T}no" >&6
3953fi
3954
3955 test -n "$CXX" && break
3956 done
3957fi
3958if test -z "$CXX"; then
3959 ac_ct_CXX=$CXX
3960 for ac_prog in $CCC g++
3961do
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963set dummy $ac_prog; ac_word=$2
3964echo "$as_me:$LINENO: checking for $ac_word" >&5
3965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 if test -n "$ac_ct_CXX"; then
3970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CXX="$ac_prog"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984done
3985
3986fi
3987fi
3988ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3989if test -n "$ac_ct_CXX"; then
3990 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3991echo "${ECHO_T}$ac_ct_CXX" >&6
3992else
3993 echo "$as_me:$LINENO: result: no" >&5
3994echo "${ECHO_T}no" >&6
3995fi
3996
3997 test -n "$ac_ct_CXX" && break
3998done
3999test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4000
4001 CXX=$ac_ct_CXX
4002fi
4003
4004
4005# Provide some information about the compiler.
4006echo "$as_me:$LINENO:" \
4007 "checking for C++ compiler version" >&5
4008ac_compiler=`set X $ac_compile; echo $2`
4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4010 (eval $ac_compiler --version </dev/null >&5) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4015 (eval $ac_compiler -v </dev/null >&5) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4019{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4020 (eval $ac_compiler -V </dev/null >&5) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }
4024
4025echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4026echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4027if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
John Criswell7a73b802003-06-30 21:59:07 +00004030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004036
4037int
4038main ()
4039{
4040#ifndef __GNUC__
4041 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004042#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004043
4044 ;
4045 return 0;
4046}
John Criswell7a73b802003-06-30 21:59:07 +00004047_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004048rm -f conftest.$ac_objext
4049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004051 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004052 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004056 (exit $ac_status); } &&
4057 { ac_try='test -z "$ac_cxx_werror_flag"
4058 || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_compiler_gnu=yes
4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075ac_compiler_gnu=no
4076fi
4077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4079
4080fi
4081echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4082echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4083GXX=`test $ac_compiler_gnu = yes && echo yes`
4084ac_test_CXXFLAGS=${CXXFLAGS+set}
4085ac_save_CXXFLAGS=$CXXFLAGS
4086CXXFLAGS="-g"
4087echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4088echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4089if test "${ac_cv_prog_cxx_g+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092 cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098
4099int
4100main ()
4101{
4102
4103 ;
4104 return 0;
4105}
4106_ACEOF
4107rm -f conftest.$ac_objext
4108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_cxx_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_prog_cxx_g=yes
4130else
4131 echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134ac_cv_prog_cxx_g=no
4135fi
4136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137fi
4138echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4139echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4140if test "$ac_test_CXXFLAGS" = set; then
4141 CXXFLAGS=$ac_save_CXXFLAGS
4142elif test $ac_cv_prog_cxx_g = yes; then
4143 if test "$GXX" = yes; then
4144 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004145 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004146 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004147 fi
4148else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004149 if test "$GXX" = yes; then
4150 CXXFLAGS="-O2"
4151 else
4152 CXXFLAGS=
4153 fi
John Criswell7a73b802003-06-30 21:59:07 +00004154fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004155for ac_declaration in \
4156 '' \
4157 'extern "C" void std::exit (int) throw (); using std::exit;' \
4158 'extern "C" void std::exit (int); using std::exit;' \
4159 'extern "C" void exit (int) throw ();' \
4160 'extern "C" void exit (int);' \
4161 'void exit (int);'
4162do
4163 cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169$ac_declaration
4170#include <stdlib.h>
4171int
4172main ()
4173{
4174exit (42);
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179rm -f conftest.$ac_objext
4180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_cxx_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004201 :
4202else
4203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004204sed 's/^/| /' conftest.$ac_ext >&5
4205
John Criswell7a73b802003-06-30 21:59:07 +00004206continue
4207fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004210/* confdefs.h. */
4211_ACEOF
4212cat confdefs.h >>conftest.$ac_ext
4213cat >>conftest.$ac_ext <<_ACEOF
4214/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004215$ac_declaration
4216int
4217main ()
4218{
4219exit (42);
4220 ;
4221 return 0;
4222}
John Criswell7a73b802003-06-30 21:59:07 +00004223_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004224rm -f conftest.$ac_objext
4225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004227 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004228 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_cxx_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004246 break
John Criswell7a73b802003-06-30 21:59:07 +00004247else
4248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004249sed 's/^/| /' conftest.$ac_ext >&5
4250
John Criswell7a73b802003-06-30 21:59:07 +00004251fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004253done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004254rm -f conftest*
4255if test -n "$ac_declaration"; then
4256 echo '#ifdef __cplusplus' >>confdefs.h
4257 echo $ac_declaration >>confdefs.h
4258 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004259fi
4260
4261ac_ext=c
4262ac_cpp='$CPP $CPPFLAGS'
4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
John Criswell7a73b802003-06-30 21:59:07 +00004267echo "$as_me:$LINENO: checking " >&5
4268echo $ECHO_N "checking ... $ECHO_C" >&6
4269if test "${ac_cv_has_flex+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272 for ac_prog in flex lex
4273do
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275set dummy $ac_prog; ac_word=$2
4276echo "$as_me:$LINENO: checking for $ac_word" >&5
4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278if test "${ac_cv_prog_LEX+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 if test -n "$LEX"; then
4282 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_LEX="$ac_prog"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296done
4297
4298fi
4299fi
4300LEX=$ac_cv_prog_LEX
4301if test -n "$LEX"; then
4302 echo "$as_me:$LINENO: result: $LEX" >&5
4303echo "${ECHO_T}$LEX" >&6
4304else
4305 echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
4307fi
4308
4309 test -n "$LEX" && break
4310done
4311test -n "$LEX" || LEX=":"
4312
4313if test -z "$LEXLIB"
4314then
4315 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4316echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4317if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320 ac_check_lib_save_LIBS=$LIBS
4321LIBS="-lfl $LIBS"
4322cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004328
4329/* Override any gcc2 internal prototype to avoid an error. */
4330#ifdef __cplusplus
4331extern "C"
4332#endif
4333/* We use char because int might match the return type of a gcc2
4334 builtin and then its argument prototype would still apply. */
4335char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004336int
4337main ()
4338{
4339yywrap ();
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004346 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_lib_fl_yywrap=yes
4367else
4368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004369sed 's/^/| /' conftest.$ac_ext >&5
4370
John Criswell7a73b802003-06-30 21:59:07 +00004371ac_cv_lib_fl_yywrap=no
4372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004373rm -f conftest.err conftest.$ac_objext \
4374 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004375LIBS=$ac_check_lib_save_LIBS
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4378echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4379if test $ac_cv_lib_fl_yywrap = yes; then
4380 LEXLIB="-lfl"
4381else
4382 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4383echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4384if test "${ac_cv_lib_l_yywrap+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387 ac_check_lib_save_LIBS=$LIBS
4388LIBS="-ll $LIBS"
4389cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004390/* confdefs.h. */
4391_ACEOF
4392cat confdefs.h >>conftest.$ac_ext
4393cat >>conftest.$ac_ext <<_ACEOF
4394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004395
4396/* Override any gcc2 internal prototype to avoid an error. */
4397#ifdef __cplusplus
4398extern "C"
4399#endif
4400/* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4402char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004403int
4404main ()
4405{
4406yywrap ();
4407 ;
4408 return 0;
4409}
4410_ACEOF
4411rm -f conftest.$ac_objext conftest$ac_exeext
4412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004413 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004415 grep -v '^ *+' conftest.er1 >conftest.err
4416 rm -f conftest.er1
4417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_lib_l_yywrap=yes
4434else
4435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004436sed 's/^/| /' conftest.$ac_ext >&5
4437
John Criswell7a73b802003-06-30 21:59:07 +00004438ac_cv_lib_l_yywrap=no
4439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004440rm -f conftest.err conftest.$ac_objext \
4441 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004442LIBS=$ac_check_lib_save_LIBS
4443fi
4444echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4445echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4446if test $ac_cv_lib_l_yywrap = yes; then
4447 LEXLIB="-ll"
4448fi
4449
4450fi
4451
4452fi
4453
4454if test "x$LEX" != "x:"; then
4455 echo "$as_me:$LINENO: checking lex output file root" >&5
4456echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4457if test "${ac_cv_prog_lex_root+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460 # The minimal lex program is just a single line: %%. But some broken lexes
4461# (Solaris, I think it was) want two %% lines, so accommodate them.
4462cat >conftest.l <<_ACEOF
4463%%
4464%%
4465_ACEOF
4466{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4467 (eval $LEX conftest.l) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }
4471if test -f lex.yy.c; then
4472 ac_cv_prog_lex_root=lex.yy
4473elif test -f lexyy.c; then
4474 ac_cv_prog_lex_root=lexyy
4475else
4476 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4477echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4478 { (exit 1); exit 1; }; }
4479fi
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4482echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4483rm -f conftest.l
4484LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4485
4486echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4487echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4488if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 # POSIX says lex can declare yytext either as a pointer or an array; the
4492# default is implementation-dependent. Figure out which it is, since
4493# not all implementations provide the %pointer and %array declarations.
4494ac_cv_prog_lex_yytext_pointer=no
4495echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4496ac_save_LIBS=$LIBS
4497LIBS="$LIBS $LEXLIB"
4498cat >conftest.$ac_ext <<_ACEOF
4499`cat $LEX_OUTPUT_ROOT.c`
4500_ACEOF
4501rm -f conftest.$ac_objext conftest$ac_exeext
4502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004503 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004504 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_cv_prog_lex_yytext_pointer=yes
4524else
4525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004526sed 's/^/| /' conftest.$ac_ext >&5
4527
John Criswell7a73b802003-06-30 21:59:07 +00004528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004529rm -f conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004531LIBS=$ac_save_LIBS
4532rm -f "${LEX_OUTPUT_ROOT}.c"
4533
4534fi
4535echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4536echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4537if test $ac_cv_prog_lex_yytext_pointer = yes; then
4538
4539cat >>confdefs.h <<\_ACEOF
4540#define YYTEXT_POINTER 1
4541_ACEOF
4542
4543fi
4544
4545fi
4546
4547fi
4548echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4549echo "${ECHO_T}$ac_cv_has_flex" >&6
4550if test "$LEX" != "flex"; then
4551 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4552echo "$as_me: error: flex not found but required" >&2;}
4553 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004554else
4555 FLEX=flex
4556
John Criswell7a73b802003-06-30 21:59:07 +00004557fi
4558
4559echo "$as_me:$LINENO: checking " >&5
4560echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004561if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564 for ac_prog in 'bison -y' byacc
4565do
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567set dummy $ac_prog; ac_word=$2
4568echo "$as_me:$LINENO: checking for $ac_word" >&5
4569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570if test "${ac_cv_prog_YACC+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573 if test -n "$YACC"; then
4574 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_YACC="$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
4588done
4589
4590fi
4591fi
4592YACC=$ac_cv_prog_YACC
4593if test -n "$YACC"; then
4594 echo "$as_me:$LINENO: result: $YACC" >&5
4595echo "${ECHO_T}$YACC" >&6
4596else
4597 echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
4599fi
4600
4601 test -n "$YACC" && break
4602done
4603test -n "$YACC" || YACC="yacc"
4604
John Criswell7a73b802003-06-30 21:59:07 +00004605fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004606echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4607echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004608if test "$YACC" != "bison -y"; then
4609 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4610echo "$as_me: error: bison not found but required" >&2;}
4611 { (exit 1); exit 1; }; }
4612else
Brian Gaeke12810632004-01-13 06:52:10 +00004613 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004614
4615fi
4616
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004617echo "$as_me:$LINENO: checking for GNU make" >&5
4618echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4619if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004622 llvm_cv_gnu_make_command=''
4623 for a in "$MAKE" make gmake gnumake ; do
4624 if test -z "$a" ; then continue ; fi ;
4625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4626 then
4627 llvm_cv_gnu_make_command=$a ;
4628 break;
John Criswell47fdd832003-07-14 16:52:07 +00004629 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004630 done
John Criswell7a73b802003-06-30 21:59:07 +00004631fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004632echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4633echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4635 ifGNUmake='' ;
4636 else
4637 ifGNUmake='#' ;
4638 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4639echo "${ECHO_T}\"Not found\"" >&6;
4640 fi
John Criswell7a73b802003-06-30 21:59:07 +00004641
John Criswell7a73b802003-06-30 21:59:07 +00004642
4643echo "$as_me:$LINENO: checking whether ln -s works" >&5
4644echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4645LN_S=$as_ln_s
4646if test "$LN_S" = "ln -s"; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649else
4650 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4651echo "${ECHO_T}no, using $LN_S" >&6
4652fi
4653
Reid Spencer8a2d4712004-12-16 17:48:14 +00004654# Extract the first word of "cmp", so it can be a program name with args.
4655set dummy cmp; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658if test "${ac_cv_path_CMP+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 case $CMP in
4662 [\\/]* | ?:[\\/]*)
4663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4664 ;;
4665 *)
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678done
4679
4680 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4681 ;;
4682esac
4683fi
4684CMP=$ac_cv_path_CMP
4685
4686if test -n "$CMP"; then
4687 echo "$as_me:$LINENO: result: $CMP" >&5
4688echo "${ECHO_T}$CMP" >&6
4689else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692fi
4693
4694# Extract the first word of "cp", so it can be a program name with args.
4695set dummy cp; ac_word=$2
4696echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698if test "${ac_cv_path_CP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 case $CP in
4702 [\\/]* | ?:[\\/]*)
4703 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4704 ;;
4705 *)
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718done
4719
4720 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4721 ;;
4722esac
4723fi
4724CP=$ac_cv_path_CP
4725
4726if test -n "$CP"; then
4727 echo "$as_me:$LINENO: result: $CP" >&5
4728echo "${ECHO_T}$CP" >&6
4729else
4730 echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732fi
4733
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004734# Extract the first word of "date", so it can be a program name with args.
4735set dummy date; ac_word=$2
4736echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004741 case $DATE in
4742 [\\/]* | ?:[\\/]*)
4743 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004744 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004745 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004756 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004757done
4758done
John Criswell7a73b802003-06-30 21:59:07 +00004759
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004760 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004761 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004762esac
John Criswell7a73b802003-06-30 21:59:07 +00004763fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004764DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004765
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004766if test -n "$DATE"; then
4767 echo "$as_me:$LINENO: result: $DATE" >&5
4768echo "${ECHO_T}$DATE" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
John Criswell7a73b802003-06-30 21:59:07 +00004773
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004774# Extract the first word of "find", so it can be a program name with args.
4775set dummy find; ac_word=$2
4776echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004781 case $FIND in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797done
4798done
4799
4800 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4801 ;;
4802esac
4803fi
4804FIND=$ac_cv_path_FIND
4805
4806if test -n "$FIND"; then
4807 echo "$as_me:$LINENO: result: $FIND" >&5
4808echo "${ECHO_T}$FIND" >&6
4809else
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
4814# Extract the first word of "grep", so it can be a program name with args.
4815set dummy grep; ac_word=$2
4816echo "$as_me:$LINENO: checking for $ac_word" >&5
4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818if test "${ac_cv_path_GREP+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821 case $GREP in
4822 [\\/]* | ?:[\\/]*)
4823 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4824 ;;
4825 *)
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837done
4838done
4839
4840 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4841 ;;
4842esac
4843fi
4844GREP=$ac_cv_path_GREP
4845
4846if test -n "$GREP"; then
4847 echo "$as_me:$LINENO: result: $GREP" >&5
4848echo "${ECHO_T}$GREP" >&6
4849else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852fi
4853
4854# Extract the first word of "mkdir", so it can be a program name with args.
4855set dummy mkdir; ac_word=$2
4856echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858if test "${ac_cv_path_MKDIR+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 case $MKDIR in
4862 [\\/]* | ?:[\\/]*)
4863 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4864 ;;
4865 *)
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878done
4879
4880 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4881 ;;
4882esac
4883fi
4884MKDIR=$ac_cv_path_MKDIR
4885
4886if test -n "$MKDIR"; then
4887 echo "$as_me:$LINENO: result: $MKDIR" >&5
4888echo "${ECHO_T}$MKDIR" >&6
4889else
4890 echo "$as_me:$LINENO: result: no" >&5
4891echo "${ECHO_T}no" >&6
4892fi
4893
4894# Extract the first word of "mv", so it can be a program name with args.
4895set dummy mv; ac_word=$2
4896echo "$as_me:$LINENO: checking for $ac_word" >&5
4897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898if test "${ac_cv_path_MV+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901 case $MV in
4902 [\\/]* | ?:[\\/]*)
4903 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4904 ;;
4905 *)
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918done
4919
4920 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4921 ;;
4922esac
4923fi
4924MV=$ac_cv_path_MV
4925
4926if test -n "$MV"; then
4927 echo "$as_me:$LINENO: result: $MV" >&5
4928echo "${ECHO_T}$MV" >&6
4929else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932fi
4933
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004934if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4936set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4937echo "$as_me:$LINENO: checking for $ac_word" >&5
4938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939if test "${ac_cv_prog_RANLIB+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
4942 if test -n "$RANLIB"; then
4943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956done
4957done
4958
4959fi
4960fi
4961RANLIB=$ac_cv_prog_RANLIB
4962if test -n "$RANLIB"; then
4963 echo "$as_me:$LINENO: result: $RANLIB" >&5
4964echo "${ECHO_T}$RANLIB" >&6
4965else
4966 echo "$as_me:$LINENO: result: no" >&5
4967echo "${ECHO_T}no" >&6
4968fi
4969
4970fi
4971if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974set dummy ranlib; ac_word=$2
4975echo "$as_me:$LINENO: checking for $ac_word" >&5
4976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4977if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4982else
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_ac_ct_RANLIB="ranlib"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994done
4995done
4996
4997 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4998fi
4999fi
5000ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5001if test -n "$ac_ct_RANLIB"; then
5002 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003echo "${ECHO_T}$ac_ct_RANLIB" >&6
5004else
5005 echo "$as_me:$LINENO: result: no" >&5
5006echo "${ECHO_T}no" >&6
5007fi
5008
5009 RANLIB=$ac_ct_RANLIB
5010else
5011 RANLIB="$ac_cv_prog_RANLIB"
5012fi
5013
5014# Extract the first word of "rm", so it can be a program name with args.
5015set dummy rm; ac_word=$2
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_path_RM+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021 case $RM in
5022 [\\/]* | ?:[\\/]*)
5023 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5024 ;;
5025 *)
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037done
5038done
5039
5040 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5041 ;;
5042esac
5043fi
5044RM=$ac_cv_path_RM
5045
5046if test -n "$RM"; then
5047 echo "$as_me:$LINENO: result: $RM" >&5
5048echo "${ECHO_T}$RM" >&6
5049else
5050 echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6
5052fi
5053
5054# Extract the first word of "sed", so it can be a program name with args.
5055set dummy sed; ac_word=$2
5056echo "$as_me:$LINENO: checking for $ac_word" >&5
5057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058if test "${ac_cv_path_SED+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 case $SED in
5062 [\\/]* | ?:[\\/]*)
5063 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5064 ;;
5065 *)
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077done
5078done
5079
5080 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5081 ;;
5082esac
5083fi
5084SED=$ac_cv_path_SED
5085
5086if test -n "$SED"; then
5087 echo "$as_me:$LINENO: result: $SED" >&5
5088echo "${ECHO_T}$SED" >&6
5089else
5090 echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
5092fi
5093
5094# Extract the first word of "tar", so it can be a program name with args.
5095set dummy tar; ac_word=$2
5096echo "$as_me:$LINENO: checking for $ac_word" >&5
5097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098if test "${ac_cv_path_TAR+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101 case $TAR in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5104 ;;
5105 *)
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117done
5118done
5119
5120 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5121 ;;
5122esac
5123fi
5124TAR=$ac_cv_path_TAR
5125
5126if test -n "$TAR"; then
5127 echo "$as_me:$LINENO: result: $TAR" >&5
5128echo "${ECHO_T}$TAR" >&6
5129else
5130 echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
5132fi
5133
Reid Spencerecbd2422006-06-02 23:13:18 +00005134
Reid Spencer8a2246f2005-07-13 03:20:14 +00005135# Extract the first word of "Graphviz", so it can be a program name with args.
5136set dummy Graphviz; ac_word=$2
5137echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142 case $GRAPHVIZ in
5143 [\\/]* | ?:[\\/]*)
5144 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5145 ;;
5146 *)
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159done
5160
Reid Spencerc232a652005-07-14 02:25:12 +00005161 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005162 ;;
5163esac
5164fi
5165GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5166
5167if test -n "$GRAPHVIZ"; then
5168 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5169echo "${ECHO_T}$GRAPHVIZ" >&6
5170else
5171 echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173fi
5174
Reid Spencerc232a652005-07-14 02:25:12 +00005175if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005176
5177cat >>confdefs.h <<\_ACEOF
5178#define HAVE_GRAPHVIZ 1
5179_ACEOF
5180
Reid Spencercaf0ece2006-06-05 15:54:38 +00005181 if test "$llvm_cv_os_type" == "MingW" ; then
5182 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5183 fi
Reid Spencerc232a652005-07-14 02:25:12 +00005184
Reid Spencerbe130282005-07-14 05:19:12 +00005185cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005186#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
Reid Spencerc232a652005-07-14 02:25:12 +00005187_ACEOF
5188
Reid Spencer8a2246f2005-07-13 03:20:14 +00005189fi
Reid Spencercaf0ece2006-06-05 15:54:38 +00005190# Extract the first word of "dot", so it can be a program name with args.
5191set dummy dot; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_path_DOT+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197 case $DOT in
5198 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5200 ;;
5201 *)
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
5216 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5217 ;;
5218esac
5219fi
5220DOT=$ac_cv_path_DOT
5221
5222if test -n "$DOT"; then
5223 echo "$as_me:$LINENO: result: $DOT" >&5
5224echo "${ECHO_T}$DOT" >&6
5225else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229
5230if test "$DOT" != "echo dot" ; then
5231
5232cat >>confdefs.h <<\_ACEOF
5233#define HAVE_DOT 1
5234_ACEOF
5235
5236 if test "$llvm_cv_os_type" == "MingW" ; then
5237 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5238 fi
5239
5240cat >>confdefs.h <<_ACEOF
5241#define LLVM_PATH_DOT "$DOT${EXEEXT}"
5242_ACEOF
5243
5244fi
5245for ac_prog in gv gsview32
5246do
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248set dummy $ac_prog; ac_word=$2
Reid Spencerbe130282005-07-14 05:19:12 +00005249echo "$as_me:$LINENO: checking for $ac_word" >&5
5250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251if test "${ac_cv_path_GV+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253else
5254 case $GV in
5255 [\\/]* | ?:[\\/]*)
5256 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5257 ;;
5258 *)
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271done
5272
Reid Spencerbe130282005-07-14 05:19:12 +00005273 ;;
5274esac
5275fi
5276GV=$ac_cv_path_GV
5277
5278if test -n "$GV"; then
5279 echo "$as_me:$LINENO: result: $GV" >&5
5280echo "${ECHO_T}$GV" >&6
5281else
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284fi
5285
Reid Spencercaf0ece2006-06-05 15:54:38 +00005286 test -n "$GV" && break
5287done
5288test -n "$GV" || GV="echo gv"
5289
Misha Brukmanf83d4062005-11-01 21:00:49 +00005290if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005291
5292cat >>confdefs.h <<\_ACEOF
5293#define HAVE_GV 1
5294_ACEOF
5295
Reid Spencercaf0ece2006-06-05 15:54:38 +00005296 if test "$llvm_cv_os_type" == "MingW" ; then
5297 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5298 fi
Reid Spencerbe130282005-07-14 05:19:12 +00005299
5300cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005301#define LLVM_PATH_GV "$GV${EXEEXT}"
Reid Spencerbe130282005-07-14 05:19:12 +00005302_ACEOF
5303
5304fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005305# Extract the first word of "dotty", so it can be a program name with args.
5306set dummy dotty; ac_word=$2
5307echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309if test "${ac_cv_path_DOTTY+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 case $DOTTY in
5313 [\\/]* | ?:[\\/]*)
5314 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5315 ;;
5316 *)
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328done
5329done
5330
5331 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5332 ;;
5333esac
5334fi
5335DOTTY=$ac_cv_path_DOTTY
5336
5337if test -n "$DOTTY"; then
5338 echo "$as_me:$LINENO: result: $DOTTY" >&5
5339echo "${ECHO_T}$DOTTY" >&6
5340else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345if test "$DOTTY" != "echo dotty" ; then
5346
5347cat >>confdefs.h <<\_ACEOF
5348#define HAVE_DOTTY 1
5349_ACEOF
5350
Reid Spencercaf0ece2006-06-05 15:54:38 +00005351 if test "$llvm_cv_os_type" == "MingW" ; then
5352 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5353 fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005354
5355cat >>confdefs.h <<_ACEOF
Reid Spencercaf0ece2006-06-05 15:54:38 +00005356#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
Reid Spencerecbd2422006-06-02 23:13:18 +00005357_ACEOF
5358
5359fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005360
Reid Spencerb195d9d2006-03-23 23:21:29 +00005361
5362# Extract the first word of "perl", so it can be a program name with args.
5363set dummy perl; ac_word=$2
5364echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366if test "${ac_cv_path_PERL+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 case $PERL in
5370 [\\/]* | ?:[\\/]*)
5371 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5372 ;;
5373 *)
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385done
5386done
5387
5388 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5389 ;;
5390esac
5391fi
5392PERL=$ac_cv_path_PERL
5393
5394if test -n "$PERL"; then
5395 echo "$as_me:$LINENO: result: $PERL" >&5
5396echo "${ECHO_T}$PERL" >&6
5397else
5398 echo "$as_me:$LINENO: result: no" >&5
5399echo "${ECHO_T}no" >&6
5400fi
5401
5402if test "$PERL" != "none"; then
5403 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5404echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5405 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5406 echo "$as_me:$LINENO: result: yes" >&5
5407echo "${ECHO_T}yes" >&6
5408 else
5409 PERL=none
5410 echo "$as_me:$LINENO: result: not found" >&5
5411echo "${ECHO_T}not found" >&6
5412 fi
5413fi
5414
5415
5416if test x"$PERL" = xnone; then
5417 HAVE_PERL=0
5418
5419else
5420 HAVE_PERL=1
5421
5422fi
5423
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005424# Find a good install program. We prefer a C program (faster),
5425# so one script is as good as another. But avoid the broken or
5426# incompatible versions:
5427# SysV /etc/install, /usr/sbin/install
5428# SunOS /usr/etc/install
5429# IRIX /sbin/install
5430# AIX /bin/install
5431# AmigaOS /C/install, which installs bootblocks on floppy discs
5432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5433# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5435# OS/2's system install, which has a completely different semantic
5436# ./install, which can be erroneously created by make from ./install.sh.
5437echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5438echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5439if test -z "$INSTALL"; then
5440if test "${ac_cv_path_install+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 # Account for people who put trailing slashes in PATH elements.
5449case $as_dir/ in
5450 ./ | .// | /cC/* | \
5451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5453 /usr/ucb/* ) ;;
5454 *)
5455 # OSF1 and SCO ODT 3.0 have their own names for install.
5456 # Don't use installbsd from OSF since it installs stuff as root
5457 # by default.
5458 for ac_prog in ginstall scoinst install; do
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5461 if test $ac_prog = install &&
5462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5463 # AIX install. It has an incompatible calling convention.
5464 :
5465 elif test $ac_prog = install &&
5466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5467 # program-specific install script used by HP pwplus--don't use.
5468 :
5469 else
5470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5471 break 3
5472 fi
5473 fi
5474 done
5475 done
5476 ;;
5477esac
5478done
5479
5480
5481fi
5482 if test "${ac_cv_path_install+set}" = set; then
5483 INSTALL=$ac_cv_path_install
5484 else
5485 # As a last resort, use the slow shell script. We don't cache a
5486 # path for INSTALL within a source directory, because that will
5487 # break other packages using the cache if that directory is
5488 # removed, or if the path is relative.
5489 INSTALL=$ac_install_sh
5490 fi
5491fi
5492echo "$as_me:$LINENO: result: $INSTALL" >&5
5493echo "${ECHO_T}$INSTALL" >&6
5494
5495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5496# It thinks the first close brace ends the variable substitution.
5497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5498
5499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5500
5501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5502
5503
5504# Extract the first word of "bzip2", so it can be a program name with args.
5505set dummy bzip2; ac_word=$2
5506echo "$as_me:$LINENO: checking for $ac_word" >&5
5507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508if test "${ac_cv_path_BZIP2+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511 case $BZIP2 in
5512 [\\/]* | ?:[\\/]*)
5513 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5514 ;;
5515 *)
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528done
5529
Reid Spencerf9b458c2006-04-27 07:49:24 +00005530 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005531 ;;
5532esac
5533fi
5534BZIP2=$ac_cv_path_BZIP2
5535
5536if test -n "$BZIP2"; then
5537 echo "$as_me:$LINENO: result: $BZIP2" >&5
5538echo "${ECHO_T}$BZIP2" >&6
5539else
5540 echo "$as_me:$LINENO: result: no" >&5
5541echo "${ECHO_T}no" >&6
5542fi
5543
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005544# Extract the first word of "doxygen", so it can be a program name with args.
5545set dummy doxygen; ac_word=$2
5546echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548if test "${ac_cv_path_DOXYGEN+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 case $DOXYGEN in
5552 [\\/]* | ?:[\\/]*)
5553 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5554 ;;
5555 *)
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568done
5569
Reid Spencerf9b458c2006-04-27 07:49:24 +00005570 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005571 ;;
5572esac
5573fi
5574DOXYGEN=$ac_cv_path_DOXYGEN
5575
5576if test -n "$DOXYGEN"; then
5577 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5578echo "${ECHO_T}$DOXYGEN" >&6
5579else
5580 echo "$as_me:$LINENO: result: no" >&5
5581echo "${ECHO_T}no" >&6
5582fi
5583
5584# Extract the first word of "etags", so it can be a program name with args.
5585set dummy etags; ac_word=$2
5586echo "$as_me:$LINENO: checking for $ac_word" >&5
5587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588if test "${ac_cv_path_ETAGS+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591 case $ETAGS in
5592 [\\/]* | ?:[\\/]*)
5593 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5594 ;;
5595 *)
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607done
5608done
5609
Reid Spencerf9b458c2006-04-27 07:49:24 +00005610 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005611 ;;
5612esac
5613fi
5614ETAGS=$ac_cv_path_ETAGS
5615
5616if test -n "$ETAGS"; then
5617 echo "$as_me:$LINENO: result: $ETAGS" >&5
5618echo "${ECHO_T}$ETAGS" >&6
5619else
5620 echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622fi
5623
5624# Extract the first word of "groff", so it can be a program name with args.
5625set dummy groff; ac_word=$2
5626echo "$as_me:$LINENO: checking for $ac_word" >&5
5627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628if test "${ac_cv_path_GROFF+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 case $GROFF in
5632 [\\/]* | ?:[\\/]*)
5633 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5634 ;;
5635 *)
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637for as_dir in $PATH
5638do
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5646 fi
5647done
5648done
5649
Reid Spencerf9b458c2006-04-27 07:49:24 +00005650 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005651 ;;
5652esac
5653fi
5654GROFF=$ac_cv_path_GROFF
5655
5656if test -n "$GROFF"; then
5657 echo "$as_me:$LINENO: result: $GROFF" >&5
5658echo "${ECHO_T}$GROFF" >&6
5659else
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662fi
5663
5664# Extract the first word of "gzip", so it can be a program name with args.
5665set dummy gzip; ac_word=$2
5666echo "$as_me:$LINENO: checking for $ac_word" >&5
5667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668if test "${ac_cv_path_GZIP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 case $GZIP in
5672 [\\/]* | ?:[\\/]*)
5673 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5674 ;;
5675 *)
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687done
5688done
5689
Reid Spencerf9b458c2006-04-27 07:49:24 +00005690 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005691 ;;
5692esac
5693fi
5694GZIP=$ac_cv_path_GZIP
5695
5696if test -n "$GZIP"; then
5697 echo "$as_me:$LINENO: result: $GZIP" >&5
5698echo "${ECHO_T}$GZIP" >&6
5699else
5700 echo "$as_me:$LINENO: result: no" >&5
5701echo "${ECHO_T}no" >&6
5702fi
5703
5704# Extract the first word of "pod2html", so it can be a program name with args.
5705set dummy pod2html; ac_word=$2
5706echo "$as_me:$LINENO: checking for $ac_word" >&5
5707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708if test "${ac_cv_path_POD2HTML+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 case $POD2HTML in
5712 [\\/]* | ?:[\\/]*)
5713 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5714 ;;
5715 *)
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727done
5728done
5729
Reid Spencerf9b458c2006-04-27 07:49:24 +00005730 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005731 ;;
5732esac
5733fi
5734POD2HTML=$ac_cv_path_POD2HTML
5735
5736if test -n "$POD2HTML"; then
5737 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5738echo "${ECHO_T}$POD2HTML" >&6
5739else
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
5742fi
5743
5744# Extract the first word of "pod2man", so it can be a program name with args.
5745set dummy pod2man; ac_word=$2
5746echo "$as_me:$LINENO: checking for $ac_word" >&5
5747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748if test "${ac_cv_path_POD2MAN+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751 case $POD2MAN in
5752 [\\/]* | ?:[\\/]*)
5753 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5754 ;;
5755 *)
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767done
5768done
5769
Reid Spencerf9b458c2006-04-27 07:49:24 +00005770 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005771 ;;
5772esac
5773fi
5774POD2MAN=$ac_cv_path_POD2MAN
5775
5776if test -n "$POD2MAN"; then
5777 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5778echo "${ECHO_T}$POD2MAN" >&6
5779else
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782fi
5783
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005784# Extract the first word of "runtest", so it can be a program name with args.
5785set dummy runtest; ac_word=$2
5786echo "$as_me:$LINENO: checking for $ac_word" >&5
5787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788if test "${ac_cv_path_RUNTEST+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 case $RUNTEST in
5792 [\\/]* | ?:[\\/]*)
5793 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5794 ;;
5795 *)
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808done
5809
Reid Spencerf9b458c2006-04-27 07:49:24 +00005810 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005811 ;;
5812esac
5813fi
5814RUNTEST=$ac_cv_path_RUNTEST
5815
5816if test -n "$RUNTEST"; then
5817 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5818echo "${ECHO_T}$RUNTEST" >&6
5819else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822fi
5823
Reid Spencer0fcb9412004-11-30 08:11:54 +00005824
Reid Spencer0fcb9412004-11-30 08:11:54 +00005825no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005826echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5827echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005828
5829# Check whether --with-tclinclude or --without-tclinclude was given.
5830if test "${with_tclinclude+set}" = set; then
5831 withval="$with_tclinclude"
5832 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005833else
5834 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005835fi;
5836if test "${ac_cv_path_tclsh+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839
5840if test x"${with_tclinclude}" != x ; then
5841 if test -f ${with_tclinclude}/tclsh ; then
5842 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5843 elif test -f ${with_tclinclude}/src/tclsh ; then
5844 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5845 else
5846 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5847echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5848 { (exit 1); exit 1; }; }
5849 fi
5850fi
5851
Reid Spencer0fcb9412004-11-30 08:11:54 +00005852if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005853 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005854echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005855 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 +00005856do
5857 # Extract the first word of "$ac_prog", so it can be a program name with args.
5858set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005861if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
Reid Spencercda35f82004-12-02 04:17:20 +00005864 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005865 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005866 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005867 ;;
5868 *)
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005876 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880done
5881done
5882
5883 ;;
5884esac
5885fi
Reid Spencercda35f82004-12-02 04:17:20 +00005886TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005887
Reid Spencercda35f82004-12-02 04:17:20 +00005888if test -n "$TCLSH"; then
5889 echo "$as_me:$LINENO: result: $TCLSH" >&5
5890echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005891else
5892 echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894fi
5895
Reid Spencercda35f82004-12-02 04:17:20 +00005896 test -n "$TCLSH" && break
5897done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005898
Reid Spencercda35f82004-12-02 04:17:20 +00005899 if test x"${TCLSH}" = x ; then
5900 ac_cv_path_tclsh='';
5901 else
5902 ac_cv_path_tclsh="${TCLSH}";
5903 fi
5904else
5905 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5906echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5907 TCLSH="${ac_cv_path_tclsh}"
5908
5909fi
5910
5911fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005912
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005913# Extract the first word of "zip", so it can be a program name with args.
5914set dummy zip; ac_word=$2
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917if test "${ac_cv_path_ZIP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920 case $ZIP in
5921 [\\/]* | ?:[\\/]*)
5922 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5923 ;;
5924 *)
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937done
5938
Reid Spencerf9b458c2006-04-27 07:49:24 +00005939 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005940 ;;
5941esac
5942fi
5943ZIP=$ac_cv_path_ZIP
5944
5945if test -n "$ZIP"; then
5946 echo "$as_me:$LINENO: result: $ZIP" >&5
5947echo "${ECHO_T}$ZIP" >&6
5948else
5949 echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6
5951fi
5952
5953
5954echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5955echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5956if test "${llvm_cv_link_use_r+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005960ac_cpp='$CPP $CPPFLAGS'
5961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005965 oldcflags="$CFLAGS"
5966 CFLAGS="$CFLAGS -Wl,-R."
5967 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005973
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005974int
5975main ()
5976{
5977int main() { return 0; }
5978 ;
5979 return 0;
5980}
John Criswell47fdd832003-07-14 16:52:07 +00005981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005984 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005990 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006004 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00006005else
John Criswell47fdd832003-07-14 16:52:07 +00006006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006007sed 's/^/| /' conftest.$ac_ext >&5
6008
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006009llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00006010fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006011rm -f conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006013 CFLAGS="$oldcflags"
6014 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00006015ac_cpp='$CPP $CPPFLAGS'
6016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006020
John Criswell7a73b802003-06-30 21:59:07 +00006021fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006022echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6023echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6024if test "$llvm_cv_link_use_r" = yes ; then
6025
6026cat >>confdefs.h <<\_ACEOF
6027#define HAVE_LINK_R 1
6028_ACEOF
6029
John Criswell47fdd832003-07-14 16:52:07 +00006030 fi
John Criswell47fdd832003-07-14 16:52:07 +00006031
John Criswell47fdd832003-07-14 16:52:07 +00006032
John Criswell47fdd832003-07-14 16:52:07 +00006033
John Criswell7a73b802003-06-30 21:59:07 +00006034
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006035echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6036echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6037if test "${ac_cv_c_const+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046
6047int
6048main ()
6049{
6050/* FIXME: Include the comments suggested by Paul. */
6051#ifndef __cplusplus
6052 /* Ultrix mips cc rejects this. */
6053 typedef int charset[2];
6054 const charset x;
6055 /* SunOS 4.1.1 cc rejects this. */
6056 char const *const *ccp;
6057 char **p;
6058 /* NEC SVR4.0.2 mips cc rejects this. */
6059 struct point {int x, y;};
6060 static struct point const zero = {0,0};
6061 /* AIX XL C 1.02.0.0 rejects this.
6062 It does not let you subtract one const X* pointer from another in
6063 an arm of an if-expression whose if-part is not a constant
6064 expression */
6065 const char *g = "string";
6066 ccp = &g + (g ? g-g : 0);
6067 /* HPUX 7.0 cc rejects these. */
6068 ++ccp;
6069 p = (char**) ccp;
6070 ccp = (char const *const *) p;
6071 { /* SCO 3.2v4 cc rejects this. */
6072 char *t;
6073 char const *s = 0 ? (char *) 0 : (char const *) 0;
6074
6075 *t++ = 0;
6076 }
6077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6078 int x[] = {25, 17};
6079 const int *foo = &x[0];
6080 ++foo;
6081 }
6082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6083 typedef const int *iptr;
6084 iptr p = 0;
6085 ++p;
6086 }
6087 { /* AIX XL C 1.02.0.0 rejects this saying
6088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6089 struct s { int j; const int *ap[3]; };
6090 struct s *b; b->j = 5;
6091 }
6092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6093 const int foo = 10;
6094 }
6095#endif
6096
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101rm -f conftest.$ac_objext
6102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_c_werror_flag"
6111 || test ! -s conftest.err'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_c_const=yes
6124else
6125 echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128ac_cv_c_const=no
6129fi
6130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6131fi
6132echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6133echo "${ECHO_T}$ac_cv_c_const" >&6
6134if test $ac_cv_c_const = no; then
6135
6136cat >>confdefs.h <<\_ACEOF
6137#define const
6138_ACEOF
6139
6140fi
6141
6142
6143echo "$as_me:$LINENO: checking for egrep" >&5
6144echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6145if test "${ac_cv_prog_egrep+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6149 then ac_cv_prog_egrep='grep -E'
6150 else ac_cv_prog_egrep='egrep'
6151 fi
6152fi
6153echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6154echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6155 EGREP=$ac_cv_prog_egrep
6156
John Criswell7a73b802003-06-30 21:59:07 +00006157
6158echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6159echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6160if test "${ac_cv_header_stdc+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162else
6163 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006164/* confdefs.h. */
6165_ACEOF
6166cat confdefs.h >>conftest.$ac_ext
6167cat >>conftest.$ac_ext <<_ACEOF
6168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006169#include <stdlib.h>
6170#include <stdarg.h>
6171#include <string.h>
6172#include <float.h>
6173
John Criswell0c38eaf2003-09-10 15:17:25 +00006174int
6175main ()
6176{
6177
6178 ;
6179 return 0;
6180}
John Criswell7a73b802003-06-30 21:59:07 +00006181_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006182rm -f conftest.$ac_objext
6183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006184 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006185 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006190 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006191 { ac_try='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006204 ac_cv_header_stdc=yes
6205else
6206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006207sed 's/^/| /' conftest.$ac_ext >&5
6208
6209ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006210fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006212
6213if test $ac_cv_header_stdc = yes; then
6214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006221#include <string.h>
6222
6223_ACEOF
6224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006225 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006226 :
6227else
6228 ac_cv_header_stdc=no
6229fi
6230rm -f conftest*
6231
6232fi
6233
6234if test $ac_cv_header_stdc = yes; then
6235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6236 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006242#include <stdlib.h>
6243
6244_ACEOF
6245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006246 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006247 :
6248else
6249 ac_cv_header_stdc=no
6250fi
6251rm -f conftest*
6252
6253fi
6254
6255if test $ac_cv_header_stdc = yes; then
6256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6257 if test "$cross_compiling" = yes; then
6258 :
6259else
6260 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006261/* confdefs.h. */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006266#include <ctype.h>
6267#if ((' ' & 0x0FF) == 0x020)
6268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6270#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006271# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006272 (('a' <= (c) && (c) <= 'i') \
6273 || ('j' <= (c) && (c) <= 'r') \
6274 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6276#endif
6277
6278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6279int
6280main ()
6281{
6282 int i;
6283 for (i = 0; i < 256; i++)
6284 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006285 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006286 exit(2);
6287 exit (0);
6288}
6289_ACEOF
6290rm -f conftest$ac_exeext
6291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 :
6302else
6303 echo "$as_me: program exited with status $ac_status" >&5
6304echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006305sed 's/^/| /' conftest.$ac_ext >&5
6306
John Criswell7a73b802003-06-30 21:59:07 +00006307( exit $ac_status )
6308ac_cv_header_stdc=no
6309fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006311fi
6312fi
6313fi
6314echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6315echo "${ECHO_T}$ac_cv_header_stdc" >&6
6316if test $ac_cv_header_stdc = yes; then
6317
6318cat >>confdefs.h <<\_ACEOF
6319#define STDC_HEADERS 1
6320_ACEOF
6321
6322fi
6323
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006324
6325
6326
6327
6328
6329ac_header_dirent=no
6330for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6331 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6332echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6333echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6334if eval "test \"\${$as_ac_Header+set}\" = set"; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 cat >conftest.$ac_ext <<_ACEOF
6338/* confdefs.h. */
6339_ACEOF
6340cat confdefs.h >>conftest.$ac_ext
6341cat >>conftest.$ac_ext <<_ACEOF
6342/* end confdefs.h. */
6343#include <sys/types.h>
6344#include <$ac_hdr>
6345
6346int
6347main ()
6348{
6349if ((DIR *) 0)
6350return 0;
6351 ;
6352 return 0;
6353}
6354_ACEOF
6355rm -f conftest.$ac_objext
6356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag"
6365 || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 eval "$as_ac_Header=yes"
6378else
6379 echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382eval "$as_ac_Header=no"
6383fi
6384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385fi
6386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6391_ACEOF
6392
6393ac_header_dirent=$ac_hdr; break
6394fi
6395
6396done
6397# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6398if test $ac_header_dirent = dirent.h; then
6399 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6400echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6401if test "${ac_cv_search_opendir+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 ac_func_search_save_LIBS=$LIBS
6405ac_cv_search_opendir=no
6406cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h. */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h. */
6412
6413/* Override any gcc2 internal prototype to avoid an error. */
6414#ifdef __cplusplus
6415extern "C"
6416#endif
6417/* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6419char opendir ();
6420int
6421main ()
6422{
6423opendir ();
6424 ;
6425 return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext conftest$ac_exeext
6429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_search_opendir="none required"
6451else
6452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455fi
6456rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458if test "$ac_cv_search_opendir" = no; then
6459 for ac_lib in dir; do
6460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467
6468/* Override any gcc2 internal prototype to avoid an error. */
6469#ifdef __cplusplus
6470extern "C"
6471#endif
6472/* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6474char opendir ();
6475int
6476main ()
6477{
6478opendir ();
6479 ;
6480 return 0;
6481}
6482_ACEOF
6483rm -f conftest.$ac_objext conftest$ac_exeext
6484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485 (eval $ac_link) 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag"
6493 || test ! -s conftest.err'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; } &&
6499 { ac_try='test -s conftest$ac_exeext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_cv_search_opendir="-l$ac_lib"
6506break
6507else
6508 echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511fi
6512rm -f conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext conftest.$ac_ext
6514 done
6515fi
6516LIBS=$ac_func_search_save_LIBS
6517fi
6518echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6519echo "${ECHO_T}$ac_cv_search_opendir" >&6
6520if test "$ac_cv_search_opendir" != no; then
6521 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6522
6523fi
6524
6525else
6526 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6527echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6528if test "${ac_cv_search_opendir+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 ac_func_search_save_LIBS=$LIBS
6532ac_cv_search_opendir=no
6533cat >conftest.$ac_ext <<_ACEOF
6534/* confdefs.h. */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
6538/* end confdefs.h. */
6539
6540/* Override any gcc2 internal prototype to avoid an error. */
6541#ifdef __cplusplus
6542extern "C"
6543#endif
6544/* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546char opendir ();
6547int
6548main ()
6549{
6550opendir ();
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext conftest$ac_exeext
6556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest$ac_exeext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_cv_search_opendir="none required"
6578else
6579 echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582fi
6583rm -f conftest.err conftest.$ac_objext \
6584 conftest$ac_exeext conftest.$ac_ext
6585if test "$ac_cv_search_opendir" = no; then
6586 for ac_lib in x; do
6587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6588 cat >conftest.$ac_ext <<_ACEOF
6589/* confdefs.h. */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h. */
6594
6595/* Override any gcc2 internal prototype to avoid an error. */
6596#ifdef __cplusplus
6597extern "C"
6598#endif
6599/* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601char opendir ();
6602int
6603main ()
6604{
6605opendir ();
6606 ;
6607 return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext conftest$ac_exeext
6611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -z "$ac_c_werror_flag"
6620 || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_cv_search_opendir="-l$ac_lib"
6633break
6634else
6635 echo "$as_me: failed program was:" >&5
6636sed 's/^/| /' conftest.$ac_ext >&5
6637
6638fi
6639rm -f conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 done
6642fi
6643LIBS=$ac_func_search_save_LIBS
6644fi
6645echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6646echo "${ECHO_T}$ac_cv_search_opendir" >&6
6647if test "$ac_cv_search_opendir" != no; then
6648 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6649
6650fi
6651
6652fi
6653
John Criswell7a73b802003-06-30 21:59:07 +00006654# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006665 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006666do
6667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6668echo "$as_me:$LINENO: checking for $ac_header" >&5
6669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6670if eval "test \"\${$as_ac_Header+set}\" = set"; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006674/* confdefs.h. */
6675_ACEOF
6676cat confdefs.h >>conftest.$ac_ext
6677cat >>conftest.$ac_ext <<_ACEOF
6678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006679$ac_includes_default
6680
6681#include <$ac_header>
6682_ACEOF
6683rm -f conftest.$ac_objext
6684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006685 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006692 { ac_try='test -z "$ac_c_werror_flag"
6693 || test ! -s conftest.err'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; } &&
6699 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 eval "$as_ac_Header=yes"
6706else
6707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006708sed 's/^/| /' conftest.$ac_ext >&5
6709
John Criswell7a73b802003-06-30 21:59:07 +00006710eval "$as_ac_Header=no"
6711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006713fi
6714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6716if test `eval echo '${'$as_ac_Header'}'` = yes; then
6717 cat >>confdefs.h <<_ACEOF
6718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6719_ACEOF
6720
6721fi
6722
6723done
6724
6725
6726
6727for ac_header in dlfcn.h
6728do
6729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006730if eval "test \"\${$as_ac_Header+set}\" = set"; then
6731 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6733if eval "test \"\${$as_ac_Header+set}\" = set"; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006735fi
6736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006738else
Brian Gaeke0a621332004-09-08 20:38:05 +00006739 # Is the header compilable?
6740echo "$as_me:$LINENO: checking $ac_header usability" >&5
6741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6742cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006743/* confdefs.h. */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006748$ac_includes_default
6749#include <$ac_header>
6750_ACEOF
6751rm -f conftest.$ac_objext
6752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006753 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006760 { ac_try='test -z "$ac_c_werror_flag"
6761 || test ! -s conftest.err'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006773 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006774else
6775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006776sed 's/^/| /' conftest.$ac_ext >&5
6777
Brian Gaeke0a621332004-09-08 20:38:05 +00006778ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6782echo "${ECHO_T}$ac_header_compiler" >&6
6783
6784# Is the header present?
6785echo "$as_me:$LINENO: checking $ac_header presence" >&5
6786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6787cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793#include <$ac_header>
6794_ACEOF
6795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } >/dev/null; then
6803 if test -s conftest.err; then
6804 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006806 else
6807 ac_cpp_err=
6808 fi
6809else
6810 ac_cpp_err=yes
6811fi
6812if test -z "$ac_cpp_err"; then
6813 ac_header_preproc=yes
6814else
6815 echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 ac_header_preproc=no
6819fi
6820rm -f conftest.err conftest.$ac_ext
6821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6822echo "${ECHO_T}$ac_header_preproc" >&6
6823
6824# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6826 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6831 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006832 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006833 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006846 (
6847 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006848## ----------------------------------- ##
6849## Report this to llvmbugs@cs.uiuc.edu ##
6850## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006851_ASBOX
6852 ) |
6853 sed "s/^/$as_me: WARNING: /" >&2
6854 ;;
6855esac
6856echo "$as_me:$LINENO: checking for $ac_header" >&5
6857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006861 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006862fi
6863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006865
6866fi
John Criswell7a73b802003-06-30 21:59:07 +00006867if test `eval echo '${'$as_ac_Header'}'` = yes; then
6868 cat >>confdefs.h <<_ACEOF
6869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6870_ACEOF
6871
6872fi
6873
6874done
6875
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006876# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6877if test "${enable_ltdl_install+set}" = set; then
6878 enableval="$enable_ltdl_install"
6879
6880fi;
6881
6882
6883
6884if test x"${enable_ltdl_install-no}" != xno; then
6885 INSTALL_LTDL_TRUE=
6886 INSTALL_LTDL_FALSE='#'
6887else
6888 INSTALL_LTDL_TRUE='#'
6889 INSTALL_LTDL_FALSE=
6890fi
6891
6892
6893
6894if test x"${enable_ltdl_convenience-no}" != xno; then
6895 CONVENIENCE_LTDL_TRUE=
6896 CONVENIENCE_LTDL_FALSE='#'
6897else
6898 CONVENIENCE_LTDL_TRUE='#'
6899 CONVENIENCE_LTDL_FALSE=
6900fi
6901
6902
6903echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6904echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6905library_names_spec=
6906libname_spec='lib$name'
6907soname_spec=
6908shrext_cmds=".so"
6909postinstall_cmds=
6910postuninstall_cmds=
6911finish_cmds=
6912finish_eval=
6913shlibpath_var=
6914shlibpath_overrides_runpath=unknown
6915version_type=none
6916dynamic_linker="$host_os ld.so"
6917sys_lib_dlsearch_path_spec="/lib /usr/lib"
6918if test "$GCC" = yes; then
6919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6920 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6921 # if the path contains ";" then we assume it to be the separator
6922 # otherwise default to the standard path separator (i.e. ":") - it is
6923 # assumed that no part of a normal pathname contains ";" but that should
6924 # okay in the real world where ";" in dirpaths is itself problematic.
6925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6926 else
6927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6928 fi
6929else
6930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6931fi
6932need_lib_prefix=unknown
6933hardcode_into_libs=no
6934
6935# when you set need_version to no, make sure it does not cause -set_version
6936# flags to be left without arguments
6937need_version=unknown
6938
6939case $host_os in
6940aix3*)
6941 version_type=linux
6942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6943 shlibpath_var=LIBPATH
6944
6945 # AIX 3 has no versioning support, so we append a major version to the name.
6946 soname_spec='${libname}${release}${shared_ext}$major'
6947 ;;
6948
6949aix4* | aix5*)
6950 version_type=linux
6951 need_lib_prefix=no
6952 need_version=no
6953 hardcode_into_libs=yes
6954 if test "$host_cpu" = ia64; then
6955 # AIX 5 supports IA64
6956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 else
6959 # With GCC up to 2.95.x, collect2 would create an import file
6960 # for dependence libraries. The import file would start with
6961 # the line `#! .'. This would cause the generated library to
6962 # depend on `.', always an invalid library. This was fixed in
6963 # development snapshots of GCC prior to 3.0.
6964 case $host_os in
6965 aix4 | aix4.[01] | aix4.[01].*)
6966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6967 echo ' yes '
6968 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6969 :
6970 else
6971 can_build_shared=no
6972 fi
6973 ;;
6974 esac
6975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6976 # soname into executable. Probably we can add versioning support to
6977 # collect2, so additional links can be useful in future.
6978 if test "$aix_use_runtimelinking" = yes; then
6979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6980 # instead of lib<name>.a to let people know that these are not
6981 # typical AIX shared libraries.
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983 else
6984 # We preserve .a as extension for shared libraries through AIX4.2
6985 # and later when we are not doing run time linking.
6986 library_names_spec='${libname}${release}.a $libname.a'
6987 soname_spec='${libname}${release}${shared_ext}$major'
6988 fi
6989 shlibpath_var=LIBPATH
6990 fi
6991 ;;
6992
6993amigaos*)
6994 library_names_spec='$libname.ixlibrary $libname.a'
6995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6996 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'
6997 ;;
6998
6999beos*)
7000 library_names_spec='${libname}${shared_ext}'
7001 dynamic_linker="$host_os ld.so"
7002 shlibpath_var=LIBRARY_PATH
7003 ;;
7004
7005bsdi[45]*)
7006 version_type=linux
7007 need_version=no
7008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7009 soname_spec='${libname}${release}${shared_ext}$major'
7010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7011 shlibpath_var=LD_LIBRARY_PATH
7012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7014 # the default ld.so.conf also contains /usr/contrib/lib and
7015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7016 # libtool to hard-code these into programs
7017 ;;
7018
7019cygwin* | mingw* | pw32*)
7020 version_type=windows
7021 shrext_cmds=".dll"
7022 need_version=no
7023 need_lib_prefix=no
7024
7025 case $GCC,$host_os in
7026 yes,cygwin* | yes,mingw* | yes,pw32*)
7027 library_names_spec='$libname.dll.a'
7028 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7029 postinstall_cmds='base_file=`basename \${file}`~
7030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7031 dldir=$destdir/`dirname \$dlpath`~
7032 test -d \$dldir || mkdir -p \$dldir~
7033 $install_prog $dir/$dlname \$dldir/$dlname'
7034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7035 dlpath=$dir/\$dldll~
7036 $rm \$dlpath'
7037 shlibpath_overrides_runpath=yes
7038
7039 case $host_os in
7040 cygwin*)
7041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7043 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7044 ;;
7045 mingw*)
7046 # MinGW DLLs use traditional 'lib' prefix
7047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7048 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7049 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7050 # It is most probably a Windows format PATH printed by
7051 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7052 # path with ; separators, and with drive letters. We can handle the
7053 # drive letters (cygwin fileutils understands them), so leave them,
7054 # especially as we might pass files found there to a mingw objdump,
7055 # which wouldn't understand a cygwinified path. Ahh.
7056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7057 else
7058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7059 fi
7060 ;;
7061 pw32*)
7062 # pw32 DLLs use 'pw' prefix rather than 'lib'
7063 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7064 ;;
7065 esac
7066 ;;
7067
7068 *)
7069 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7070 ;;
7071 esac
7072 dynamic_linker='Win32 ld.exe'
7073 # FIXME: first we should search . and the directory the executable is in
7074 shlibpath_var=PATH
7075 ;;
7076
7077darwin* | rhapsody*)
7078 dynamic_linker="$host_os dyld"
7079 version_type=darwin
7080 need_lib_prefix=no
7081 need_version=no
7082 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7083 soname_spec='${libname}${release}${major}$shared_ext'
7084 shlibpath_overrides_runpath=yes
7085 shlibpath_var=DYLD_LIBRARY_PATH
7086 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7087 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7088 if test "$GCC" = yes; then
7089 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"`
7090 else
7091 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7092 fi
7093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7094 ;;
7095
7096dgux*)
7097 version_type=linux
7098 need_lib_prefix=no
7099 need_version=no
7100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7101 soname_spec='${libname}${release}${shared_ext}$major'
7102 shlibpath_var=LD_LIBRARY_PATH
7103 ;;
7104
7105freebsd1*)
7106 dynamic_linker=no
7107 ;;
7108
7109kfreebsd*-gnu)
7110 version_type=linux
7111 need_lib_prefix=no
7112 need_version=no
7113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7114 soname_spec='${libname}${release}${shared_ext}$major'
7115 shlibpath_var=LD_LIBRARY_PATH
7116 shlibpath_overrides_runpath=no
7117 hardcode_into_libs=yes
7118 dynamic_linker='GNU ld.so'
7119 ;;
7120
7121freebsd*)
7122 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7123 version_type=freebsd-$objformat
7124 case $version_type in
7125 freebsd-elf*)
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7127 need_version=no
7128 need_lib_prefix=no
7129 ;;
7130 freebsd-*)
7131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7132 need_version=yes
7133 ;;
7134 esac
7135 shlibpath_var=LD_LIBRARY_PATH
7136 case $host_os in
7137 freebsd2*)
7138 shlibpath_overrides_runpath=yes
7139 ;;
7140 freebsd3.01* | freebsdelf3.01*)
7141 shlibpath_overrides_runpath=yes
7142 hardcode_into_libs=yes
7143 ;;
7144 *) # from 3.2 on
7145 shlibpath_overrides_runpath=no
7146 hardcode_into_libs=yes
7147 ;;
7148 esac
7149 ;;
7150
7151gnu*)
7152 version_type=linux
7153 need_lib_prefix=no
7154 need_version=no
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7156 soname_spec='${libname}${release}${shared_ext}$major'
7157 shlibpath_var=LD_LIBRARY_PATH
7158 hardcode_into_libs=yes
7159 ;;
7160
7161hpux9* | hpux10* | hpux11*)
7162 # Give a soname corresponding to the major version so that dld.sl refuses to
7163 # link against other versions.
7164 version_type=sunos
7165 need_lib_prefix=no
7166 need_version=no
7167 case "$host_cpu" in
7168 ia64*)
7169 shrext_cmds='.so'
7170 hardcode_into_libs=yes
7171 dynamic_linker="$host_os dld.so"
7172 shlibpath_var=LD_LIBRARY_PATH
7173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7175 soname_spec='${libname}${release}${shared_ext}$major'
7176 if test "X$HPUX_IA64_MODE" = X32; then
7177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7178 else
7179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7180 fi
7181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7182 ;;
7183 hppa*64*)
7184 shrext_cmds='.sl'
7185 hardcode_into_libs=yes
7186 dynamic_linker="$host_os dld.sl"
7187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7190 soname_spec='${libname}${release}${shared_ext}$major'
7191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7193 ;;
7194 *)
7195 shrext_cmds='.sl'
7196 dynamic_linker="$host_os dld.sl"
7197 shlibpath_var=SHLIB_PATH
7198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7200 soname_spec='${libname}${release}${shared_ext}$major'
7201 ;;
7202 esac
7203 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7204 postinstall_cmds='chmod 555 $lib'
7205 ;;
7206
7207irix5* | irix6* | nonstopux*)
7208 case $host_os in
7209 nonstopux*) version_type=nonstopux ;;
7210 *)
7211 if test "$lt_cv_prog_gnu_ld" = yes; then
7212 version_type=linux
7213 else
7214 version_type=irix
7215 fi ;;
7216 esac
7217 need_lib_prefix=no
7218 need_version=no
7219 soname_spec='${libname}${release}${shared_ext}$major'
7220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7221 case $host_os in
7222 irix5* | nonstopux*)
7223 libsuff= shlibsuff=
7224 ;;
7225 *)
7226 case $LD in # libtool.m4 will add one of these switches to LD
7227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7228 libsuff= shlibsuff= libmagic=32-bit;;
7229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7230 libsuff=32 shlibsuff=N32 libmagic=N32;;
7231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7233 *) libsuff= shlibsuff= libmagic=never-match;;
7234 esac
7235 ;;
7236 esac
7237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7238 shlibpath_overrides_runpath=no
7239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7241 hardcode_into_libs=yes
7242 ;;
7243
7244# No shared lib support for Linux oldld, aout, or coff.
7245linux*oldld* | linux*aout* | linux*coff*)
7246 dynamic_linker=no
7247 ;;
7248
7249# This must be Linux ELF.
7250linux*)
7251 version_type=linux
7252 need_lib_prefix=no
7253 need_version=no
7254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255 soname_spec='${libname}${release}${shared_ext}$major'
7256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7257 shlibpath_var=LD_LIBRARY_PATH
7258 shlibpath_overrides_runpath=no
7259 # This implies no fast_install, which is unacceptable.
7260 # Some rework will be needed to allow for fast_install
7261 # before this can be enabled.
7262 hardcode_into_libs=yes
7263
7264 # Append ld.so.conf contents to the search path
7265 if test -f /etc/ld.so.conf; then
7266 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7268 fi
7269
7270 # We used to test for /lib/ld.so.1 and disable shared libraries on
7271 # powerpc, because MkLinux only supported shared libraries with the
7272 # GNU dynamic linker. Since this was broken with cross compilers,
7273 # most powerpc-linux boxes support dynamic linking these days and
7274 # people can always --disable-shared, the test was removed, and we
7275 # assume the GNU/Linux dynamic linker is in use.
7276 dynamic_linker='GNU/Linux ld.so'
7277 ;;
7278
7279knetbsd*-gnu)
7280 version_type=linux
7281 need_lib_prefix=no
7282 need_version=no
7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7284 soname_spec='${libname}${release}${shared_ext}$major'
7285 shlibpath_var=LD_LIBRARY_PATH
7286 shlibpath_overrides_runpath=no
7287 hardcode_into_libs=yes
7288 dynamic_linker='GNU ld.so'
7289 ;;
7290
7291netbsd*)
7292 version_type=sunos
7293 need_lib_prefix=no
7294 need_version=no
7295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7298 dynamic_linker='NetBSD (a.out) ld.so'
7299 else
7300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7301 soname_spec='${libname}${release}${shared_ext}$major'
7302 dynamic_linker='NetBSD ld.elf_so'
7303 fi
7304 shlibpath_var=LD_LIBRARY_PATH
7305 shlibpath_overrides_runpath=yes
7306 hardcode_into_libs=yes
7307 ;;
7308
7309newsos6)
7310 version_type=linux
7311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312 shlibpath_var=LD_LIBRARY_PATH
7313 shlibpath_overrides_runpath=yes
7314 ;;
7315
7316nto-qnx*)
7317 version_type=linux
7318 need_lib_prefix=no
7319 need_version=no
7320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7321 soname_spec='${libname}${release}${shared_ext}$major'
7322 shlibpath_var=LD_LIBRARY_PATH
7323 shlibpath_overrides_runpath=yes
7324 ;;
7325
7326openbsd*)
7327 version_type=sunos
7328 need_lib_prefix=no
7329 need_version=no
7330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7332 shlibpath_var=LD_LIBRARY_PATH
7333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7334 case $host_os in
7335 openbsd2.[89] | openbsd2.[89].*)
7336 shlibpath_overrides_runpath=no
7337 ;;
7338 *)
7339 shlibpath_overrides_runpath=yes
7340 ;;
7341 esac
7342 else
7343 shlibpath_overrides_runpath=yes
7344 fi
7345 ;;
7346
7347os2*)
7348 libname_spec='$name'
7349 shrext_cmds=".dll"
7350 need_lib_prefix=no
7351 library_names_spec='$libname${shared_ext} $libname.a'
7352 dynamic_linker='OS/2 ld.exe'
7353 shlibpath_var=LIBPATH
7354 ;;
7355
7356osf3* | osf4* | osf5*)
7357 version_type=osf
7358 need_lib_prefix=no
7359 need_version=no
7360 soname_spec='${libname}${release}${shared_ext}$major'
7361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7365 ;;
7366
7367sco3.2v5*)
7368 version_type=osf
7369 soname_spec='${libname}${release}${shared_ext}$major'
7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7371 shlibpath_var=LD_LIBRARY_PATH
7372 ;;
7373
7374solaris*)
7375 version_type=linux
7376 need_lib_prefix=no
7377 need_version=no
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379 soname_spec='${libname}${release}${shared_ext}$major'
7380 shlibpath_var=LD_LIBRARY_PATH
7381 shlibpath_overrides_runpath=yes
7382 hardcode_into_libs=yes
7383 # ldd complains unless libraries are executable
7384 postinstall_cmds='chmod +x $lib'
7385 ;;
7386
7387sunos4*)
7388 version_type=sunos
7389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7391 shlibpath_var=LD_LIBRARY_PATH
7392 shlibpath_overrides_runpath=yes
7393 if test "$with_gnu_ld" = yes; then
7394 need_lib_prefix=no
7395 fi
7396 need_version=yes
7397 ;;
7398
7399sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7400 version_type=linux
7401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7402 soname_spec='${libname}${release}${shared_ext}$major'
7403 shlibpath_var=LD_LIBRARY_PATH
7404 case $host_vendor in
7405 sni)
7406 shlibpath_overrides_runpath=no
7407 need_lib_prefix=no
7408 export_dynamic_flag_spec='${wl}-Blargedynsym'
7409 runpath_var=LD_RUN_PATH
7410 ;;
7411 siemens)
7412 need_lib_prefix=no
7413 ;;
7414 motorola)
7415 need_lib_prefix=no
7416 need_version=no
7417 shlibpath_overrides_runpath=no
7418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7419 ;;
7420 esac
7421 ;;
7422
7423sysv4*MP*)
7424 if test -d /usr/nec ;then
7425 version_type=linux
7426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7427 soname_spec='$libname${shared_ext}.$major'
7428 shlibpath_var=LD_LIBRARY_PATH
7429 fi
7430 ;;
7431
7432uts4*)
7433 version_type=linux
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435 soname_spec='${libname}${release}${shared_ext}$major'
7436 shlibpath_var=LD_LIBRARY_PATH
7437 ;;
7438
7439*)
7440 dynamic_linker=no
7441 ;;
7442esac
7443echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7444echo "${ECHO_T}$dynamic_linker" >&6
7445test "$dynamic_linker" = no && can_build_shared=no
7446
7447
7448echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7449echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7450if test "${libltdl_cv_shlibext+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453
7454module=yes
7455eval libltdl_cv_shlibext=$shrext_cmds
7456
7457fi
7458echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7459echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7460if test -n "$libltdl_cv_shlibext"; then
7461
7462cat >>confdefs.h <<_ACEOF
7463#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7464_ACEOF
7465
7466fi
7467
7468
7469echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7470echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7471if test "${libltdl_cv_shlibpath_var+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474 libltdl_cv_shlibpath_var="$shlibpath_var"
7475fi
7476echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7477echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7478if test -n "$libltdl_cv_shlibpath_var"; then
7479
7480cat >>confdefs.h <<_ACEOF
7481#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7482_ACEOF
7483
7484fi
7485
7486
7487echo "$as_me:$LINENO: checking for the default library search path" >&5
7488echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7489if test "${libltdl_cv_sys_search_path+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7493fi
7494echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7495echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7496if test -n "$libltdl_cv_sys_search_path"; then
7497 sys_search_path=
7498 for dir in $libltdl_cv_sys_search_path; do
7499 if test -z "$sys_search_path"; then
7500 sys_search_path="$dir"
7501 else
7502 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7503 fi
7504 done
7505
7506cat >>confdefs.h <<_ACEOF
7507#define LTDL_SYSSEARCHPATH "$sys_search_path"
7508_ACEOF
7509
7510fi
7511
7512echo "$as_me:$LINENO: checking for objdir" >&5
7513echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7514if test "${libltdl_cv_objdir+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516else
7517 libltdl_cv_objdir="$objdir"
7518 if test -n "$objdir"; then
7519 :
7520 else
7521 rm -f .libs 2>/dev/null
7522 mkdir .libs 2>/dev/null
7523 if test -d .libs; then
7524 libltdl_cv_objdir=.libs
7525 else
7526 # MS-DOS does not allow filenames that begin with a dot.
7527 libltdl_cv_objdir=_libs
7528 fi
7529 rmdir .libs 2>/dev/null
7530 fi
7531
7532fi
7533echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7534echo "${ECHO_T}$libltdl_cv_objdir" >&6
7535
7536cat >>confdefs.h <<_ACEOF
7537#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7538_ACEOF
7539
7540
7541echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7542echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7543if test "${lt_cv_path_NM+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 if test -n "$NM"; then
7547 # Let the user override the test.
7548 lt_cv_path_NM="$NM"
7549else
7550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7551 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7552 IFS="$lt_save_ifs"
7553 test -z "$ac_dir" && ac_dir=.
7554 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7555 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7556 # Check to see if the nm accepts a BSD-compat flag.
7557 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7558 # nm: unknown option "B" ignored
7559 # Tru64's nm complains that /dev/null is an invalid object file
7560 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7561 */dev/null* | *'Invalid file or object type'*)
7562 lt_cv_path_NM="$tmp_nm -B"
7563 break
7564 ;;
7565 *)
7566 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7567 */dev/null*)
7568 lt_cv_path_NM="$tmp_nm -p"
7569 break
7570 ;;
7571 *)
7572 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7573 continue # so that we can try to find one that supports BSD flags
7574 ;;
7575 esac
7576 esac
7577 fi
7578 done
7579 IFS="$lt_save_ifs"
7580 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7581fi
7582fi
7583echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7584echo "${ECHO_T}$lt_cv_path_NM" >&6
7585NM="$lt_cv_path_NM"
7586
7587
7588
7589
7590
7591# Check for command to grab the raw symbol name followed by C symbol from nm.
7592echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7593echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7594if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597
7598# These are sane defaults that work on at least a few old systems.
7599# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7600
7601# Character class describing NM global symbol codes.
7602symcode='[BCDEGRST]'
7603
7604# Regexp to match symbols that can be accessed directly from C.
7605sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7606
7607# Transform the above into a raw symbol and a C symbol.
7608symxfrm='\1 \2\3 \3'
7609
7610# Transform an extracted symbol line into a proper C declaration
7611lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7612
7613# Transform an extracted symbol line into symbol name and symbol address
7614lt_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'"
7615
7616# Define system-specific variables.
7617case $host_os in
7618aix*)
7619 symcode='[BCDT]'
7620 ;;
7621cygwin* | mingw* | pw32*)
7622 symcode='[ABCDGISTW]'
7623 ;;
7624hpux*) # Its linker distinguishes data from code symbols
7625 if test "$host_cpu" = ia64; then
7626 symcode='[ABCDEGRST]'
7627 fi
7628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7629 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'"
7630 ;;
7631linux*)
7632 if test "$host_cpu" = ia64; then
7633 symcode='[ABCDGIRSTW]'
7634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7635 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'"
7636 fi
7637 ;;
7638irix* | nonstopux*)
7639 symcode='[BCDEGRST]'
7640 ;;
7641osf*)
7642 symcode='[BCDEGQRST]'
7643 ;;
7644solaris* | sysv5*)
7645 symcode='[BDRT]'
7646 ;;
7647sysv4)
7648 symcode='[DFNSTU]'
7649 ;;
7650esac
7651
7652# Handle CRLF in mingw tool chain
7653opt_cr=
7654case $build_os in
7655mingw*)
7656 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7657 ;;
7658esac
7659
7660# If we're using GNU nm, then use its standard symbol codes.
7661case `$NM -V 2>&1` in
7662*GNU* | *'with BFD'*)
7663 symcode='[ABCDGIRSTW]' ;;
7664esac
7665
7666# Try without a prefix undercore, then with it.
7667for ac_symprfx in "" "_"; do
7668
7669 # Write the raw and C identifiers.
7670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7671
7672 # Check to see that the pipe works correctly.
7673 pipe_works=no
7674
7675 rm -f conftest*
7676 cat > conftest.$ac_ext <<EOF
7677#ifdef __cplusplus
7678extern "C" {
7679#endif
7680char nm_test_var;
7681void nm_test_func(){}
7682#ifdef __cplusplus
7683}
7684#endif
7685int main(){nm_test_var='a';nm_test_func();return(0);}
7686EOF
7687
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689 (eval $ac_compile) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; then
7693 # Now try to grab the symbols.
7694 nlist=conftest.nm
7695 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7696 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && test -s "$nlist"; then
7700 # Try sorting and uniquifying the output.
7701 if sort "$nlist" | uniq > "$nlist"T; then
7702 mv -f "$nlist"T "$nlist"
7703 else
7704 rm -f "$nlist"T
7705 fi
7706
7707 # Make sure that we snagged all the symbols we need.
7708 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7709 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7710 cat <<EOF > conftest.$ac_ext
7711#ifdef __cplusplus
7712extern "C" {
7713#endif
7714
7715EOF
7716 # Now generate the symbol file.
7717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7718
7719 cat <<EOF >> conftest.$ac_ext
7720#if defined (__STDC__) && __STDC__
7721# define lt_ptr_t void *
7722#else
7723# define lt_ptr_t char *
7724# define const
7725#endif
7726
7727/* The mapping between symbol names and symbols. */
7728const struct {
7729 const char *name;
7730 lt_ptr_t address;
7731}
7732lt_preloaded_symbols[] =
7733{
7734EOF
7735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7736 cat <<\EOF >> conftest.$ac_ext
7737 {0, (lt_ptr_t) 0}
7738};
7739
7740#ifdef __cplusplus
7741}
7742#endif
7743EOF
7744 # Now try linking the two files.
7745 mv conftest.$ac_objext conftstm.$ac_objext
7746 lt_save_LIBS="$LIBS"
7747 lt_save_CFLAGS="$CFLAGS"
7748 LIBS="conftstm.$ac_objext"
7749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7755 pipe_works=yes
7756 fi
7757 LIBS="$lt_save_LIBS"
7758 CFLAGS="$lt_save_CFLAGS"
7759 else
7760 echo "cannot find nm_test_func in $nlist" >&5
7761 fi
7762 else
7763 echo "cannot find nm_test_var in $nlist" >&5
7764 fi
7765 else
7766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7767 fi
7768 else
7769 echo "$progname: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 fi
7772 rm -f conftest* conftst*
7773
7774 # Do not use the global_symbol_pipe unless it works.
7775 if test "$pipe_works" = yes; then
7776 break
7777 else
7778 lt_cv_sys_global_symbol_pipe=
7779 fi
7780done
7781
7782fi
7783
7784if test -z "$lt_cv_sys_global_symbol_pipe"; then
7785 lt_cv_sys_global_symbol_to_cdecl=
7786fi
7787if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7788 echo "$as_me:$LINENO: result: failed" >&5
7789echo "${ECHO_T}failed" >&6
7790else
7791 echo "$as_me:$LINENO: result: ok" >&5
7792echo "${ECHO_T}ok" >&6
7793fi
7794
7795
7796echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7797echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7798if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7802 libltdl_cv_preloaded_symbols=yes
7803 else
7804 libltdl_cv_preloaded_symbols=no
7805 fi
7806
7807fi
7808echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7809echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7810if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7811
7812cat >>confdefs.h <<\_ACEOF
7813#define HAVE_PRELOADED_SYMBOLS 1
7814_ACEOF
7815
7816fi
7817
7818LIBADD_DL=
7819
7820ac_ext=c
7821ac_cpp='$CPP $CPPFLAGS'
7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826
7827echo "$as_me:$LINENO: checking for shl_load" >&5
7828echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7829if test "${ac_cv_func_shl_load+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831else
7832 cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h. */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h. */
7838/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7840#define shl_load innocuous_shl_load
7841
7842/* System header to define __stub macros and hopefully few prototypes,
7843 which can conflict with char shl_load (); below.
7844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 <limits.h> exists even on freestanding compilers. */
7846
7847#ifdef __STDC__
7848# include <limits.h>
7849#else
7850# include <assert.h>
7851#endif
7852
7853#undef shl_load
7854
7855/* Override any gcc2 internal prototype to avoid an error. */
7856#ifdef __cplusplus
7857extern "C"
7858{
7859#endif
7860/* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7862char shl_load ();
7863/* The GNU C library defines this for functions which it implements
7864 to always fail with ENOSYS. Some functions are actually named
7865 something starting with __ and the normal name is an alias. */
7866#if defined (__stub_shl_load) || defined (__stub___shl_load)
7867choke me
7868#else
7869char (*f) () = shl_load;
7870#endif
7871#ifdef __cplusplus
7872}
7873#endif
7874
7875int
7876main ()
7877{
7878return f != shl_load;
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883rm -f conftest.$ac_objext conftest$ac_exeext
7884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_func_shl_load=yes
7906else
7907 echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910ac_cv_func_shl_load=no
7911fi
7912rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914fi
7915echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7916echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7917if test $ac_cv_func_shl_load = yes; then
7918
7919cat >>confdefs.h <<\_ACEOF
7920#define HAVE_SHL_LOAD 1
7921_ACEOF
7922
7923else
7924 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7925echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7926if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 ac_check_lib_save_LIBS=$LIBS
7930LIBS="-ldld $LIBS"
7931cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h. */
7937
7938/* Override any gcc2 internal prototype to avoid an error. */
7939#ifdef __cplusplus
7940extern "C"
7941#endif
7942/* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944char shl_load ();
7945int
7946main ()
7947{
7948shl_load ();
7949 ;
7950 return 0;
7951}
7952_ACEOF
7953rm -f conftest.$ac_objext conftest$ac_exeext
7954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_lib_dld_shl_load=yes
7976else
7977 echo "$as_me: failed program was:" >&5
7978sed 's/^/| /' conftest.$ac_ext >&5
7979
7980ac_cv_lib_dld_shl_load=no
7981fi
7982rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984LIBS=$ac_check_lib_save_LIBS
7985fi
7986echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7987echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7988if test $ac_cv_lib_dld_shl_load = yes; then
7989
7990cat >>confdefs.h <<\_ACEOF
7991#define HAVE_SHL_LOAD 1
7992_ACEOF
7993
7994 LIBADD_DL="$LIBADD_DL -ldld"
7995else
7996 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7997echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7998if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001 ac_check_lib_save_LIBS=$LIBS
8002LIBS="-ldl $LIBS"
8003cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009
8010/* Override any gcc2 internal prototype to avoid an error. */
8011#ifdef __cplusplus
8012extern "C"
8013#endif
8014/* We use char because int might match the return type of a gcc2
8015 builtin and then its argument prototype would still apply. */
8016char dlopen ();
8017int
8018main ()
8019{
8020dlopen ();
8021 ;
8022 return 0;
8023}
8024_ACEOF
8025rm -f conftest.$ac_objext conftest$ac_exeext
8026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag"
8035 || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_lib_dl_dlopen=yes
8048else
8049 echo "$as_me: failed program was:" >&5
8050sed 's/^/| /' conftest.$ac_ext >&5
8051
8052ac_cv_lib_dl_dlopen=no
8053fi
8054rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056LIBS=$ac_check_lib_save_LIBS
8057fi
8058echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8060if test $ac_cv_lib_dl_dlopen = yes; then
8061
8062cat >>confdefs.h <<\_ACEOF
8063#define HAVE_LIBDL 1
8064_ACEOF
8065
8066 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
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#if HAVE_DLFCN_H
8075# include <dlfcn.h>
8076#endif
8077
8078int
8079main ()
8080{
8081dlopen(0, 0);
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086rm -f conftest.$ac_objext conftest$ac_exeext
8087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -z "$ac_c_werror_flag"
8096 || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108
8109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_LIBDL 1
8111_ACEOF
8112 libltdl_cv_func_dlopen="yes"
8113else
8114 echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
8117echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8118echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8119if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 ac_check_lib_save_LIBS=$LIBS
8123LIBS="-lsvld $LIBS"
8124cat >conftest.$ac_ext <<_ACEOF
8125/* confdefs.h. */
8126_ACEOF
8127cat confdefs.h >>conftest.$ac_ext
8128cat >>conftest.$ac_ext <<_ACEOF
8129/* end confdefs.h. */
8130
8131/* Override any gcc2 internal prototype to avoid an error. */
8132#ifdef __cplusplus
8133extern "C"
8134#endif
8135/* We use char because int might match the return type of a gcc2
8136 builtin and then its argument prototype would still apply. */
8137char dlopen ();
8138int
8139main ()
8140{
8141dlopen ();
8142 ;
8143 return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext conftest$ac_exeext
8147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_lib_svld_dlopen=yes
8169else
8170 echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173ac_cv_lib_svld_dlopen=no
8174fi
8175rm -f conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177LIBS=$ac_check_lib_save_LIBS
8178fi
8179echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8180echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8181if test $ac_cv_lib_svld_dlopen = yes; then
8182
8183cat >>confdefs.h <<\_ACEOF
8184#define HAVE_LIBDL 1
8185_ACEOF
8186
8187 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8188else
8189 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8190echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8191if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 ac_check_lib_save_LIBS=$LIBS
8195LIBS="-ldld $LIBS"
8196cat >conftest.$ac_ext <<_ACEOF
8197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
8202
8203/* Override any gcc2 internal prototype to avoid an error. */
8204#ifdef __cplusplus
8205extern "C"
8206#endif
8207/* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209char dld_link ();
8210int
8211main ()
8212{
8213dld_link ();
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218rm -f conftest.$ac_objext conftest$ac_exeext
8219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dld_dld_link=yes
8241else
8242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245ac_cv_lib_dld_dld_link=no
8246fi
8247rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249LIBS=$ac_check_lib_save_LIBS
8250fi
8251echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8252echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8253if test $ac_cv_lib_dld_dld_link = yes; then
8254
8255cat >>confdefs.h <<\_ACEOF
8256#define HAVE_DLD 1
8257_ACEOF
8258
8259 LIBADD_DL="$LIBADD_DL -ldld"
8260else
8261 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8262echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8263if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 cat >conftest.$ac_ext <<_ACEOF
8267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
8272/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274#define _dyld_func_lookup innocuous__dyld_func_lookup
8275
8276/* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char _dyld_func_lookup (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
8280
8281#ifdef __STDC__
8282# include <limits.h>
8283#else
8284# include <assert.h>
8285#endif
8286
8287#undef _dyld_func_lookup
8288
8289/* Override any gcc2 internal prototype to avoid an error. */
8290#ifdef __cplusplus
8291extern "C"
8292{
8293#endif
8294/* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296char _dyld_func_lookup ();
8297/* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8301choke me
8302#else
8303char (*f) () = _dyld_func_lookup;
8304#endif
8305#ifdef __cplusplus
8306}
8307#endif
8308
8309int
8310main ()
8311{
8312return f != _dyld_func_lookup;
8313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
8318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func__dyld_func_lookup=yes
8340else
8341 echo "$as_me: failed program was:" >&5
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
8344ac_cv_func__dyld_func_lookup=no
8345fi
8346rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348fi
8349echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8350echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8351if test $ac_cv_func__dyld_func_lookup = yes; then
8352
8353cat >>confdefs.h <<\_ACEOF
8354#define HAVE_DYLD 1
8355_ACEOF
8356
8357fi
8358
8359
8360fi
8361
8362
8363fi
8364
8365
8366fi
8367rm -f conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369
8370fi
8371
8372
8373fi
8374
8375
8376fi
8377
8378
8379if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8380then
8381 lt_save_LIBS="$LIBS"
8382 LIBS="$LIBS $LIBADD_DL"
8383
8384for ac_func in dlerror
8385do
8386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8387echo "$as_me:$LINENO: checking for $ac_func" >&5
8388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8389if eval "test \"\${$as_ac_var+set}\" = set"; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392 cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8400#define $ac_func innocuous_$ac_func
8401
8402/* System header to define __stub macros and hopefully few prototypes,
8403 which can conflict with char $ac_func (); below.
8404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8405 <limits.h> exists even on freestanding compilers. */
8406
8407#ifdef __STDC__
8408# include <limits.h>
8409#else
8410# include <assert.h>
8411#endif
8412
8413#undef $ac_func
8414
8415/* Override any gcc2 internal prototype to avoid an error. */
8416#ifdef __cplusplus
8417extern "C"
8418{
8419#endif
8420/* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8422char $ac_func ();
8423/* The GNU C library defines this for functions which it implements
8424 to always fail with ENOSYS. Some functions are actually named
8425 something starting with __ and the normal name is an alias. */
8426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8427choke me
8428#else
8429char (*f) () = $ac_func;
8430#endif
8431#ifdef __cplusplus
8432}
8433#endif
8434
8435int
8436main ()
8437{
8438return f != $ac_func;
8439 ;
8440 return 0;
8441}
8442_ACEOF
8443rm -f conftest.$ac_objext conftest$ac_exeext
8444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag"
8453 || test ! -s conftest.err'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 eval "$as_ac_var=yes"
8466else
8467 echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470eval "$as_ac_var=no"
8471fi
8472rm -f conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474fi
8475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8477if test `eval echo '${'$as_ac_var'}'` = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8480_ACEOF
8481
8482fi
8483done
8484
8485 LIBS="$lt_save_LIBS"
8486fi
8487ac_ext=c
8488ac_cpp='$CPP $CPPFLAGS'
8489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492
8493
8494
8495echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8496echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8497if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500 ac_cv_sys_symbol_underscore=no
8501 cat > conftest.$ac_ext <<EOF
8502void nm_test_func(){}
8503int main(){nm_test_func;return 0;}
8504EOF
8505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506 (eval $ac_compile) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; then
8510 # Now try to grab the symbols.
8511 ac_nlist=conftest.nm
8512 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8513 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && test -s "$ac_nlist"; then
8517 # See whether the symbols have a leading underscore.
8518 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8519 ac_cv_sys_symbol_underscore=yes
8520 else
8521 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8522 :
8523 else
8524 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8525 fi
8526 fi
8527 else
8528 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8529 fi
8530 else
8531 echo "configure: failed program was:" >&5
8532 cat conftest.c >&5
8533 fi
8534 rm -rf conftest*
8535
8536fi
8537echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8538echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8539
8540
8541if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8542 if test x"$libltdl_cv_func_dlopen" = xyes ||
8543 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8544 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8545echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8546if test "${libltdl_cv_need_uscore+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549 libltdl_cv_need_uscore=unknown
8550 save_LIBS="$LIBS"
8551 LIBS="$LIBS $LIBADD_DL"
8552 if test "$cross_compiling" = yes; then :
8553 libltdl_cv_need_uscore=cross
8554else
8555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8556 lt_status=$lt_dlunknown
8557 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +00008558#line 8558 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008559#include "confdefs.h"
8560
8561#if HAVE_DLFCN_H
8562#include <dlfcn.h>
8563#endif
8564
8565#include <stdio.h>
8566
8567#ifdef RTLD_GLOBAL
8568# define LT_DLGLOBAL RTLD_GLOBAL
8569#else
8570# ifdef DL_GLOBAL
8571# define LT_DLGLOBAL DL_GLOBAL
8572# else
8573# define LT_DLGLOBAL 0
8574# endif
8575#endif
8576
8577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8578 find out it does not work in some platform. */
8579#ifndef LT_DLLAZY_OR_NOW
8580# ifdef RTLD_LAZY
8581# define LT_DLLAZY_OR_NOW RTLD_LAZY
8582# else
8583# ifdef DL_LAZY
8584# define LT_DLLAZY_OR_NOW DL_LAZY
8585# else
8586# ifdef RTLD_NOW
8587# define LT_DLLAZY_OR_NOW RTLD_NOW
8588# else
8589# ifdef DL_NOW
8590# define LT_DLLAZY_OR_NOW DL_NOW
8591# else
8592# define LT_DLLAZY_OR_NOW 0
8593# endif
8594# endif
8595# endif
8596# endif
8597#endif
8598
8599#ifdef __cplusplus
8600extern "C" void exit (int);
8601#endif
8602
8603void fnord() { int i=42;}
8604int main ()
8605{
8606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8607 int status = $lt_dlunknown;
8608
8609 if (self)
8610 {
8611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8612 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8613 /* dlclose (self); */
8614 }
8615
8616 exit (status);
8617}
8618EOF
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8624 (./conftest; exit; ) 2>/dev/null
8625 lt_status=$?
8626 case x$lt_status in
8627 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8628 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8629 x$lt_unknown|x*) ;;
8630 esac
8631 else :
8632 # compilation failed
8633
8634 fi
8635fi
8636rm -fr conftest*
8637
8638 LIBS="$save_LIBS"
8639
8640fi
8641echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8642echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8643 fi
8644fi
8645
8646if test x"$libltdl_cv_need_uscore" = xyes; then
8647
8648cat >>confdefs.h <<\_ACEOF
8649#define NEED_USCORE 1
8650_ACEOF
8651
8652fi
8653
8654
8655echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8656echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8657if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660 # PORTME does your system automatically load deplibs for dlopen?
8661 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8662 # For now, we just catch OSes we know something about -- in the
8663 # future, we'll try test this programmatically.
8664 libltdl_cv_sys_dlopen_deplibs=unknown
8665 case "$host_os" in
8666 aix3*|aix4.1.*|aix4.2.*)
8667 # Unknown whether this is true for these versions of AIX, but
8668 # we want this `case' here to explicitly catch those versions.
8669 libltdl_cv_sys_dlopen_deplibs=unknown
8670 ;;
8671 aix[45]*)
8672 libltdl_cv_sys_dlopen_deplibs=yes
8673 ;;
8674 darwin*)
8675 # Assuming the user has installed a libdl from somewhere, this is true
8676 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8677 libltdl_cv_sys_dlopen_deplibs=yes
8678 ;;
8679 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8680 # GNU and its variants, using gnu ld.so (Glibc)
8681 libltdl_cv_sys_dlopen_deplibs=yes
8682 ;;
8683 hpux10*|hpux11*)
8684 libltdl_cv_sys_dlopen_deplibs=yes
8685 ;;
8686 irix[12345]*|irix6.[01]*)
8687 # Catch all versions of IRIX before 6.2, and indicate that we don't
8688 # know how it worked for any of those versions.
8689 libltdl_cv_sys_dlopen_deplibs=unknown
8690 ;;
8691 irix*)
8692 # The case above catches anything before 6.2, and it's known that
8693 # at 6.2 and later dlopen does load deplibs.
8694 libltdl_cv_sys_dlopen_deplibs=yes
8695 ;;
8696 netbsd*)
8697 libltdl_cv_sys_dlopen_deplibs=yes
8698 ;;
8699 openbsd*)
8700 libltdl_cv_sys_dlopen_deplibs=yes
8701 ;;
8702 osf[1234]*)
8703 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8704 # it did *not* use an RPATH in a shared library to find objects the
8705 # library depends on, so we explictly say `no'.
8706 libltdl_cv_sys_dlopen_deplibs=no
8707 ;;
8708 osf5.0|osf5.0a|osf5.1)
8709 # dlopen *does* load deplibs and with the right loader patch applied
8710 # it even uses RPATH in a shared library to search for shared objects
8711 # that the library depends on, but there's no easy way to know if that
8712 # patch is installed. Since this is the case, all we can really
8713 # say is unknown -- it depends on the patch being installed. If
8714 # it is, this changes to `yes'. Without it, it would be `no'.
8715 libltdl_cv_sys_dlopen_deplibs=unknown
8716 ;;
8717 osf*)
8718 # the two cases above should catch all versions of osf <= 5.1. Read
8719 # the comments above for what we know about them.
8720 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8721 # is used to find them so we can finally say `yes'.
8722 libltdl_cv_sys_dlopen_deplibs=yes
8723 ;;
8724 solaris*)
8725 libltdl_cv_sys_dlopen_deplibs=yes
8726 ;;
8727 esac
8728
8729fi
8730echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8731echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8732if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8733
8734cat >>confdefs.h <<\_ACEOF
8735#define LTDL_DLOPEN_DEPLIBS 1
8736_ACEOF
8737
8738fi
8739
8740
8741for ac_header in argz.h
8742do
8743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8744if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo "$as_me:$LINENO: checking for $ac_header" >&5
8746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749fi
8750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752else
8753 # Is the header compilable?
8754echo "$as_me:$LINENO: checking $ac_header usability" >&5
8755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8756cat >conftest.$ac_ext <<_ACEOF
8757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
8762$ac_includes_default
8763#include <$ac_header>
8764_ACEOF
8765rm -f conftest.$ac_objext
8766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_header_compiler=yes
8788else
8789 echo "$as_me: failed program was:" >&5
8790sed 's/^/| /' conftest.$ac_ext >&5
8791
8792ac_header_compiler=no
8793fi
8794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8795echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796echo "${ECHO_T}$ac_header_compiler" >&6
8797
8798# Is the header present?
8799echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
8807#include <$ac_header>
8808_ACEOF
8809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } >/dev/null; then
8817 if test -s conftest.err; then
8818 ac_cpp_err=$ac_c_preproc_warn_flag
8819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8820 else
8821 ac_cpp_err=
8822 fi
8823else
8824 ac_cpp_err=yes
8825fi
8826if test -z "$ac_cpp_err"; then
8827 ac_header_preproc=yes
8828else
8829 echo "$as_me: failed program was:" >&5
8830sed 's/^/| /' conftest.$ac_ext >&5
8831
8832 ac_header_preproc=no
8833fi
8834rm -f conftest.err conftest.$ac_ext
8835echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836echo "${ECHO_T}$ac_header_preproc" >&6
8837
8838# So? What about this header?
8839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840 yes:no: )
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845 ac_header_preproc=yes
8846 ;;
8847 no:yes:* )
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8851echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8855echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8860 (
8861 cat <<\_ASBOX
8862## ----------------------------------- ##
8863## Report this to llvmbugs@cs.uiuc.edu ##
8864## ----------------------------------- ##
8865_ASBOX
8866 ) |
8867 sed "s/^/$as_me: WARNING: /" >&2
8868 ;;
8869esac
8870echo "$as_me:$LINENO: checking for $ac_header" >&5
8871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8872if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874else
8875 eval "$as_ac_Header=\$ac_header_preproc"
8876fi
8877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8879
8880fi
8881if test `eval echo '${'$as_ac_Header'}'` = yes; then
8882 cat >>confdefs.h <<_ACEOF
8883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884_ACEOF
8885
8886fi
8887
8888done
8889
8890
8891echo "$as_me:$LINENO: checking for error_t" >&5
8892echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8893if test "${ac_cv_type_error_t+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896 cat >conftest.$ac_ext <<_ACEOF
8897/* confdefs.h. */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
8901/* end confdefs.h. */
8902#if HAVE_ARGZ_H
8903# include <argz.h>
8904#endif
8905
8906int
8907main ()
8908{
8909if ((error_t *) 0)
8910 return 0;
8911if (sizeof (error_t))
8912 return 0;
8913 ;
8914 return 0;
8915}
8916_ACEOF
8917rm -f conftest.$ac_objext
8918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest.$ac_objext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8939 ac_cv_type_error_t=yes
8940else
8941 echo "$as_me: failed program was:" >&5
8942sed 's/^/| /' conftest.$ac_ext >&5
8943
8944ac_cv_type_error_t=no
8945fi
8946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8947fi
8948echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8949echo "${ECHO_T}$ac_cv_type_error_t" >&6
8950if test $ac_cv_type_error_t = yes; then
8951
8952cat >>confdefs.h <<_ACEOF
8953#define HAVE_ERROR_T 1
8954_ACEOF
8955
8956
8957else
8958
8959cat >>confdefs.h <<\_ACEOF
8960#define error_t int
8961_ACEOF
8962
8963fi
8964
8965
8966
8967
8968
8969
8970
8971for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8972do
8973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8974echo "$as_me:$LINENO: checking for $ac_func" >&5
8975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8976if eval "test \"\${$as_ac_var+set}\" = set"; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
8985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8987#define $ac_func innocuous_$ac_func
8988
8989/* System header to define __stub macros and hopefully few prototypes,
8990 which can conflict with char $ac_func (); below.
8991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8992 <limits.h> exists even on freestanding compilers. */
8993
8994#ifdef __STDC__
8995# include <limits.h>
8996#else
8997# include <assert.h>
8998#endif
8999
9000#undef $ac_func
9001
9002/* Override any gcc2 internal prototype to avoid an error. */
9003#ifdef __cplusplus
9004extern "C"
9005{
9006#endif
9007/* We use char because int might match the return type of a gcc2
9008 builtin and then its argument prototype would still apply. */
9009char $ac_func ();
9010/* The GNU C library defines this for functions which it implements
9011 to always fail with ENOSYS. Some functions are actually named
9012 something starting with __ and the normal name is an alias. */
9013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9014choke me
9015#else
9016char (*f) () = $ac_func;
9017#endif
9018#ifdef __cplusplus
9019}
9020#endif
9021
9022int
9023main ()
9024{
9025return f != $ac_func;
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030rm -f conftest.$ac_objext conftest$ac_exeext
9031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 eval "$as_ac_var=yes"
9053else
9054 echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057eval "$as_ac_var=no"
9058fi
9059rm -f conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061fi
9062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9064if test `eval echo '${'$as_ac_var'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9067_ACEOF
9068
9069fi
9070done
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9100 stdio.h unistd.h
9101do
9102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104 echo "$as_me:$LINENO: checking for $ac_header" >&5
9105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108fi
9109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111else
9112 # Is the header compilable?
9113echo "$as_me:$LINENO: checking $ac_header usability" >&5
9114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9115cat >conftest.$ac_ext <<_ACEOF
9116/* confdefs.h. */
9117_ACEOF
9118cat confdefs.h >>conftest.$ac_ext
9119cat >>conftest.$ac_ext <<_ACEOF
9120/* end confdefs.h. */
9121$ac_includes_default
9122#include <$ac_header>
9123_ACEOF
9124rm -f conftest.$ac_objext
9125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_header_compiler=yes
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151ac_header_compiler=no
9152fi
9153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9155echo "${ECHO_T}$ac_header_compiler" >&6
9156
9157# Is the header present?
9158echo "$as_me:$LINENO: checking $ac_header presence" >&5
9159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9160cat >conftest.$ac_ext <<_ACEOF
9161/* confdefs.h. */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h. */
9166#include <$ac_header>
9167_ACEOF
9168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } >/dev/null; then
9176 if test -s conftest.err; then
9177 ac_cpp_err=$ac_c_preproc_warn_flag
9178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9179 else
9180 ac_cpp_err=
9181 fi
9182else
9183 ac_cpp_err=yes
9184fi
9185if test -z "$ac_cpp_err"; then
9186 ac_header_preproc=yes
9187else
9188 echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191 ac_header_preproc=no
9192fi
9193rm -f conftest.err conftest.$ac_ext
9194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9195echo "${ECHO_T}$ac_header_preproc" >&6
9196
9197# So? What about this header?
9198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9199 yes:no: )
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9204 ac_header_preproc=yes
9205 ;;
9206 no:yes:* )
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9219 (
9220 cat <<\_ASBOX
9221## ----------------------------------- ##
9222## Report this to llvmbugs@cs.uiuc.edu ##
9223## ----------------------------------- ##
9224_ASBOX
9225 ) |
9226 sed "s/^/$as_me: WARNING: /" >&2
9227 ;;
9228esac
9229echo "$as_me:$LINENO: checking for $ac_header" >&5
9230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234 eval "$as_ac_Header=\$ac_header_preproc"
9235fi
9236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9238
9239fi
9240if test `eval echo '${'$as_ac_Header'}'` = yes; then
9241 cat >>confdefs.h <<_ACEOF
9242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9243_ACEOF
9244
9245fi
9246
9247done
9248
9249
9250
9251
9252
9253for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9254do
9255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9256if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257 echo "$as_me:$LINENO: checking for $ac_header" >&5
9258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9259if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261fi
9262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264else
9265 # Is the header compilable?
9266echo "$as_me:$LINENO: checking $ac_header usability" >&5
9267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9268cat >conftest.$ac_ext <<_ACEOF
9269/* confdefs.h. */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h. */
9274$ac_includes_default
9275#include <$ac_header>
9276_ACEOF
9277rm -f conftest.$ac_objext
9278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9279 (eval $ac_compile) 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest.$ac_objext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_header_compiler=yes
9300else
9301 echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304ac_header_compiler=no
9305fi
9306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9308echo "${ECHO_T}$ac_header_compiler" >&6
9309
9310# Is the header present?
9311echo "$as_me:$LINENO: checking $ac_header presence" >&5
9312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9313cat >conftest.$ac_ext <<_ACEOF
9314/* confdefs.h. */
9315_ACEOF
9316cat confdefs.h >>conftest.$ac_ext
9317cat >>conftest.$ac_ext <<_ACEOF
9318/* end confdefs.h. */
9319#include <$ac_header>
9320_ACEOF
9321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } >/dev/null; then
9329 if test -s conftest.err; then
9330 ac_cpp_err=$ac_c_preproc_warn_flag
9331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9332 else
9333 ac_cpp_err=
9334 fi
9335else
9336 ac_cpp_err=yes
9337fi
9338if test -z "$ac_cpp_err"; then
9339 ac_header_preproc=yes
9340else
9341 echo "$as_me: failed program was:" >&5
9342sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 ac_header_preproc=no
9345fi
9346rm -f conftest.err conftest.$ac_ext
9347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9348echo "${ECHO_T}$ac_header_preproc" >&6
9349
9350# So? What about this header?
9351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9352 yes:no: )
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9357 ac_header_preproc=yes
9358 ;;
9359 no:yes:* )
9360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9372 (
9373 cat <<\_ASBOX
9374## ----------------------------------- ##
9375## Report this to llvmbugs@cs.uiuc.edu ##
9376## ----------------------------------- ##
9377_ASBOX
9378 ) |
9379 sed "s/^/$as_me: WARNING: /" >&2
9380 ;;
9381esac
9382echo "$as_me:$LINENO: checking for $ac_header" >&5
9383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387 eval "$as_ac_Header=\$ac_header_preproc"
9388fi
9389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391
9392fi
9393if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396_ACEOF
9397
9398fi
9399
9400done
9401
9402
9403
9404for ac_header in string.h strings.h
9405do
9406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9407if eval "test \"\${$as_ac_Header+set}\" = set"; then
9408 echo "$as_me:$LINENO: checking for $ac_header" >&5
9409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9410if eval "test \"\${$as_ac_Header+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412fi
9413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9415else
9416 # Is the header compilable?
9417echo "$as_me:$LINENO: checking $ac_header usability" >&5
9418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9419cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425$ac_includes_default
9426#include <$ac_header>
9427_ACEOF
9428rm -f conftest.$ac_objext
9429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430 (eval $ac_compile) 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest.$ac_objext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_header_compiler=yes
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455ac_header_compiler=no
9456fi
9457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9459echo "${ECHO_T}$ac_header_compiler" >&6
9460
9461# Is the header present?
9462echo "$as_me:$LINENO: checking $ac_header presence" >&5
9463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9464cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470#include <$ac_header>
9471_ACEOF
9472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } >/dev/null; then
9480 if test -s conftest.err; then
9481 ac_cpp_err=$ac_c_preproc_warn_flag
9482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9483 else
9484 ac_cpp_err=
9485 fi
9486else
9487 ac_cpp_err=yes
9488fi
9489if test -z "$ac_cpp_err"; then
9490 ac_header_preproc=yes
9491else
9492 echo "$as_me: failed program was:" >&5
9493sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 ac_header_preproc=no
9496fi
9497rm -f conftest.err conftest.$ac_ext
9498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9499echo "${ECHO_T}$ac_header_preproc" >&6
9500
9501# So? What about this header?
9502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9503 yes:no: )
9504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9508 ac_header_preproc=yes
9509 ;;
9510 no:yes:* )
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9523 (
9524 cat <<\_ASBOX
9525## ----------------------------------- ##
9526## Report this to llvmbugs@cs.uiuc.edu ##
9527## ----------------------------------- ##
9528_ASBOX
9529 ) |
9530 sed "s/^/$as_me: WARNING: /" >&2
9531 ;;
9532esac
9533echo "$as_me:$LINENO: checking for $ac_header" >&5
9534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9535if eval "test \"\${$as_ac_Header+set}\" = set"; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 eval "$as_ac_Header=\$ac_header_preproc"
9539fi
9540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9542
9543fi
9544if test `eval echo '${'$as_ac_Header'}'` = yes; then
9545 cat >>confdefs.h <<_ACEOF
9546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9547_ACEOF
9548 break
9549fi
9550
9551done
9552
9553
9554
9555
9556for ac_func in strchr index
9557do
9558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9559echo "$as_me:$LINENO: checking for $ac_func" >&5
9560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9561if eval "test \"\${$as_ac_var+set}\" = set"; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
9570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572#define $ac_func innocuous_$ac_func
9573
9574/* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char $ac_func (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9578
9579#ifdef __STDC__
9580# include <limits.h>
9581#else
9582# include <assert.h>
9583#endif
9584
9585#undef $ac_func
9586
9587/* Override any gcc2 internal prototype to avoid an error. */
9588#ifdef __cplusplus
9589extern "C"
9590{
9591#endif
9592/* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594char $ac_func ();
9595/* The GNU C library defines this for functions which it implements
9596 to always fail with ENOSYS. Some functions are actually named
9597 something starting with __ and the normal name is an alias. */
9598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9599choke me
9600#else
9601char (*f) () = $ac_func;
9602#endif
9603#ifdef __cplusplus
9604}
9605#endif
9606
9607int
9608main ()
9609{
9610return f != $ac_func;
9611 ;
9612 return 0;
9613}
9614_ACEOF
9615rm -f conftest.$ac_objext conftest$ac_exeext
9616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -z "$ac_c_werror_flag"
9625 || test ! -s conftest.err'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 eval "$as_ac_var=yes"
9638else
9639 echo "$as_me: failed program was:" >&5
9640sed 's/^/| /' conftest.$ac_ext >&5
9641
9642eval "$as_ac_var=no"
9643fi
9644rm -f conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646fi
9647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9649if test `eval echo '${'$as_ac_var'}'` = yes; then
9650 cat >>confdefs.h <<_ACEOF
9651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9652_ACEOF
9653 break
9654fi
9655done
9656
9657
9658
9659for ac_func in strrchr rindex
9660do
9661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9662echo "$as_me:$LINENO: checking for $ac_func" >&5
9663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9664if eval "test \"\${$as_ac_var+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667 cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
9673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9675#define $ac_func innocuous_$ac_func
9676
9677/* System header to define __stub macros and hopefully few prototypes,
9678 which can conflict with char $ac_func (); below.
9679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680 <limits.h> exists even on freestanding compilers. */
9681
9682#ifdef __STDC__
9683# include <limits.h>
9684#else
9685# include <assert.h>
9686#endif
9687
9688#undef $ac_func
9689
9690/* Override any gcc2 internal prototype to avoid an error. */
9691#ifdef __cplusplus
9692extern "C"
9693{
9694#endif
9695/* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9697char $ac_func ();
9698/* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9702choke me
9703#else
9704char (*f) () = $ac_func;
9705#endif
9706#ifdef __cplusplus
9707}
9708#endif
9709
9710int
9711main ()
9712{
9713return f != $ac_func;
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 eval "$as_ac_var=yes"
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745eval "$as_ac_var=no"
9746fi
9747rm -f conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749fi
9750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9752if test `eval echo '${'$as_ac_var'}'` = yes; then
9753 cat >>confdefs.h <<_ACEOF
9754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9755_ACEOF
9756 break
9757fi
9758done
9759
9760
9761
9762for ac_func in memcpy bcopy
9763do
9764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9765echo "$as_me:$LINENO: checking for $ac_func" >&5
9766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9767if eval "test \"\${$as_ac_var+set}\" = set"; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769else
9770 cat >conftest.$ac_ext <<_ACEOF
9771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
9776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9778#define $ac_func innocuous_$ac_func
9779
9780/* System header to define __stub macros and hopefully few prototypes,
9781 which can conflict with char $ac_func (); below.
9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783 <limits.h> exists even on freestanding compilers. */
9784
9785#ifdef __STDC__
9786# include <limits.h>
9787#else
9788# include <assert.h>
9789#endif
9790
9791#undef $ac_func
9792
9793/* Override any gcc2 internal prototype to avoid an error. */
9794#ifdef __cplusplus
9795extern "C"
9796{
9797#endif
9798/* We use char because int might match the return type of a gcc2
9799 builtin and then its argument prototype would still apply. */
9800char $ac_func ();
9801/* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9805choke me
9806#else
9807char (*f) () = $ac_func;
9808#endif
9809#ifdef __cplusplus
9810}
9811#endif
9812
9813int
9814main ()
9815{
9816return f != $ac_func;
9817 ;
9818 return 0;
9819}
9820_ACEOF
9821rm -f conftest.$ac_objext conftest$ac_exeext
9822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 eval "$as_ac_var=yes"
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848eval "$as_ac_var=no"
9849fi
9850rm -f conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852fi
9853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9855if test `eval echo '${'$as_ac_var'}'` = yes; then
9856 cat >>confdefs.h <<_ACEOF
9857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9858_ACEOF
9859 break
9860fi
9861done
9862
9863
9864
9865for ac_func in memmove strcmp
9866do
9867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868echo "$as_me:$LINENO: checking for $ac_func" >&5
9869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9870if eval "test \"\${$as_ac_var+set}\" = set"; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872else
9873 cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9881#define $ac_func innocuous_$ac_func
9882
9883/* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char $ac_func (); below.
9885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886 <limits.h> exists even on freestanding compilers. */
9887
9888#ifdef __STDC__
9889# include <limits.h>
9890#else
9891# include <assert.h>
9892#endif
9893
9894#undef $ac_func
9895
9896/* Override any gcc2 internal prototype to avoid an error. */
9897#ifdef __cplusplus
9898extern "C"
9899{
9900#endif
9901/* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9903char $ac_func ();
9904/* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908choke me
9909#else
9910char (*f) () = $ac_func;
9911#endif
9912#ifdef __cplusplus
9913}
9914#endif
9915
9916int
9917main ()
9918{
9919return f != $ac_func;
9920 ;
9921 return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext conftest$ac_exeext
9925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 eval "$as_ac_var=yes"
9947else
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
9951eval "$as_ac_var=no"
9952fi
9953rm -f conftest.err conftest.$ac_objext \
9954 conftest$ac_exeext conftest.$ac_ext
9955fi
9956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9958if test `eval echo '${'$as_ac_var'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9961_ACEOF
9962
9963fi
9964done
9965
9966
9967
9968
9969for ac_func in closedir opendir readdir
9970do
9971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972echo "$as_me:$LINENO: checking for $ac_func" >&5
9973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974if eval "test \"\${$as_ac_var+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976else
9977 cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9985#define $ac_func innocuous_$ac_func
9986
9987/* System header to define __stub macros and hopefully few prototypes,
9988 which can conflict with char $ac_func (); below.
9989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9990 <limits.h> exists even on freestanding compilers. */
9991
9992#ifdef __STDC__
9993# include <limits.h>
9994#else
9995# include <assert.h>
9996#endif
9997
9998#undef $ac_func
9999
10000/* Override any gcc2 internal prototype to avoid an error. */
10001#ifdef __cplusplus
10002extern "C"
10003{
10004#endif
10005/* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007char $ac_func ();
10008/* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10012choke me
10013#else
10014char (*f) () = $ac_func;
10015#endif
10016#ifdef __cplusplus
10017}
10018#endif
10019
10020int
10021main ()
10022{
10023return f != $ac_func;
10024 ;
10025 return 0;
10026}
10027_ACEOF
10028rm -f conftest.$ac_objext conftest$ac_exeext
10029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 eval "$as_ac_var=yes"
10051else
10052 echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055eval "$as_ac_var=no"
10056fi
10057rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059fi
10060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065_ACEOF
10066
10067fi
10068done
10069
10070
10071# Check whether --enable-shared or --disable-shared was given.
10072if test "${enable_shared+set}" = set; then
10073 enableval="$enable_shared"
10074 p=${PACKAGE-default}
10075 case $enableval in
10076 yes) enable_shared=yes ;;
10077 no) enable_shared=no ;;
10078 *)
10079 enable_shared=no
10080 # Look at the argument we got. We use all the common list separators.
10081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10082 for pkg in $enableval; do
10083 IFS="$lt_save_ifs"
10084 if test "X$pkg" = "X$p"; then
10085 enable_shared=yes
10086 fi
10087 done
10088 IFS="$lt_save_ifs"
10089 ;;
10090 esac
10091else
10092 enable_shared=yes
10093fi;
10094
10095# Check whether --enable-static or --disable-static was given.
10096if test "${enable_static+set}" = set; then
10097 enableval="$enable_static"
10098 p=${PACKAGE-default}
10099 case $enableval in
10100 yes) enable_static=yes ;;
10101 no) enable_static=no ;;
10102 *)
10103 enable_static=no
10104 # Look at the argument we got. We use all the common list separators.
10105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10106 for pkg in $enableval; do
10107 IFS="$lt_save_ifs"
10108 if test "X$pkg" = "X$p"; then
10109 enable_static=yes
10110 fi
10111 done
10112 IFS="$lt_save_ifs"
10113 ;;
10114 esac
10115else
10116 enable_static=yes
10117fi;
10118
10119# Check whether --enable-fast-install or --disable-fast-install was given.
10120if test "${enable_fast_install+set}" = set; then
10121 enableval="$enable_fast_install"
10122 p=${PACKAGE-default}
10123 case $enableval in
10124 yes) enable_fast_install=yes ;;
10125 no) enable_fast_install=no ;;
10126 *)
10127 enable_fast_install=no
10128 # Look at the argument we got. We use all the common list separators.
10129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10130 for pkg in $enableval; do
10131 IFS="$lt_save_ifs"
10132 if test "X$pkg" = "X$p"; then
10133 enable_fast_install=yes
10134 fi
10135 done
10136 IFS="$lt_save_ifs"
10137 ;;
10138 esac
10139else
10140 enable_fast_install=yes
10141fi;
10142
10143echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10144echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10145if test "${lt_cv_path_SED+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 # Loop through the user's path and test for sed and gsed.
10149# Then use that list of sed's as ones to test for truncation.
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for lt_ac_prog in sed gsed; do
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10158 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10159 fi
10160 done
10161 done
10162done
10163lt_ac_max=0
10164lt_ac_count=0
10165# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10166# along with /bin/sed that truncates output.
10167for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10168 test ! -f $lt_ac_sed && break
10169 cat /dev/null > conftest.in
10170 lt_ac_count=0
10171 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10172 # Check for GNU sed and select it if it is found.
10173 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10174 lt_cv_path_SED=$lt_ac_sed
10175 break
10176 fi
10177 while true; do
10178 cat conftest.in conftest.in >conftest.tmp
10179 mv conftest.tmp conftest.in
10180 cp conftest.in conftest.nl
10181 echo >>conftest.nl
10182 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10183 cmp -s conftest.out conftest.nl || break
10184 # 10000 chars as input seems more than enough
10185 test $lt_ac_count -gt 10 && break
10186 lt_ac_count=`expr $lt_ac_count + 1`
10187 if test $lt_ac_count -gt $lt_ac_max; then
10188 lt_ac_max=$lt_ac_count
10189 lt_cv_path_SED=$lt_ac_sed
10190 fi
10191 done
10192done
10193
10194fi
10195
10196SED=$lt_cv_path_SED
10197echo "$as_me:$LINENO: result: $SED" >&5
10198echo "${ECHO_T}$SED" >&6
10199
10200
10201# Check whether --with-gnu-ld or --without-gnu-ld was given.
10202if test "${with_gnu_ld+set}" = set; then
10203 withval="$with_gnu_ld"
10204 test "$withval" = no || with_gnu_ld=yes
10205else
10206 with_gnu_ld=no
10207fi;
10208ac_prog=ld
10209if test "$GCC" = yes; then
10210 # Check if gcc -print-prog-name=ld gives a path.
10211 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10212echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10213 case $host in
10214 *-*-mingw*)
10215 # gcc leaves a trailing carriage return which upsets mingw
10216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10217 *)
10218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10219 esac
10220 case $ac_prog in
10221 # Accept absolute paths.
10222 [\\/]* | ?:[\\/]*)
10223 re_direlt='/[^/][^/]*/\.\./'
10224 # Canonicalize the pathname of ld
10225 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10227 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10228 done
10229 test -z "$LD" && LD="$ac_prog"
10230 ;;
10231 "")
10232 # If it fails, then pretend we aren't using GCC.
10233 ac_prog=ld
10234 ;;
10235 *)
10236 # If it is relative, then search for the first ld in PATH.
10237 with_gnu_ld=unknown
10238 ;;
10239 esac
10240elif test "$with_gnu_ld" = yes; then
10241 echo "$as_me:$LINENO: checking for GNU ld" >&5
10242echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10243else
10244 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10245echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10246fi
10247if test "${lt_cv_path_LD+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 if test -z "$LD"; then
10251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10252 for ac_dir in $PATH; do
10253 IFS="$lt_save_ifs"
10254 test -z "$ac_dir" && ac_dir=.
10255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10256 lt_cv_path_LD="$ac_dir/$ac_prog"
10257 # Check to see if the program is GNU ld. I'd rather use --version,
10258 # but apparently some GNU ld's only accept -v.
10259 # Break only if it was the GNU/non-GNU ld that we prefer.
10260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10261 *GNU* | *'with BFD'*)
10262 test "$with_gnu_ld" != no && break
10263 ;;
10264 *)
10265 test "$with_gnu_ld" != yes && break
10266 ;;
10267 esac
10268 fi
10269 done
10270 IFS="$lt_save_ifs"
10271else
10272 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10273fi
10274fi
10275
10276LD="$lt_cv_path_LD"
10277if test -n "$LD"; then
10278 echo "$as_me:$LINENO: result: $LD" >&5
10279echo "${ECHO_T}$LD" >&6
10280else
10281 echo "$as_me:$LINENO: result: no" >&5
10282echo "${ECHO_T}no" >&6
10283fi
10284test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10285echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10286 { (exit 1); exit 1; }; }
10287echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10288echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10289if test "${lt_cv_prog_gnu_ld+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10293case `$LD -v 2>&1 </dev/null` in
10294*GNU* | *'with BFD'*)
10295 lt_cv_prog_gnu_ld=yes
10296 ;;
10297*)
10298 lt_cv_prog_gnu_ld=no
10299 ;;
10300esac
10301fi
10302echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10303echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10304with_gnu_ld=$lt_cv_prog_gnu_ld
10305
10306
10307echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10308echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10309if test "${lt_cv_ld_reload_flag+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311else
10312 lt_cv_ld_reload_flag='-r'
10313fi
10314echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10315echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10316reload_flag=$lt_cv_ld_reload_flag
10317case $reload_flag in
10318"" | " "*) ;;
10319*) reload_flag=" $reload_flag" ;;
10320esac
10321reload_cmds='$LD$reload_flag -o $output$reload_objs'
10322case $host_os in
10323 darwin*)
10324 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010325 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010326 else
10327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10328 fi
10329 ;;
10330esac
10331
10332echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10333echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10334if test "${lt_cv_deplibs_check_method+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337 lt_cv_file_magic_cmd='$MAGIC_CMD'
10338lt_cv_file_magic_test_file=
10339lt_cv_deplibs_check_method='unknown'
10340# Need to set the preceding variable on all platforms that support
10341# interlibrary dependencies.
10342# 'none' -- dependencies not supported.
10343# `unknown' -- same as none, but documents that we really don't know.
10344# 'pass_all' -- all dependencies passed with no checks.
10345# 'test_compile' -- check by making test program.
10346# 'file_magic [[regex]]' -- check by looking for files in library path
10347# which responds to the $file_magic_cmd with a given extended regex.
10348# If you have `file' or equivalent on your system and you're not sure
10349# whether `pass_all' will *always* work, you probably want this one.
10350
10351case $host_os in
10352aix4* | aix5*)
10353 lt_cv_deplibs_check_method=pass_all
10354 ;;
10355
10356beos*)
10357 lt_cv_deplibs_check_method=pass_all
10358 ;;
10359
10360bsdi[45]*)
10361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10362 lt_cv_file_magic_cmd='/usr/bin/file -L'
10363 lt_cv_file_magic_test_file=/shlib/libc.so
10364 ;;
10365
10366cygwin*)
10367 # func_win32_libid is a shell function defined in ltmain.sh
10368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10369 lt_cv_file_magic_cmd='func_win32_libid'
10370 ;;
10371
10372mingw* | pw32*)
10373 # Base MSYS/MinGW do not provide the 'file' command needed by
10374 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10376 lt_cv_file_magic_cmd='$OBJDUMP -f'
10377 ;;
10378
10379darwin* | rhapsody*)
10380 lt_cv_deplibs_check_method=pass_all
10381 ;;
10382
10383freebsd* | kfreebsd*-gnu)
10384 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10385 case $host_cpu in
10386 i*86 )
10387 # Not sure whether the presence of OpenBSD here was a mistake.
10388 # Let's accept both of them until this is cleared up.
10389 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10390 lt_cv_file_magic_cmd=/usr/bin/file
10391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10392 ;;
10393 esac
10394 else
10395 lt_cv_deplibs_check_method=pass_all
10396 fi
10397 ;;
10398
10399gnu*)
10400 lt_cv_deplibs_check_method=pass_all
10401 ;;
10402
10403hpux10.20* | hpux11*)
10404 lt_cv_file_magic_cmd=/usr/bin/file
10405 case "$host_cpu" in
10406 ia64*)
10407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10408 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10409 ;;
10410 hppa*64*)
10411 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]'
10412 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10413 ;;
10414 *)
10415 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10416 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10417 ;;
10418 esac
10419 ;;
10420
10421irix5* | irix6* | nonstopux*)
10422 case $LD in
10423 *-32|*"-32 ") libmagic=32-bit;;
10424 *-n32|*"-n32 ") libmagic=N32;;
10425 *-64|*"-64 ") libmagic=64-bit;;
10426 *) libmagic=never-match;;
10427 esac
10428 lt_cv_deplibs_check_method=pass_all
10429 ;;
10430
10431# This must be Linux ELF.
10432linux*)
10433 lt_cv_deplibs_check_method=pass_all
10434 ;;
10435
10436netbsd*)
10437 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10439 else
10440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10441 fi
10442 ;;
10443
10444newos6*)
10445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10446 lt_cv_file_magic_cmd=/usr/bin/file
10447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10448 ;;
10449
10450nto-qnx*)
10451 lt_cv_deplibs_check_method=unknown
10452 ;;
10453
10454openbsd*)
10455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10457 else
10458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10459 fi
10460 ;;
10461
10462osf3* | osf4* | osf5*)
10463 lt_cv_deplibs_check_method=pass_all
10464 ;;
10465
10466sco3.2v5*)
10467 lt_cv_deplibs_check_method=pass_all
10468 ;;
10469
10470solaris*)
10471 lt_cv_deplibs_check_method=pass_all
10472 ;;
10473
10474sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10475 case $host_vendor in
10476 motorola)
10477 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]'
10478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10479 ;;
10480 ncr)
10481 lt_cv_deplibs_check_method=pass_all
10482 ;;
10483 sequent)
10484 lt_cv_file_magic_cmd='/bin/file'
10485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10486 ;;
10487 sni)
10488 lt_cv_file_magic_cmd='/bin/file'
10489 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10490 lt_cv_file_magic_test_file=/lib/libc.so
10491 ;;
10492 siemens)
10493 lt_cv_deplibs_check_method=pass_all
10494 ;;
10495 esac
10496 ;;
10497
10498sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10499 lt_cv_deplibs_check_method=pass_all
10500 ;;
10501esac
10502
10503fi
10504echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10505echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10506file_magic_cmd=$lt_cv_file_magic_cmd
10507deplibs_check_method=$lt_cv_deplibs_check_method
10508test -z "$deplibs_check_method" && deplibs_check_method=unknown
10509
10510
10511
10512# If no C compiler was specified, use CC.
10513LTCC=${LTCC-"$CC"}
10514
10515# Allow CC to be a program name with arguments.
10516compiler=$CC
10517
10518# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10519if test "${enable_libtool_lock+set}" = set; then
10520 enableval="$enable_libtool_lock"
10521
10522fi;
10523test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10524
10525# Some flags need to be propagated to the compiler or linker for good
10526# libtool support.
10527case $host in
10528ia64-*-hpux*)
10529 # Find out which ABI we are using.
10530 echo 'int i;' > conftest.$ac_ext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532 (eval $ac_compile) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; then
10536 case `/usr/bin/file conftest.$ac_objext` in
10537 *ELF-32*)
10538 HPUX_IA64_MODE="32"
10539 ;;
10540 *ELF-64*)
10541 HPUX_IA64_MODE="64"
10542 ;;
10543 esac
10544 fi
10545 rm -rf conftest*
10546 ;;
10547*-*-irix6*)
10548 # Find out which ABI we are using.
John Criswell0389cf72006-06-20 17:44:40 +000010549 echo '#line 10549 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; then
10555 if test "$lt_cv_prog_gnu_ld" = yes; then
10556 case `/usr/bin/file conftest.$ac_objext` in
10557 *32-bit*)
10558 LD="${LD-ld} -melf32bsmip"
10559 ;;
10560 *N32*)
10561 LD="${LD-ld} -melf32bmipn32"
10562 ;;
10563 *64-bit*)
10564 LD="${LD-ld} -melf64bmip"
10565 ;;
10566 esac
10567 else
10568 case `/usr/bin/file conftest.$ac_objext` in
10569 *32-bit*)
10570 LD="${LD-ld} -32"
10571 ;;
10572 *N32*)
10573 LD="${LD-ld} -n32"
10574 ;;
10575 *64-bit*)
10576 LD="${LD-ld} -64"
10577 ;;
10578 esac
10579 fi
10580 fi
10581 rm -rf conftest*
10582 ;;
10583
10584x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10585 # Find out which ABI we are using.
10586 echo 'int i;' > conftest.$ac_ext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10588 (eval $ac_compile) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; then
10592 case "`/usr/bin/file conftest.o`" in
10593 *32-bit*)
10594 case $host in
10595 x86_64-*linux*)
10596 LD="${LD-ld} -m elf_i386"
10597 ;;
10598 ppc64-*linux*|powerpc64-*linux*)
10599 LD="${LD-ld} -m elf32ppclinux"
10600 ;;
10601 s390x-*linux*)
10602 LD="${LD-ld} -m elf_s390"
10603 ;;
10604 sparc64-*linux*)
10605 LD="${LD-ld} -m elf32_sparc"
10606 ;;
10607 esac
10608 ;;
10609 *64-bit*)
10610 case $host in
10611 x86_64-*linux*)
10612 LD="${LD-ld} -m elf_x86_64"
10613 ;;
10614 ppc*-*linux*|powerpc*-*linux*)
10615 LD="${LD-ld} -m elf64ppc"
10616 ;;
10617 s390*-*linux*)
10618 LD="${LD-ld} -m elf64_s390"
10619 ;;
10620 sparc*-*linux*)
10621 LD="${LD-ld} -m elf64_sparc"
10622 ;;
10623 esac
10624 ;;
10625 esac
10626 fi
10627 rm -rf conftest*
10628 ;;
10629
10630*-*-sco3.2v5*)
10631 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10632 SAVE_CFLAGS="$CFLAGS"
10633 CFLAGS="$CFLAGS -belf"
10634 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10635echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10636if test "${lt_cv_cc_needs_belf+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638else
10639 ac_ext=c
10640ac_cpp='$CPP $CPPFLAGS'
10641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643ac_compiler_gnu=$ac_cv_c_compiler_gnu
10644
10645 cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
10654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 lt_cv_cc_needs_belf=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680lt_cv_cc_needs_belf=no
10681fi
10682rm -f conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 ac_ext=c
10685ac_cpp='$CPP $CPPFLAGS'
10686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10688ac_compiler_gnu=$ac_cv_c_compiler_gnu
10689
10690fi
10691echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10692echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10693 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10694 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10695 CFLAGS="$SAVE_CFLAGS"
10696 fi
10697 ;;
10698
10699esac
10700
10701need_locks="$enable_libtool_lock"
10702
10703
Reid Spencer2706f8c2004-09-19 23:53:36 +000010704
10705
10706if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10707 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10708 (test "X$CXX" != "Xg++"))) ; then
10709 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010710ac_cpp='$CXXCPP $CPPFLAGS'
10711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10714echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10715echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10716if test -z "$CXXCPP"; then
10717 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
John Criswell47fdd832003-07-14 16:52:07 +000010720 # Double quotes because CXXCPP needs to be expanded
10721 for CXXCPP in "$CXX -E" "/lib/cpp"
10722 do
10723 ac_preproc_ok=false
10724for ac_cxx_preproc_warn_flag in '' yes
10725do
10726 # Use a header file that comes with gcc, so configuring glibc
10727 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010730 # On the NeXT, cc -E runs the code through the compiler's parser,
10731 # not just through cpp. "Syntax error" is here to catch this case.
10732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
10738#ifdef __STDC__
10739# include <limits.h>
10740#else
10741# include <assert.h>
10742#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010743 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010744_ACEOF
10745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10747 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010748 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010756 else
John Criswell47fdd832003-07-14 16:52:07 +000010757 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010758 fi
John Criswell47fdd832003-07-14 16:52:07 +000010759else
10760 ac_cpp_err=yes
10761fi
10762if test -z "$ac_cpp_err"; then
10763 :
10764else
10765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010766sed 's/^/| /' conftest.$ac_ext >&5
10767
John Criswell47fdd832003-07-14 16:52:07 +000010768 # Broken: fails on valid input.
10769continue
10770fi
10771rm -f conftest.err conftest.$ac_ext
10772
10773 # OK, works on sane cases. Now check whether non-existent headers
10774 # can be detected and how.
10775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010781#include <ac_nonexistent.h>
10782_ACEOF
10783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10785 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010786 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010794 else
10795 ac_cpp_err=
10796 fi
10797else
10798 ac_cpp_err=yes
10799fi
10800if test -z "$ac_cpp_err"; then
10801 # Broken: success on invalid input.
10802continue
10803else
10804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010805sed 's/^/| /' conftest.$ac_ext >&5
10806
John Criswell47fdd832003-07-14 16:52:07 +000010807 # Passes both tests.
10808ac_preproc_ok=:
10809break
10810fi
10811rm -f conftest.err conftest.$ac_ext
10812
10813done
10814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10815rm -f conftest.err conftest.$ac_ext
10816if $ac_preproc_ok; then
10817 break
John Criswell7a73b802003-06-30 21:59:07 +000010818fi
10819
John Criswell47fdd832003-07-14 16:52:07 +000010820 done
10821 ac_cv_prog_CXXCPP=$CXXCPP
10822
10823fi
10824 CXXCPP=$ac_cv_prog_CXXCPP
10825else
10826 ac_cv_prog_CXXCPP=$CXXCPP
10827fi
10828echo "$as_me:$LINENO: result: $CXXCPP" >&5
10829echo "${ECHO_T}$CXXCPP" >&6
10830ac_preproc_ok=false
10831for ac_cxx_preproc_warn_flag in '' yes
10832do
10833 # Use a header file that comes with gcc, so configuring glibc
10834 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010837 # On the NeXT, cc -E runs the code through the compiler's parser,
10838 # not just through cpp. "Syntax error" is here to catch this case.
10839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845#ifdef __STDC__
10846# include <limits.h>
10847#else
10848# include <assert.h>
10849#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010850 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010851_ACEOF
10852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10854 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010855 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null; then
10860 if test -s conftest.err; then
10861 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010863 else
10864 ac_cpp_err=
10865 fi
10866else
10867 ac_cpp_err=yes
10868fi
10869if test -z "$ac_cpp_err"; then
10870 :
10871else
10872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010873sed 's/^/| /' conftest.$ac_ext >&5
10874
John Criswell47fdd832003-07-14 16:52:07 +000010875 # Broken: fails on valid input.
10876continue
10877fi
10878rm -f conftest.err conftest.$ac_ext
10879
10880 # OK, works on sane cases. Now check whether non-existent headers
10881 # can be detected and how.
10882 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010883/* confdefs.h. */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
10887/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010888#include <ac_nonexistent.h>
10889_ACEOF
10890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10892 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010893 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } >/dev/null; then
10898 if test -s conftest.err; then
10899 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010901 else
10902 ac_cpp_err=
10903 fi
10904else
10905 ac_cpp_err=yes
10906fi
10907if test -z "$ac_cpp_err"; then
10908 # Broken: success on invalid input.
10909continue
10910else
10911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010912sed 's/^/| /' conftest.$ac_ext >&5
10913
John Criswell47fdd832003-07-14 16:52:07 +000010914 # Passes both tests.
10915ac_preproc_ok=:
10916break
10917fi
10918rm -f conftest.err conftest.$ac_ext
10919
10920done
10921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10922rm -f conftest.err conftest.$ac_ext
10923if $ac_preproc_ok; then
10924 :
10925else
John Criswell0c38eaf2003-09-10 15:17:25 +000010926 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10927See \`config.log' for more details." >&5
10928echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10929See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010930 { (exit 1); exit 1; }; }
10931fi
10932
10933ac_ext=cc
10934ac_cpp='$CXXCPP $CPPFLAGS'
10935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938
Reid Spencer2706f8c2004-09-19 23:53:36 +000010939fi
10940
John Criswell47fdd832003-07-14 16:52:07 +000010941
10942ac_ext=f
10943ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10944ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10946if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010947 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 +000010948 do
10949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10951echo "$as_me:$LINENO: checking for $ac_word" >&5
10952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10953if test "${ac_cv_prog_F77+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955else
10956 if test -n "$F77"; then
10957 ac_cv_prog_F77="$F77" # Let the user override the test.
10958else
10959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10969 fi
10970done
10971done
10972
10973fi
10974fi
10975F77=$ac_cv_prog_F77
10976if test -n "$F77"; then
10977 echo "$as_me:$LINENO: result: $F77" >&5
10978echo "${ECHO_T}$F77" >&6
10979else
10980 echo "$as_me:$LINENO: result: no" >&5
10981echo "${ECHO_T}no" >&6
10982fi
10983
10984 test -n "$F77" && break
10985 done
10986fi
10987if test -z "$F77"; then
10988 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010989 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 +000010990do
10991 # Extract the first word of "$ac_prog", so it can be a program name with args.
10992set dummy $ac_prog; ac_word=$2
10993echo "$as_me:$LINENO: checking for $ac_word" >&5
10994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 if test -n "$ac_ct_F77"; then
10999 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11000else
11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002for as_dir in $PATH
11003do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_prog_ac_ct_F77="$ac_prog"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012done
11013done
11014
11015fi
11016fi
11017ac_ct_F77=$ac_cv_prog_ac_ct_F77
11018if test -n "$ac_ct_F77"; then
11019 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11020echo "${ECHO_T}$ac_ct_F77" >&6
11021else
11022 echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6
11024fi
11025
11026 test -n "$ac_ct_F77" && break
11027done
11028
11029 F77=$ac_ct_F77
11030fi
11031
11032
11033# Provide some information about the compiler.
John Criswell0389cf72006-06-20 17:44:40 +000011034echo "$as_me:11034:" \
John Criswell47fdd832003-07-14 16:52:07 +000011035 "checking for Fortran 77 compiler version" >&5
11036ac_compiler=`set X $ac_compile; echo $2`
11037{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11038 (eval $ac_compiler --version </dev/null >&5) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11043 (eval $ac_compiler -v </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11048 (eval $ac_compiler -V </dev/null >&5) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000011052rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000011053
11054# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000011055# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000011056ac_save_ext=$ac_ext
11057ac_ext=F
11058echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11059echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11060if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062else
11063 cat >conftest.$ac_ext <<_ACEOF
11064 program main
11065#ifndef __GNUC__
11066 choke me
11067#endif
11068
11069 end
11070_ACEOF
11071rm -f conftest.$ac_objext
11072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011073 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011080 { ac_try='test -z "$ac_f77_werror_flag"
11081 || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11093 ac_compiler_gnu=yes
11094else
11095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011096sed 's/^/| /' conftest.$ac_ext >&5
11097
John Criswell47fdd832003-07-14 16:52:07 +000011098ac_compiler_gnu=no
11099fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011101ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11102
11103fi
11104echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11105echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11106ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011107ac_test_FFLAGS=${FFLAGS+set}
11108ac_save_FFLAGS=$FFLAGS
11109FFLAGS=
11110echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11111echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11112if test "${ac_cv_prog_f77_g+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 FFLAGS=-g
11116cat >conftest.$ac_ext <<_ACEOF
11117 program main
11118
11119 end
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011123 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011124 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011130 { ac_try='test -z "$ac_f77_werror_flag"
11131 || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_prog_f77_g=yes
11144else
11145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011146sed 's/^/| /' conftest.$ac_ext >&5
11147
John Criswell47fdd832003-07-14 16:52:07 +000011148ac_cv_prog_f77_g=no
11149fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011151
11152fi
11153echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11154echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11155if test "$ac_test_FFLAGS" = set; then
11156 FFLAGS=$ac_save_FFLAGS
11157elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011158 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011159 FFLAGS="-g -O2"
11160 else
11161 FFLAGS="-g"
11162 fi
11163else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011164 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011165 FFLAGS="-O2"
11166 else
11167 FFLAGS=
11168 fi
11169fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011170
11171G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011172ac_ext=c
11173ac_cpp='$CPP $CPPFLAGS'
11174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176ac_compiler_gnu=$ac_cv_c_compiler_gnu
11177
11178
11179
11180# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11181
11182# find the maximum length of command line arguments
11183echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11184echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11185if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011189 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011190
11191 case $build_os in
11192 msdosdjgpp*)
11193 # On DJGPP, this test can blow up pretty badly due to problems in libc
11194 # (any single argument exceeding 2000 bytes causes a buffer overrun
11195 # during glob expansion). Even if it were fixed, the result of this
11196 # check would be larger than it should be.
11197 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11198 ;;
11199
11200 gnu*)
11201 # Under GNU Hurd, this test is not required because there is
11202 # no limit to the length of command line arguments.
11203 # Libtool will interpret -1 as no limit whatsoever
11204 lt_cv_sys_max_cmd_len=-1;
11205 ;;
11206
11207 cygwin* | mingw*)
11208 # On Win9x/ME, this test blows up -- it succeeds, but takes
11209 # about 5 minutes as the teststring grows exponentially.
11210 # Worse, since 9x/ME are not pre-emptively multitasking,
11211 # you end up with a "frozen" computer, even though with patience
11212 # the test eventually succeeds (with a max line length of 256k).
11213 # Instead, let's just punt: use the minimum linelength reported by
11214 # all of the supported platforms: 8192 (on NT/2K/XP).
11215 lt_cv_sys_max_cmd_len=8192;
11216 ;;
11217
Reid Spencer2706f8c2004-09-19 23:53:36 +000011218 amigaos*)
11219 # On AmigaOS with pdksh, this test takes hours, literally.
11220 # So we just punt and use a minimum line length of 8192.
11221 lt_cv_sys_max_cmd_len=8192;
11222 ;;
11223
11224 netbsd* | freebsd* | openbsd* | darwin* )
11225 # This has been around since 386BSD, at least. Likely further.
11226 if test -x /sbin/sysctl; then
11227 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11228 elif test -x /usr/sbin/sysctl; then
11229 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11230 else
11231 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11232 fi
11233 # And add a safety zone
11234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11235 ;;
11236
John Criswell47fdd832003-07-14 16:52:07 +000011237 *)
11238 # If test is not a shell built-in, we'll probably end up computing a
11239 # maximum length that is only half of the actual maximum length, but
11240 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011241 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11242 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11243 = "XX$teststring") >/dev/null 2>&1 &&
11244 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011245 lt_cv_sys_max_cmd_len=$new_result &&
11246 test $i != 17 # 1/2 MB should be enough
11247 do
11248 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011249 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011250 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011251 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011252 # Add a significant safety factor because C++ compilers can tack on massive
11253 # amounts of additional arguments before passing them to the linker.
11254 # It appears as though 1/2 is a usable value.
11255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11256 ;;
11257 esac
11258
11259fi
11260
11261if test -n $lt_cv_sys_max_cmd_len ; then
11262 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11263echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11264else
11265 echo "$as_me:$LINENO: result: none" >&5
11266echo "${ECHO_T}none" >&6
11267fi
11268
11269
11270
11271
11272# Check for command to grab the raw symbol name followed by C symbol from nm.
11273echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11274echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11275if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277else
11278
11279# These are sane defaults that work on at least a few old systems.
11280# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11281
11282# Character class describing NM global symbol codes.
11283symcode='[BCDEGRST]'
11284
11285# Regexp to match symbols that can be accessed directly from C.
11286sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11287
11288# Transform the above into a raw symbol and a C symbol.
11289symxfrm='\1 \2\3 \3'
11290
11291# Transform an extracted symbol line into a proper C declaration
11292lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11293
11294# Transform an extracted symbol line into symbol name and symbol address
11295lt_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'"
11296
11297# Define system-specific variables.
11298case $host_os in
11299aix*)
11300 symcode='[BCDT]'
11301 ;;
11302cygwin* | mingw* | pw32*)
11303 symcode='[ABCDGISTW]'
11304 ;;
11305hpux*) # Its linker distinguishes data from code symbols
11306 if test "$host_cpu" = ia64; then
11307 symcode='[ABCDEGRST]'
11308 fi
11309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11310 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'"
11311 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011312linux*)
11313 if test "$host_cpu" = ia64; then
11314 symcode='[ABCDGIRSTW]'
11315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11316 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'"
11317 fi
11318 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011319irix* | nonstopux*)
11320 symcode='[BCDEGRST]'
11321 ;;
11322osf*)
11323 symcode='[BCDEGQRST]'
11324 ;;
11325solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011326 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011327 ;;
11328sysv4)
11329 symcode='[DFNSTU]'
11330 ;;
11331esac
11332
11333# Handle CRLF in mingw tool chain
11334opt_cr=
11335case $build_os in
11336mingw*)
11337 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11338 ;;
11339esac
11340
11341# If we're using GNU nm, then use its standard symbol codes.
11342case `$NM -V 2>&1` in
11343*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011344 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011345esac
11346
11347# Try without a prefix undercore, then with it.
11348for ac_symprfx in "" "_"; do
11349
11350 # Write the raw and C identifiers.
11351 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11352
11353 # Check to see that the pipe works correctly.
11354 pipe_works=no
11355
11356 rm -f conftest*
11357 cat > conftest.$ac_ext <<EOF
11358#ifdef __cplusplus
11359extern "C" {
11360#endif
11361char nm_test_var;
11362void nm_test_func(){}
11363#ifdef __cplusplus
11364}
11365#endif
11366int main(){nm_test_var='a';nm_test_func();return(0);}
11367EOF
11368
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; then
11374 # Now try to grab the symbols.
11375 nlist=conftest.nm
11376 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11377 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && test -s "$nlist"; then
11381 # Try sorting and uniquifying the output.
11382 if sort "$nlist" | uniq > "$nlist"T; then
11383 mv -f "$nlist"T "$nlist"
11384 else
11385 rm -f "$nlist"T
11386 fi
11387
11388 # Make sure that we snagged all the symbols we need.
11389 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11390 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11391 cat <<EOF > conftest.$ac_ext
11392#ifdef __cplusplus
11393extern "C" {
11394#endif
11395
11396EOF
11397 # Now generate the symbol file.
11398 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11399
11400 cat <<EOF >> conftest.$ac_ext
11401#if defined (__STDC__) && __STDC__
11402# define lt_ptr_t void *
11403#else
11404# define lt_ptr_t char *
11405# define const
11406#endif
11407
11408/* The mapping between symbol names and symbols. */
11409const struct {
11410 const char *name;
11411 lt_ptr_t address;
11412}
11413lt_preloaded_symbols[] =
11414{
11415EOF
11416 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11417 cat <<\EOF >> conftest.$ac_ext
11418 {0, (lt_ptr_t) 0}
11419};
11420
11421#ifdef __cplusplus
11422}
11423#endif
11424EOF
11425 # Now try linking the two files.
11426 mv conftest.$ac_objext conftstm.$ac_objext
11427 lt_save_LIBS="$LIBS"
11428 lt_save_CFLAGS="$CFLAGS"
11429 LIBS="conftstm.$ac_objext"
11430 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11436 pipe_works=yes
11437 fi
11438 LIBS="$lt_save_LIBS"
11439 CFLAGS="$lt_save_CFLAGS"
11440 else
11441 echo "cannot find nm_test_func in $nlist" >&5
11442 fi
11443 else
11444 echo "cannot find nm_test_var in $nlist" >&5
11445 fi
11446 else
11447 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11448 fi
11449 else
11450 echo "$progname: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 fi
11453 rm -f conftest* conftst*
11454
11455 # Do not use the global_symbol_pipe unless it works.
11456 if test "$pipe_works" = yes; then
11457 break
11458 else
11459 lt_cv_sys_global_symbol_pipe=
11460 fi
11461done
11462
11463fi
11464
11465if test -z "$lt_cv_sys_global_symbol_pipe"; then
11466 lt_cv_sys_global_symbol_to_cdecl=
11467fi
11468if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11469 echo "$as_me:$LINENO: result: failed" >&5
11470echo "${ECHO_T}failed" >&6
11471else
11472 echo "$as_me:$LINENO: result: ok" >&5
11473echo "${ECHO_T}ok" >&6
11474fi
11475
11476echo "$as_me:$LINENO: checking for objdir" >&5
11477echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11478if test "${lt_cv_objdir+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 rm -f .libs 2>/dev/null
11482mkdir .libs 2>/dev/null
11483if test -d .libs; then
11484 lt_cv_objdir=.libs
11485else
11486 # MS-DOS does not allow filenames that begin with a dot.
11487 lt_cv_objdir=_libs
11488fi
11489rmdir .libs 2>/dev/null
11490fi
11491echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11492echo "${ECHO_T}$lt_cv_objdir" >&6
11493objdir=$lt_cv_objdir
11494
11495
11496
11497
11498
11499case $host_os in
11500aix3*)
11501 # AIX sometimes has problems with the GCC collect2 program. For some
11502 # reason, if we set the COLLECT_NAMES environment variable, the problems
11503 # vanish in a puff of smoke.
11504 if test "X${COLLECT_NAMES+set}" != Xset; then
11505 COLLECT_NAMES=
11506 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011507 fi
11508 ;;
11509esac
11510
John Criswell47fdd832003-07-14 16:52:07 +000011511# Sed substitution that helps us do robust quoting. It backslashifies
11512# metacharacters that are still active within double-quoted strings.
11513Xsed='sed -e s/^X//'
11514sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11515
11516# Same as above, but do not quote variable references.
11517double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11518
11519# Sed substitution to delay expansion of an escaped shell variable in a
11520# double_quote_subst'ed string.
11521delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11522
11523# Sed substitution to avoid accidental globbing in evaled expressions
11524no_glob_subst='s/\*/\\\*/g'
11525
11526# Constants:
11527rm="rm -f"
11528
11529# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011530default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011531can_build_shared=yes
11532
11533# All known linkers require a `.a' archive for static linking (except M$VC,
11534# which needs '.lib').
11535libext=a
11536ltmain="$ac_aux_dir/ltmain.sh"
11537ofile="$default_ofile"
11538with_gnu_ld="$lt_cv_prog_gnu_ld"
11539
11540if test -n "$ac_tool_prefix"; then
11541 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11542set dummy ${ac_tool_prefix}ar; ac_word=$2
11543echo "$as_me:$LINENO: checking for $ac_word" >&5
11544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11545if test "${ac_cv_prog_AR+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 if test -n "$AR"; then
11549 ac_cv_prog_AR="$AR" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_prog_AR="${ac_tool_prefix}ar"
11559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11561 fi
11562done
11563done
11564
11565fi
11566fi
11567AR=$ac_cv_prog_AR
11568if test -n "$AR"; then
11569 echo "$as_me:$LINENO: result: $AR" >&5
11570echo "${ECHO_T}$AR" >&6
11571else
11572 echo "$as_me:$LINENO: result: no" >&5
11573echo "${ECHO_T}no" >&6
11574fi
11575
11576fi
11577if test -z "$ac_cv_prog_AR"; then
11578 ac_ct_AR=$AR
11579 # Extract the first word of "ar", so it can be a program name with args.
11580set dummy ar; ac_word=$2
11581echo "$as_me:$LINENO: checking for $ac_word" >&5
11582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11583if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 if test -n "$ac_ct_AR"; then
11587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11588else
11589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11596 ac_cv_prog_ac_ct_AR="ar"
11597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11599 fi
11600done
11601done
11602
11603 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11604fi
11605fi
11606ac_ct_AR=$ac_cv_prog_ac_ct_AR
11607if test -n "$ac_ct_AR"; then
11608 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11609echo "${ECHO_T}$ac_ct_AR" >&6
11610else
11611 echo "$as_me:$LINENO: result: no" >&5
11612echo "${ECHO_T}no" >&6
11613fi
11614
11615 AR=$ac_ct_AR
11616else
11617 AR="$ac_cv_prog_AR"
11618fi
11619
John Criswell7a73b802003-06-30 21:59:07 +000011620if test -n "$ac_tool_prefix"; then
11621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11623echo "$as_me:$LINENO: checking for $ac_word" >&5
11624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11625if test "${ac_cv_prog_RANLIB+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627else
11628 if test -n "$RANLIB"; then
11629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642done
11643done
11644
11645fi
11646fi
11647RANLIB=$ac_cv_prog_RANLIB
11648if test -n "$RANLIB"; then
11649 echo "$as_me:$LINENO: result: $RANLIB" >&5
11650echo "${ECHO_T}$RANLIB" >&6
11651else
11652 echo "$as_me:$LINENO: result: no" >&5
11653echo "${ECHO_T}no" >&6
11654fi
11655
11656fi
11657if test -z "$ac_cv_prog_RANLIB"; then
11658 ac_ct_RANLIB=$RANLIB
11659 # Extract the first word of "ranlib", so it can be a program name with args.
11660set dummy ranlib; ac_word=$2
11661echo "$as_me:$LINENO: checking for $ac_word" >&5
11662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11663if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665else
11666 if test -n "$ac_ct_RANLIB"; then
11667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11668else
11669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670for as_dir in $PATH
11671do
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_prog_ac_ct_RANLIB="ranlib"
11677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11678 break 2
11679 fi
11680done
11681done
11682
11683 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11684fi
11685fi
11686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11687if test -n "$ac_ct_RANLIB"; then
11688 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11689echo "${ECHO_T}$ac_ct_RANLIB" >&6
11690else
11691 echo "$as_me:$LINENO: result: no" >&5
11692echo "${ECHO_T}no" >&6
11693fi
11694
11695 RANLIB=$ac_ct_RANLIB
11696else
11697 RANLIB="$ac_cv_prog_RANLIB"
11698fi
11699
11700if test -n "$ac_tool_prefix"; then
11701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11702set dummy ${ac_tool_prefix}strip; ac_word=$2
11703echo "$as_me:$LINENO: checking for $ac_word" >&5
11704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11705if test "${ac_cv_prog_STRIP+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707else
11708 if test -n "$STRIP"; then
11709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11710else
11711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712for as_dir in $PATH
11713do
11714 IFS=$as_save_IFS
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11720 break 2
11721 fi
11722done
11723done
11724
11725fi
11726fi
11727STRIP=$ac_cv_prog_STRIP
11728if test -n "$STRIP"; then
11729 echo "$as_me:$LINENO: result: $STRIP" >&5
11730echo "${ECHO_T}$STRIP" >&6
11731else
11732 echo "$as_me:$LINENO: result: no" >&5
11733echo "${ECHO_T}no" >&6
11734fi
11735
11736fi
11737if test -z "$ac_cv_prog_STRIP"; then
11738 ac_ct_STRIP=$STRIP
11739 # Extract the first word of "strip", so it can be a program name with args.
11740set dummy strip; ac_word=$2
11741echo "$as_me:$LINENO: checking for $ac_word" >&5
11742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11743if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 if test -n "$ac_ct_STRIP"; then
11747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11748else
11749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $PATH
11751do
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_ac_ct_STRIP="strip"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11759 fi
11760done
11761done
11762
11763 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11764fi
11765fi
11766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11767if test -n "$ac_ct_STRIP"; then
11768 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11769echo "${ECHO_T}$ac_ct_STRIP" >&6
11770else
11771 echo "$as_me:$LINENO: result: no" >&5
11772echo "${ECHO_T}no" >&6
11773fi
11774
11775 STRIP=$ac_ct_STRIP
11776else
11777 STRIP="$ac_cv_prog_STRIP"
11778fi
11779
11780
John Criswell7a73b802003-06-30 21:59:07 +000011781old_CC="$CC"
11782old_CFLAGS="$CFLAGS"
11783
11784# Set sane defaults for various variables
11785test -z "$AR" && AR=ar
11786test -z "$AR_FLAGS" && AR_FLAGS=cru
11787test -z "$AS" && AS=as
11788test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011789test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011790test -z "$DLLTOOL" && DLLTOOL=dlltool
11791test -z "$LD" && LD=ld
11792test -z "$LN_S" && LN_S="ln -s"
11793test -z "$MAGIC_CMD" && MAGIC_CMD=file
11794test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011795test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011796test -z "$OBJDUMP" && OBJDUMP=objdump
11797test -z "$RANLIB" && RANLIB=:
11798test -z "$STRIP" && STRIP=:
11799test -z "$ac_objext" && ac_objext=o
11800
John Criswell7a73b802003-06-30 21:59:07 +000011801# Determine commands to create old-style static archives.
11802old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11803old_postinstall_cmds='chmod 644 $oldlib'
11804old_postuninstall_cmds=
11805
11806if test -n "$RANLIB"; then
11807 case $host_os in
11808 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011809 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011810 ;;
11811 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011812 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011813 ;;
11814 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011816fi
11817
Reid Spencer2706f8c2004-09-19 23:53:36 +000011818cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11819
John Criswell47fdd832003-07-14 16:52:07 +000011820# Only perform the check for file, if the check method requires it
11821case $deplibs_check_method in
11822file_magic*)
11823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11824 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11825echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11826if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011828else
John Criswell47fdd832003-07-14 16:52:07 +000011829 case $MAGIC_CMD in
11830[\\/*] | ?:[\\/]*)
11831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11832 ;;
11833*)
11834 lt_save_MAGIC_CMD="$MAGIC_CMD"
11835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11837 for ac_dir in $ac_dummy; do
11838 IFS="$lt_save_ifs"
11839 test -z "$ac_dir" && ac_dir=.
11840 if test -f $ac_dir/${ac_tool_prefix}file; then
11841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11842 if test -n "$file_magic_test_file"; then
11843 case $deplibs_check_method in
11844 "file_magic "*)
11845 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11848 $EGREP "$file_magic_regex" > /dev/null; then
11849 :
11850 else
11851 cat <<EOF 1>&2
11852
11853*** Warning: the command libtool uses to detect shared libraries,
11854*** $file_magic_cmd, produces output that libtool cannot recognize.
11855*** The result is that libtool may fail to recognize shared libraries
11856*** as such. This will affect the creation of libtool libraries that
11857*** depend on shared libraries, but programs linked with such libtool
11858*** libraries will work regardless of this problem. Nevertheless, you
11859*** may want to report the problem to your system manager and/or to
11860*** bug-libtool@gnu.org
11861
11862EOF
11863 fi ;;
11864 esac
11865 fi
11866 break
11867 fi
11868 done
11869 IFS="$lt_save_ifs"
11870 MAGIC_CMD="$lt_save_MAGIC_CMD"
11871 ;;
11872esac
John Criswell7a73b802003-06-30 21:59:07 +000011873fi
John Criswell7a73b802003-06-30 21:59:07 +000011874
John Criswell47fdd832003-07-14 16:52:07 +000011875MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11876if test -n "$MAGIC_CMD"; then
11877 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11878echo "${ECHO_T}$MAGIC_CMD" >&6
11879else
11880 echo "$as_me:$LINENO: result: no" >&5
11881echo "${ECHO_T}no" >&6
11882fi
John Criswell7a73b802003-06-30 21:59:07 +000011883
John Criswell47fdd832003-07-14 16:52:07 +000011884if test -z "$lt_cv_path_MAGIC_CMD"; then
11885 if test -n "$ac_tool_prefix"; then
11886 echo "$as_me:$LINENO: checking for file" >&5
11887echo $ECHO_N "checking for file... $ECHO_C" >&6
11888if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891 case $MAGIC_CMD in
11892[\\/*] | ?:[\\/]*)
11893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11894 ;;
11895*)
11896 lt_save_MAGIC_CMD="$MAGIC_CMD"
11897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11899 for ac_dir in $ac_dummy; do
11900 IFS="$lt_save_ifs"
11901 test -z "$ac_dir" && ac_dir=.
11902 if test -f $ac_dir/file; then
11903 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11904 if test -n "$file_magic_test_file"; then
11905 case $deplibs_check_method in
11906 "file_magic "*)
11907 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11910 $EGREP "$file_magic_regex" > /dev/null; then
11911 :
11912 else
11913 cat <<EOF 1>&2
11914
11915*** Warning: the command libtool uses to detect shared libraries,
11916*** $file_magic_cmd, produces output that libtool cannot recognize.
11917*** The result is that libtool may fail to recognize shared libraries
11918*** as such. This will affect the creation of libtool libraries that
11919*** depend on shared libraries, but programs linked with such libtool
11920*** libraries will work regardless of this problem. Nevertheless, you
11921*** may want to report the problem to your system manager and/or to
11922*** bug-libtool@gnu.org
11923
11924EOF
11925 fi ;;
11926 esac
11927 fi
11928 break
11929 fi
11930 done
11931 IFS="$lt_save_ifs"
11932 MAGIC_CMD="$lt_save_MAGIC_CMD"
11933 ;;
11934esac
11935fi
11936
11937MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11938if test -n "$MAGIC_CMD"; then
11939 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11940echo "${ECHO_T}$MAGIC_CMD" >&6
11941else
11942 echo "$as_me:$LINENO: result: no" >&5
11943echo "${ECHO_T}no" >&6
11944fi
11945
11946 else
11947 MAGIC_CMD=:
11948 fi
11949fi
11950
11951 fi
11952 ;;
11953esac
11954
Reid Spencer17795972004-11-18 09:47:37 +000011955enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011956enable_win32_dll=no
11957
11958# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11959if test "${enable_libtool_lock+set}" = set; then
11960 enableval="$enable_libtool_lock"
11961
11962fi;
11963test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11964
John Criswell7a73b802003-06-30 21:59:07 +000011965
11966# Check whether --with-pic or --without-pic was given.
11967if test "${with_pic+set}" = set; then
11968 withval="$with_pic"
11969 pic_mode="$withval"
11970else
11971 pic_mode=default
11972fi;
11973test -z "$pic_mode" && pic_mode=default
11974
John Criswell47fdd832003-07-14 16:52:07 +000011975# Use C for the default configuration in the libtool script
11976tagname=
11977lt_save_CC="$CC"
11978ac_ext=c
11979ac_cpp='$CPP $CPPFLAGS'
11980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982ac_compiler_gnu=$ac_cv_c_compiler_gnu
11983
11984
11985# Source file extension for C test sources.
11986ac_ext=c
11987
11988# Object file extension for compiled C test sources.
11989objext=o
11990objext=$objext
11991
11992# Code to be used in simple compile tests
11993lt_simple_compile_test_code="int some_variable = 0;\n"
11994
11995# Code to be used in simple link tests
11996lt_simple_link_test_code='int main(){return(0);}\n'
11997
11998
11999# If no C compiler was specified, use CC.
12000LTCC=${LTCC-"$CC"}
12001
12002# Allow CC to be a program name with arguments.
12003compiler=$CC
12004
12005
12006#
12007# Check for any special shared library compilation flags.
12008#
12009lt_prog_cc_shlib=
12010if test "$GCC" = no; then
12011 case $host_os in
12012 sco3.2v5*)
12013 lt_prog_cc_shlib='-belf'
12014 ;;
12015 esac
12016fi
12017if test -n "$lt_prog_cc_shlib"; then
12018 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12019echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12020 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12021 else
12022 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12023echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12024 lt_cv_prog_cc_can_build_shared=no
12025 fi
12026fi
12027
12028
12029#
12030# Check to make sure the static flag actually works.
12031#
12032echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12033echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12034if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
John Criswell47fdd832003-07-14 16:52:07 +000012037 lt_prog_compiler_static_works=no
12038 save_LDFLAGS="$LDFLAGS"
12039 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12040 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12042 # The compiler can only warn and ignore the option if not recognized
12043 # So say no if there are warnings
12044 if test -s conftest.err; then
12045 # Append any errors to the config.log.
12046 cat conftest.err 1>&5
12047 else
12048 lt_prog_compiler_static_works=yes
12049 fi
12050 fi
12051 $rm conftest*
12052 LDFLAGS="$save_LDFLAGS"
12053
12054fi
12055echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12056echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12057
12058if test x"$lt_prog_compiler_static_works" = xyes; then
12059 :
12060else
12061 lt_prog_compiler_static=
12062fi
12063
12064
12065
John Criswell47fdd832003-07-14 16:52:07 +000012066
12067lt_prog_compiler_no_builtin_flag=
12068
12069if test "$GCC" = yes; then
12070 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12071
Reid Spencer2706f8c2004-09-19 23:53:36 +000012072
12073echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012074echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12075if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077else
12078 lt_cv_prog_compiler_rtti_exceptions=no
12079 ac_outfile=conftest.$ac_objext
12080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12081 lt_compiler_flag="-fno-rtti -fno-exceptions"
12082 # Insert the option either (1) after the last *FLAGS variable, or
12083 # (2) before a word containing "conftest.", or (3) at the end.
12084 # Note that $ac_compile itself does not contain backslashes and begins
12085 # with a dollar sign (not a hyphen), so the echo should work correctly.
12086 # The option is referenced via a variable to avoid confusing sed.
12087 lt_compile=`echo "$ac_compile" | $SED \
12088 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12090 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000012091 (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012092 (eval "$lt_compile" 2>conftest.err)
12093 ac_status=$?
12094 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000012095 echo "$as_me:12095: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012096 if (exit $ac_status) && test -s "$ac_outfile"; then
12097 # The compiler can only warn and ignore the option if not recognized
12098 # So say no if there are warnings
12099 if test ! -s conftest.err; then
12100 lt_cv_prog_compiler_rtti_exceptions=yes
12101 fi
12102 fi
12103 $rm conftest*
12104
12105fi
12106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12107echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12108
12109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12111else
12112 :
12113fi
12114
12115fi
12116
12117lt_prog_compiler_wl=
12118lt_prog_compiler_pic=
12119lt_prog_compiler_static=
12120
12121echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012123
12124 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012125 lt_prog_compiler_wl='-Wl,'
12126 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012127
12128 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012129 aix*)
12130 # All AIX code is PIC.
12131 if test "$host_cpu" = ia64; then
12132 # AIX 5 now supports IA64 processor
12133 lt_prog_compiler_static='-Bstatic'
12134 fi
John Criswell7a73b802003-06-30 21:59:07 +000012135 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012136
John Criswell7a73b802003-06-30 21:59:07 +000012137 amigaos*)
12138 # FIXME: we need at least 68020 code to build shared libraries, but
12139 # adding the `-m68020' flag to GCC prevents building anything better,
12140 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012142 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012143
12144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012145 # PIC is the default for these OSes.
12146 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012147
12148 mingw* | pw32* | os2*)
12149 # This hack is so that the source file can tell whether it is being
12150 # built for inclusion in a dll (and should export symbols for example).
12151 lt_prog_compiler_pic='-DDLL_EXPORT'
12152 ;;
12153
John Criswell7a73b802003-06-30 21:59:07 +000012154 darwin* | rhapsody*)
12155 # PIC is the default on this platform
12156 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012157 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012158 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012159
12160 msdosdjgpp*)
12161 # Just because we use GCC doesn't mean we suddenly get shared libraries
12162 # on systems that don't support them.
12163 lt_prog_compiler_can_build_shared=no
12164 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012165 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012166
John Criswell7a73b802003-06-30 21:59:07 +000012167 sysv4*MP*)
12168 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012169 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012170 fi
12171 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012172
12173 hpux*)
12174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12175 # not for PA HP-UX.
12176 case "$host_cpu" in
12177 hppa*64*|ia64*)
12178 # +Z the default
12179 ;;
12180 *)
12181 lt_prog_compiler_pic='-fPIC'
12182 ;;
12183 esac
12184 ;;
12185
John Criswell7a73b802003-06-30 21:59:07 +000012186 *)
John Criswell47fdd832003-07-14 16:52:07 +000012187 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012188 ;;
12189 esac
12190 else
John Criswell47fdd832003-07-14 16:52:07 +000012191 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012192 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012193 aix*)
12194 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012195 if test "$host_cpu" = ia64; then
12196 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012197 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012198 else
John Criswell47fdd832003-07-14 16:52:07 +000012199 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012200 fi
12201 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012202 darwin*)
12203 # PIC is the default on this platform
12204 # Common symbols not allowed in MH_DYLIB files
12205 case "$cc_basename" in
12206 xlc*)
12207 lt_prog_compiler_pic='-qnocommon'
12208 lt_prog_compiler_wl='-Wl,'
12209 ;;
12210 esac
12211 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012212
John Criswell47fdd832003-07-14 16:52:07 +000012213 mingw* | pw32* | os2*)
12214 # This hack is so that the source file can tell whether it is being
12215 # built for inclusion in a dll (and should export symbols for example).
12216 lt_prog_compiler_pic='-DDLL_EXPORT'
12217 ;;
12218
John Criswell7a73b802003-06-30 21:59:07 +000012219 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012220 lt_prog_compiler_wl='-Wl,'
12221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12222 # not for PA HP-UX.
12223 case "$host_cpu" in
12224 hppa*64*|ia64*)
12225 # +Z the default
12226 ;;
12227 *)
12228 lt_prog_compiler_pic='+Z'
12229 ;;
12230 esac
12231 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12232 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012233 ;;
12234
John Criswell47fdd832003-07-14 16:52:07 +000012235 irix5* | irix6* | nonstopux*)
12236 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012237 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012238 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012239 ;;
12240
12241 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012242 lt_prog_compiler_pic='-KPIC'
12243 lt_prog_compiler_static='-Bstatic'
12244 ;;
12245
12246 linux*)
12247 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012248 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012249 lt_prog_compiler_wl='-Wl,'
12250 lt_prog_compiler_pic='-KPIC'
12251 lt_prog_compiler_static='-static'
12252 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012253 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012254 lt_prog_compiler_wl='-Wl,'
12255 # All Alpha code is PIC.
12256 lt_prog_compiler_static='-non_shared'
12257 ;;
12258 esac
John Criswell7a73b802003-06-30 21:59:07 +000012259 ;;
12260
12261 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012262 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012263 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012264 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012265 ;;
12266
12267 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012268 lt_prog_compiler_pic='-Kpic'
12269 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012270 ;;
12271
12272 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012273 lt_prog_compiler_wl='-Wl,'
12274 lt_prog_compiler_pic='-KPIC'
12275 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012276 ;;
12277
12278 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012279 lt_prog_compiler_wl='-Qoption ld '
12280 lt_prog_compiler_pic='-PIC'
12281 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012282 ;;
12283
12284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012285 lt_prog_compiler_wl='-Wl,'
12286 lt_prog_compiler_pic='-KPIC'
12287 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012288 ;;
12289
12290 sysv4*MP*)
12291 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012292 lt_prog_compiler_pic='-Kconform_pic'
12293 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012294 fi
12295 ;;
12296
John Criswell47fdd832003-07-14 16:52:07 +000012297 uts4*)
12298 lt_prog_compiler_pic='-pic'
12299 lt_prog_compiler_static='-Bstatic'
12300 ;;
12301
John Criswell7a73b802003-06-30 21:59:07 +000012302 *)
John Criswell47fdd832003-07-14 16:52:07 +000012303 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012304 ;;
12305 esac
12306 fi
12307
John Criswell47fdd832003-07-14 16:52:07 +000012308echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12309echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012310
John Criswell47fdd832003-07-14 16:52:07 +000012311#
12312# Check to make sure the PIC flag actually works.
12313#
12314if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012315
12316echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012317echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12318if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012319 echo $ECHO_N "(cached) $ECHO_C" >&6
12320else
John Criswell47fdd832003-07-14 16:52:07 +000012321 lt_prog_compiler_pic_works=no
12322 ac_outfile=conftest.$ac_objext
12323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12324 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12325 # Insert the option either (1) after the last *FLAGS variable, or
12326 # (2) before a word containing "conftest.", or (3) at the end.
12327 # Note that $ac_compile itself does not contain backslashes and begins
12328 # with a dollar sign (not a hyphen), so the echo should work correctly.
12329 # The option is referenced via a variable to avoid confusing sed.
12330 lt_compile=`echo "$ac_compile" | $SED \
12331 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000012334 (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012335 (eval "$lt_compile" 2>conftest.err)
12336 ac_status=$?
12337 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000012338 echo "$as_me:12338: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012339 if (exit $ac_status) && test -s "$ac_outfile"; then
12340 # The compiler can only warn and ignore the option if not recognized
12341 # So say no if there are warnings
12342 if test ! -s conftest.err; then
12343 lt_prog_compiler_pic_works=yes
12344 fi
12345 fi
12346 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012347
John Criswell47fdd832003-07-14 16:52:07 +000012348fi
12349echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12350echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012351
John Criswell47fdd832003-07-14 16:52:07 +000012352if test x"$lt_prog_compiler_pic_works" = xyes; then
12353 case $lt_prog_compiler_pic in
12354 "" | " "*) ;;
12355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12356 esac
John Criswell7a73b802003-06-30 21:59:07 +000012357else
John Criswell47fdd832003-07-14 16:52:07 +000012358 lt_prog_compiler_pic=
12359 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012360fi
12361
John Criswell7a73b802003-06-30 21:59:07 +000012362fi
John Criswell47fdd832003-07-14 16:52:07 +000012363case "$host_os" in
12364 # For platforms which do not support PIC, -DPIC is meaningless:
12365 *djgpp*)
12366 lt_prog_compiler_pic=
12367 ;;
12368 *)
12369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12370 ;;
12371esac
John Criswell7a73b802003-06-30 21:59:07 +000012372
John Criswell7a73b802003-06-30 21:59:07 +000012373echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12374echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012375if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
John Criswell47fdd832003-07-14 16:52:07 +000012378 lt_cv_prog_compiler_c_o=no
12379 $rm -r conftest 2>/dev/null
12380 mkdir conftest
12381 cd conftest
12382 mkdir out
12383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012384
John Criswell47fdd832003-07-14 16:52:07 +000012385 lt_compiler_flag="-o out/conftest2.$ac_objext"
12386 # Insert the option either (1) after the last *FLAGS variable, or
12387 # (2) before a word containing "conftest.", or (3) at the end.
12388 # Note that $ac_compile itself does not contain backslashes and begins
12389 # with a dollar sign (not a hyphen), so the echo should work correctly.
12390 lt_compile=`echo "$ac_compile" | $SED \
12391 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12393 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000012394 (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012395 (eval "$lt_compile" 2>out/conftest.err)
12396 ac_status=$?
12397 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000012398 echo "$as_me:12398: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12400 then
12401 # The compiler can only warn and ignore the option if not recognized
12402 # So say no if there are warnings
12403 if test ! -s out/conftest.err; then
12404 lt_cv_prog_compiler_c_o=yes
12405 fi
12406 fi
12407 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012408 $rm conftest*
12409 # SGI C++ compiler will create directory out/ii_files/ for
12410 # template instantiation
12411 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12412 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012413 cd ..
12414 rmdir conftest
12415 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012416
12417fi
John Criswell47fdd832003-07-14 16:52:07 +000012418echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12419echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012420
John Criswell7a73b802003-06-30 21:59:07 +000012421
John Criswell7a73b802003-06-30 21:59:07 +000012422hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012423if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012424 # do not overwrite the value of need_locks provided by the user
12425 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12426echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12427 hard_links=yes
12428 $rm conftest*
12429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12430 touch conftest.a
12431 ln conftest.a conftest.b 2>&5 || hard_links=no
12432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12433 echo "$as_me:$LINENO: result: $hard_links" >&5
12434echo "${ECHO_T}$hard_links" >&6
12435 if test "$hard_links" = no; then
12436 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12437echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12438 need_locks=warn
12439 fi
12440else
12441 need_locks=no
12442fi
John Criswell7a73b802003-06-30 21:59:07 +000012443
John Criswell47fdd832003-07-14 16:52:07 +000012444echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12445echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12446
12447 runpath_var=
12448 allow_undefined_flag=
12449 enable_shared_with_static_runtimes=no
12450 archive_cmds=
12451 archive_expsym_cmds=
12452 old_archive_From_new_cmds=
12453 old_archive_from_expsyms_cmds=
12454 export_dynamic_flag_spec=
12455 whole_archive_flag_spec=
12456 thread_safe_flag_spec=
12457 hardcode_libdir_flag_spec=
12458 hardcode_libdir_flag_spec_ld=
12459 hardcode_libdir_separator=
12460 hardcode_direct=no
12461 hardcode_minus_L=no
12462 hardcode_shlibpath_var=unsupported
12463 link_all_deplibs=unknown
12464 hardcode_automatic=no
12465 module_cmds=
12466 module_expsym_cmds=
12467 always_export_symbols=no
12468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12469 # include_expsyms should be a list of space-separated symbols to be *always*
12470 # included in the symbol list
12471 include_expsyms=
12472 # exclude_expsyms can be an extended regexp of symbols to exclude
12473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12475 # as well as any symbol that contains `d'.
12476 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12478 # platforms (ab)use it in PIC code, but their linkers get confused if
12479 # the symbol is explicitly referenced. Since portable code cannot
12480 # rely on this symbol name, it's probably fine to never include it in
12481 # preloaded symbol tables.
12482 extract_expsyms_cmds=
12483
12484 case $host_os in
12485 cygwin* | mingw* | pw32*)
12486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12487 # When not using gcc, we currently assume that we are using
12488 # Microsoft Visual C++.
12489 if test "$GCC" != yes; then
12490 with_gnu_ld=no
12491 fi
12492 ;;
12493 openbsd*)
12494 with_gnu_ld=no
12495 ;;
12496 esac
12497
12498 ld_shlibs=yes
12499 if test "$with_gnu_ld" = yes; then
12500 # If archive_cmds runs LD, not CC, wlarc should be empty
12501 wlarc='${wl}'
12502
12503 # See if GNU ld supports shared libraries.
12504 case $host_os in
12505 aix3* | aix4* | aix5*)
12506 # On AIX/PPC, the GNU linker is very broken
12507 if test "$host_cpu" != ia64; then
12508 ld_shlibs=no
12509 cat <<EOF 1>&2
12510
12511*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12512*** to be unable to reliably create shared libraries on AIX.
12513*** Therefore, libtool is disabling shared libraries support. If you
12514*** really care for shared libraries, you may want to modify your PATH
12515*** so that a non-GNU linker is found, and then restart.
12516
12517EOF
12518 fi
12519 ;;
12520
12521 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012522 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 +000012523 hardcode_libdir_flag_spec='-L$libdir'
12524 hardcode_minus_L=yes
12525
12526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12527 # that the semantics of dynamic libraries on AmigaOS, at least up
12528 # to version 4, is to share data among multiple programs linked
12529 # with the same dynamic library. Since this doesn't match the
12530 # behavior of shared libraries on other platforms, we can't use
12531 # them.
12532 ld_shlibs=no
12533 ;;
12534
12535 beos*)
12536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12537 allow_undefined_flag=unsupported
12538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12539 # support --undefined. This deserves some investigation. FIXME
12540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12541 else
12542 ld_shlibs=no
12543 fi
12544 ;;
12545
12546 cygwin* | mingw* | pw32*)
12547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12548 # as there is no search path for DLLs.
12549 hardcode_libdir_flag_spec='-L$libdir'
12550 allow_undefined_flag=unsupported
12551 always_export_symbols=no
12552 enable_shared_with_static_runtimes=yes
12553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12554
12555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12557 # If the export-symbols file already is a .def file (1st line
12558 # is EXPORTS), use it as is; otherwise, prepend...
12559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12560 cp $export_symbols $output_objdir/$soname.def;
12561 else
12562 echo EXPORTS > $output_objdir/$soname.def;
12563 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012564 fi~
12565 $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 +000012566 else
12567 ld_shlibs=no
12568 fi
12569 ;;
12570
12571 netbsd*)
12572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12574 wlarc=
12575 else
12576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12578 fi
12579 ;;
12580
12581 solaris* | sysv5*)
12582 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12583 ld_shlibs=no
12584 cat <<EOF 1>&2
12585
12586*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12587*** create shared libraries on Solaris systems. Therefore, libtool
12588*** is disabling shared libraries support. We urge you to upgrade GNU
12589*** binutils to release 2.9.1 or newer. Another option is to modify
12590*** your PATH or compiler configuration so that the native linker is
12591*** used, and then restart.
12592
12593EOF
12594 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12597 else
12598 ld_shlibs=no
12599 fi
12600 ;;
12601
12602 sunos4*)
12603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12604 wlarc=
12605 hardcode_direct=yes
12606 hardcode_shlibpath_var=no
12607 ;;
12608
Reid Spencer2706f8c2004-09-19 23:53:36 +000012609 linux*)
12610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12611 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 archive_cmds="$tmp_archive_cmds"
12613 supports_anon_versioning=no
12614 case `$LD -v 2>/dev/null` in
12615 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12616 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12617 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12618 *\ 2.11.*) ;; # other 2.11 versions
12619 *) supports_anon_versioning=yes ;;
12620 esac
12621 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012622 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12623cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12624$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012625 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12626 else
12627 archive_expsym_cmds="$tmp_archive_cmds"
12628 fi
12629 else
12630 ld_shlibs=no
12631 fi
12632 ;;
12633
John Criswell47fdd832003-07-14 16:52:07 +000012634 *)
12635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12638 else
12639 ld_shlibs=no
12640 fi
12641 ;;
12642 esac
12643
12644 if test "$ld_shlibs" = yes; then
12645 runpath_var=LD_RUN_PATH
12646 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12647 export_dynamic_flag_spec='${wl}--export-dynamic'
12648 # ancient GNU ld didn't support --whole-archive et. al.
12649 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12650 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12651 else
12652 whole_archive_flag_spec=
12653 fi
12654 fi
12655 else
12656 # PORTME fill in a description of your system's linker (not GNU ld)
12657 case $host_os in
12658 aix3*)
12659 allow_undefined_flag=unsupported
12660 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012661 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 +000012662 # Note: this linker hardcodes the directories in LIBPATH if there
12663 # are no directories specified by -L.
12664 hardcode_minus_L=yes
12665 if test "$GCC" = yes && test -z "$link_static_flag"; then
12666 # Neither direct hardcoding nor static linking is supported with a
12667 # broken collect2.
12668 hardcode_direct=unsupported
12669 fi
12670 ;;
12671
12672 aix4* | aix5*)
12673 if test "$host_cpu" = ia64; then
12674 # On IA64, the linker does run time linking by default, so we don't
12675 # have to do anything special.
12676 aix_use_runtimelinking=no
12677 exp_sym_flag='-Bexport'
12678 no_entry_flag=""
12679 else
12680 # If we're using GNU nm, then we don't want the "-C" option.
12681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12682 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12683 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'
12684 else
12685 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'
12686 fi
12687 aix_use_runtimelinking=no
12688
12689 # Test if we are trying to use run time linking or normal
12690 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12691 # need to do runtime linking.
12692 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12693 for ld_flag in $LDFLAGS; do
12694 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12695 aix_use_runtimelinking=yes
12696 break
12697 fi
12698 done
12699 esac
12700
12701 exp_sym_flag='-bexport'
12702 no_entry_flag='-bnoentry'
12703 fi
12704
12705 # When large executables or shared objects are built, AIX ld can
12706 # have problems creating the table of contents. If linking a library
12707 # or program results in "error TOC overflow" add -mminimal-toc to
12708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12710
12711 archive_cmds=''
12712 hardcode_direct=yes
12713 hardcode_libdir_separator=':'
12714 link_all_deplibs=yes
12715
12716 if test "$GCC" = yes; then
12717 case $host_os in aix4.012|aix4.012.*)
12718 # We only want to do this on AIX 4.2 and lower, the check
12719 # below for broken collect2 doesn't work under 4.3+
12720 collect2name=`${CC} -print-prog-name=collect2`
12721 if test -f "$collect2name" && \
12722 strings "$collect2name" | grep resolve_lib_name >/dev/null
12723 then
12724 # We have reworked collect2
12725 hardcode_direct=yes
12726 else
12727 # We have old collect2
12728 hardcode_direct=unsupported
12729 # It fails to find uninstalled libraries when the uninstalled
12730 # path is not listed in the libpath. Setting hardcode_minus_L
12731 # to unsupported forces relinking
12732 hardcode_minus_L=yes
12733 hardcode_libdir_flag_spec='-L$libdir'
12734 hardcode_libdir_separator=
12735 fi
12736 esac
12737 shared_flag='-shared'
12738 else
12739 # not using gcc
12740 if test "$host_cpu" = ia64; then
12741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12742 # chokes on -Wl,-G. The following line is correct:
12743 shared_flag='-G'
12744 else
12745 if test "$aix_use_runtimelinking" = yes; then
12746 shared_flag='${wl}-G'
12747 else
12748 shared_flag='${wl}-bM:SRE'
12749 fi
12750 fi
12751 fi
12752
12753 # It seems that -bexpall does not export symbols beginning with
12754 # underscore (_), so it is better to generate a list of symbols to export.
12755 always_export_symbols=yes
12756 if test "$aix_use_runtimelinking" = yes; then
12757 # Warning - without using the other runtime loading flags (-brtl),
12758 # -berok will link without error, but may produce a broken library.
12759 allow_undefined_flag='-berok'
12760 # Determine the default libpath from the value encoded in an empty executable.
12761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012762/* confdefs.h. */
12763_ACEOF
12764cat confdefs.h >>conftest.$ac_ext
12765cat >>conftest.$ac_ext <<_ACEOF
12766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012767
John Criswell7a73b802003-06-30 21:59:07 +000012768int
12769main ()
12770{
John Criswell47fdd832003-07-14 16:52:07 +000012771
John Criswell7a73b802003-06-30 21:59:07 +000012772 ;
12773 return 0;
12774}
12775_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012776rm -f conftest.$ac_objext conftest$ac_exeext
12777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012778 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012785 { ac_try='test -z "$ac_c_werror_flag"
12786 || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012798
John Criswell47fdd832003-07-14 16:52:07 +000012799aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12800}'`
12801# Check for a 64-bit object if we didn't find anything.
12802if 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; }
12803}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012804else
12805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012806sed 's/^/| /' conftest.$ac_ext >&5
12807
John Criswell7a73b802003-06-30 21:59:07 +000012808fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012809rm -f conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012812
John Criswell47fdd832003-07-14 16:52:07 +000012813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12814 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"
12815 else
12816 if test "$host_cpu" = ia64; then
12817 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12818 allow_undefined_flag="-z nodefs"
12819 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"
12820 else
12821 # Determine the default libpath from the value encoded in an empty executable.
12822 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012828
John Criswell47fdd832003-07-14 16:52:07 +000012829int
12830main ()
12831{
John Criswell7a73b802003-06-30 21:59:07 +000012832
John Criswell47fdd832003-07-14 16:52:07 +000012833 ;
12834 return 0;
12835}
12836_ACEOF
12837rm -f conftest.$ac_objext conftest$ac_exeext
12838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012839 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012840 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012846 { ac_try='test -z "$ac_c_werror_flag"
12847 || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012859
John Criswell47fdd832003-07-14 16:52:07 +000012860aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12861}'`
12862# Check for a 64-bit object if we didn't find anything.
12863if 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; }
12864}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012865else
John Criswell47fdd832003-07-14 16:52:07 +000012866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012867sed 's/^/| /' conftest.$ac_ext >&5
12868
John Criswell47fdd832003-07-14 16:52:07 +000012869fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012870rm -f conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012873
John Criswell47fdd832003-07-14 16:52:07 +000012874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12875 # Warning - without using the other run time loading flags,
12876 # -berok will link without error, but may produce a broken library.
12877 no_undefined_flag=' ${wl}-bernotok'
12878 allow_undefined_flag=' ${wl}-berok'
12879 # -bexpall does not export symbols beginning with underscore (_)
12880 always_export_symbols=yes
12881 # Exported symbols can be pulled into shared objects from archives
12882 whole_archive_flag_spec=' '
12883 archive_cmds_need_lc=yes
12884 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012885 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 +000012886 fi
12887 fi
John Criswell7a73b802003-06-30 21:59:07 +000012888 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012889
12890 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012891 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 +000012892 hardcode_libdir_flag_spec='-L$libdir'
12893 hardcode_minus_L=yes
12894 # see comment about different semantics on the GNU ld section
12895 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012896 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012897
Reid Spencer2706f8c2004-09-19 23:53:36 +000012898 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012899 export_dynamic_flag_spec=-rdynamic
12900 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012901
John Criswell47fdd832003-07-14 16:52:07 +000012902 cygwin* | mingw* | pw32*)
12903 # When not using gcc, we currently assume that we are using
12904 # Microsoft Visual C++.
12905 # hardcode_libdir_flag_spec is actually meaningless, as there is
12906 # no search path for DLLs.
12907 hardcode_libdir_flag_spec=' '
12908 allow_undefined_flag=unsupported
12909 # Tell ltmain to make .lib files, not .a files.
12910 libext=lib
12911 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012912 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012913 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012914 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012915 # The linker will automatically build a .lib file if we build a DLL.
12916 old_archive_From_new_cmds='true'
12917 # FIXME: Should let the user specify the lib program.
12918 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12919 fix_srcfile_path='`cygpath -w "$srcfile"`'
12920 enable_shared_with_static_runtimes=yes
12921 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012922
John Criswell47fdd832003-07-14 16:52:07 +000012923 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012924 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012925 rhapsody* | darwin1.[012])
12926 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12927 ;;
12928 *) # Darwin 1.3 on
12929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12930 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12931 else
12932 case ${MACOSX_DEPLOYMENT_TARGET} in
12933 10.[012])
12934 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12935 ;;
12936 10.*)
12937 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12938 ;;
12939 esac
12940 fi
12941 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012942 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012943 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012944 hardcode_direct=no
12945 hardcode_automatic=yes
12946 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012947 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012948 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012949 if test "$GCC" = yes ; then
12950 output_verbose_link_cmd='echo'
12951 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12952 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12953 # 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 +000012954 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}'
12955 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 +000012956 else
12957 case "$cc_basename" in
12958 xlc*)
12959 output_verbose_link_cmd='echo'
12960 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12961 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12962 # 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 +000012963 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}'
12964 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 +000012965 ;;
12966 *)
12967 ld_shlibs=no
12968 ;;
12969 esac
John Criswell7a73b802003-06-30 21:59:07 +000012970 fi
John Criswell47fdd832003-07-14 16:52:07 +000012971 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012972
John Criswell47fdd832003-07-14 16:52:07 +000012973 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012975 hardcode_libdir_flag_spec='-L$libdir'
12976 hardcode_shlibpath_var=no
12977 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012978
John Criswell47fdd832003-07-14 16:52:07 +000012979 freebsd1*)
12980 ld_shlibs=no
12981 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012982
John Criswell47fdd832003-07-14 16:52:07 +000012983 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12984 # support. Future versions do this automatically, but an explicit c++rt0.o
12985 # does not break anything, and helps significantly (at the cost of a little
12986 # extra space).
12987 freebsd2.2*)
12988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12989 hardcode_libdir_flag_spec='-R$libdir'
12990 hardcode_direct=yes
12991 hardcode_shlibpath_var=no
12992 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012993
John Criswell47fdd832003-07-14 16:52:07 +000012994 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12995 freebsd2*)
12996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12997 hardcode_direct=yes
12998 hardcode_minus_L=yes
12999 hardcode_shlibpath_var=no
13000 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013001
John Criswell47fdd832003-07-14 16:52:07 +000013002 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013003 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013004 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13005 hardcode_libdir_flag_spec='-R$libdir'
13006 hardcode_direct=yes
13007 hardcode_shlibpath_var=no
13008 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013009
John Criswell47fdd832003-07-14 16:52:07 +000013010 hpux9*)
13011 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013012 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 +000013013 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013014 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 +000013015 fi
13016 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13017 hardcode_libdir_separator=:
13018 hardcode_direct=yes
13019
13020 # hardcode_minus_L: Not really in the search PATH,
13021 # but as the default location of the library.
13022 hardcode_minus_L=yes
13023 export_dynamic_flag_spec='${wl}-E'
13024 ;;
13025
13026 hpux10* | hpux11*)
13027 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13028 case "$host_cpu" in
13029 hppa*64*|ia64*)
13030 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13031 ;;
13032 *)
13033 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13034 ;;
13035 esac
13036 else
13037 case "$host_cpu" in
13038 hppa*64*|ia64*)
13039 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13040 ;;
13041 *)
13042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13043 ;;
13044 esac
13045 fi
13046 if test "$with_gnu_ld" = no; then
13047 case "$host_cpu" in
13048 hppa*64*)
13049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13050 hardcode_libdir_flag_spec_ld='+b $libdir'
13051 hardcode_libdir_separator=:
13052 hardcode_direct=no
13053 hardcode_shlibpath_var=no
13054 ;;
13055 ia64*)
13056 hardcode_libdir_flag_spec='-L$libdir'
13057 hardcode_direct=no
13058 hardcode_shlibpath_var=no
13059
13060 # hardcode_minus_L: Not really in the search PATH,
13061 # but as the default location of the library.
13062 hardcode_minus_L=yes
13063 ;;
13064 *)
13065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13066 hardcode_libdir_separator=:
13067 hardcode_direct=yes
13068 export_dynamic_flag_spec='${wl}-E'
13069
13070 # hardcode_minus_L: Not really in the search PATH,
13071 # but as the default location of the library.
13072 hardcode_minus_L=yes
13073 ;;
13074 esac
13075 fi
13076 ;;
13077
13078 irix5* | irix6* | nonstopux*)
13079 if test "$GCC" = yes; then
13080 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'
13081 else
13082 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'
13083 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13084 fi
13085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13086 hardcode_libdir_separator=:
13087 link_all_deplibs=yes
13088 ;;
13089
13090 netbsd*)
13091 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13093 else
13094 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13095 fi
13096 hardcode_libdir_flag_spec='-R$libdir'
13097 hardcode_direct=yes
13098 hardcode_shlibpath_var=no
13099 ;;
13100
13101 newsos6)
13102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13103 hardcode_direct=yes
13104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13105 hardcode_libdir_separator=:
13106 hardcode_shlibpath_var=no
13107 ;;
13108
13109 openbsd*)
13110 hardcode_direct=yes
13111 hardcode_shlibpath_var=no
13112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013114 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 +000013115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13116 export_dynamic_flag_spec='${wl}-E'
13117 else
13118 case $host_os in
13119 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13121 hardcode_libdir_flag_spec='-R$libdir'
13122 ;;
13123 *)
13124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13126 ;;
13127 esac
13128 fi
13129 ;;
13130
13131 os2*)
13132 hardcode_libdir_flag_spec='-L$libdir'
13133 hardcode_minus_L=yes
13134 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013135 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 +000013136 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13137 ;;
13138
13139 osf3*)
13140 if test "$GCC" = yes; then
13141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13142 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'
13143 else
13144 allow_undefined_flag=' -expect_unresolved \*'
13145 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'
13146 fi
13147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13148 hardcode_libdir_separator=:
13149 ;;
13150
13151 osf4* | osf5*) # as osf3* with the addition of -msym flag
13152 if test "$GCC" = yes; then
13153 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13154 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'
13155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13156 else
13157 allow_undefined_flag=' -expect_unresolved \*'
13158 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 +000013159 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13160 $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'
13161
John Criswell47fdd832003-07-14 16:52:07 +000013162 # Both c and cxx compiler support -rpath directly
13163 hardcode_libdir_flag_spec='-rpath $libdir'
13164 fi
13165 hardcode_libdir_separator=:
13166 ;;
13167
13168 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013171 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013172 runpath_var=LD_RUN_PATH
13173 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013174 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013175
John Criswell47fdd832003-07-14 16:52:07 +000013176 solaris*)
13177 no_undefined_flag=' -z text'
13178 if test "$GCC" = yes; then
13179 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013180 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13181 $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 +000013182 else
13183 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013184 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13185 $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 +000013186 fi
13187 hardcode_libdir_flag_spec='-R$libdir'
13188 hardcode_shlibpath_var=no
13189 case $host_os in
13190 solaris2.[0-5] | solaris2.[0-5].*) ;;
13191 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13193 esac
13194 link_all_deplibs=yes
13195 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013196
John Criswell47fdd832003-07-14 16:52:07 +000013197 sunos4*)
13198 if test "x$host_vendor" = xsequent; then
13199 # Use $CC to link under sequent, because it throws in some extra .o
13200 # files that make .init and .fini sections work.
13201 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13202 else
13203 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13204 fi
13205 hardcode_libdir_flag_spec='-L$libdir'
13206 hardcode_direct=yes
13207 hardcode_minus_L=yes
13208 hardcode_shlibpath_var=no
13209 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013210
John Criswell47fdd832003-07-14 16:52:07 +000013211 sysv4)
13212 case $host_vendor in
13213 sni)
13214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13215 hardcode_direct=yes # is this really true???
13216 ;;
13217 siemens)
13218 ## LD is ld it makes a PLAMLIB
13219 ## CC just makes a GrossModule.
13220 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13221 reload_cmds='$CC -r -o $output$reload_objs'
13222 hardcode_direct=no
13223 ;;
13224 motorola)
13225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13226 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13227 ;;
13228 esac
13229 runpath_var='LD_RUN_PATH'
13230 hardcode_shlibpath_var=no
13231 ;;
13232
13233 sysv4.3*)
13234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13235 hardcode_shlibpath_var=no
13236 export_dynamic_flag_spec='-Bexport'
13237 ;;
13238
13239 sysv4*MP*)
13240 if test -d /usr/nec; then
13241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242 hardcode_shlibpath_var=no
13243 runpath_var=LD_RUN_PATH
13244 hardcode_runpath_var=yes
13245 ld_shlibs=yes
13246 fi
13247 ;;
13248
13249 sysv4.2uw2*)
13250 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_direct=yes
13252 hardcode_minus_L=no
13253 hardcode_shlibpath_var=no
13254 hardcode_runpath_var=yes
13255 runpath_var=LD_RUN_PATH
13256 ;;
13257
13258 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13259 no_undefined_flag='${wl}-z ${wl}text'
13260 if test "$GCC" = yes; then
13261 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 else
13263 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13264 fi
13265 runpath_var='LD_RUN_PATH'
13266 hardcode_shlibpath_var=no
13267 ;;
13268
13269 sysv5*)
13270 no_undefined_flag=' -z text'
13271 # $CC -shared without GNU ld will not create a library from C++
13272 # object files and a static libstdc++, better avoid it by now
13273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013274 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13275 $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 +000013276 hardcode_libdir_flag_spec=
13277 hardcode_shlibpath_var=no
13278 runpath_var='LD_RUN_PATH'
13279 ;;
13280
13281 uts4*)
13282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283 hardcode_libdir_flag_spec='-L$libdir'
13284 hardcode_shlibpath_var=no
13285 ;;
13286
13287 *)
13288 ld_shlibs=no
13289 ;;
13290 esac
13291 fi
13292
John Criswell7a73b802003-06-30 21:59:07 +000013293echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13294echo "${ECHO_T}$ld_shlibs" >&6
13295test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013296
John Criswell47fdd832003-07-14 16:52:07 +000013297variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13298if test "$GCC" = yes; then
13299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13300fi
13301
13302#
13303# Do we need to explicitly link libc?
13304#
13305case "x$archive_cmds_need_lc" in
13306x|xyes)
13307 # Assume -lc should be added
13308 archive_cmds_need_lc=yes
13309
13310 if test "$enable_shared" = yes && test "$GCC" = yes; then
13311 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013312 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013313 # FIXME: we may have to deal with multi-command sequences.
13314 ;;
13315 '$CC '*)
13316 # Test whether the compiler implicitly links with -lc since on some
13317 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13318 # to ld, don't add -lc before -lgcc.
13319 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13320echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13321 $rm conftest*
13322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13323
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } 2>conftest.err; then
13329 soname=conftest
13330 lib=conftest
13331 libobjs=conftest.$ac_objext
13332 deplibs=
13333 wl=$lt_prog_compiler_wl
13334 compiler_flags=-v
13335 linker_flags=-v
13336 verstring=
13337 output_objdir=.
13338 libname=conftest
13339 lt_save_allow_undefined_flag=$allow_undefined_flag
13340 allow_undefined_flag=
13341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13342 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }
13346 then
13347 archive_cmds_need_lc=no
13348 else
13349 archive_cmds_need_lc=yes
13350 fi
13351 allow_undefined_flag=$lt_save_allow_undefined_flag
13352 else
13353 cat conftest.err 1>&5
13354 fi
13355 $rm conftest*
13356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13357echo "${ECHO_T}$archive_cmds_need_lc" >&6
13358 ;;
13359 esac
13360 fi
13361 ;;
13362esac
13363
John Criswell7a73b802003-06-30 21:59:07 +000013364echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13365echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13366library_names_spec=
13367libname_spec='lib$name'
13368soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013369shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013370postinstall_cmds=
13371postuninstall_cmds=
13372finish_cmds=
13373finish_eval=
13374shlibpath_var=
13375shlibpath_overrides_runpath=unknown
13376version_type=none
13377dynamic_linker="$host_os ld.so"
13378sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013379if test "$GCC" = yes; then
13380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13382 # if the path contains ";" then we assume it to be the separator
13383 # otherwise default to the standard path separator (i.e. ":") - it is
13384 # assumed that no part of a normal pathname contains ";" but that should
13385 # okay in the real world where ";" in dirpaths is itself problematic.
13386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13387 else
13388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13389 fi
13390else
13391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13392fi
13393need_lib_prefix=unknown
13394hardcode_into_libs=no
13395
13396# when you set need_version to no, make sure it does not cause -set_version
13397# flags to be left without arguments
13398need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013399
13400case $host_os in
13401aix3*)
13402 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013404 shlibpath_var=LIBPATH
13405
John Criswell47fdd832003-07-14 16:52:07 +000013406 # AIX 3 has no versioning support, so we append a major version to the name.
13407 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013408 ;;
13409
13410aix4* | aix5*)
13411 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013412 need_lib_prefix=no
13413 need_version=no
13414 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013415 if test "$host_cpu" = ia64; then
13416 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013418 shlibpath_var=LD_LIBRARY_PATH
13419 else
13420 # With GCC up to 2.95.x, collect2 would create an import file
13421 # for dependence libraries. The import file would start with
13422 # the line `#! .'. This would cause the generated library to
13423 # depend on `.', always an invalid library. This was fixed in
13424 # development snapshots of GCC prior to 3.0.
13425 case $host_os in
13426 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13428 echo ' yes '
13429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13430 :
13431 else
13432 can_build_shared=no
13433 fi
13434 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013435 esac
John Criswell47fdd832003-07-14 16:52:07 +000013436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13437 # soname into executable. Probably we can add versioning support to
13438 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013439 if test "$aix_use_runtimelinking" = yes; then
13440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13441 # instead of lib<name>.a to let people know that these are not
13442 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013444 else
13445 # We preserve .a as extension for shared libraries through AIX4.2
13446 # and later when we are not doing run time linking.
13447 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013448 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013449 fi
13450 shlibpath_var=LIBPATH
13451 fi
13452 ;;
13453
13454amigaos*)
13455 library_names_spec='$libname.ixlibrary $libname.a'
13456 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013457 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 +000013458 ;;
13459
13460beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013461 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013462 dynamic_linker="$host_os ld.so"
13463 shlibpath_var=LIBRARY_PATH
13464 ;;
13465
Reid Spencer2706f8c2004-09-19 23:53:36 +000013466bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013467 version_type=linux
13468 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013475 # the default ld.so.conf also contains /usr/contrib/lib and
13476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13477 # libtool to hard-code these into programs
13478 ;;
13479
13480cygwin* | mingw* | pw32*)
13481 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013482 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013483 need_version=no
13484 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013485
John Criswell7a73b802003-06-30 21:59:07 +000013486 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013487 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013488 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013490 postinstall_cmds='base_file=`basename \${file}`~
13491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13492 dldir=$destdir/`dirname \$dlpath`~
13493 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013494 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13496 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013497 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013498 shlibpath_overrides_runpath=yes
13499
13500 case $host_os in
13501 cygwin*)
13502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13503 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 +000013504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013505 ;;
13506 mingw*)
13507 # MinGW DLLs use traditional 'lib' prefix
13508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13511 # It is most probably a Windows format PATH printed by
13512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13513 # path with ; separators, and with drive letters. We can handle the
13514 # drive letters (cygwin fileutils understands them), so leave them,
13515 # especially as we might pass files found there to a mingw objdump,
13516 # which wouldn't understand a cygwinified path. Ahh.
13517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13518 else
13519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13520 fi
13521 ;;
13522 pw32*)
13523 # pw32 DLLs use 'pw' prefix rather than 'lib'
13524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13525 ;;
13526 esac
John Criswell7a73b802003-06-30 21:59:07 +000013527 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013528
John Criswell7a73b802003-06-30 21:59:07 +000013529 *)
John Criswell47fdd832003-07-14 16:52:07 +000013530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013531 ;;
13532 esac
13533 dynamic_linker='Win32 ld.exe'
13534 # FIXME: first we should search . and the directory the executable is in
13535 shlibpath_var=PATH
13536 ;;
13537
13538darwin* | rhapsody*)
13539 dynamic_linker="$host_os dyld"
13540 version_type=darwin
13541 need_lib_prefix=no
13542 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013544 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013545 shlibpath_overrides_runpath=yes
13546 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013547 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013548 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013549 if test "$GCC" = yes; then
13550 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"`
13551 else
13552 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013553 fi
13554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13555 ;;
13556
13557dgux*)
13558 version_type=linux
13559 need_lib_prefix=no
13560 need_version=no
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13562 soname_spec='${libname}${release}${shared_ext}$major'
13563 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013564 ;;
13565
13566freebsd1*)
13567 dynamic_linker=no
13568 ;;
13569
Reid Spencer2706f8c2004-09-19 23:53:36 +000013570kfreebsd*-gnu)
13571 version_type=linux
13572 need_lib_prefix=no
13573 need_version=no
13574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13575 soname_spec='${libname}${release}${shared_ext}$major'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 shlibpath_overrides_runpath=no
13578 hardcode_into_libs=yes
13579 dynamic_linker='GNU ld.so'
13580 ;;
13581
John Criswell7a73b802003-06-30 21:59:07 +000013582freebsd*)
13583 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13584 version_type=freebsd-$objformat
13585 case $version_type in
13586 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013588 need_version=no
13589 need_lib_prefix=no
13590 ;;
13591 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013593 need_version=yes
13594 ;;
13595 esac
13596 shlibpath_var=LD_LIBRARY_PATH
13597 case $host_os in
13598 freebsd2*)
13599 shlibpath_overrides_runpath=yes
13600 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013601 freebsd3.01* | freebsdelf3.01*)
13602 shlibpath_overrides_runpath=yes
13603 hardcode_into_libs=yes
13604 ;;
13605 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013606 shlibpath_overrides_runpath=no
13607 hardcode_into_libs=yes
13608 ;;
13609 esac
13610 ;;
13611
13612gnu*)
13613 version_type=linux
13614 need_lib_prefix=no
13615 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013618 shlibpath_var=LD_LIBRARY_PATH
13619 hardcode_into_libs=yes
13620 ;;
13621
13622hpux9* | hpux10* | hpux11*)
13623 # Give a soname corresponding to the major version so that dld.sl refuses to
13624 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013625 version_type=sunos
13626 need_lib_prefix=no
13627 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013628 case "$host_cpu" in
13629 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013630 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013631 hardcode_into_libs=yes
13632 dynamic_linker="$host_os dld.so"
13633 shlibpath_var=LD_LIBRARY_PATH
13634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 if test "X$HPUX_IA64_MODE" = X32; then
13638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13639 else
13640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13641 fi
13642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13643 ;;
13644 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013645 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013646 hardcode_into_libs=yes
13647 dynamic_linker="$host_os dld.sl"
13648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13654 ;;
13655 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013656 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013657 dynamic_linker="$host_os dld.sl"
13658 shlibpath_var=SHLIB_PATH
13659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 soname_spec='${libname}${release}${shared_ext}$major'
13662 ;;
13663 esac
John Criswell7a73b802003-06-30 21:59:07 +000013664 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13665 postinstall_cmds='chmod 555 $lib'
13666 ;;
13667
John Criswell47fdd832003-07-14 16:52:07 +000013668irix5* | irix6* | nonstopux*)
13669 case $host_os in
13670 nonstopux*) version_type=nonstopux ;;
13671 *)
13672 if test "$lt_cv_prog_gnu_ld" = yes; then
13673 version_type=linux
13674 else
13675 version_type=irix
13676 fi ;;
13677 esac
John Criswell7a73b802003-06-30 21:59:07 +000013678 need_lib_prefix=no
13679 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013680 soname_spec='${libname}${release}${shared_ext}$major'
13681 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 +000013682 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013683 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013684 libsuff= shlibsuff=
13685 ;;
13686 *)
13687 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13689 libsuff= shlibsuff= libmagic=32-bit;;
13690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13691 libsuff=32 shlibsuff=N32 libmagic=N32;;
13692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13693 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013694 *) libsuff= shlibsuff= libmagic=never-match;;
13695 esac
13696 ;;
13697 esac
13698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13699 shlibpath_overrides_runpath=no
13700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013702 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013703 ;;
13704
13705# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013706linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013707 dynamic_linker=no
13708 ;;
13709
13710# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013711linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013712 version_type=linux
13713 need_lib_prefix=no
13714 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 # This implies no fast_install, which is unacceptable.
13721 # Some rework will be needed to allow for fast_install
13722 # before this can be enabled.
13723 hardcode_into_libs=yes
13724
Reid Spencer2706f8c2004-09-19 23:53:36 +000013725 # Append ld.so.conf contents to the search path
13726 if test -f /etc/ld.so.conf; then
13727 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13728 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13729 fi
13730
John Criswell7a73b802003-06-30 21:59:07 +000013731 # We used to test for /lib/ld.so.1 and disable shared libraries on
13732 # powerpc, because MkLinux only supported shared libraries with the
13733 # GNU dynamic linker. Since this was broken with cross compilers,
13734 # most powerpc-linux boxes support dynamic linking these days and
13735 # people can always --disable-shared, the test was removed, and we
13736 # assume the GNU/Linux dynamic linker is in use.
13737 dynamic_linker='GNU/Linux ld.so'
13738 ;;
13739
Reid Spencer2706f8c2004-09-19 23:53:36 +000013740knetbsd*-gnu)
13741 version_type=linux
13742 need_lib_prefix=no
13743 need_version=no
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=no
13748 hardcode_into_libs=yes
13749 dynamic_linker='GNU ld.so'
13750 ;;
13751
John Criswell7a73b802003-06-30 21:59:07 +000013752netbsd*)
13753 version_type=sunos
13754 need_lib_prefix=no
13755 need_version=no
13756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13759 dynamic_linker='NetBSD (a.out) ld.so'
13760 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013762 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013763 dynamic_linker='NetBSD ld.elf_so'
13764 fi
13765 shlibpath_var=LD_LIBRARY_PATH
13766 shlibpath_overrides_runpath=yes
13767 hardcode_into_libs=yes
13768 ;;
13769
13770newsos6)
13771 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 shlibpath_overrides_runpath=yes
13775 ;;
13776
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013778 version_type=linux
13779 need_lib_prefix=no
13780 need_version=no
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013783 shlibpath_var=LD_LIBRARY_PATH
13784 shlibpath_overrides_runpath=yes
13785 ;;
13786
13787openbsd*)
13788 version_type=sunos
13789 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013790 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13793 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013794 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 +000013795 case $host_os in
13796 openbsd2.[89] | openbsd2.[89].*)
13797 shlibpath_overrides_runpath=no
13798 ;;
13799 *)
13800 shlibpath_overrides_runpath=yes
13801 ;;
13802 esac
John Criswell7a73b802003-06-30 21:59:07 +000013803 else
13804 shlibpath_overrides_runpath=yes
13805 fi
John Criswell7a73b802003-06-30 21:59:07 +000013806 ;;
13807
13808os2*)
13809 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013810 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013811 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013812 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013813 dynamic_linker='OS/2 ld.exe'
13814 shlibpath_var=LIBPATH
13815 ;;
13816
13817osf3* | osf4* | osf5*)
13818 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013819 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013820 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013821 soname_spec='${libname}${release}${shared_ext}$major'
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013823 shlibpath_var=LD_LIBRARY_PATH
13824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13826 ;;
13827
13828sco3.2v5*)
13829 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013830 soname_spec='${libname}${release}${shared_ext}$major'
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013832 shlibpath_var=LD_LIBRARY_PATH
13833 ;;
13834
13835solaris*)
13836 version_type=linux
13837 need_lib_prefix=no
13838 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013841 shlibpath_var=LD_LIBRARY_PATH
13842 shlibpath_overrides_runpath=yes
13843 hardcode_into_libs=yes
13844 # ldd complains unless libraries are executable
13845 postinstall_cmds='chmod +x $lib'
13846 ;;
13847
13848sunos4*)
13849 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13852 shlibpath_var=LD_LIBRARY_PATH
13853 shlibpath_overrides_runpath=yes
13854 if test "$with_gnu_ld" = yes; then
13855 need_lib_prefix=no
13856 fi
13857 need_version=yes
13858 ;;
13859
13860sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13861 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013864 shlibpath_var=LD_LIBRARY_PATH
13865 case $host_vendor in
13866 sni)
13867 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013868 need_lib_prefix=no
13869 export_dynamic_flag_spec='${wl}-Blargedynsym'
13870 runpath_var=LD_RUN_PATH
13871 ;;
13872 siemens)
13873 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013874 ;;
13875 motorola)
13876 need_lib_prefix=no
13877 need_version=no
13878 shlibpath_overrides_runpath=no
13879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13880 ;;
13881 esac
13882 ;;
13883
John Criswell7a73b802003-06-30 21:59:07 +000013884sysv4*MP*)
13885 if test -d /usr/nec ;then
13886 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13888 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013889 shlibpath_var=LD_LIBRARY_PATH
13890 fi
13891 ;;
13892
John Criswell47fdd832003-07-14 16:52:07 +000013893uts4*)
13894 version_type=linux
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13896 soname_spec='${libname}${release}${shared_ext}$major'
13897 shlibpath_var=LD_LIBRARY_PATH
13898 ;;
13899
John Criswell7a73b802003-06-30 21:59:07 +000013900*)
13901 dynamic_linker=no
13902 ;;
13903esac
13904echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13905echo "${ECHO_T}$dynamic_linker" >&6
13906test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013907
Reid Spencer2706f8c2004-09-19 23:53:36 +000013908echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13909echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13910hardcode_action=
13911if test -n "$hardcode_libdir_flag_spec" || \
13912 test -n "$runpath_var" || \
13913 test "X$hardcode_automatic" = "Xyes" ; then
13914
13915 # We can hardcode non-existant directories.
13916 if test "$hardcode_direct" != no &&
13917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13918 # have to relink, otherwise we might link with an installed library
13919 # when we should be linking with a yet-to-be-installed one
13920 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13921 test "$hardcode_minus_L" != no; then
13922 # Linking always hardcodes the temporary library directory.
13923 hardcode_action=relink
13924 else
13925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13926 hardcode_action=immediate
13927 fi
13928else
13929 # We cannot hardcode anything, or else we can only hardcode existing
13930 # directories.
13931 hardcode_action=unsupported
13932fi
13933echo "$as_me:$LINENO: result: $hardcode_action" >&5
13934echo "${ECHO_T}$hardcode_action" >&6
13935
13936if test "$hardcode_action" = relink; then
13937 # Fast installation is not supported
13938 enable_fast_install=no
13939elif test "$shlibpath_overrides_runpath" = yes ||
13940 test "$enable_shared" = no; then
13941 # Fast installation is not necessary
13942 enable_fast_install=needless
13943fi
13944
13945striplib=
13946old_striplib=
13947echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13948echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13949if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13950 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13951 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13952 echo "$as_me:$LINENO: result: yes" >&5
13953echo "${ECHO_T}yes" >&6
13954else
13955# FIXME - insert some real tests, host_os isn't really good enough
13956 case $host_os in
13957 darwin*)
13958 if test -n "$STRIP" ; then
13959 striplib="$STRIP -x"
13960 echo "$as_me:$LINENO: result: yes" >&5
13961echo "${ECHO_T}yes" >&6
13962 else
13963 echo "$as_me:$LINENO: result: no" >&5
13964echo "${ECHO_T}no" >&6
13965fi
13966 ;;
13967 *)
13968 echo "$as_me:$LINENO: result: no" >&5
13969echo "${ECHO_T}no" >&6
13970 ;;
13971 esac
13972fi
13973
John Criswell7a73b802003-06-30 21:59:07 +000013974if test "x$enable_dlopen" != xyes; then
13975 enable_dlopen=unknown
13976 enable_dlopen_self=unknown
13977 enable_dlopen_self_static=unknown
13978else
13979 lt_cv_dlopen=no
13980 lt_cv_dlopen_libs=
13981
13982 case $host_os in
13983 beos*)
13984 lt_cv_dlopen="load_add_on"
13985 lt_cv_dlopen_libs=
13986 lt_cv_dlopen_self=yes
13987 ;;
13988
John Criswell47fdd832003-07-14 16:52:07 +000013989 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013990 lt_cv_dlopen="LoadLibrary"
13991 lt_cv_dlopen_libs=
13992 ;;
13993
John Criswell47fdd832003-07-14 16:52:07 +000013994 cygwin*)
13995 lt_cv_dlopen="dlopen"
13996 lt_cv_dlopen_libs=
13997 ;;
13998
13999 darwin*)
14000 # if libdl is installed we need to link against it
14001 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14002echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14003if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005else
14006 ac_check_lib_save_LIBS=$LIBS
14007LIBS="-ldl $LIBS"
14008cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000014014
14015/* Override any gcc2 internal prototype to avoid an error. */
14016#ifdef __cplusplus
14017extern "C"
14018#endif
14019/* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14021char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000014022int
14023main ()
14024{
14025dlopen ();
14026 ;
14027 return 0;
14028}
14029_ACEOF
14030rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014032 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_cv_lib_dl_dlopen=yes
14053else
14054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014055sed 's/^/| /' conftest.$ac_ext >&5
14056
John Criswell47fdd832003-07-14 16:52:07 +000014057ac_cv_lib_dl_dlopen=no
14058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014059rm -f conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014061LIBS=$ac_check_lib_save_LIBS
14062fi
14063echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14064echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14065if test $ac_cv_lib_dl_dlopen = yes; then
14066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14067else
14068
14069 lt_cv_dlopen="dyld"
14070 lt_cv_dlopen_libs=
14071 lt_cv_dlopen_self=yes
14072
14073fi
14074
14075 ;;
14076
John Criswell7a73b802003-06-30 21:59:07 +000014077 *)
14078 echo "$as_me:$LINENO: checking for shl_load" >&5
14079echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14080if test "${ac_cv_func_shl_load+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014084/* confdefs.h. */
14085_ACEOF
14086cat confdefs.h >>conftest.$ac_ext
14087cat >>conftest.$ac_ext <<_ACEOF
14088/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014089/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14091#define shl_load innocuous_shl_load
14092
John Criswell7a73b802003-06-30 21:59:07 +000014093/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014094 which can conflict with char shl_load (); below.
14095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14096 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014097
John Criswell0c38eaf2003-09-10 15:17:25 +000014098#ifdef __STDC__
14099# include <limits.h>
14100#else
14101# include <assert.h>
14102#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014103
14104#undef shl_load
14105
John Criswell7a73b802003-06-30 21:59:07 +000014106/* Override any gcc2 internal prototype to avoid an error. */
14107#ifdef __cplusplus
14108extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014109{
John Criswell7a73b802003-06-30 21:59:07 +000014110#endif
14111/* We use char because int might match the return type of a gcc2
14112 builtin and then its argument prototype would still apply. */
14113char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014114/* The GNU C library defines this for functions which it implements
14115 to always fail with ENOSYS. Some functions are actually named
14116 something starting with __ and the normal name is an alias. */
14117#if defined (__stub_shl_load) || defined (__stub___shl_load)
14118choke me
14119#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014120char (*f) () = shl_load;
14121#endif
14122#ifdef __cplusplus
14123}
John Criswell7a73b802003-06-30 21:59:07 +000014124#endif
14125
John Criswell0c38eaf2003-09-10 15:17:25 +000014126int
14127main ()
14128{
14129return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014130 ;
14131 return 0;
14132}
14133_ACEOF
14134rm -f conftest.$ac_objext conftest$ac_exeext
14135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014136 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014143 { ac_try='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_func_shl_load=yes
14157else
14158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014159sed 's/^/| /' conftest.$ac_ext >&5
14160
John Criswell7a73b802003-06-30 21:59:07 +000014161ac_cv_func_shl_load=no
14162fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014163rm -f conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014165fi
14166echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14167echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14168if test $ac_cv_func_shl_load = yes; then
14169 lt_cv_dlopen="shl_load"
14170else
14171 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14172echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14173if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175else
14176 ac_check_lib_save_LIBS=$LIBS
14177LIBS="-ldld $LIBS"
14178cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014179/* confdefs.h. */
14180_ACEOF
14181cat confdefs.h >>conftest.$ac_ext
14182cat >>conftest.$ac_ext <<_ACEOF
14183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014184
14185/* Override any gcc2 internal prototype to avoid an error. */
14186#ifdef __cplusplus
14187extern "C"
14188#endif
14189/* We use char because int might match the return type of a gcc2
14190 builtin and then its argument prototype would still apply. */
14191char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014192int
14193main ()
14194{
14195shl_load ();
14196 ;
14197 return 0;
14198}
14199_ACEOF
14200rm -f conftest.$ac_objext conftest$ac_exeext
14201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014202 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014209 { ac_try='test -z "$ac_c_werror_flag"
14210 || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_lib_dld_shl_load=yes
14223else
14224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014225sed 's/^/| /' conftest.$ac_ext >&5
14226
John Criswell7a73b802003-06-30 21:59:07 +000014227ac_cv_lib_dld_shl_load=no
14228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014229rm -f conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014231LIBS=$ac_check_lib_save_LIBS
14232fi
14233echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14234echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14235if test $ac_cv_lib_dld_shl_load = yes; then
14236 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14237else
14238 echo "$as_me:$LINENO: checking for dlopen" >&5
14239echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14240if test "${ac_cv_func_dlopen+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014249/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14251#define dlopen innocuous_dlopen
14252
John Criswell7a73b802003-06-30 21:59:07 +000014253/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014254 which can conflict with char dlopen (); below.
14255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14256 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014257
John Criswell0c38eaf2003-09-10 15:17:25 +000014258#ifdef __STDC__
14259# include <limits.h>
14260#else
14261# include <assert.h>
14262#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014263
14264#undef dlopen
14265
John Criswell7a73b802003-06-30 21:59:07 +000014266/* Override any gcc2 internal prototype to avoid an error. */
14267#ifdef __cplusplus
14268extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014269{
John Criswell7a73b802003-06-30 21:59:07 +000014270#endif
14271/* We use char because int might match the return type of a gcc2
14272 builtin and then its argument prototype would still apply. */
14273char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014274/* The GNU C library defines this for functions which it implements
14275 to always fail with ENOSYS. Some functions are actually named
14276 something starting with __ and the normal name is an alias. */
14277#if defined (__stub_dlopen) || defined (__stub___dlopen)
14278choke me
14279#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014280char (*f) () = dlopen;
14281#endif
14282#ifdef __cplusplus
14283}
John Criswell7a73b802003-06-30 21:59:07 +000014284#endif
14285
John Criswell0c38eaf2003-09-10 15:17:25 +000014286int
14287main ()
14288{
14289return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014290 ;
14291 return 0;
14292}
14293_ACEOF
14294rm -f conftest.$ac_objext conftest$ac_exeext
14295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014296 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014303 { ac_try='test -z "$ac_c_werror_flag"
14304 || test ! -s conftest.err'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; } &&
14310 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_cv_func_dlopen=yes
14317else
14318 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014319sed 's/^/| /' conftest.$ac_ext >&5
14320
John Criswell7a73b802003-06-30 21:59:07 +000014321ac_cv_func_dlopen=no
14322fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014323rm -f conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014325fi
14326echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14327echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14328if test $ac_cv_func_dlopen = yes; then
14329 lt_cv_dlopen="dlopen"
14330else
14331 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14332echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14333if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335else
14336 ac_check_lib_save_LIBS=$LIBS
14337LIBS="-ldl $LIBS"
14338cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014344
14345/* Override any gcc2 internal prototype to avoid an error. */
14346#ifdef __cplusplus
14347extern "C"
14348#endif
14349/* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14351char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014352int
14353main ()
14354{
14355dlopen ();
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360rm -f conftest.$ac_objext conftest$ac_exeext
14361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014362 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014369 { ac_try='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_lib_dl_dlopen=yes
14383else
14384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014385sed 's/^/| /' conftest.$ac_ext >&5
14386
John Criswell7a73b802003-06-30 21:59:07 +000014387ac_cv_lib_dl_dlopen=no
14388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014389rm -f conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014391LIBS=$ac_check_lib_save_LIBS
14392fi
14393echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14394echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14395if test $ac_cv_lib_dl_dlopen = yes; then
14396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14397else
14398 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14399echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14400if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402else
14403 ac_check_lib_save_LIBS=$LIBS
14404LIBS="-lsvld $LIBS"
14405cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014411
14412/* Override any gcc2 internal prototype to avoid an error. */
14413#ifdef __cplusplus
14414extern "C"
14415#endif
14416/* We use char because int might match the return type of a gcc2
14417 builtin and then its argument prototype would still apply. */
14418char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014419int
14420main ()
14421{
14422dlopen ();
14423 ;
14424 return 0;
14425}
14426_ACEOF
14427rm -f conftest.$ac_objext conftest$ac_exeext
14428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014429 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_lib_svld_dlopen=yes
14450else
14451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014452sed 's/^/| /' conftest.$ac_ext >&5
14453
John Criswell7a73b802003-06-30 21:59:07 +000014454ac_cv_lib_svld_dlopen=no
14455fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014456rm -f conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014458LIBS=$ac_check_lib_save_LIBS
14459fi
14460echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14461echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14462if test $ac_cv_lib_svld_dlopen = yes; then
14463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14464else
14465 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14466echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14467if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469else
14470 ac_check_lib_save_LIBS=$LIBS
14471LIBS="-ldld $LIBS"
14472cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014478
14479/* Override any gcc2 internal prototype to avoid an error. */
14480#ifdef __cplusplus
14481extern "C"
14482#endif
14483/* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014486int
14487main ()
14488{
14489dld_link ();
14490 ;
14491 return 0;
14492}
14493_ACEOF
14494rm -f conftest.$ac_objext conftest$ac_exeext
14495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014496 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014497 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_cv_lib_dld_dld_link=yes
14517else
14518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014519sed 's/^/| /' conftest.$ac_ext >&5
14520
John Criswell7a73b802003-06-30 21:59:07 +000014521ac_cv_lib_dld_dld_link=no
14522fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014523rm -f conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014525LIBS=$ac_check_lib_save_LIBS
14526fi
14527echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14528echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14529if test $ac_cv_lib_dld_dld_link = yes; then
14530 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14531fi
14532
14533
14534fi
14535
14536
14537fi
14538
14539
14540fi
14541
14542
14543fi
14544
14545
14546fi
14547
14548 ;;
14549 esac
14550
14551 if test "x$lt_cv_dlopen" != xno; then
14552 enable_dlopen=yes
14553 else
14554 enable_dlopen=no
14555 fi
14556
14557 case $lt_cv_dlopen in
14558 dlopen)
14559 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014560 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014561
14562 save_LDFLAGS="$LDFLAGS"
14563 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14564
14565 save_LIBS="$LIBS"
14566 LIBS="$lt_cv_dlopen_libs $LIBS"
14567
14568 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14569echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14570if test "${lt_cv_dlopen_self+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572else
14573 if test "$cross_compiling" = yes; then :
14574 lt_cv_dlopen_self=cross
14575else
John Criswell47fdd832003-07-14 16:52:07 +000014576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014577 lt_status=$lt_dlunknown
14578 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000014579#line 14579 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014580#include "confdefs.h"
14581
14582#if HAVE_DLFCN_H
14583#include <dlfcn.h>
14584#endif
14585
14586#include <stdio.h>
14587
14588#ifdef RTLD_GLOBAL
14589# define LT_DLGLOBAL RTLD_GLOBAL
14590#else
14591# ifdef DL_GLOBAL
14592# define LT_DLGLOBAL DL_GLOBAL
14593# else
14594# define LT_DLGLOBAL 0
14595# endif
14596#endif
14597
14598/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14599 find out it does not work in some platform. */
14600#ifndef LT_DLLAZY_OR_NOW
14601# ifdef RTLD_LAZY
14602# define LT_DLLAZY_OR_NOW RTLD_LAZY
14603# else
14604# ifdef DL_LAZY
14605# define LT_DLLAZY_OR_NOW DL_LAZY
14606# else
14607# ifdef RTLD_NOW
14608# define LT_DLLAZY_OR_NOW RTLD_NOW
14609# else
14610# ifdef DL_NOW
14611# define LT_DLLAZY_OR_NOW DL_NOW
14612# else
14613# define LT_DLLAZY_OR_NOW 0
14614# endif
14615# endif
14616# endif
14617# endif
14618#endif
14619
14620#ifdef __cplusplus
14621extern "C" void exit (int);
14622#endif
14623
14624void fnord() { int i=42;}
14625int main ()
14626{
14627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14628 int status = $lt_dlunknown;
14629
14630 if (self)
14631 {
14632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14633 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14634 /* dlclose (self); */
14635 }
14636
14637 exit (status);
14638}
14639EOF
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14645 (./conftest; exit; ) 2>/dev/null
14646 lt_status=$?
14647 case x$lt_status in
14648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14650 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14651 esac
14652 else :
14653 # compilation failed
14654 lt_cv_dlopen_self=no
14655 fi
14656fi
14657rm -fr conftest*
14658
14659
14660fi
14661echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14662echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14663
14664 if test "x$lt_cv_dlopen_self" = xyes; then
14665 LDFLAGS="$LDFLAGS $link_static_flag"
14666 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14667echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14668if test "${lt_cv_dlopen_self_static+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670else
14671 if test "$cross_compiling" = yes; then :
14672 lt_cv_dlopen_self_static=cross
14673else
John Criswell47fdd832003-07-14 16:52:07 +000014674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014675 lt_status=$lt_dlunknown
14676 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000014677#line 14677 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014678#include "confdefs.h"
14679
14680#if HAVE_DLFCN_H
14681#include <dlfcn.h>
14682#endif
14683
14684#include <stdio.h>
14685
14686#ifdef RTLD_GLOBAL
14687# define LT_DLGLOBAL RTLD_GLOBAL
14688#else
14689# ifdef DL_GLOBAL
14690# define LT_DLGLOBAL DL_GLOBAL
14691# else
14692# define LT_DLGLOBAL 0
14693# endif
14694#endif
14695
14696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14697 find out it does not work in some platform. */
14698#ifndef LT_DLLAZY_OR_NOW
14699# ifdef RTLD_LAZY
14700# define LT_DLLAZY_OR_NOW RTLD_LAZY
14701# else
14702# ifdef DL_LAZY
14703# define LT_DLLAZY_OR_NOW DL_LAZY
14704# else
14705# ifdef RTLD_NOW
14706# define LT_DLLAZY_OR_NOW RTLD_NOW
14707# else
14708# ifdef DL_NOW
14709# define LT_DLLAZY_OR_NOW DL_NOW
14710# else
14711# define LT_DLLAZY_OR_NOW 0
14712# endif
14713# endif
14714# endif
14715# endif
14716#endif
14717
14718#ifdef __cplusplus
14719extern "C" void exit (int);
14720#endif
14721
14722void fnord() { int i=42;}
14723int main ()
14724{
14725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14726 int status = $lt_dlunknown;
14727
14728 if (self)
14729 {
14730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14732 /* dlclose (self); */
14733 }
14734
14735 exit (status);
14736}
14737EOF
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739 (eval $ac_link) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14743 (./conftest; exit; ) 2>/dev/null
14744 lt_status=$?
14745 case x$lt_status in
14746 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14747 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14748 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14749 esac
14750 else :
14751 # compilation failed
14752 lt_cv_dlopen_self_static=no
14753 fi
14754fi
14755rm -fr conftest*
14756
14757
14758fi
14759echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14760echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14761 fi
14762
14763 CPPFLAGS="$save_CPPFLAGS"
14764 LDFLAGS="$save_LDFLAGS"
14765 LIBS="$save_LIBS"
14766 ;;
14767 esac
14768
14769 case $lt_cv_dlopen_self in
14770 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14771 *) enable_dlopen_self=unknown ;;
14772 esac
14773
14774 case $lt_cv_dlopen_self_static in
14775 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14776 *) enable_dlopen_self_static=unknown ;;
14777 esac
14778fi
14779
14780
John Criswell47fdd832003-07-14 16:52:07 +000014781# Report which librarie types wil actually be built
14782echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14783echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14784echo "$as_me:$LINENO: result: $can_build_shared" >&5
14785echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014786
John Criswell47fdd832003-07-14 16:52:07 +000014787echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14788echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14789test "$can_build_shared" = "no" && enable_shared=no
14790
14791# On AIX, shared libraries and static libraries use the same namespace, and
14792# are all built from PIC.
14793case "$host_os" in
14794aix3*)
14795 test "$enable_shared" = yes && enable_static=no
14796 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014798 postinstall_cmds='$RANLIB $lib'
14799 fi
14800 ;;
14801
Reid Spencer2706f8c2004-09-19 23:53:36 +000014802aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14804 test "$enable_shared" = yes && enable_static=no
14805 fi
John Criswell7a73b802003-06-30 21:59:07 +000014806 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014807esac
14808echo "$as_me:$LINENO: result: $enable_shared" >&5
14809echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014810
John Criswell47fdd832003-07-14 16:52:07 +000014811echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14812echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14813# Make sure either enable_shared or enable_static is yes.
14814test "$enable_shared" = yes || enable_static=yes
14815echo "$as_me:$LINENO: result: $enable_static" >&5
14816echo "${ECHO_T}$enable_static" >&6
14817
14818# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014819# libtool distribution, otherwise you forgot to ship ltmain.sh
14820# with your package, and you will get complaints that there are
14821# no rules to generate ltmain.sh.
14822if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014823 # See if we are running on zsh, and set the options which allow our commands through
14824 # without removal of \ escapes.
14825 if test -n "${ZSH_VERSION+set}" ; then
14826 setopt NO_GLOB_SUBST
14827 fi
John Criswell7a73b802003-06-30 21:59:07 +000014828 # Now quote all the things that may contain metacharacters while being
14829 # careful not to overquote the AC_SUBSTed values. We take copies of the
14830 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014831 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14832 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014833 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14834 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14835 deplibs_check_method reload_flag reload_cmds need_locks \
14836 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14837 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014839 old_postinstall_cmds old_postuninstall_cmds \
14840 compiler \
14841 CC \
14842 LD \
14843 lt_prog_compiler_wl \
14844 lt_prog_compiler_pic \
14845 lt_prog_compiler_static \
14846 lt_prog_compiler_no_builtin_flag \
14847 export_dynamic_flag_spec \
14848 thread_safe_flag_spec \
14849 whole_archive_flag_spec \
14850 enable_shared_with_static_runtimes \
14851 old_archive_cmds \
14852 old_archive_from_new_cmds \
14853 predep_objects \
14854 postdep_objects \
14855 predeps \
14856 postdeps \
14857 compiler_lib_search_path \
14858 archive_cmds \
14859 archive_expsym_cmds \
14860 postinstall_cmds \
14861 postuninstall_cmds \
14862 old_archive_from_expsyms_cmds \
14863 allow_undefined_flag \
14864 no_undefined_flag \
14865 export_symbols_cmds \
14866 hardcode_libdir_flag_spec \
14867 hardcode_libdir_flag_spec_ld \
14868 hardcode_libdir_separator \
14869 hardcode_automatic \
14870 module_cmds \
14871 module_expsym_cmds \
14872 lt_cv_prog_compiler_c_o \
14873 exclude_expsyms \
14874 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014875
14876 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014877 old_archive_cmds | \
14878 old_archive_from_new_cmds | \
14879 archive_cmds | \
14880 archive_expsym_cmds | \
14881 module_cmds | \
14882 module_expsym_cmds | \
14883 old_archive_from_expsyms_cmds | \
14884 export_symbols_cmds | \
14885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014886 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014887 old_postinstall_cmds | old_postuninstall_cmds | \
14888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014889 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014890 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 +000014891 ;;
14892 *)
14893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14894 ;;
14895 esac
14896 done
14897
John Criswell47fdd832003-07-14 16:52:07 +000014898 case $lt_echo in
14899 *'\$0 --fallback-echo"')
14900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14901 ;;
14902 esac
14903
14904cfgfile="${ofile}T"
14905 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14906 $rm -f "$cfgfile"
14907 { echo "$as_me:$LINENO: creating $ofile" >&5
14908echo "$as_me: creating $ofile" >&6;}
14909
14910 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014911#! $SHELL
14912
John Criswell47fdd832003-07-14 16:52:07 +000014913# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014914# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14915# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14916#
John Criswell47fdd832003-07-14 16:52:07 +000014917# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14918# Free Software Foundation, Inc.
14919#
14920# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014921# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14922#
14923# This program is free software; you can redistribute it and/or modify
14924# it under the terms of the GNU General Public License as published by
14925# the Free Software Foundation; either version 2 of the License, or
14926# (at your option) any later version.
14927#
14928# This program is distributed in the hope that it will be useful, but
14929# WITHOUT ANY WARRANTY; without even the implied warranty of
14930# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14931# General Public License for more details.
14932#
14933# You should have received a copy of the GNU General Public License
14934# along with this program; if not, write to the Free Software
14935# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14936#
14937# As a special exception to the GNU General Public License, if you
14938# distribute this file as part of a program that contains a
14939# configuration script generated by Autoconf, you may include it under
14940# the same distribution terms that you use for the rest of that program.
14941
John Criswell47fdd832003-07-14 16:52:07 +000014942# A sed program that does not truncate output.
14943SED=$lt_SED
14944
John Criswell7a73b802003-06-30 21:59:07 +000014945# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014946Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014947
14948# The HP-UX ksh and POSIX shell print the target directory to stdout
14949# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014950(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014951
John Criswell47fdd832003-07-14 16:52:07 +000014952# The names of the tagged configurations supported by this script.
14953available_tags=
14954
John Criswell7a73b802003-06-30 21:59:07 +000014955# ### BEGIN LIBTOOL CONFIG
14956
14957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14958
14959# Shell to use when invoking shell scripts.
14960SHELL=$lt_SHELL
14961
14962# Whether or not to build shared libraries.
14963build_libtool_libs=$enable_shared
14964
14965# Whether or not to build static libraries.
14966build_old_libs=$enable_static
14967
14968# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014969build_libtool_need_lc=$archive_cmds_need_lc
14970
14971# Whether or not to disallow shared libs when runtime libs are static
14972allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014973
14974# Whether or not to optimize for fast installation.
14975fast_install=$enable_fast_install
14976
14977# The host system.
14978host_alias=$host_alias
14979host=$host
14980
14981# An echo program that does not interpret backslashes.
14982echo=$lt_echo
14983
14984# The archiver.
14985AR=$lt_AR
14986AR_FLAGS=$lt_AR_FLAGS
14987
John Criswell47fdd832003-07-14 16:52:07 +000014988# A C compiler.
14989LTCC=$lt_LTCC
14990
14991# A language-specific compiler.
14992CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014993
14994# Is the compiler the GNU C compiler?
14995with_gcc=$GCC
14996
John Criswell47fdd832003-07-14 16:52:07 +000014997# An ERE matcher.
14998EGREP=$lt_EGREP
14999
John Criswell7a73b802003-06-30 21:59:07 +000015000# The linker used to build libraries.
15001LD=$lt_LD
15002
15003# Whether we need hard or soft links.
15004LN_S=$lt_LN_S
15005
15006# A BSD-compatible nm program.
15007NM=$lt_NM
15008
15009# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015010STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000015011
15012# Used to examine libraries when file_magic_cmd begins "file"
15013MAGIC_CMD=$MAGIC_CMD
15014
15015# Used on cygwin: DLL creation program.
15016DLLTOOL="$DLLTOOL"
15017
15018# Used on cygwin: object dumper.
15019OBJDUMP="$OBJDUMP"
15020
15021# Used on cygwin: assembler.
15022AS="$AS"
15023
15024# The name of the directory that contains temporary libtool files.
15025objdir=$objdir
15026
15027# How to create reloadable object files.
15028reload_flag=$lt_reload_flag
15029reload_cmds=$lt_reload_cmds
15030
15031# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000015032wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000015033
15034# Object file suffix (normally "o").
15035objext="$ac_objext"
15036
15037# Old archive suffix (normally "a").
15038libext="$libext"
15039
John Criswell47fdd832003-07-14 16:52:07 +000015040# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015041shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015042
John Criswell7a73b802003-06-30 21:59:07 +000015043# Executable file suffix (normally "").
15044exeext="$exeext"
15045
15046# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000015047pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000015048pic_mode=$pic_mode
15049
John Criswell47fdd832003-07-14 16:52:07 +000015050# What is the maximum length of a command?
15051max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000015052
John Criswell47fdd832003-07-14 16:52:07 +000015053# Does compiler simultaneously support -c and -o options?
15054compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000015055
15056# Must we lock files when doing compilation ?
15057need_locks=$lt_need_locks
15058
15059# Do we need the lib prefix for modules?
15060need_lib_prefix=$need_lib_prefix
15061
15062# Do we need a version for libraries?
15063need_version=$need_version
15064
15065# Whether dlopen is supported.
15066dlopen_support=$enable_dlopen
15067
15068# Whether dlopen of programs is supported.
15069dlopen_self=$enable_dlopen_self
15070
15071# Whether dlopen of statically linked programs is supported.
15072dlopen_self_static=$enable_dlopen_self_static
15073
15074# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000015075link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000015076
15077# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000015078no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000015079
15080# Compiler flag to allow reflexive dlopens.
15081export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15082
15083# Compiler flag to generate shared objects directly from archives.
15084whole_archive_flag_spec=$lt_whole_archive_flag_spec
15085
15086# Compiler flag to generate thread-safe objects.
15087thread_safe_flag_spec=$lt_thread_safe_flag_spec
15088
15089# Library versioning type.
15090version_type=$version_type
15091
15092# Format of library name prefix.
15093libname_spec=$lt_libname_spec
15094
15095# List of archive names. First name is the real one, the rest are links.
15096# The last name is the one that the linker finds with -lNAME.
15097library_names_spec=$lt_library_names_spec
15098
15099# The coded name of the library, if different from the real name.
15100soname_spec=$lt_soname_spec
15101
15102# Commands used to build and install an old-style archive.
15103RANLIB=$lt_RANLIB
15104old_archive_cmds=$lt_old_archive_cmds
15105old_postinstall_cmds=$lt_old_postinstall_cmds
15106old_postuninstall_cmds=$lt_old_postuninstall_cmds
15107
15108# Create an old-style archive from a shared archive.
15109old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15110
15111# Create a temporary old-style archive to link instead of a shared archive.
15112old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15113
15114# Commands used to build and install a shared archive.
15115archive_cmds=$lt_archive_cmds
15116archive_expsym_cmds=$lt_archive_expsym_cmds
15117postinstall_cmds=$lt_postinstall_cmds
15118postuninstall_cmds=$lt_postuninstall_cmds
15119
John Criswell47fdd832003-07-14 16:52:07 +000015120# Commands used to build a loadable module (assumed same as above if empty)
15121module_cmds=$lt_module_cmds
15122module_expsym_cmds=$lt_module_expsym_cmds
15123
John Criswell7a73b802003-06-30 21:59:07 +000015124# Commands to strip libraries.
15125old_striplib=$lt_old_striplib
15126striplib=$lt_striplib
15127
John Criswell47fdd832003-07-14 16:52:07 +000015128# Dependencies to place before the objects being linked to create a
15129# shared library.
15130predep_objects=$lt_predep_objects
15131
15132# Dependencies to place after the objects being linked to create a
15133# shared library.
15134postdep_objects=$lt_postdep_objects
15135
15136# Dependencies to place before the objects being linked to create a
15137# shared library.
15138predeps=$lt_predeps
15139
15140# Dependencies to place after the objects being linked to create a
15141# shared library.
15142postdeps=$lt_postdeps
15143
15144# The library search path used internally by the compiler when linking
15145# a shared library.
15146compiler_lib_search_path=$lt_compiler_lib_search_path
15147
John Criswell7a73b802003-06-30 21:59:07 +000015148# Method to check whether dependent libraries are shared objects.
15149deplibs_check_method=$lt_deplibs_check_method
15150
15151# Command to use when deplibs_check_method == file_magic.
15152file_magic_cmd=$lt_file_magic_cmd
15153
15154# Flag that allows shared libraries with undefined symbols to be built.
15155allow_undefined_flag=$lt_allow_undefined_flag
15156
15157# Flag that forces no undefined symbols.
15158no_undefined_flag=$lt_no_undefined_flag
15159
15160# Commands used to finish a libtool library installation in a directory.
15161finish_cmds=$lt_finish_cmds
15162
15163# Same as above, but a single script fragment to be evaled but not shown.
15164finish_eval=$lt_finish_eval
15165
15166# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015167global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015168
15169# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015170global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015171
15172# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015173global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015174
15175# This is the shared library runtime path variable.
15176runpath_var=$runpath_var
15177
15178# This is the shared library path variable.
15179shlibpath_var=$shlibpath_var
15180
15181# Is shlibpath searched before the hard-coded library search path?
15182shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15183
15184# How to hardcode a shared library path into an executable.
15185hardcode_action=$hardcode_action
15186
15187# Whether we should hardcode library paths into libraries.
15188hardcode_into_libs=$hardcode_into_libs
15189
15190# Flag to hardcode \$libdir into a binary during linking.
15191# This must work even if \$libdir does not exist.
15192hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15193
John Criswell47fdd832003-07-14 16:52:07 +000015194# If ld is used when linking, flag to hardcode \$libdir into
15195# a binary during linking. This must work even if \$libdir does
15196# not exist.
15197hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15198
John Criswell7a73b802003-06-30 21:59:07 +000015199# Whether we need a single -rpath flag with a separated argument.
15200hardcode_libdir_separator=$lt_hardcode_libdir_separator
15201
John Criswell47fdd832003-07-14 16:52:07 +000015202# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015203# resulting binary.
15204hardcode_direct=$hardcode_direct
15205
15206# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15207# resulting binary.
15208hardcode_minus_L=$hardcode_minus_L
15209
15210# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15211# the resulting binary.
15212hardcode_shlibpath_var=$hardcode_shlibpath_var
15213
John Criswell47fdd832003-07-14 16:52:07 +000015214# Set to yes if building a shared library automatically hardcodes DIR into the library
15215# and all subsequent libraries and executables linked against it.
15216hardcode_automatic=$hardcode_automatic
15217
John Criswell7a73b802003-06-30 21:59:07 +000015218# Variables whose values should be saved in libtool wrapper scripts and
15219# restored at relink time.
15220variables_saved_for_relink="$variables_saved_for_relink"
15221
15222# Whether libtool must link a program against all its dependency libraries.
15223link_all_deplibs=$link_all_deplibs
15224
15225# Compile-time system search path for libraries
15226sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15227
15228# Run-time system search path for libraries
15229sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15230
15231# Fix the shell variable \$srcfile for the compiler.
15232fix_srcfile_path="$fix_srcfile_path"
15233
15234# Set to yes if exported symbols are required.
15235always_export_symbols=$always_export_symbols
15236
15237# The commands to list exported symbols.
15238export_symbols_cmds=$lt_export_symbols_cmds
15239
15240# The commands to extract the exported symbol list from a shared archive.
15241extract_expsyms_cmds=$lt_extract_expsyms_cmds
15242
15243# Symbols that should not be listed in the preloaded symbols.
15244exclude_expsyms=$lt_exclude_expsyms
15245
15246# Symbols that must always be exported.
15247include_expsyms=$lt_include_expsyms
15248
15249# ### END LIBTOOL CONFIG
15250
15251__EOF__
15252
John Criswell47fdd832003-07-14 16:52:07 +000015253
John Criswell7a73b802003-06-30 21:59:07 +000015254 case $host_os in
15255 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015256 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015257
15258# AIX sometimes has problems with the GCC collect2 program. For some
15259# reason, if we set the COLLECT_NAMES environment variable, the problems
15260# vanish in a puff of smoke.
15261if test "X${COLLECT_NAMES+set}" != Xset; then
15262 COLLECT_NAMES=
15263 export COLLECT_NAMES
15264fi
15265EOF
15266 ;;
15267 esac
15268
John Criswell7a73b802003-06-30 21:59:07 +000015269 # We use sed instead of cat because bash on DJGPP gets confused if
15270 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15271 # text mode, it properly converts lines to CR/LF. This bash problem
15272 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015273 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015274
John Criswell47fdd832003-07-14 16:52:07 +000015275 mv -f "$cfgfile" "$ofile" || \
15276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015277 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015278
15279else
15280 # If there is no Makefile yet, we rely on a make rule to execute
15281 # `config.status --recheck' to rerun these tests and create the
15282 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15284 if test -f "$ltmain_in"; then
15285 test -f Makefile && make "$ltmain"
15286 fi
John Criswell7a73b802003-06-30 21:59:07 +000015287fi
John Criswell7a73b802003-06-30 21:59:07 +000015288
15289
John Criswell47fdd832003-07-14 16:52:07 +000015290ac_ext=c
15291ac_cpp='$CPP $CPPFLAGS'
15292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15294ac_compiler_gnu=$ac_cv_c_compiler_gnu
15295
15296CC="$lt_save_CC"
15297
15298
15299# Check whether --with-tags or --without-tags was given.
15300if test "${with_tags+set}" = set; then
15301 withval="$with_tags"
15302 tagnames="$withval"
15303fi;
15304
15305if test -f "$ltmain" && test -n "$tagnames"; then
15306 if test ! -f "${ofile}"; then
15307 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15308echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15309 fi
15310
15311 if test -z "$LTCC"; then
15312 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15313 if test -z "$LTCC"; then
15314 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15315echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15316 else
15317 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15318echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15319 fi
15320 fi
15321
15322 # Extract list of available tagged configurations in $ofile.
15323 # Note that this assumes the entire list is on one line.
15324 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15325
15326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15327 for tagname in $tagnames; do
15328 IFS="$lt_save_ifs"
15329 # Check whether tagname contains only valid characters
15330 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15331 "") ;;
15332 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15333echo "$as_me: error: invalid tag name: $tagname" >&2;}
15334 { (exit 1); exit 1; }; }
15335 ;;
15336 esac
15337
15338 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15339 then
15340 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15341echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15342 { (exit 1); exit 1; }; }
15343 fi
15344
15345 # Update the list of available tags.
15346 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015347 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015348
15349 case $tagname in
15350 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015351 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15352 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15353 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015354 ac_ext=cc
15355ac_cpp='$CXXCPP $CPPFLAGS'
15356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15359
15360
15361
15362
15363archive_cmds_need_lc_CXX=no
15364allow_undefined_flag_CXX=
15365always_export_symbols_CXX=no
15366archive_expsym_cmds_CXX=
15367export_dynamic_flag_spec_CXX=
15368hardcode_direct_CXX=no
15369hardcode_libdir_flag_spec_CXX=
15370hardcode_libdir_flag_spec_ld_CXX=
15371hardcode_libdir_separator_CXX=
15372hardcode_minus_L_CXX=no
15373hardcode_automatic_CXX=no
15374module_cmds_CXX=
15375module_expsym_cmds_CXX=
15376link_all_deplibs_CXX=unknown
15377old_archive_cmds_CXX=$old_archive_cmds
15378no_undefined_flag_CXX=
15379whole_archive_flag_spec_CXX=
15380enable_shared_with_static_runtimes_CXX=no
15381
15382# Dependencies to place before and after the object being linked:
15383predep_objects_CXX=
15384postdep_objects_CXX=
15385predeps_CXX=
15386postdeps_CXX=
15387compiler_lib_search_path_CXX=
15388
15389# Source file extension for C++ test sources.
15390ac_ext=cc
15391
15392# Object file extension for compiled C++ test sources.
15393objext=o
15394objext_CXX=$objext
15395
15396# Code to be used in simple compile tests
15397lt_simple_compile_test_code="int some_variable = 0;\n"
15398
15399# Code to be used in simple link tests
15400lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15401
15402# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15403
15404# If no C compiler was specified, use CC.
15405LTCC=${LTCC-"$CC"}
15406
15407# Allow CC to be a program name with arguments.
15408compiler=$CC
15409
15410
15411# Allow CC to be a program name with arguments.
15412lt_save_CC=$CC
15413lt_save_LD=$LD
15414lt_save_GCC=$GCC
15415GCC=$GXX
15416lt_save_with_gnu_ld=$with_gnu_ld
15417lt_save_path_LD=$lt_cv_path_LD
15418if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15419 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15420else
15421 unset lt_cv_prog_gnu_ld
15422fi
15423if test -n "${lt_cv_path_LDCXX+set}"; then
15424 lt_cv_path_LD=$lt_cv_path_LDCXX
15425else
15426 unset lt_cv_path_LD
15427fi
15428test -z "${LDCXX+set}" || LD=$LDCXX
15429CC=${CXX-"c++"}
15430compiler=$CC
15431compiler_CXX=$CC
15432cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15433
15434# We don't want -fno-exception wen compiling C++ code, so set the
15435# no_builtin_flag separately
15436if test "$GXX" = yes; then
15437 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15438else
15439 lt_prog_compiler_no_builtin_flag_CXX=
15440fi
15441
15442if test "$GXX" = yes; then
15443 # Set up default GNU C++ configuration
15444
15445
15446# Check whether --with-gnu-ld or --without-gnu-ld was given.
15447if test "${with_gnu_ld+set}" = set; then
15448 withval="$with_gnu_ld"
15449 test "$withval" = no || with_gnu_ld=yes
15450else
15451 with_gnu_ld=no
15452fi;
15453ac_prog=ld
15454if test "$GCC" = yes; then
15455 # Check if gcc -print-prog-name=ld gives a path.
15456 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15457echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15458 case $host in
15459 *-*-mingw*)
15460 # gcc leaves a trailing carriage return which upsets mingw
15461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15462 *)
15463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15464 esac
15465 case $ac_prog in
15466 # Accept absolute paths.
15467 [\\/]* | ?:[\\/]*)
15468 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015469 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015470 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15471 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15472 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15473 done
15474 test -z "$LD" && LD="$ac_prog"
15475 ;;
15476 "")
15477 # If it fails, then pretend we aren't using GCC.
15478 ac_prog=ld
15479 ;;
15480 *)
15481 # If it is relative, then search for the first ld in PATH.
15482 with_gnu_ld=unknown
15483 ;;
15484 esac
15485elif test "$with_gnu_ld" = yes; then
15486 echo "$as_me:$LINENO: checking for GNU ld" >&5
15487echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15488else
15489 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15490echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15491fi
15492if test "${lt_cv_path_LD+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15494else
15495 if test -z "$LD"; then
15496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15497 for ac_dir in $PATH; do
15498 IFS="$lt_save_ifs"
15499 test -z "$ac_dir" && ac_dir=.
15500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15501 lt_cv_path_LD="$ac_dir/$ac_prog"
15502 # Check to see if the program is GNU ld. I'd rather use --version,
15503 # but apparently some GNU ld's only accept -v.
15504 # Break only if it was the GNU/non-GNU ld that we prefer.
15505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15506 *GNU* | *'with BFD'*)
15507 test "$with_gnu_ld" != no && break
15508 ;;
15509 *)
15510 test "$with_gnu_ld" != yes && break
15511 ;;
15512 esac
15513 fi
15514 done
15515 IFS="$lt_save_ifs"
15516else
15517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15518fi
15519fi
15520
15521LD="$lt_cv_path_LD"
15522if test -n "$LD"; then
15523 echo "$as_me:$LINENO: result: $LD" >&5
15524echo "${ECHO_T}$LD" >&6
15525else
15526 echo "$as_me:$LINENO: result: no" >&5
15527echo "${ECHO_T}no" >&6
15528fi
15529test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15530echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15531 { (exit 1); exit 1; }; }
15532echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15533echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15534if test "${lt_cv_prog_gnu_ld+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536else
15537 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015538case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015539*GNU* | *'with BFD'*)
15540 lt_cv_prog_gnu_ld=yes
15541 ;;
15542*)
15543 lt_cv_prog_gnu_ld=no
15544 ;;
15545esac
15546fi
15547echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15548echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15549with_gnu_ld=$lt_cv_prog_gnu_ld
15550
15551
15552
15553 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15554 # archiving commands below assume that GNU ld is being used.
15555 if test "$with_gnu_ld" = yes; then
15556 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557 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'
15558
15559 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15561
15562 # If archive_cmds runs LD, not CC, wlarc should be empty
15563 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15564 # investigate it a little bit more. (MM)
15565 wlarc='${wl}'
15566
15567 # ancient GNU ld didn't support --whole-archive et. al.
15568 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15569 grep 'no-whole-archive' > /dev/null; then
15570 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15571 else
15572 whole_archive_flag_spec_CXX=
15573 fi
15574 else
15575 with_gnu_ld=no
15576 wlarc=
15577
15578 # A generic and very simple default shared library creation
15579 # command for GNU C++ for the case where it uses the native
15580 # linker, instead of GNU ld. If possible, this setting should
15581 # overridden to take advantage of the native linker features on
15582 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015583 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015584 fi
15585
15586 # Commands to make compiler produce verbose output that lists
15587 # what "hidden" libraries, object files and flags are used when
15588 # linking a shared library.
15589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15590
15591else
15592 GXX=no
15593 with_gnu_ld=no
15594 wlarc=
15595fi
15596
15597# PORTME: fill in a description of your system's C++ link characteristics
15598echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15599echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15600ld_shlibs_CXX=yes
15601case $host_os in
15602 aix3*)
15603 # FIXME: insert proper C++ library support
15604 ld_shlibs_CXX=no
15605 ;;
15606 aix4* | aix5*)
15607 if test "$host_cpu" = ia64; then
15608 # On IA64, the linker does run time linking by default, so we don't
15609 # have to do anything special.
15610 aix_use_runtimelinking=no
15611 exp_sym_flag='-Bexport'
15612 no_entry_flag=""
15613 else
15614 aix_use_runtimelinking=no
15615
15616 # Test if we are trying to use run time linking or normal
15617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15618 # need to do runtime linking.
15619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15620 for ld_flag in $LDFLAGS; do
15621 case $ld_flag in
15622 *-brtl*)
15623 aix_use_runtimelinking=yes
15624 break
15625 ;;
15626 esac
15627 done
15628 esac
15629
15630 exp_sym_flag='-bexport'
15631 no_entry_flag='-bnoentry'
15632 fi
15633
15634 # When large executables or shared objects are built, AIX ld can
15635 # have problems creating the table of contents. If linking a library
15636 # or program results in "error TOC overflow" add -mminimal-toc to
15637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15639
15640 archive_cmds_CXX=''
15641 hardcode_direct_CXX=yes
15642 hardcode_libdir_separator_CXX=':'
15643 link_all_deplibs_CXX=yes
15644
15645 if test "$GXX" = yes; then
15646 case $host_os in aix4.012|aix4.012.*)
15647 # We only want to do this on AIX 4.2 and lower, the check
15648 # below for broken collect2 doesn't work under 4.3+
15649 collect2name=`${CC} -print-prog-name=collect2`
15650 if test -f "$collect2name" && \
15651 strings "$collect2name" | grep resolve_lib_name >/dev/null
15652 then
15653 # We have reworked collect2
15654 hardcode_direct_CXX=yes
15655 else
15656 # We have old collect2
15657 hardcode_direct_CXX=unsupported
15658 # It fails to find uninstalled libraries when the uninstalled
15659 # path is not listed in the libpath. Setting hardcode_minus_L
15660 # to unsupported forces relinking
15661 hardcode_minus_L_CXX=yes
15662 hardcode_libdir_flag_spec_CXX='-L$libdir'
15663 hardcode_libdir_separator_CXX=
15664 fi
15665 esac
15666 shared_flag='-shared'
15667 else
15668 # not using gcc
15669 if test "$host_cpu" = ia64; then
15670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15671 # chokes on -Wl,-G. The following line is correct:
15672 shared_flag='-G'
15673 else
15674 if test "$aix_use_runtimelinking" = yes; then
15675 shared_flag='${wl}-G'
15676 else
15677 shared_flag='${wl}-bM:SRE'
15678 fi
15679 fi
15680 fi
15681
15682 # It seems that -bexpall does not export symbols beginning with
15683 # underscore (_), so it is better to generate a list of symbols to export.
15684 always_export_symbols_CXX=yes
15685 if test "$aix_use_runtimelinking" = yes; then
15686 # Warning - without using the other runtime loading flags (-brtl),
15687 # -berok will link without error, but may produce a broken library.
15688 allow_undefined_flag_CXX='-berok'
15689 # Determine the default libpath from the value encoded in an empty executable.
15690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015691/* confdefs.h. */
15692_ACEOF
15693cat confdefs.h >>conftest.$ac_ext
15694cat >>conftest.$ac_ext <<_ACEOF
15695/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015696
John Criswell47fdd832003-07-14 16:52:07 +000015697int
15698main ()
15699{
15700
15701 ;
15702 return 0;
15703}
15704_ACEOF
15705rm -f conftest.$ac_objext conftest$ac_exeext
15706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015707 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015714 { ac_try='test -z "$ac_cxx_werror_flag"
15715 || test ! -s conftest.err'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; } &&
15721 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727
15728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15729}'`
15730# Check for a 64-bit object if we didn't find anything.
15731if 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; }
15732}'`; fi
15733else
15734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015735sed 's/^/| /' conftest.$ac_ext >&5
15736
John Criswell47fdd832003-07-14 16:52:07 +000015737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015738rm -f conftest.err conftest.$ac_objext \
15739 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15741
15742 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15743
15744 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"
15745 else
15746 if test "$host_cpu" = ia64; then
15747 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15748 allow_undefined_flag_CXX="-z nodefs"
15749 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"
15750 else
15751 # Determine the default libpath from the value encoded in an empty executable.
15752 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015753/* confdefs.h. */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015758
John Criswell47fdd832003-07-14 16:52:07 +000015759int
15760main ()
15761{
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
15768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015769 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015776 { ac_try='test -z "$ac_cxx_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789
15790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15791}'`
15792# Check for a 64-bit object if we didn't find anything.
15793if 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; }
15794}'`; fi
15795else
15796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015797sed 's/^/| /' conftest.$ac_ext >&5
15798
John Criswell47fdd832003-07-14 16:52:07 +000015799fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015800rm -f conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015802if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15803
15804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15805 # Warning - without using the other run time loading flags,
15806 # -berok will link without error, but may produce a broken library.
15807 no_undefined_flag_CXX=' ${wl}-bernotok'
15808 allow_undefined_flag_CXX=' ${wl}-berok'
15809 # -bexpall does not export symbols beginning with underscore (_)
15810 always_export_symbols_CXX=yes
15811 # Exported symbols can be pulled into shared objects from archives
15812 whole_archive_flag_spec_CXX=' '
15813 archive_cmds_need_lc_CXX=yes
15814 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015815 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 +000015816 fi
15817 fi
15818 ;;
15819 chorus*)
15820 case $cc_basename in
15821 *)
15822 # FIXME: insert proper C++ library support
15823 ld_shlibs_CXX=no
15824 ;;
15825 esac
15826 ;;
15827
Reid Spencer2706f8c2004-09-19 23:53:36 +000015828
John Criswell47fdd832003-07-14 16:52:07 +000015829 cygwin* | mingw* | pw32*)
15830 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15831 # as there is no search path for DLLs.
15832 hardcode_libdir_flag_spec_CXX='-L$libdir'
15833 allow_undefined_flag_CXX=unsupported
15834 always_export_symbols_CXX=no
15835 enable_shared_with_static_runtimes_CXX=yes
15836
15837 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15838 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'
15839 # If the export-symbols file already is a .def file (1st line
15840 # is EXPORTS), use it as is; otherwise, prepend...
15841 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842 cp $export_symbols $output_objdir/$soname.def;
15843 else
15844 echo EXPORTS > $output_objdir/$soname.def;
15845 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015846 fi~
15847 $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 +000015848 else
15849 ld_shlibs_CXX=no
15850 fi
15851 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015852 darwin* | rhapsody*)
15853 case "$host_os" in
15854 rhapsody* | darwin1.[012])
15855 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15856 ;;
15857 *) # Darwin 1.3 on
15858 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15859 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15860 else
15861 case ${MACOSX_DEPLOYMENT_TARGET} in
15862 10.[012])
15863 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15864 ;;
15865 10.*)
15866 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15867 ;;
15868 esac
15869 fi
15870 ;;
15871 esac
15872 archive_cmds_need_lc_CXX=no
15873 hardcode_direct_CXX=no
15874 hardcode_automatic_CXX=yes
15875 hardcode_shlibpath_var_CXX=unsupported
15876 whole_archive_flag_spec_CXX=''
15877 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015878
Reid Spencer2706f8c2004-09-19 23:53:36 +000015879 if test "$GXX" = yes ; then
15880 lt_int_apple_cc_single_mod=no
15881 output_verbose_link_cmd='echo'
15882 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15883 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015884 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015885 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015886 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 +000015887 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015888 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 +000015889 fi
15890 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15892 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015893 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 +000015894 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015895 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 +000015896 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015897 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 +000015898 else
15899 case "$cc_basename" in
15900 xlc*)
15901 output_verbose_link_cmd='echo'
15902 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'
15903 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904 # 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 +000015905 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}'
15906 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 +000015907 ;;
15908 *)
15909 ld_shlibs_CXX=no
15910 ;;
15911 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015912 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015913 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015914
15915 dgux*)
15916 case $cc_basename in
15917 ec++)
15918 # FIXME: insert proper C++ library support
15919 ld_shlibs_CXX=no
15920 ;;
15921 ghcx)
15922 # Green Hills C++ Compiler
15923 # FIXME: insert proper C++ library support
15924 ld_shlibs_CXX=no
15925 ;;
15926 *)
15927 # FIXME: insert proper C++ library support
15928 ld_shlibs_CXX=no
15929 ;;
15930 esac
15931 ;;
15932 freebsd12*)
15933 # C++ shared libraries reported to be fairly broken before switch to ELF
15934 ld_shlibs_CXX=no
15935 ;;
15936 freebsd-elf*)
15937 archive_cmds_need_lc_CXX=no
15938 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015939 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015940 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15941 # conventions
15942 ld_shlibs_CXX=yes
15943 ;;
15944 gnu*)
15945 ;;
15946 hpux9*)
15947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15948 hardcode_libdir_separator_CXX=:
15949 export_dynamic_flag_spec_CXX='${wl}-E'
15950 hardcode_direct_CXX=yes
15951 hardcode_minus_L_CXX=yes # Not in the search PATH,
15952 # but as the default
15953 # location of the library.
15954
15955 case $cc_basename in
15956 CC)
15957 # FIXME: insert proper C++ library support
15958 ld_shlibs_CXX=no
15959 ;;
15960 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015961 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 +000015962 # Commands to make compiler produce verbose output that lists
15963 # what "hidden" libraries, object files and flags are used when
15964 # linking a shared library.
15965 #
15966 # There doesn't appear to be a way to prevent this compiler from
15967 # explicitly linking system object files so we need to strip them
15968 # from the output so that they don't get included in the library
15969 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015970 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 +000015971 ;;
15972 *)
15973 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015974 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 +000015975 else
15976 # FIXME: insert proper C++ library support
15977 ld_shlibs_CXX=no
15978 fi
15979 ;;
15980 esac
15981 ;;
15982 hpux10*|hpux11*)
15983 if test $with_gnu_ld = no; then
15984 case "$host_cpu" in
15985 hppa*64*)
15986 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15987 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15988 hardcode_libdir_separator_CXX=:
15989 ;;
15990 ia64*)
15991 hardcode_libdir_flag_spec_CXX='-L$libdir'
15992 ;;
15993 *)
15994 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15995 hardcode_libdir_separator_CXX=:
15996 export_dynamic_flag_spec_CXX='${wl}-E'
15997 ;;
15998 esac
15999 fi
16000 case "$host_cpu" in
16001 hppa*64*)
16002 hardcode_direct_CXX=no
16003 hardcode_shlibpath_var_CXX=no
16004 ;;
16005 ia64*)
16006 hardcode_direct_CXX=no
16007 hardcode_shlibpath_var_CXX=no
16008 hardcode_minus_L_CXX=yes # Not in the search PATH,
16009 # but as the default
16010 # location of the library.
16011 ;;
16012 *)
16013 hardcode_direct_CXX=yes
16014 hardcode_minus_L_CXX=yes # Not in the search PATH,
16015 # but as the default
16016 # location of the library.
16017 ;;
16018 esac
16019
16020 case $cc_basename in
16021 CC)
16022 # FIXME: insert proper C++ library support
16023 ld_shlibs_CXX=no
16024 ;;
16025 aCC)
16026 case "$host_cpu" in
16027 hppa*64*|ia64*)
16028 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16029 ;;
16030 *)
16031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16032 ;;
16033 esac
16034 # Commands to make compiler produce verbose output that lists
16035 # what "hidden" libraries, object files and flags are used when
16036 # linking a shared library.
16037 #
16038 # There doesn't appear to be a way to prevent this compiler from
16039 # explicitly linking system object files so we need to strip them
16040 # from the output so that they don't get included in the library
16041 # dependencies.
16042 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'
16043 ;;
16044 *)
16045 if test "$GXX" = yes; then
16046 if test $with_gnu_ld = no; then
16047 case "$host_cpu" in
16048 ia64*|hppa*64*)
16049 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16050 ;;
16051 *)
16052 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'
16053 ;;
16054 esac
16055 fi
16056 else
16057 # FIXME: insert proper C++ library support
16058 ld_shlibs_CXX=no
16059 fi
16060 ;;
16061 esac
16062 ;;
16063 irix5* | irix6*)
16064 case $cc_basename in
16065 CC)
16066 # SGI C++
16067 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'
16068
16069 # Archives containing C++ object files must be created using
16070 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16071 # necessary to make sure instantiated templates are included
16072 # in the archive.
16073 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16074 ;;
16075 *)
16076 if test "$GXX" = yes; then
16077 if test "$with_gnu_ld" = no; then
16078 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'
16079 else
16080 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'
16081 fi
16082 fi
16083 link_all_deplibs_CXX=yes
16084 ;;
16085 esac
16086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16087 hardcode_libdir_separator_CXX=:
16088 ;;
16089 linux*)
16090 case $cc_basename in
16091 KCC)
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
16093
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
16097 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'
16098 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'
16099 # Commands to make compiler produce verbose output that lists
16100 # what "hidden" libraries, object files and flags are used when
16101 # linking a shared library.
16102 #
16103 # There doesn't appear to be a way to prevent this compiler from
16104 # explicitly linking system object files so we need to strip them
16105 # from the output so that they don't get included in the library
16106 # dependencies.
16107 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'
16108
16109 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16111
16112 # Archives containing C++ object files must be created using
16113 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16114 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16115 ;;
16116 icpc)
16117 # Intel C++
16118 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119 # version 8.0 and above of icpc choke on multiply defined symbols
16120 # if we add $predep_objects and $postdep_objects, however 7.1 and
16121 # earlier do not add the objects themselves.
16122 case `$CC -V 2>&1` in
16123 *"Version 7."*)
16124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125 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'
16126 ;;
16127 *) # Version 8.0 or newer
16128 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16130 ;;
16131 esac
John Criswell47fdd832003-07-14 16:52:07 +000016132 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16134 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16135 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16136 ;;
16137 cxx)
16138 # Compaq C++
16139 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140 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'
16141
16142 runpath_var=LD_RUN_PATH
16143 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16144 hardcode_libdir_separator_CXX=:
16145
16146 # Commands to make compiler produce verbose output that lists
16147 # what "hidden" libraries, object files and flags are used when
16148 # linking a shared library.
16149 #
16150 # There doesn't appear to be a way to prevent this compiler from
16151 # explicitly linking system object files so we need to strip them
16152 # from the output so that they don't get included in the library
16153 # dependencies.
16154 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'
16155 ;;
16156 esac
16157 ;;
16158 lynxos*)
16159 # FIXME: insert proper C++ library support
16160 ld_shlibs_CXX=no
16161 ;;
16162 m88k*)
16163 # FIXME: insert proper C++ library support
16164 ld_shlibs_CXX=no
16165 ;;
16166 mvs*)
16167 case $cc_basename in
16168 cxx)
16169 # FIXME: insert proper C++ library support
16170 ld_shlibs_CXX=no
16171 ;;
16172 *)
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 ;;
16176 esac
16177 ;;
16178 netbsd*)
16179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16180 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16181 wlarc=
16182 hardcode_libdir_flag_spec_CXX='-R$libdir'
16183 hardcode_direct_CXX=yes
16184 hardcode_shlibpath_var_CXX=no
16185 fi
16186 # Workaround some broken pre-1.5 toolchains
16187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16188 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016189 openbsd2*)
16190 # C++ shared libraries are fairly broken
16191 ld_shlibs_CXX=no
16192 ;;
16193 openbsd*)
16194 hardcode_direct_CXX=yes
16195 hardcode_shlibpath_var_CXX=no
16196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16199 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16200 export_dynamic_flag_spec_CXX='${wl}-E'
16201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16202 fi
16203 output_verbose_link_cmd='echo'
16204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016205 osf3*)
16206 case $cc_basename in
16207 KCC)
16208 # Kuck and Associates, Inc. (KAI) C++ Compiler
16209
16210 # KCC will only create a shared library if the output file
16211 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16212 # to its proper name (with version) after linking.
16213 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'
16214
16215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16216 hardcode_libdir_separator_CXX=:
16217
16218 # Archives containing C++ object files must be created using
16219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16221
16222 ;;
16223 RCC)
16224 # Rational C++ 2.4.1
16225 # FIXME: insert proper C++ library support
16226 ld_shlibs_CXX=no
16227 ;;
16228 cxx)
16229 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16230 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'
16231
16232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16233 hardcode_libdir_separator_CXX=:
16234
16235 # Commands to make compiler produce verbose output that lists
16236 # what "hidden" libraries, object files and flags are used when
16237 # linking a shared library.
16238 #
16239 # There doesn't appear to be a way to prevent this compiler from
16240 # explicitly linking system object files so we need to strip them
16241 # from the output so that they don't get included in the library
16242 # dependencies.
16243 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'
16244 ;;
16245 *)
16246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16247 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16248 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'
16249
16250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16251 hardcode_libdir_separator_CXX=:
16252
16253 # Commands to make compiler produce verbose output that lists
16254 # what "hidden" libraries, object files and flags are used when
16255 # linking a shared library.
16256 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16257
16258 else
16259 # FIXME: insert proper C++ library support
16260 ld_shlibs_CXX=no
16261 fi
16262 ;;
16263 esac
16264 ;;
16265 osf4* | osf5*)
16266 case $cc_basename in
16267 KCC)
16268 # Kuck and Associates, Inc. (KAI) C++ Compiler
16269
16270 # KCC will only create a shared library if the output file
16271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16272 # to its proper name (with version) after linking.
16273 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'
16274
16275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16276 hardcode_libdir_separator_CXX=:
16277
16278 # Archives containing C++ object files must be created using
16279 # the KAI C++ compiler.
16280 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16281 ;;
16282 RCC)
16283 # Rational C++ 2.4.1
16284 # FIXME: insert proper C++ library support
16285 ld_shlibs_CXX=no
16286 ;;
16287 cxx)
16288 allow_undefined_flag_CXX=' -expect_unresolved \*'
16289 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 +000016290 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16291 echo "-hidden">> $lib.exp~
16292 $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~
16293 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016294
16295 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16296 hardcode_libdir_separator_CXX=:
16297
16298 # Commands to make compiler produce verbose output that lists
16299 # what "hidden" libraries, object files and flags are used when
16300 # linking a shared library.
16301 #
16302 # There doesn't appear to be a way to prevent this compiler from
16303 # explicitly linking system object files so we need to strip them
16304 # from the output so that they don't get included in the library
16305 # dependencies.
16306 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'
16307 ;;
16308 *)
16309 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16310 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16311 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'
16312
16313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16314 hardcode_libdir_separator_CXX=:
16315
16316 # Commands to make compiler produce verbose output that lists
16317 # what "hidden" libraries, object files and flags are used when
16318 # linking a shared library.
16319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16320
16321 else
16322 # FIXME: insert proper C++ library support
16323 ld_shlibs_CXX=no
16324 fi
16325 ;;
16326 esac
16327 ;;
16328 psos*)
16329 # FIXME: insert proper C++ library support
16330 ld_shlibs_CXX=no
16331 ;;
16332 sco*)
16333 archive_cmds_need_lc_CXX=no
16334 case $cc_basename in
16335 CC)
16336 # FIXME: insert proper C++ library support
16337 ld_shlibs_CXX=no
16338 ;;
16339 *)
16340 # FIXME: insert proper C++ library support
16341 ld_shlibs_CXX=no
16342 ;;
16343 esac
16344 ;;
16345 sunos4*)
16346 case $cc_basename in
16347 CC)
16348 # Sun C++ 4.x
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16351 ;;
16352 lcc)
16353 # Lucid
16354 # FIXME: insert proper C++ library support
16355 ld_shlibs_CXX=no
16356 ;;
16357 *)
16358 # FIXME: insert proper C++ library support
16359 ld_shlibs_CXX=no
16360 ;;
16361 esac
16362 ;;
16363 solaris*)
16364 case $cc_basename in
16365 CC)
16366 # Sun C++ 4.2, 5.x and Centerline C++
16367 no_undefined_flag_CXX=' -zdefs'
16368 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 +000016369 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16370 $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 +000016371
16372 hardcode_libdir_flag_spec_CXX='-R$libdir'
16373 hardcode_shlibpath_var_CXX=no
16374 case $host_os in
16375 solaris2.0-5 | solaris2.0-5.*) ;;
16376 *)
16377 # The C++ compiler is used as linker so we must use $wl
16378 # flag to pass the commands to the underlying system
16379 # linker.
16380 # Supported since Solaris 2.6 (maybe 2.5.1?)
16381 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16382 ;;
16383 esac
16384 link_all_deplibs_CXX=yes
16385
16386 # Commands to make compiler produce verbose output that lists
16387 # what "hidden" libraries, object files and flags are used when
16388 # linking a shared library.
16389 #
16390 # There doesn't appear to be a way to prevent this compiler from
16391 # explicitly linking system object files so we need to strip them
16392 # from the output so that they don't get included in the library
16393 # dependencies.
16394 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'
16395
16396 # Archives containing C++ object files must be created using
16397 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16398 # necessary to make sure instantiated templates are included
16399 # in the archive.
16400 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16401 ;;
16402 gcx)
16403 # Green Hills C++ Compiler
16404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16405
16406 # The C++ compiler must be used to create the archive.
16407 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16408 ;;
16409 *)
16410 # GNU C++ compiler with Solaris linker
16411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16412 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16413 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016414 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 +000016415 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16416 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16417
John Criswell47fdd832003-07-14 16:52:07 +000016418 # Commands to make compiler produce verbose output that lists
16419 # what "hidden" libraries, object files and flags are used when
16420 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016421 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016422 else
16423 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16424 # platform.
16425 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 +000016426 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16427 $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 +000016428
16429 # Commands to make compiler produce verbose output that lists
16430 # what "hidden" libraries, object files and flags are used when
16431 # linking a shared library.
16432 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16433 fi
16434
16435 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16436 fi
16437 ;;
16438 esac
16439 ;;
16440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16441 archive_cmds_need_lc_CXX=no
16442 ;;
16443 tandem*)
16444 case $cc_basename in
16445 NCC)
16446 # NonStop-UX NCC 3.20
16447 # FIXME: insert proper C++ library support
16448 ld_shlibs_CXX=no
16449 ;;
16450 *)
16451 # FIXME: insert proper C++ library support
16452 ld_shlibs_CXX=no
16453 ;;
16454 esac
16455 ;;
16456 vxworks*)
16457 # FIXME: insert proper C++ library support
16458 ld_shlibs_CXX=no
16459 ;;
16460 *)
16461 # FIXME: insert proper C++ library support
16462 ld_shlibs_CXX=no
16463 ;;
16464esac
16465echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16466echo "${ECHO_T}$ld_shlibs_CXX" >&6
16467test "$ld_shlibs_CXX" = no && can_build_shared=no
16468
16469GCC_CXX="$GXX"
16470LD_CXX="$LD"
16471
John Criswell47fdd832003-07-14 16:52:07 +000016472
16473cat > conftest.$ac_ext <<EOF
16474class Foo
16475{
16476public:
16477 Foo (void) { a = 0; }
16478private:
16479 int a;
16480};
16481EOF
16482
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; then
16488 # Parse the compiler output and extract the necessary
16489 # objects, libraries and library flags.
16490
16491 # Sentinel used to keep track of whether or not we are before
16492 # the conftest object file.
16493 pre_test_object_deps_done=no
16494
16495 # The `*' in the case matches for architectures that use `case' in
16496 # $output_verbose_cmd can trigger glob expansion during the loop
16497 # eval without this substitution.
16498 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16499
16500 for p in `eval $output_verbose_link_cmd`; do
16501 case $p in
16502
16503 -L* | -R* | -l*)
16504 # Some compilers place space between "-{L,R}" and the path.
16505 # Remove the space.
16506 if test $p = "-L" \
16507 || test $p = "-R"; then
16508 prev=$p
16509 continue
16510 else
16511 prev=
16512 fi
16513
16514 if test "$pre_test_object_deps_done" = no; then
16515 case $p in
16516 -L* | -R*)
16517 # Internal compiler library paths should come after those
16518 # provided the user. The postdeps already come after the
16519 # user supplied libs so there is no need to process them.
16520 if test -z "$compiler_lib_search_path_CXX"; then
16521 compiler_lib_search_path_CXX="${prev}${p}"
16522 else
16523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16524 fi
16525 ;;
16526 # The "-l" case would never come before the object being
16527 # linked, so don't bother handling this case.
16528 esac
16529 else
16530 if test -z "$postdeps_CXX"; then
16531 postdeps_CXX="${prev}${p}"
16532 else
16533 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16534 fi
16535 fi
16536 ;;
16537
16538 *.$objext)
16539 # This assumes that the test object file only shows up
16540 # once in the compiler output.
16541 if test "$p" = "conftest.$objext"; then
16542 pre_test_object_deps_done=yes
16543 continue
16544 fi
16545
16546 if test "$pre_test_object_deps_done" = no; then
16547 if test -z "$predep_objects_CXX"; then
16548 predep_objects_CXX="$p"
16549 else
16550 predep_objects_CXX="$predep_objects_CXX $p"
16551 fi
16552 else
16553 if test -z "$postdep_objects_CXX"; then
16554 postdep_objects_CXX="$p"
16555 else
16556 postdep_objects_CXX="$postdep_objects_CXX $p"
16557 fi
16558 fi
16559 ;;
16560
16561 *) ;; # Ignore the rest.
16562
16563 esac
16564 done
16565
16566 # Clean up.
16567 rm -f a.out a.exe
16568else
16569 echo "libtool.m4: error: problem compiling CXX test program"
16570fi
16571
16572$rm -f confest.$objext
16573
16574case " $postdeps_CXX " in
16575*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16576esac
16577
16578lt_prog_compiler_wl_CXX=
16579lt_prog_compiler_pic_CXX=
16580lt_prog_compiler_static_CXX=
16581
16582echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16583echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16584
16585 # C++ specific cases for pic, static, wl, etc.
16586 if test "$GXX" = yes; then
16587 lt_prog_compiler_wl_CXX='-Wl,'
16588 lt_prog_compiler_static_CXX='-static'
16589
16590 case $host_os in
16591 aix*)
16592 # All AIX code is PIC.
16593 if test "$host_cpu" = ia64; then
16594 # AIX 5 now supports IA64 processor
16595 lt_prog_compiler_static_CXX='-Bstatic'
16596 fi
16597 ;;
16598 amigaos*)
16599 # FIXME: we need at least 68020 code to build shared libraries, but
16600 # adding the `-m68020' flag to GCC prevents building anything better,
16601 # like `-m68040'.
16602 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16603 ;;
16604 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16605 # PIC is the default for these OSes.
16606 ;;
16607 mingw* | os2* | pw32*)
16608 # This hack is so that the source file can tell whether it is being
16609 # built for inclusion in a dll (and should export symbols for example).
16610 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16611 ;;
16612 darwin* | rhapsody*)
16613 # PIC is the default on this platform
16614 # Common symbols not allowed in MH_DYLIB files
16615 lt_prog_compiler_pic_CXX='-fno-common'
16616 ;;
16617 *djgpp*)
16618 # DJGPP does not support shared libraries at all
16619 lt_prog_compiler_pic_CXX=
16620 ;;
16621 sysv4*MP*)
16622 if test -d /usr/nec; then
16623 lt_prog_compiler_pic_CXX=-Kconform_pic
16624 fi
16625 ;;
16626 hpux*)
16627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16628 # not for PA HP-UX.
16629 case "$host_cpu" in
16630 hppa*64*|ia64*)
16631 ;;
16632 *)
16633 lt_prog_compiler_pic_CXX='-fPIC'
16634 ;;
16635 esac
16636 ;;
16637 *)
16638 lt_prog_compiler_pic_CXX='-fPIC'
16639 ;;
16640 esac
16641 else
16642 case $host_os in
16643 aix4* | aix5*)
16644 # All AIX code is PIC.
16645 if test "$host_cpu" = ia64; then
16646 # AIX 5 now supports IA64 processor
16647 lt_prog_compiler_static_CXX='-Bstatic'
16648 else
16649 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16650 fi
16651 ;;
16652 chorus*)
16653 case $cc_basename in
16654 cxch68)
16655 # Green Hills C++ Compiler
16656 # _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"
16657 ;;
16658 esac
16659 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016660 darwin*)
16661 # PIC is the default on this platform
16662 # Common symbols not allowed in MH_DYLIB files
16663 case "$cc_basename" in
16664 xlc*)
16665 lt_prog_compiler_pic_CXX='-qnocommon'
16666 lt_prog_compiler_wl_CXX='-Wl,'
16667 ;;
16668 esac
16669 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016670 dgux*)
16671 case $cc_basename in
16672 ec++)
16673 lt_prog_compiler_pic_CXX='-KPIC'
16674 ;;
16675 ghcx)
16676 # Green Hills C++ Compiler
16677 lt_prog_compiler_pic_CXX='-pic'
16678 ;;
16679 *)
16680 ;;
16681 esac
16682 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016683 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016684 # FreeBSD uses GNU C++
16685 ;;
16686 hpux9* | hpux10* | hpux11*)
16687 case $cc_basename in
16688 CC)
16689 lt_prog_compiler_wl_CXX='-Wl,'
16690 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16691 if test "$host_cpu" != ia64; then
16692 lt_prog_compiler_pic_CXX='+Z'
16693 fi
16694 ;;
16695 aCC)
16696 lt_prog_compiler_wl_CXX='-Wl,'
16697 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16698 case "$host_cpu" in
16699 hppa*64*|ia64*)
16700 # +Z the default
16701 ;;
16702 *)
16703 lt_prog_compiler_pic_CXX='+Z'
16704 ;;
16705 esac
16706 ;;
16707 *)
16708 ;;
16709 esac
16710 ;;
16711 irix5* | irix6* | nonstopux*)
16712 case $cc_basename in
16713 CC)
16714 lt_prog_compiler_wl_CXX='-Wl,'
16715 lt_prog_compiler_static_CXX='-non_shared'
16716 # CC pic flag -KPIC is the default.
16717 ;;
16718 *)
16719 ;;
16720 esac
16721 ;;
16722 linux*)
16723 case $cc_basename in
16724 KCC)
16725 # KAI C++ Compiler
16726 lt_prog_compiler_wl_CXX='--backend -Wl,'
16727 lt_prog_compiler_pic_CXX='-fPIC'
16728 ;;
16729 icpc)
16730 # Intel C++
16731 lt_prog_compiler_wl_CXX='-Wl,'
16732 lt_prog_compiler_pic_CXX='-KPIC'
16733 lt_prog_compiler_static_CXX='-static'
16734 ;;
16735 cxx)
16736 # Compaq C++
16737 # Make sure the PIC flag is empty. It appears that all Alpha
16738 # Linux and Compaq Tru64 Unix objects are PIC.
16739 lt_prog_compiler_pic_CXX=
16740 lt_prog_compiler_static_CXX='-non_shared'
16741 ;;
16742 *)
16743 ;;
16744 esac
16745 ;;
16746 lynxos*)
16747 ;;
16748 m88k*)
16749 ;;
16750 mvs*)
16751 case $cc_basename in
16752 cxx)
16753 lt_prog_compiler_pic_CXX='-W c,exportall'
16754 ;;
16755 *)
16756 ;;
16757 esac
16758 ;;
16759 netbsd*)
16760 ;;
16761 osf3* | osf4* | osf5*)
16762 case $cc_basename in
16763 KCC)
16764 lt_prog_compiler_wl_CXX='--backend -Wl,'
16765 ;;
16766 RCC)
16767 # Rational C++ 2.4.1
16768 lt_prog_compiler_pic_CXX='-pic'
16769 ;;
16770 cxx)
16771 # Digital/Compaq C++
16772 lt_prog_compiler_wl_CXX='-Wl,'
16773 # Make sure the PIC flag is empty. It appears that all Alpha
16774 # Linux and Compaq Tru64 Unix objects are PIC.
16775 lt_prog_compiler_pic_CXX=
16776 lt_prog_compiler_static_CXX='-non_shared'
16777 ;;
16778 *)
16779 ;;
16780 esac
16781 ;;
16782 psos*)
16783 ;;
16784 sco*)
16785 case $cc_basename in
16786 CC)
16787 lt_prog_compiler_pic_CXX='-fPIC'
16788 ;;
16789 *)
16790 ;;
16791 esac
16792 ;;
16793 solaris*)
16794 case $cc_basename in
16795 CC)
16796 # Sun C++ 4.2, 5.x and Centerline C++
16797 lt_prog_compiler_pic_CXX='-KPIC'
16798 lt_prog_compiler_static_CXX='-Bstatic'
16799 lt_prog_compiler_wl_CXX='-Qoption ld '
16800 ;;
16801 gcx)
16802 # Green Hills C++ Compiler
16803 lt_prog_compiler_pic_CXX='-PIC'
16804 ;;
16805 *)
16806 ;;
16807 esac
16808 ;;
16809 sunos4*)
16810 case $cc_basename in
16811 CC)
16812 # Sun C++ 4.x
16813 lt_prog_compiler_pic_CXX='-pic'
16814 lt_prog_compiler_static_CXX='-Bstatic'
16815 ;;
16816 lcc)
16817 # Lucid
16818 lt_prog_compiler_pic_CXX='-pic'
16819 ;;
16820 *)
16821 ;;
16822 esac
16823 ;;
16824 tandem*)
16825 case $cc_basename in
16826 NCC)
16827 # NonStop-UX NCC 3.20
16828 lt_prog_compiler_pic_CXX='-KPIC'
16829 ;;
16830 *)
16831 ;;
16832 esac
16833 ;;
16834 unixware*)
16835 ;;
16836 vxworks*)
16837 ;;
16838 *)
16839 lt_prog_compiler_can_build_shared_CXX=no
16840 ;;
16841 esac
16842 fi
16843
16844echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16845echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16846
16847#
16848# Check to make sure the PIC flag actually works.
16849#
16850if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016851
16852echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016853echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16854if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16856else
16857 lt_prog_compiler_pic_works_CXX=no
16858 ac_outfile=conftest.$ac_objext
16859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16860 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16861 # Insert the option either (1) after the last *FLAGS variable, or
16862 # (2) before a word containing "conftest.", or (3) at the end.
16863 # Note that $ac_compile itself does not contain backslashes and begins
16864 # with a dollar sign (not a hyphen), so the echo should work correctly.
16865 # The option is referenced via a variable to avoid confusing sed.
16866 lt_compile=`echo "$ac_compile" | $SED \
16867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16869 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000016870 (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016871 (eval "$lt_compile" 2>conftest.err)
16872 ac_status=$?
16873 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000016874 echo "$as_me:16874: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016875 if (exit $ac_status) && test -s "$ac_outfile"; then
16876 # The compiler can only warn and ignore the option if not recognized
16877 # So say no if there are warnings
16878 if test ! -s conftest.err; then
16879 lt_prog_compiler_pic_works_CXX=yes
16880 fi
16881 fi
16882 $rm conftest*
16883
16884fi
16885echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16886echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16887
16888if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16889 case $lt_prog_compiler_pic_CXX in
16890 "" | " "*) ;;
16891 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16892 esac
16893else
16894 lt_prog_compiler_pic_CXX=
16895 lt_prog_compiler_can_build_shared_CXX=no
16896fi
16897
16898fi
16899case "$host_os" in
16900 # For platforms which do not support PIC, -DPIC is meaningless:
16901 *djgpp*)
16902 lt_prog_compiler_pic_CXX=
16903 ;;
16904 *)
16905 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16906 ;;
16907esac
16908
16909echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16910echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16911if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913else
16914 lt_cv_prog_compiler_c_o_CXX=no
16915 $rm -r conftest 2>/dev/null
16916 mkdir conftest
16917 cd conftest
16918 mkdir out
16919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16920
John Criswell47fdd832003-07-14 16:52:07 +000016921 lt_compiler_flag="-o out/conftest2.$ac_objext"
16922 # Insert the option either (1) after the last *FLAGS variable, or
16923 # (2) before a word containing "conftest.", or (3) at the end.
16924 # Note that $ac_compile itself does not contain backslashes and begins
16925 # with a dollar sign (not a hyphen), so the echo should work correctly.
16926 lt_compile=`echo "$ac_compile" | $SED \
16927 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16929 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000016930 (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016931 (eval "$lt_compile" 2>out/conftest.err)
16932 ac_status=$?
16933 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000016934 echo "$as_me:16934: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16936 then
16937 # The compiler can only warn and ignore the option if not recognized
16938 # So say no if there are warnings
16939 if test ! -s out/conftest.err; then
16940 lt_cv_prog_compiler_c_o_CXX=yes
16941 fi
16942 fi
16943 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016944 $rm conftest*
16945 # SGI C++ compiler will create directory out/ii_files/ for
16946 # template instantiation
16947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16948 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016949 cd ..
16950 rmdir conftest
16951 $rm conftest*
16952
16953fi
16954echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16955echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16956
16957
16958hard_links="nottested"
16959if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16960 # do not overwrite the value of need_locks provided by the user
16961 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16962echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16963 hard_links=yes
16964 $rm conftest*
16965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16966 touch conftest.a
16967 ln conftest.a conftest.b 2>&5 || hard_links=no
16968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16969 echo "$as_me:$LINENO: result: $hard_links" >&5
16970echo "${ECHO_T}$hard_links" >&6
16971 if test "$hard_links" = no; then
16972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16973echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16974 need_locks=warn
16975 fi
16976else
16977 need_locks=no
16978fi
16979
16980echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16981echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16982
16983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16984 case $host_os in
16985 aix4* | aix5*)
16986 # If we're using GNU nm, then we don't want the "-C" option.
16987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16989 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'
16990 else
16991 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'
16992 fi
16993 ;;
16994 pw32*)
16995 export_symbols_cmds_CXX="$ltdll_cmds"
16996 ;;
16997 cygwin* | mingw*)
16998 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16999 ;;
17000 *)
17001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17002 ;;
17003 esac
17004
17005echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17006echo "${ECHO_T}$ld_shlibs_CXX" >&6
17007test "$ld_shlibs_CXX" = no && can_build_shared=no
17008
17009variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17010if test "$GCC" = yes; then
17011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17012fi
17013
17014#
17015# Do we need to explicitly link libc?
17016#
17017case "x$archive_cmds_need_lc_CXX" in
17018x|xyes)
17019 # Assume -lc should be added
17020 archive_cmds_need_lc_CXX=yes
17021
17022 if test "$enable_shared" = yes && test "$GCC" = yes; then
17023 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017024 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017025 # FIXME: we may have to deal with multi-command sequences.
17026 ;;
17027 '$CC '*)
17028 # Test whether the compiler implicitly links with -lc since on some
17029 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17030 # to ld, don't add -lc before -lgcc.
17031 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17032echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17033 $rm conftest*
17034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17035
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } 2>conftest.err; then
17041 soname=conftest
17042 lib=conftest
17043 libobjs=conftest.$ac_objext
17044 deplibs=
17045 wl=$lt_prog_compiler_wl_CXX
17046 compiler_flags=-v
17047 linker_flags=-v
17048 verstring=
17049 output_objdir=.
17050 libname=conftest
17051 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17052 allow_undefined_flag_CXX=
17053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17054 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }
17058 then
17059 archive_cmds_need_lc_CXX=no
17060 else
17061 archive_cmds_need_lc_CXX=yes
17062 fi
17063 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17064 else
17065 cat conftest.err 1>&5
17066 fi
17067 $rm conftest*
17068 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17069echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17070 ;;
17071 esac
17072 fi
17073 ;;
17074esac
17075
John Criswell47fdd832003-07-14 16:52:07 +000017076echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17077echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17078library_names_spec=
17079libname_spec='lib$name'
17080soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017081shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017082postinstall_cmds=
17083postuninstall_cmds=
17084finish_cmds=
17085finish_eval=
17086shlibpath_var=
17087shlibpath_overrides_runpath=unknown
17088version_type=none
17089dynamic_linker="$host_os ld.so"
17090sys_lib_dlsearch_path_spec="/lib /usr/lib"
17091if test "$GCC" = yes; then
17092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17093 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17094 # if the path contains ";" then we assume it to be the separator
17095 # otherwise default to the standard path separator (i.e. ":") - it is
17096 # assumed that no part of a normal pathname contains ";" but that should
17097 # okay in the real world where ";" in dirpaths is itself problematic.
17098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17099 else
17100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17101 fi
17102else
17103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17104fi
17105need_lib_prefix=unknown
17106hardcode_into_libs=no
17107
17108# when you set need_version to no, make sure it does not cause -set_version
17109# flags to be left without arguments
17110need_version=unknown
17111
17112case $host_os in
17113aix3*)
17114 version_type=linux
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17116 shlibpath_var=LIBPATH
17117
17118 # AIX 3 has no versioning support, so we append a major version to the name.
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 ;;
17121
17122aix4* | aix5*)
17123 version_type=linux
17124 need_lib_prefix=no
17125 need_version=no
17126 hardcode_into_libs=yes
17127 if test "$host_cpu" = ia64; then
17128 # AIX 5 supports IA64
17129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 else
17132 # With GCC up to 2.95.x, collect2 would create an import file
17133 # for dependence libraries. The import file would start with
17134 # the line `#! .'. This would cause the generated library to
17135 # depend on `.', always an invalid library. This was fixed in
17136 # development snapshots of GCC prior to 3.0.
17137 case $host_os in
17138 aix4 | aix4.[01] | aix4.[01].*)
17139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17140 echo ' yes '
17141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17142 :
17143 else
17144 can_build_shared=no
17145 fi
17146 ;;
17147 esac
17148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17149 # soname into executable. Probably we can add versioning support to
17150 # collect2, so additional links can be useful in future.
17151 if test "$aix_use_runtimelinking" = yes; then
17152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17153 # instead of lib<name>.a to let people know that these are not
17154 # typical AIX shared libraries.
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 else
17157 # We preserve .a as extension for shared libraries through AIX4.2
17158 # and later when we are not doing run time linking.
17159 library_names_spec='${libname}${release}.a $libname.a'
17160 soname_spec='${libname}${release}${shared_ext}$major'
17161 fi
17162 shlibpath_var=LIBPATH
17163 fi
17164 ;;
17165
17166amigaos*)
17167 library_names_spec='$libname.ixlibrary $libname.a'
17168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017169 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 +000017170 ;;
17171
17172beos*)
17173 library_names_spec='${libname}${shared_ext}'
17174 dynamic_linker="$host_os ld.so"
17175 shlibpath_var=LIBRARY_PATH
17176 ;;
17177
Reid Spencer2706f8c2004-09-19 23:53:36 +000017178bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017179 version_type=linux
17180 need_version=no
17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182 soname_spec='${libname}${release}${shared_ext}$major'
17183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17187 # the default ld.so.conf also contains /usr/contrib/lib and
17188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17189 # libtool to hard-code these into programs
17190 ;;
17191
17192cygwin* | mingw* | pw32*)
17193 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017194 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017195 need_version=no
17196 need_lib_prefix=no
17197
17198 case $GCC,$host_os in
17199 yes,cygwin* | yes,mingw* | yes,pw32*)
17200 library_names_spec='$libname.dll.a'
17201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017202 postinstall_cmds='base_file=`basename \${file}`~
17203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17204 dldir=$destdir/`dirname \$dlpath`~
17205 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017206 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17208 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017209 $rm \$dlpath'
17210 shlibpath_overrides_runpath=yes
17211
17212 case $host_os in
17213 cygwin*)
17214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17215 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 +000017216 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017217 ;;
17218 mingw*)
17219 # MinGW DLLs use traditional 'lib' prefix
17220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17221 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17222 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17223 # It is most probably a Windows format PATH printed by
17224 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17225 # path with ; separators, and with drive letters. We can handle the
17226 # drive letters (cygwin fileutils understands them), so leave them,
17227 # especially as we might pass files found there to a mingw objdump,
17228 # which wouldn't understand a cygwinified path. Ahh.
17229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17230 else
17231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17232 fi
17233 ;;
17234 pw32*)
17235 # pw32 DLLs use 'pw' prefix rather than 'lib'
17236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17237 ;;
17238 esac
17239 ;;
17240
17241 *)
17242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17243 ;;
17244 esac
17245 dynamic_linker='Win32 ld.exe'
17246 # FIXME: first we should search . and the directory the executable is in
17247 shlibpath_var=PATH
17248 ;;
17249
17250darwin* | rhapsody*)
17251 dynamic_linker="$host_os dyld"
17252 version_type=darwin
17253 need_lib_prefix=no
17254 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017255 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017256 soname_spec='${libname}${release}${major}$shared_ext'
17257 shlibpath_overrides_runpath=yes
17258 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017259 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017260 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017261 if test "$GCC" = yes; then
17262 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"`
17263 else
17264 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017265 fi
17266 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17267 ;;
17268
17269dgux*)
17270 version_type=linux
17271 need_lib_prefix=no
17272 need_version=no
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 ;;
17277
17278freebsd1*)
17279 dynamic_linker=no
17280 ;;
17281
Reid Spencer2706f8c2004-09-19 23:53:36 +000017282kfreebsd*-gnu)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=no
17290 hardcode_into_libs=yes
17291 dynamic_linker='GNU ld.so'
17292 ;;
17293
John Criswell47fdd832003-07-14 16:52:07 +000017294freebsd*)
17295 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17296 version_type=freebsd-$objformat
17297 case $version_type in
17298 freebsd-elf*)
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17300 need_version=no
17301 need_lib_prefix=no
17302 ;;
17303 freebsd-*)
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17305 need_version=yes
17306 ;;
17307 esac
17308 shlibpath_var=LD_LIBRARY_PATH
17309 case $host_os in
17310 freebsd2*)
17311 shlibpath_overrides_runpath=yes
17312 ;;
17313 freebsd3.01* | freebsdelf3.01*)
17314 shlibpath_overrides_runpath=yes
17315 hardcode_into_libs=yes
17316 ;;
17317 *) # from 3.2 on
17318 shlibpath_overrides_runpath=no
17319 hardcode_into_libs=yes
17320 ;;
17321 esac
17322 ;;
17323
17324gnu*)
17325 version_type=linux
17326 need_lib_prefix=no
17327 need_version=no
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 hardcode_into_libs=yes
17332 ;;
17333
17334hpux9* | hpux10* | hpux11*)
17335 # Give a soname corresponding to the major version so that dld.sl refuses to
17336 # link against other versions.
17337 version_type=sunos
17338 need_lib_prefix=no
17339 need_version=no
17340 case "$host_cpu" in
17341 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017342 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017343 hardcode_into_libs=yes
17344 dynamic_linker="$host_os dld.so"
17345 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 if test "X$HPUX_IA64_MODE" = X32; then
17350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17351 else
17352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17353 fi
17354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355 ;;
17356 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017357 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017358 hardcode_into_libs=yes
17359 dynamic_linker="$host_os dld.sl"
17360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366 ;;
17367 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017368 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017369 dynamic_linker="$host_os dld.sl"
17370 shlibpath_var=SHLIB_PATH
17371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 ;;
17375 esac
17376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17377 postinstall_cmds='chmod 555 $lib'
17378 ;;
17379
17380irix5* | irix6* | nonstopux*)
17381 case $host_os in
17382 nonstopux*) version_type=nonstopux ;;
17383 *)
17384 if test "$lt_cv_prog_gnu_ld" = yes; then
17385 version_type=linux
17386 else
17387 version_type=irix
17388 fi ;;
17389 esac
17390 need_lib_prefix=no
17391 need_version=no
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17394 case $host_os in
17395 irix5* | nonstopux*)
17396 libsuff= shlibsuff=
17397 ;;
17398 *)
17399 case $LD in # libtool.m4 will add one of these switches to LD
17400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401 libsuff= shlibsuff= libmagic=32-bit;;
17402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403 libsuff=32 shlibsuff=N32 libmagic=N32;;
17404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406 *) libsuff= shlibsuff= libmagic=never-match;;
17407 esac
17408 ;;
17409 esac
17410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411 shlibpath_overrides_runpath=no
17412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414 hardcode_into_libs=yes
17415 ;;
17416
17417# No shared lib support for Linux oldld, aout, or coff.
17418linux*oldld* | linux*aout* | linux*coff*)
17419 dynamic_linker=no
17420 ;;
17421
17422# This must be Linux ELF.
17423linux*)
17424 version_type=linux
17425 need_lib_prefix=no
17426 need_version=no
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=no
17432 # This implies no fast_install, which is unacceptable.
17433 # Some rework will be needed to allow for fast_install
17434 # before this can be enabled.
17435 hardcode_into_libs=yes
17436
Reid Spencer2706f8c2004-09-19 23:53:36 +000017437 # Append ld.so.conf contents to the search path
17438 if test -f /etc/ld.so.conf; then
17439 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17441 fi
17442
John Criswell47fdd832003-07-14 16:52:07 +000017443 # We used to test for /lib/ld.so.1 and disable shared libraries on
17444 # powerpc, because MkLinux only supported shared libraries with the
17445 # GNU dynamic linker. Since this was broken with cross compilers,
17446 # most powerpc-linux boxes support dynamic linking these days and
17447 # people can always --disable-shared, the test was removed, and we
17448 # assume the GNU/Linux dynamic linker is in use.
17449 dynamic_linker='GNU/Linux ld.so'
17450 ;;
17451
Reid Spencer2706f8c2004-09-19 23:53:36 +000017452knetbsd*-gnu)
17453 version_type=linux
17454 need_lib_prefix=no
17455 need_version=no
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=no
17460 hardcode_into_libs=yes
17461 dynamic_linker='GNU ld.so'
17462 ;;
17463
John Criswell47fdd832003-07-14 16:52:07 +000017464netbsd*)
17465 version_type=sunos
17466 need_lib_prefix=no
17467 need_version=no
17468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 dynamic_linker='NetBSD (a.out) ld.so'
17472 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017474 soname_spec='${libname}${release}${shared_ext}$major'
17475 dynamic_linker='NetBSD ld.elf_so'
17476 fi
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17480 ;;
17481
17482newsos6)
17483 version_type=linux
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17487 ;;
17488
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017490 version_type=linux
17491 need_lib_prefix=no
17492 need_version=no
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 ;;
17498
17499openbsd*)
17500 version_type=sunos
17501 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017502 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17507 case $host_os in
17508 openbsd2.[89] | openbsd2.[89].*)
17509 shlibpath_overrides_runpath=no
17510 ;;
17511 *)
17512 shlibpath_overrides_runpath=yes
17513 ;;
17514 esac
17515 else
17516 shlibpath_overrides_runpath=yes
17517 fi
17518 ;;
17519
17520os2*)
17521 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017522 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017523 need_lib_prefix=no
17524 library_names_spec='$libname${shared_ext} $libname.a'
17525 dynamic_linker='OS/2 ld.exe'
17526 shlibpath_var=LIBPATH
17527 ;;
17528
17529osf3* | osf4* | osf5*)
17530 version_type=osf
17531 need_lib_prefix=no
17532 need_version=no
17533 soname_spec='${libname}${release}${shared_ext}$major'
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17538 ;;
17539
17540sco3.2v5*)
17541 version_type=osf
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 shlibpath_var=LD_LIBRARY_PATH
17545 ;;
17546
17547solaris*)
17548 version_type=linux
17549 need_lib_prefix=no
17550 need_version=no
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=yes
17555 hardcode_into_libs=yes
17556 # ldd complains unless libraries are executable
17557 postinstall_cmds='chmod +x $lib'
17558 ;;
17559
17560sunos4*)
17561 version_type=sunos
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17564 shlibpath_var=LD_LIBRARY_PATH
17565 shlibpath_overrides_runpath=yes
17566 if test "$with_gnu_ld" = yes; then
17567 need_lib_prefix=no
17568 fi
17569 need_version=yes
17570 ;;
17571
17572sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17573 version_type=linux
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575 soname_spec='${libname}${release}${shared_ext}$major'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 case $host_vendor in
17578 sni)
17579 shlibpath_overrides_runpath=no
17580 need_lib_prefix=no
17581 export_dynamic_flag_spec='${wl}-Blargedynsym'
17582 runpath_var=LD_RUN_PATH
17583 ;;
17584 siemens)
17585 need_lib_prefix=no
17586 ;;
17587 motorola)
17588 need_lib_prefix=no
17589 need_version=no
17590 shlibpath_overrides_runpath=no
17591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17592 ;;
17593 esac
17594 ;;
17595
17596sysv4*MP*)
17597 if test -d /usr/nec ;then
17598 version_type=linux
17599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17600 soname_spec='$libname${shared_ext}.$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17602 fi
17603 ;;
17604
17605uts4*)
17606 version_type=linux
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 ;;
17611
17612*)
17613 dynamic_linker=no
17614 ;;
17615esac
17616echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17617echo "${ECHO_T}$dynamic_linker" >&6
17618test "$dynamic_linker" = no && can_build_shared=no
17619
Reid Spencer2706f8c2004-09-19 23:53:36 +000017620echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17621echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17622hardcode_action_CXX=
17623if test -n "$hardcode_libdir_flag_spec_CXX" || \
17624 test -n "$runpath_var_CXX" || \
17625 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17626
17627 # We can hardcode non-existant directories.
17628 if test "$hardcode_direct_CXX" != no &&
17629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17630 # have to relink, otherwise we might link with an installed library
17631 # when we should be linking with a yet-to-be-installed one
17632 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17633 test "$hardcode_minus_L_CXX" != no; then
17634 # Linking always hardcodes the temporary library directory.
17635 hardcode_action_CXX=relink
17636 else
17637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17638 hardcode_action_CXX=immediate
17639 fi
17640else
17641 # We cannot hardcode anything, or else we can only hardcode existing
17642 # directories.
17643 hardcode_action_CXX=unsupported
17644fi
17645echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17646echo "${ECHO_T}$hardcode_action_CXX" >&6
17647
17648if test "$hardcode_action_CXX" = relink; then
17649 # Fast installation is not supported
17650 enable_fast_install=no
17651elif test "$shlibpath_overrides_runpath" = yes ||
17652 test "$enable_shared" = no; then
17653 # Fast installation is not necessary
17654 enable_fast_install=needless
17655fi
17656
17657striplib=
17658old_striplib=
17659echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17660echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17661if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17664 echo "$as_me:$LINENO: result: yes" >&5
17665echo "${ECHO_T}yes" >&6
17666else
17667# FIXME - insert some real tests, host_os isn't really good enough
17668 case $host_os in
17669 darwin*)
17670 if test -n "$STRIP" ; then
17671 striplib="$STRIP -x"
17672 echo "$as_me:$LINENO: result: yes" >&5
17673echo "${ECHO_T}yes" >&6
17674 else
17675 echo "$as_me:$LINENO: result: no" >&5
17676echo "${ECHO_T}no" >&6
17677fi
17678 ;;
17679 *)
17680 echo "$as_me:$LINENO: result: no" >&5
17681echo "${ECHO_T}no" >&6
17682 ;;
17683 esac
17684fi
17685
John Criswell47fdd832003-07-14 16:52:07 +000017686if test "x$enable_dlopen" != xyes; then
17687 enable_dlopen=unknown
17688 enable_dlopen_self=unknown
17689 enable_dlopen_self_static=unknown
17690else
17691 lt_cv_dlopen=no
17692 lt_cv_dlopen_libs=
17693
17694 case $host_os in
17695 beos*)
17696 lt_cv_dlopen="load_add_on"
17697 lt_cv_dlopen_libs=
17698 lt_cv_dlopen_self=yes
17699 ;;
17700
17701 mingw* | pw32*)
17702 lt_cv_dlopen="LoadLibrary"
17703 lt_cv_dlopen_libs=
17704 ;;
17705
17706 cygwin*)
17707 lt_cv_dlopen="dlopen"
17708 lt_cv_dlopen_libs=
17709 ;;
17710
17711 darwin*)
17712 # if libdl is installed we need to link against it
17713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17714echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17715if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717else
17718 ac_check_lib_save_LIBS=$LIBS
17719LIBS="-ldl $LIBS"
17720cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017726
17727/* Override any gcc2 internal prototype to avoid an error. */
17728#ifdef __cplusplus
17729extern "C"
17730#endif
17731/* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17733char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017734int
17735main ()
17736{
17737dlopen ();
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext conftest$ac_exeext
17743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017744 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017751 { ac_try='test -z "$ac_cxx_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_lib_dl_dlopen=yes
17765else
17766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017767sed 's/^/| /' conftest.$ac_ext >&5
17768
John Criswell47fdd832003-07-14 16:52:07 +000017769ac_cv_lib_dl_dlopen=no
17770fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017771rm -f conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017773LIBS=$ac_check_lib_save_LIBS
17774fi
17775echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17776echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17777if test $ac_cv_lib_dl_dlopen = yes; then
17778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17779else
17780
17781 lt_cv_dlopen="dyld"
17782 lt_cv_dlopen_libs=
17783 lt_cv_dlopen_self=yes
17784
17785fi
17786
17787 ;;
17788
17789 *)
17790 echo "$as_me:$LINENO: checking for shl_load" >&5
17791echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17792if test "${ac_cv_func_shl_load+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794else
17795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017796/* confdefs.h. */
17797_ACEOF
17798cat confdefs.h >>conftest.$ac_ext
17799cat >>conftest.$ac_ext <<_ACEOF
17800/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017801/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17803#define shl_load innocuous_shl_load
17804
John Criswell47fdd832003-07-14 16:52:07 +000017805/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017806 which can conflict with char shl_load (); below.
17807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17808 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017809
John Criswell0c38eaf2003-09-10 15:17:25 +000017810#ifdef __STDC__
17811# include <limits.h>
17812#else
17813# include <assert.h>
17814#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017815
17816#undef shl_load
17817
John Criswell47fdd832003-07-14 16:52:07 +000017818/* Override any gcc2 internal prototype to avoid an error. */
17819#ifdef __cplusplus
17820extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017821{
John Criswell47fdd832003-07-14 16:52:07 +000017822#endif
17823/* We use char because int might match the return type of a gcc2
17824 builtin and then its argument prototype would still apply. */
17825char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017826/* The GNU C library defines this for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829#if defined (__stub_shl_load) || defined (__stub___shl_load)
17830choke me
17831#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017832char (*f) () = shl_load;
17833#endif
17834#ifdef __cplusplus
17835}
John Criswell47fdd832003-07-14 16:52:07 +000017836#endif
17837
John Criswell0c38eaf2003-09-10 15:17:25 +000017838int
17839main ()
17840{
17841return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext conftest$ac_exeext
17847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017848 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017849 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017855 { ac_try='test -z "$ac_cxx_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_func_shl_load=yes
17869else
17870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017871sed 's/^/| /' conftest.$ac_ext >&5
17872
John Criswell47fdd832003-07-14 16:52:07 +000017873ac_cv_func_shl_load=no
17874fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017875rm -f conftest.err conftest.$ac_objext \
17876 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017877fi
17878echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17879echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17880if test $ac_cv_func_shl_load = yes; then
17881 lt_cv_dlopen="shl_load"
17882else
17883 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17884echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17885if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17887else
17888 ac_check_lib_save_LIBS=$LIBS
17889LIBS="-ldld $LIBS"
17890cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017891/* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017896
17897/* Override any gcc2 internal prototype to avoid an error. */
17898#ifdef __cplusplus
17899extern "C"
17900#endif
17901/* We use char because int might match the return type of a gcc2
17902 builtin and then its argument prototype would still apply. */
17903char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017904int
17905main ()
17906{
17907shl_load ();
17908 ;
17909 return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext conftest$ac_exeext
17913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017914 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017921 { ac_try='test -z "$ac_cxx_werror_flag"
17922 || test ! -s conftest.err'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_lib_dld_shl_load=yes
17935else
17936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017937sed 's/^/| /' conftest.$ac_ext >&5
17938
John Criswell47fdd832003-07-14 16:52:07 +000017939ac_cv_lib_dld_shl_load=no
17940fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017941rm -f conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017943LIBS=$ac_check_lib_save_LIBS
17944fi
17945echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17946echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17947if test $ac_cv_lib_dld_shl_load = yes; then
17948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17949else
17950 echo "$as_me:$LINENO: checking for dlopen" >&5
17951echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17952if test "${ac_cv_func_dlopen+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017956/* confdefs.h. */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017961/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17963#define dlopen innocuous_dlopen
17964
John Criswell47fdd832003-07-14 16:52:07 +000017965/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017966 which can conflict with char dlopen (); below.
17967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17968 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017969
John Criswell0c38eaf2003-09-10 15:17:25 +000017970#ifdef __STDC__
17971# include <limits.h>
17972#else
17973# include <assert.h>
17974#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017975
17976#undef dlopen
17977
John Criswell47fdd832003-07-14 16:52:07 +000017978/* Override any gcc2 internal prototype to avoid an error. */
17979#ifdef __cplusplus
17980extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017981{
John Criswell47fdd832003-07-14 16:52:07 +000017982#endif
17983/* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17985char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017986/* The GNU C library defines this for functions which it implements
17987 to always fail with ENOSYS. Some functions are actually named
17988 something starting with __ and the normal name is an alias. */
17989#if defined (__stub_dlopen) || defined (__stub___dlopen)
17990choke me
17991#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017992char (*f) () = dlopen;
17993#endif
17994#ifdef __cplusplus
17995}
John Criswell47fdd832003-07-14 16:52:07 +000017996#endif
17997
John Criswell0c38eaf2003-09-10 15:17:25 +000017998int
17999main ()
18000{
18001return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000018002 ;
18003 return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext conftest$ac_exeext
18007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018008 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018015 { ac_try='test -z "$ac_cxx_werror_flag"
18016 || test ! -s conftest.err'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_cv_func_dlopen=yes
18029else
18030 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018031sed 's/^/| /' conftest.$ac_ext >&5
18032
John Criswell47fdd832003-07-14 16:52:07 +000018033ac_cv_func_dlopen=no
18034fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018035rm -f conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018037fi
18038echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18039echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18040if test $ac_cv_func_dlopen = yes; then
18041 lt_cv_dlopen="dlopen"
18042else
18043 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18044echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18045if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047else
18048 ac_check_lib_save_LIBS=$LIBS
18049LIBS="-ldl $LIBS"
18050cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018051/* confdefs.h. */
18052_ACEOF
18053cat confdefs.h >>conftest.$ac_ext
18054cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018056
18057/* Override any gcc2 internal prototype to avoid an error. */
18058#ifdef __cplusplus
18059extern "C"
18060#endif
18061/* We use char because int might match the return type of a gcc2
18062 builtin and then its argument prototype would still apply. */
18063char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018064int
18065main ()
18066{
18067dlopen ();
18068 ;
18069 return 0;
18070}
18071_ACEOF
18072rm -f conftest.$ac_objext conftest$ac_exeext
18073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018074 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018076 grep -v '^ *+' conftest.er1 >conftest.err
18077 rm -f conftest.er1
18078 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018081 { ac_try='test -z "$ac_cxx_werror_flag"
18082 || test ! -s conftest.err'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_dl_dlopen=yes
18095else
18096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018097sed 's/^/| /' conftest.$ac_ext >&5
18098
John Criswell47fdd832003-07-14 16:52:07 +000018099ac_cv_lib_dl_dlopen=no
18100fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018101rm -f conftest.err conftest.$ac_objext \
18102 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018103LIBS=$ac_check_lib_save_LIBS
18104fi
18105echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18106echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18107if test $ac_cv_lib_dl_dlopen = yes; then
18108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18109else
18110 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18111echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18112if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114else
18115 ac_check_lib_save_LIBS=$LIBS
18116LIBS="-lsvld $LIBS"
18117cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018123
18124/* Override any gcc2 internal prototype to avoid an error. */
18125#ifdef __cplusplus
18126extern "C"
18127#endif
18128/* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18130char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018131int
18132main ()
18133{
18134dlopen ();
18135 ;
18136 return 0;
18137}
18138_ACEOF
18139rm -f conftest.$ac_objext conftest$ac_exeext
18140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018141 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018142 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018148 { ac_try='test -z "$ac_cxx_werror_flag"
18149 || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_lib_svld_dlopen=yes
18162else
18163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018164sed 's/^/| /' conftest.$ac_ext >&5
18165
John Criswell47fdd832003-07-14 16:52:07 +000018166ac_cv_lib_svld_dlopen=no
18167fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018168rm -f conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018170LIBS=$ac_check_lib_save_LIBS
18171fi
18172echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18173echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18174if test $ac_cv_lib_svld_dlopen = yes; then
18175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18176else
18177 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18178echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18179if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18181else
18182 ac_check_lib_save_LIBS=$LIBS
18183LIBS="-ldld $LIBS"
18184cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018190
18191/* Override any gcc2 internal prototype to avoid an error. */
18192#ifdef __cplusplus
18193extern "C"
18194#endif
18195/* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18197char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018198int
18199main ()
18200{
18201dld_link ();
18202 ;
18203 return 0;
18204}
18205_ACEOF
18206rm -f conftest.$ac_objext conftest$ac_exeext
18207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018208 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018209 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018215 { ac_try='test -z "$ac_cxx_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_cv_lib_dld_dld_link=yes
18229else
18230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018231sed 's/^/| /' conftest.$ac_ext >&5
18232
John Criswell47fdd832003-07-14 16:52:07 +000018233ac_cv_lib_dld_dld_link=no
18234fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018235rm -f conftest.err conftest.$ac_objext \
18236 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018237LIBS=$ac_check_lib_save_LIBS
18238fi
18239echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18240echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18241if test $ac_cv_lib_dld_dld_link = yes; then
18242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18243fi
18244
18245
18246fi
18247
18248
18249fi
18250
18251
18252fi
18253
18254
18255fi
18256
18257
18258fi
18259
18260 ;;
18261 esac
18262
18263 if test "x$lt_cv_dlopen" != xno; then
18264 enable_dlopen=yes
18265 else
18266 enable_dlopen=no
18267 fi
18268
18269 case $lt_cv_dlopen in
18270 dlopen)
18271 save_CPPFLAGS="$CPPFLAGS"
18272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18273
18274 save_LDFLAGS="$LDFLAGS"
18275 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18276
18277 save_LIBS="$LIBS"
18278 LIBS="$lt_cv_dlopen_libs $LIBS"
18279
18280 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18281echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18282if test "${lt_cv_dlopen_self+set}" = set; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18284else
18285 if test "$cross_compiling" = yes; then :
18286 lt_cv_dlopen_self=cross
18287else
18288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18289 lt_status=$lt_dlunknown
18290 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000018291#line 18291 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018292#include "confdefs.h"
18293
18294#if HAVE_DLFCN_H
18295#include <dlfcn.h>
18296#endif
18297
18298#include <stdio.h>
18299
18300#ifdef RTLD_GLOBAL
18301# define LT_DLGLOBAL RTLD_GLOBAL
18302#else
18303# ifdef DL_GLOBAL
18304# define LT_DLGLOBAL DL_GLOBAL
18305# else
18306# define LT_DLGLOBAL 0
18307# endif
18308#endif
18309
18310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18311 find out it does not work in some platform. */
18312#ifndef LT_DLLAZY_OR_NOW
18313# ifdef RTLD_LAZY
18314# define LT_DLLAZY_OR_NOW RTLD_LAZY
18315# else
18316# ifdef DL_LAZY
18317# define LT_DLLAZY_OR_NOW DL_LAZY
18318# else
18319# ifdef RTLD_NOW
18320# define LT_DLLAZY_OR_NOW RTLD_NOW
18321# else
18322# ifdef DL_NOW
18323# define LT_DLLAZY_OR_NOW DL_NOW
18324# else
18325# define LT_DLLAZY_OR_NOW 0
18326# endif
18327# endif
18328# endif
18329# endif
18330#endif
18331
18332#ifdef __cplusplus
18333extern "C" void exit (int);
18334#endif
18335
18336void fnord() { int i=42;}
18337int main ()
18338{
18339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18340 int status = $lt_dlunknown;
18341
18342 if (self)
18343 {
18344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18346 /* dlclose (self); */
18347 }
18348
18349 exit (status);
18350}
18351EOF
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18357 (./conftest; exit; ) 2>/dev/null
18358 lt_status=$?
18359 case x$lt_status in
18360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18362 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18363 esac
18364 else :
18365 # compilation failed
18366 lt_cv_dlopen_self=no
18367 fi
18368fi
18369rm -fr conftest*
18370
18371
18372fi
18373echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18374echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18375
18376 if test "x$lt_cv_dlopen_self" = xyes; then
18377 LDFLAGS="$LDFLAGS $link_static_flag"
18378 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18379echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18380if test "${lt_cv_dlopen_self_static+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382else
18383 if test "$cross_compiling" = yes; then :
18384 lt_cv_dlopen_self_static=cross
18385else
18386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18387 lt_status=$lt_dlunknown
18388 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000018389#line 18389 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018390#include "confdefs.h"
18391
18392#if HAVE_DLFCN_H
18393#include <dlfcn.h>
18394#endif
18395
18396#include <stdio.h>
18397
18398#ifdef RTLD_GLOBAL
18399# define LT_DLGLOBAL RTLD_GLOBAL
18400#else
18401# ifdef DL_GLOBAL
18402# define LT_DLGLOBAL DL_GLOBAL
18403# else
18404# define LT_DLGLOBAL 0
18405# endif
18406#endif
18407
18408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18409 find out it does not work in some platform. */
18410#ifndef LT_DLLAZY_OR_NOW
18411# ifdef RTLD_LAZY
18412# define LT_DLLAZY_OR_NOW RTLD_LAZY
18413# else
18414# ifdef DL_LAZY
18415# define LT_DLLAZY_OR_NOW DL_LAZY
18416# else
18417# ifdef RTLD_NOW
18418# define LT_DLLAZY_OR_NOW RTLD_NOW
18419# else
18420# ifdef DL_NOW
18421# define LT_DLLAZY_OR_NOW DL_NOW
18422# else
18423# define LT_DLLAZY_OR_NOW 0
18424# endif
18425# endif
18426# endif
18427# endif
18428#endif
18429
18430#ifdef __cplusplus
18431extern "C" void exit (int);
18432#endif
18433
18434void fnord() { int i=42;}
18435int main ()
18436{
18437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18438 int status = $lt_dlunknown;
18439
18440 if (self)
18441 {
18442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18444 /* dlclose (self); */
18445 }
18446
18447 exit (status);
18448}
18449EOF
18450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451 (eval $ac_link) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18455 (./conftest; exit; ) 2>/dev/null
18456 lt_status=$?
18457 case x$lt_status in
18458 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18459 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18460 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18461 esac
18462 else :
18463 # compilation failed
18464 lt_cv_dlopen_self_static=no
18465 fi
18466fi
18467rm -fr conftest*
18468
18469
18470fi
18471echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18472echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18473 fi
18474
18475 CPPFLAGS="$save_CPPFLAGS"
18476 LDFLAGS="$save_LDFLAGS"
18477 LIBS="$save_LIBS"
18478 ;;
18479 esac
18480
18481 case $lt_cv_dlopen_self in
18482 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18483 *) enable_dlopen_self=unknown ;;
18484 esac
18485
18486 case $lt_cv_dlopen_self_static in
18487 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18488 *) enable_dlopen_self_static=unknown ;;
18489 esac
18490fi
18491
18492
18493# The else clause should only fire when bootstrapping the
18494# libtool distribution, otherwise you forgot to ship ltmain.sh
18495# with your package, and you will get complaints that there are
18496# no rules to generate ltmain.sh.
18497if test -f "$ltmain"; then
18498 # See if we are running on zsh, and set the options which allow our commands through
18499 # without removal of \ escapes.
18500 if test -n "${ZSH_VERSION+set}" ; then
18501 setopt NO_GLOB_SUBST
18502 fi
18503 # Now quote all the things that may contain metacharacters while being
18504 # careful not to overquote the AC_SUBSTed values. We take copies of the
18505 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18507 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18510 deplibs_check_method reload_flag reload_cmds need_locks \
18511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18512 lt_cv_sys_global_symbol_to_c_name_address \
18513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18514 old_postinstall_cmds old_postuninstall_cmds \
18515 compiler_CXX \
18516 CC_CXX \
18517 LD_CXX \
18518 lt_prog_compiler_wl_CXX \
18519 lt_prog_compiler_pic_CXX \
18520 lt_prog_compiler_static_CXX \
18521 lt_prog_compiler_no_builtin_flag_CXX \
18522 export_dynamic_flag_spec_CXX \
18523 thread_safe_flag_spec_CXX \
18524 whole_archive_flag_spec_CXX \
18525 enable_shared_with_static_runtimes_CXX \
18526 old_archive_cmds_CXX \
18527 old_archive_from_new_cmds_CXX \
18528 predep_objects_CXX \
18529 postdep_objects_CXX \
18530 predeps_CXX \
18531 postdeps_CXX \
18532 compiler_lib_search_path_CXX \
18533 archive_cmds_CXX \
18534 archive_expsym_cmds_CXX \
18535 postinstall_cmds_CXX \
18536 postuninstall_cmds_CXX \
18537 old_archive_from_expsyms_cmds_CXX \
18538 allow_undefined_flag_CXX \
18539 no_undefined_flag_CXX \
18540 export_symbols_cmds_CXX \
18541 hardcode_libdir_flag_spec_CXX \
18542 hardcode_libdir_flag_spec_ld_CXX \
18543 hardcode_libdir_separator_CXX \
18544 hardcode_automatic_CXX \
18545 module_cmds_CXX \
18546 module_expsym_cmds_CXX \
18547 lt_cv_prog_compiler_c_o_CXX \
18548 exclude_expsyms_CXX \
18549 include_expsyms_CXX; do
18550
18551 case $var in
18552 old_archive_cmds_CXX | \
18553 old_archive_from_new_cmds_CXX | \
18554 archive_cmds_CXX | \
18555 archive_expsym_cmds_CXX | \
18556 module_cmds_CXX | \
18557 module_expsym_cmds_CXX | \
18558 old_archive_from_expsyms_cmds_CXX | \
18559 export_symbols_cmds_CXX | \
18560 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18561 postinstall_cmds | postuninstall_cmds | \
18562 old_postinstall_cmds | old_postuninstall_cmds | \
18563 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18564 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018565 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 +000018566 ;;
18567 *)
18568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18569 ;;
18570 esac
18571 done
18572
18573 case $lt_echo in
18574 *'\$0 --fallback-echo"')
18575 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18576 ;;
18577 esac
18578
18579cfgfile="$ofile"
18580
18581 cat <<__EOF__ >> "$cfgfile"
18582# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18583
18584# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18585
18586# Shell to use when invoking shell scripts.
18587SHELL=$lt_SHELL
18588
18589# Whether or not to build shared libraries.
18590build_libtool_libs=$enable_shared
18591
18592# Whether or not to build static libraries.
18593build_old_libs=$enable_static
18594
18595# Whether or not to add -lc for building shared libraries.
18596build_libtool_need_lc=$archive_cmds_need_lc_CXX
18597
18598# Whether or not to disallow shared libs when runtime libs are static
18599allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18600
18601# Whether or not to optimize for fast installation.
18602fast_install=$enable_fast_install
18603
18604# The host system.
18605host_alias=$host_alias
18606host=$host
18607
18608# An echo program that does not interpret backslashes.
18609echo=$lt_echo
18610
18611# The archiver.
18612AR=$lt_AR
18613AR_FLAGS=$lt_AR_FLAGS
18614
18615# A C compiler.
18616LTCC=$lt_LTCC
18617
18618# A language-specific compiler.
18619CC=$lt_compiler_CXX
18620
18621# Is the compiler the GNU C compiler?
18622with_gcc=$GCC_CXX
18623
18624# An ERE matcher.
18625EGREP=$lt_EGREP
18626
18627# The linker used to build libraries.
18628LD=$lt_LD_CXX
18629
18630# Whether we need hard or soft links.
18631LN_S=$lt_LN_S
18632
18633# A BSD-compatible nm program.
18634NM=$lt_NM
18635
18636# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018637STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018638
18639# Used to examine libraries when file_magic_cmd begins "file"
18640MAGIC_CMD=$MAGIC_CMD
18641
18642# Used on cygwin: DLL creation program.
18643DLLTOOL="$DLLTOOL"
18644
18645# Used on cygwin: object dumper.
18646OBJDUMP="$OBJDUMP"
18647
18648# Used on cygwin: assembler.
18649AS="$AS"
18650
18651# The name of the directory that contains temporary libtool files.
18652objdir=$objdir
18653
18654# How to create reloadable object files.
18655reload_flag=$lt_reload_flag
18656reload_cmds=$lt_reload_cmds
18657
18658# How to pass a linker flag through the compiler.
18659wl=$lt_lt_prog_compiler_wl_CXX
18660
18661# Object file suffix (normally "o").
18662objext="$ac_objext"
18663
18664# Old archive suffix (normally "a").
18665libext="$libext"
18666
18667# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018668shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018669
18670# Executable file suffix (normally "").
18671exeext="$exeext"
18672
18673# Additional compiler flags for building library objects.
18674pic_flag=$lt_lt_prog_compiler_pic_CXX
18675pic_mode=$pic_mode
18676
18677# What is the maximum length of a command?
18678max_cmd_len=$lt_cv_sys_max_cmd_len
18679
18680# Does compiler simultaneously support -c and -o options?
18681compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18682
18683# Must we lock files when doing compilation ?
18684need_locks=$lt_need_locks
18685
18686# Do we need the lib prefix for modules?
18687need_lib_prefix=$need_lib_prefix
18688
18689# Do we need a version for libraries?
18690need_version=$need_version
18691
18692# Whether dlopen is supported.
18693dlopen_support=$enable_dlopen
18694
18695# Whether dlopen of programs is supported.
18696dlopen_self=$enable_dlopen_self
18697
18698# Whether dlopen of statically linked programs is supported.
18699dlopen_self_static=$enable_dlopen_self_static
18700
18701# Compiler flag to prevent dynamic linking.
18702link_static_flag=$lt_lt_prog_compiler_static_CXX
18703
18704# Compiler flag to turn off builtin functions.
18705no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18706
18707# Compiler flag to allow reflexive dlopens.
18708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18709
18710# Compiler flag to generate shared objects directly from archives.
18711whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18712
18713# Compiler flag to generate thread-safe objects.
18714thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18715
18716# Library versioning type.
18717version_type=$version_type
18718
18719# Format of library name prefix.
18720libname_spec=$lt_libname_spec
18721
18722# List of archive names. First name is the real one, the rest are links.
18723# The last name is the one that the linker finds with -lNAME.
18724library_names_spec=$lt_library_names_spec
18725
18726# The coded name of the library, if different from the real name.
18727soname_spec=$lt_soname_spec
18728
18729# Commands used to build and install an old-style archive.
18730RANLIB=$lt_RANLIB
18731old_archive_cmds=$lt_old_archive_cmds_CXX
18732old_postinstall_cmds=$lt_old_postinstall_cmds
18733old_postuninstall_cmds=$lt_old_postuninstall_cmds
18734
18735# Create an old-style archive from a shared archive.
18736old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18737
18738# Create a temporary old-style archive to link instead of a shared archive.
18739old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18740
18741# Commands used to build and install a shared archive.
18742archive_cmds=$lt_archive_cmds_CXX
18743archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18744postinstall_cmds=$lt_postinstall_cmds
18745postuninstall_cmds=$lt_postuninstall_cmds
18746
18747# Commands used to build a loadable module (assumed same as above if empty)
18748module_cmds=$lt_module_cmds_CXX
18749module_expsym_cmds=$lt_module_expsym_cmds_CXX
18750
18751# Commands to strip libraries.
18752old_striplib=$lt_old_striplib
18753striplib=$lt_striplib
18754
18755# Dependencies to place before the objects being linked to create a
18756# shared library.
18757predep_objects=$lt_predep_objects_CXX
18758
18759# Dependencies to place after the objects being linked to create a
18760# shared library.
18761postdep_objects=$lt_postdep_objects_CXX
18762
18763# Dependencies to place before the objects being linked to create a
18764# shared library.
18765predeps=$lt_predeps_CXX
18766
18767# Dependencies to place after the objects being linked to create a
18768# shared library.
18769postdeps=$lt_postdeps_CXX
18770
18771# The library search path used internally by the compiler when linking
18772# a shared library.
18773compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18774
18775# Method to check whether dependent libraries are shared objects.
18776deplibs_check_method=$lt_deplibs_check_method
18777
18778# Command to use when deplibs_check_method == file_magic.
18779file_magic_cmd=$lt_file_magic_cmd
18780
18781# Flag that allows shared libraries with undefined symbols to be built.
18782allow_undefined_flag=$lt_allow_undefined_flag_CXX
18783
18784# Flag that forces no undefined symbols.
18785no_undefined_flag=$lt_no_undefined_flag_CXX
18786
18787# Commands used to finish a libtool library installation in a directory.
18788finish_cmds=$lt_finish_cmds
18789
18790# Same as above, but a single script fragment to be evaled but not shown.
18791finish_eval=$lt_finish_eval
18792
18793# Take the output of nm and produce a listing of raw symbols and C names.
18794global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18795
18796# Transform the output of nm in a proper C declaration
18797global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18798
18799# Transform the output of nm in a C name address pair
18800global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18801
18802# This is the shared library runtime path variable.
18803runpath_var=$runpath_var
18804
18805# This is the shared library path variable.
18806shlibpath_var=$shlibpath_var
18807
18808# Is shlibpath searched before the hard-coded library search path?
18809shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18810
18811# How to hardcode a shared library path into an executable.
18812hardcode_action=$hardcode_action_CXX
18813
18814# Whether we should hardcode library paths into libraries.
18815hardcode_into_libs=$hardcode_into_libs
18816
18817# Flag to hardcode \$libdir into a binary during linking.
18818# This must work even if \$libdir does not exist.
18819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18820
18821# If ld is used when linking, flag to hardcode \$libdir into
18822# a binary during linking. This must work even if \$libdir does
18823# not exist.
18824hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18825
18826# Whether we need a single -rpath flag with a separated argument.
18827hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18828
18829# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18830# resulting binary.
18831hardcode_direct=$hardcode_direct_CXX
18832
18833# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18834# resulting binary.
18835hardcode_minus_L=$hardcode_minus_L_CXX
18836
18837# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18838# the resulting binary.
18839hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18840
18841# Set to yes if building a shared library automatically hardcodes DIR into the library
18842# and all subsequent libraries and executables linked against it.
18843hardcode_automatic=$hardcode_automatic_CXX
18844
18845# Variables whose values should be saved in libtool wrapper scripts and
18846# restored at relink time.
18847variables_saved_for_relink="$variables_saved_for_relink"
18848
18849# Whether libtool must link a program against all its dependency libraries.
18850link_all_deplibs=$link_all_deplibs_CXX
18851
18852# Compile-time system search path for libraries
18853sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18854
18855# Run-time system search path for libraries
18856sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18857
18858# Fix the shell variable \$srcfile for the compiler.
18859fix_srcfile_path="$fix_srcfile_path_CXX"
18860
18861# Set to yes if exported symbols are required.
18862always_export_symbols=$always_export_symbols_CXX
18863
18864# The commands to list exported symbols.
18865export_symbols_cmds=$lt_export_symbols_cmds_CXX
18866
18867# The commands to extract the exported symbol list from a shared archive.
18868extract_expsyms_cmds=$lt_extract_expsyms_cmds
18869
18870# Symbols that should not be listed in the preloaded symbols.
18871exclude_expsyms=$lt_exclude_expsyms_CXX
18872
18873# Symbols that must always be exported.
18874include_expsyms=$lt_include_expsyms_CXX
18875
18876# ### END LIBTOOL TAG CONFIG: $tagname
18877
18878__EOF__
18879
18880
18881else
18882 # If there is no Makefile yet, we rely on a make rule to execute
18883 # `config.status --recheck' to rerun these tests and create the
18884 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018885 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18886 if test -f "$ltmain_in"; then
18887 test -f Makefile && make "$ltmain"
18888 fi
John Criswell47fdd832003-07-14 16:52:07 +000018889fi
18890
18891
18892ac_ext=c
18893ac_cpp='$CPP $CPPFLAGS'
18894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897
18898CC=$lt_save_CC
18899LDCXX=$LD
18900LD=$lt_save_LD
18901GCC=$lt_save_GCC
18902with_gnu_ldcxx=$with_gnu_ld
18903with_gnu_ld=$lt_save_with_gnu_ld
18904lt_cv_path_LDCXX=$lt_cv_path_LD
18905lt_cv_path_LD=$lt_save_path_LD
18906lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18907lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18908
18909 else
18910 tagname=""
18911 fi
18912 ;;
18913
18914 F77)
18915 if test -n "$F77" && test "X$F77" != "Xno"; then
18916
18917ac_ext=f
18918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18921
18922
18923archive_cmds_need_lc_F77=no
18924allow_undefined_flag_F77=
18925always_export_symbols_F77=no
18926archive_expsym_cmds_F77=
18927export_dynamic_flag_spec_F77=
18928hardcode_direct_F77=no
18929hardcode_libdir_flag_spec_F77=
18930hardcode_libdir_flag_spec_ld_F77=
18931hardcode_libdir_separator_F77=
18932hardcode_minus_L_F77=no
18933hardcode_automatic_F77=no
18934module_cmds_F77=
18935module_expsym_cmds_F77=
18936link_all_deplibs_F77=unknown
18937old_archive_cmds_F77=$old_archive_cmds
18938no_undefined_flag_F77=
18939whole_archive_flag_spec_F77=
18940enable_shared_with_static_runtimes_F77=no
18941
18942# Source file extension for f77 test sources.
18943ac_ext=f
18944
18945# Object file extension for compiled f77 test sources.
18946objext=o
18947objext_F77=$objext
18948
18949# Code to be used in simple compile tests
18950lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18951
18952# Code to be used in simple link tests
18953lt_simple_link_test_code=" program t\n end\n"
18954
18955# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18956
18957# If no C compiler was specified, use CC.
18958LTCC=${LTCC-"$CC"}
18959
18960# Allow CC to be a program name with arguments.
18961compiler=$CC
18962
18963
18964# Allow CC to be a program name with arguments.
18965lt_save_CC="$CC"
18966CC=${F77-"f77"}
18967compiler=$CC
18968compiler_F77=$CC
18969cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18970
18971echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18972echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18973echo "$as_me:$LINENO: result: $can_build_shared" >&5
18974echo "${ECHO_T}$can_build_shared" >&6
18975
18976echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18977echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18978test "$can_build_shared" = "no" && enable_shared=no
18979
18980# On AIX, shared libraries and static libraries use the same namespace, and
18981# are all built from PIC.
18982case "$host_os" in
18983aix3*)
18984 test "$enable_shared" = yes && enable_static=no
18985 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018986 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018987 postinstall_cmds='$RANLIB $lib'
18988 fi
18989 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018990aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018991 test "$enable_shared" = yes && enable_static=no
18992 ;;
18993esac
18994echo "$as_me:$LINENO: result: $enable_shared" >&5
18995echo "${ECHO_T}$enable_shared" >&6
18996
18997echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18998echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18999# Make sure either enable_shared or enable_static is yes.
19000test "$enable_shared" = yes || enable_static=yes
19001echo "$as_me:$LINENO: result: $enable_static" >&5
19002echo "${ECHO_T}$enable_static" >&6
19003
19004test "$ld_shlibs_F77" = no && can_build_shared=no
19005
19006GCC_F77="$G77"
19007LD_F77="$LD"
19008
19009lt_prog_compiler_wl_F77=
19010lt_prog_compiler_pic_F77=
19011lt_prog_compiler_static_F77=
19012
19013echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19014echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19015
19016 if test "$GCC" = yes; then
19017 lt_prog_compiler_wl_F77='-Wl,'
19018 lt_prog_compiler_static_F77='-static'
19019
19020 case $host_os in
19021 aix*)
19022 # All AIX code is PIC.
19023 if test "$host_cpu" = ia64; then
19024 # AIX 5 now supports IA64 processor
19025 lt_prog_compiler_static_F77='-Bstatic'
19026 fi
19027 ;;
19028
19029 amigaos*)
19030 # FIXME: we need at least 68020 code to build shared libraries, but
19031 # adding the `-m68020' flag to GCC prevents building anything better,
19032 # like `-m68040'.
19033 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19034 ;;
19035
19036 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19037 # PIC is the default for these OSes.
19038 ;;
19039
19040 mingw* | pw32* | os2*)
19041 # This hack is so that the source file can tell whether it is being
19042 # built for inclusion in a dll (and should export symbols for example).
19043 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19044 ;;
19045
19046 darwin* | rhapsody*)
19047 # PIC is the default on this platform
19048 # Common symbols not allowed in MH_DYLIB files
19049 lt_prog_compiler_pic_F77='-fno-common'
19050 ;;
19051
19052 msdosdjgpp*)
19053 # Just because we use GCC doesn't mean we suddenly get shared libraries
19054 # on systems that don't support them.
19055 lt_prog_compiler_can_build_shared_F77=no
19056 enable_shared=no
19057 ;;
19058
19059 sysv4*MP*)
19060 if test -d /usr/nec; then
19061 lt_prog_compiler_pic_F77=-Kconform_pic
19062 fi
19063 ;;
19064
19065 hpux*)
19066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19067 # not for PA HP-UX.
19068 case "$host_cpu" in
19069 hppa*64*|ia64*)
19070 # +Z the default
19071 ;;
19072 *)
19073 lt_prog_compiler_pic_F77='-fPIC'
19074 ;;
19075 esac
19076 ;;
19077
19078 *)
19079 lt_prog_compiler_pic_F77='-fPIC'
19080 ;;
19081 esac
19082 else
19083 # PORTME Check for flag to pass linker flags through the system compiler.
19084 case $host_os in
19085 aix*)
19086 lt_prog_compiler_wl_F77='-Wl,'
19087 if test "$host_cpu" = ia64; then
19088 # AIX 5 now supports IA64 processor
19089 lt_prog_compiler_static_F77='-Bstatic'
19090 else
19091 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19092 fi
19093 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019094 darwin*)
19095 # PIC is the default on this platform
19096 # Common symbols not allowed in MH_DYLIB files
19097 case "$cc_basename" in
19098 xlc*)
19099 lt_prog_compiler_pic_F77='-qnocommon'
19100 lt_prog_compiler_wl_F77='-Wl,'
19101 ;;
19102 esac
19103 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019104
19105 mingw* | pw32* | os2*)
19106 # This hack is so that the source file can tell whether it is being
19107 # built for inclusion in a dll (and should export symbols for example).
19108 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19109 ;;
19110
19111 hpux9* | hpux10* | hpux11*)
19112 lt_prog_compiler_wl_F77='-Wl,'
19113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19114 # not for PA HP-UX.
19115 case "$host_cpu" in
19116 hppa*64*|ia64*)
19117 # +Z the default
19118 ;;
19119 *)
19120 lt_prog_compiler_pic_F77='+Z'
19121 ;;
19122 esac
19123 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19124 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19125 ;;
19126
19127 irix5* | irix6* | nonstopux*)
19128 lt_prog_compiler_wl_F77='-Wl,'
19129 # PIC (with -KPIC) is the default.
19130 lt_prog_compiler_static_F77='-non_shared'
19131 ;;
19132
19133 newsos6)
19134 lt_prog_compiler_pic_F77='-KPIC'
19135 lt_prog_compiler_static_F77='-Bstatic'
19136 ;;
19137
19138 linux*)
19139 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019140 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019141 lt_prog_compiler_wl_F77='-Wl,'
19142 lt_prog_compiler_pic_F77='-KPIC'
19143 lt_prog_compiler_static_F77='-static'
19144 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019145 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019146 lt_prog_compiler_wl_F77='-Wl,'
19147 # All Alpha code is PIC.
19148 lt_prog_compiler_static_F77='-non_shared'
19149 ;;
19150 esac
19151 ;;
19152
19153 osf3* | osf4* | osf5*)
19154 lt_prog_compiler_wl_F77='-Wl,'
19155 # All OSF/1 code is PIC.
19156 lt_prog_compiler_static_F77='-non_shared'
19157 ;;
19158
19159 sco3.2v5*)
19160 lt_prog_compiler_pic_F77='-Kpic'
19161 lt_prog_compiler_static_F77='-dn'
19162 ;;
19163
19164 solaris*)
19165 lt_prog_compiler_wl_F77='-Wl,'
19166 lt_prog_compiler_pic_F77='-KPIC'
19167 lt_prog_compiler_static_F77='-Bstatic'
19168 ;;
19169
19170 sunos4*)
19171 lt_prog_compiler_wl_F77='-Qoption ld '
19172 lt_prog_compiler_pic_F77='-PIC'
19173 lt_prog_compiler_static_F77='-Bstatic'
19174 ;;
19175
19176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19177 lt_prog_compiler_wl_F77='-Wl,'
19178 lt_prog_compiler_pic_F77='-KPIC'
19179 lt_prog_compiler_static_F77='-Bstatic'
19180 ;;
19181
19182 sysv4*MP*)
19183 if test -d /usr/nec ;then
19184 lt_prog_compiler_pic_F77='-Kconform_pic'
19185 lt_prog_compiler_static_F77='-Bstatic'
19186 fi
19187 ;;
19188
19189 uts4*)
19190 lt_prog_compiler_pic_F77='-pic'
19191 lt_prog_compiler_static_F77='-Bstatic'
19192 ;;
19193
19194 *)
19195 lt_prog_compiler_can_build_shared_F77=no
19196 ;;
19197 esac
19198 fi
19199
19200echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19201echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19202
19203#
19204# Check to make sure the PIC flag actually works.
19205#
19206if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019207
19208echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019209echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19210if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212else
19213 lt_prog_compiler_pic_works_F77=no
19214 ac_outfile=conftest.$ac_objext
19215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19216 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19217 # Insert the option either (1) after the last *FLAGS variable, or
19218 # (2) before a word containing "conftest.", or (3) at the end.
19219 # Note that $ac_compile itself does not contain backslashes and begins
19220 # with a dollar sign (not a hyphen), so the echo should work correctly.
19221 # The option is referenced via a variable to avoid confusing sed.
19222 lt_compile=`echo "$ac_compile" | $SED \
19223 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19225 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000019226 (eval echo "\"\$as_me:19226: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019227 (eval "$lt_compile" 2>conftest.err)
19228 ac_status=$?
19229 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000019230 echo "$as_me:19230: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019231 if (exit $ac_status) && test -s "$ac_outfile"; then
19232 # The compiler can only warn and ignore the option if not recognized
19233 # So say no if there are warnings
19234 if test ! -s conftest.err; then
19235 lt_prog_compiler_pic_works_F77=yes
19236 fi
19237 fi
19238 $rm conftest*
19239
19240fi
19241echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19242echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19243
19244if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19245 case $lt_prog_compiler_pic_F77 in
19246 "" | " "*) ;;
19247 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19248 esac
19249else
19250 lt_prog_compiler_pic_F77=
19251 lt_prog_compiler_can_build_shared_F77=no
19252fi
19253
19254fi
19255case "$host_os" in
19256 # For platforms which do not support PIC, -DPIC is meaningless:
19257 *djgpp*)
19258 lt_prog_compiler_pic_F77=
19259 ;;
19260 *)
19261 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19262 ;;
19263esac
19264
19265echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19266echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19267if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269else
19270 lt_cv_prog_compiler_c_o_F77=no
19271 $rm -r conftest 2>/dev/null
19272 mkdir conftest
19273 cd conftest
19274 mkdir out
19275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19276
John Criswell47fdd832003-07-14 16:52:07 +000019277 lt_compiler_flag="-o out/conftest2.$ac_objext"
19278 # Insert the option either (1) after the last *FLAGS variable, or
19279 # (2) before a word containing "conftest.", or (3) at the end.
19280 # Note that $ac_compile itself does not contain backslashes and begins
19281 # with a dollar sign (not a hyphen), so the echo should work correctly.
19282 lt_compile=`echo "$ac_compile" | $SED \
19283 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19285 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000019286 (eval echo "\"\$as_me:19286: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019287 (eval "$lt_compile" 2>out/conftest.err)
19288 ac_status=$?
19289 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000019290 echo "$as_me:19290: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19292 then
19293 # The compiler can only warn and ignore the option if not recognized
19294 # So say no if there are warnings
19295 if test ! -s out/conftest.err; then
19296 lt_cv_prog_compiler_c_o_F77=yes
19297 fi
19298 fi
19299 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019300 $rm conftest*
19301 # SGI C++ compiler will create directory out/ii_files/ for
19302 # template instantiation
19303 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19304 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019305 cd ..
19306 rmdir conftest
19307 $rm conftest*
19308
19309fi
19310echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19311echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19312
19313
19314hard_links="nottested"
19315if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19316 # do not overwrite the value of need_locks provided by the user
19317 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19318echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19319 hard_links=yes
19320 $rm conftest*
19321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19322 touch conftest.a
19323 ln conftest.a conftest.b 2>&5 || hard_links=no
19324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19325 echo "$as_me:$LINENO: result: $hard_links" >&5
19326echo "${ECHO_T}$hard_links" >&6
19327 if test "$hard_links" = no; then
19328 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19329echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19330 need_locks=warn
19331 fi
19332else
19333 need_locks=no
19334fi
19335
19336echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19337echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19338
19339 runpath_var=
19340 allow_undefined_flag_F77=
19341 enable_shared_with_static_runtimes_F77=no
19342 archive_cmds_F77=
19343 archive_expsym_cmds_F77=
19344 old_archive_From_new_cmds_F77=
19345 old_archive_from_expsyms_cmds_F77=
19346 export_dynamic_flag_spec_F77=
19347 whole_archive_flag_spec_F77=
19348 thread_safe_flag_spec_F77=
19349 hardcode_libdir_flag_spec_F77=
19350 hardcode_libdir_flag_spec_ld_F77=
19351 hardcode_libdir_separator_F77=
19352 hardcode_direct_F77=no
19353 hardcode_minus_L_F77=no
19354 hardcode_shlibpath_var_F77=unsupported
19355 link_all_deplibs_F77=unknown
19356 hardcode_automatic_F77=no
19357 module_cmds_F77=
19358 module_expsym_cmds_F77=
19359 always_export_symbols_F77=no
19360 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19361 # include_expsyms should be a list of space-separated symbols to be *always*
19362 # included in the symbol list
19363 include_expsyms_F77=
19364 # exclude_expsyms can be an extended regexp of symbols to exclude
19365 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19366 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19367 # as well as any symbol that contains `d'.
19368 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19370 # platforms (ab)use it in PIC code, but their linkers get confused if
19371 # the symbol is explicitly referenced. Since portable code cannot
19372 # rely on this symbol name, it's probably fine to never include it in
19373 # preloaded symbol tables.
19374 extract_expsyms_cmds=
19375
19376 case $host_os in
19377 cygwin* | mingw* | pw32*)
19378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19379 # When not using gcc, we currently assume that we are using
19380 # Microsoft Visual C++.
19381 if test "$GCC" != yes; then
19382 with_gnu_ld=no
19383 fi
19384 ;;
19385 openbsd*)
19386 with_gnu_ld=no
19387 ;;
19388 esac
19389
19390 ld_shlibs_F77=yes
19391 if test "$with_gnu_ld" = yes; then
19392 # If archive_cmds runs LD, not CC, wlarc should be empty
19393 wlarc='${wl}'
19394
19395 # See if GNU ld supports shared libraries.
19396 case $host_os in
19397 aix3* | aix4* | aix5*)
19398 # On AIX/PPC, the GNU linker is very broken
19399 if test "$host_cpu" != ia64; then
19400 ld_shlibs_F77=no
19401 cat <<EOF 1>&2
19402
19403*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19404*** to be unable to reliably create shared libraries on AIX.
19405*** Therefore, libtool is disabling shared libraries support. If you
19406*** really care for shared libraries, you may want to modify your PATH
19407*** so that a non-GNU linker is found, and then restart.
19408
19409EOF
19410 fi
19411 ;;
19412
19413 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019414 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 +000019415 hardcode_libdir_flag_spec_F77='-L$libdir'
19416 hardcode_minus_L_F77=yes
19417
19418 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19419 # that the semantics of dynamic libraries on AmigaOS, at least up
19420 # to version 4, is to share data among multiple programs linked
19421 # with the same dynamic library. Since this doesn't match the
19422 # behavior of shared libraries on other platforms, we can't use
19423 # them.
19424 ld_shlibs_F77=no
19425 ;;
19426
19427 beos*)
19428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19429 allow_undefined_flag_F77=unsupported
19430 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19431 # support --undefined. This deserves some investigation. FIXME
19432 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19433 else
19434 ld_shlibs_F77=no
19435 fi
19436 ;;
19437
19438 cygwin* | mingw* | pw32*)
19439 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19440 # as there is no search path for DLLs.
19441 hardcode_libdir_flag_spec_F77='-L$libdir'
19442 allow_undefined_flag_F77=unsupported
19443 always_export_symbols_F77=no
19444 enable_shared_with_static_runtimes_F77=yes
19445 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19446
19447 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19449 # If the export-symbols file already is a .def file (1st line
19450 # is EXPORTS), use it as is; otherwise, prepend...
19451 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19452 cp $export_symbols $output_objdir/$soname.def;
19453 else
19454 echo EXPORTS > $output_objdir/$soname.def;
19455 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019456 fi~
19457 $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 +000019458 else
19459 ld_shlibs=no
19460 fi
19461 ;;
19462
19463 netbsd*)
19464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19465 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19466 wlarc=
19467 else
19468 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19469 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19470 fi
19471 ;;
19472
19473 solaris* | sysv5*)
19474 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19475 ld_shlibs_F77=no
19476 cat <<EOF 1>&2
19477
19478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19479*** create shared libraries on Solaris systems. Therefore, libtool
19480*** is disabling shared libraries support. We urge you to upgrade GNU
19481*** binutils to release 2.9.1 or newer. Another option is to modify
19482*** your PATH or compiler configuration so that the native linker is
19483*** used, and then restart.
19484
19485EOF
19486 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19489 else
19490 ld_shlibs_F77=no
19491 fi
19492 ;;
19493
19494 sunos4*)
19495 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19496 wlarc=
19497 hardcode_direct_F77=yes
19498 hardcode_shlibpath_var_F77=no
19499 ;;
19500
Reid Spencer2706f8c2004-09-19 23:53:36 +000019501 linux*)
19502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19503 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504 archive_cmds_F77="$tmp_archive_cmds"
19505 supports_anon_versioning=no
19506 case `$LD -v 2>/dev/null` in
19507 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19510 *\ 2.11.*) ;; # other 2.11 versions
19511 *) supports_anon_versioning=yes ;;
19512 esac
19513 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019514 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19515cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19516$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019517 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19518 else
19519 archive_expsym_cmds_F77="$tmp_archive_cmds"
19520 fi
19521 else
19522 ld_shlibs_F77=no
19523 fi
19524 ;;
19525
John Criswell47fdd832003-07-14 16:52:07 +000019526 *)
19527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19528 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19529 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19530 else
19531 ld_shlibs_F77=no
19532 fi
19533 ;;
19534 esac
19535
19536 if test "$ld_shlibs_F77" = yes; then
19537 runpath_var=LD_RUN_PATH
19538 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19539 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19540 # ancient GNU ld didn't support --whole-archive et. al.
19541 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19542 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19543 else
19544 whole_archive_flag_spec_F77=
19545 fi
19546 fi
19547 else
19548 # PORTME fill in a description of your system's linker (not GNU ld)
19549 case $host_os in
19550 aix3*)
19551 allow_undefined_flag_F77=unsupported
19552 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019553 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 +000019554 # Note: this linker hardcodes the directories in LIBPATH if there
19555 # are no directories specified by -L.
19556 hardcode_minus_L_F77=yes
19557 if test "$GCC" = yes && test -z "$link_static_flag"; then
19558 # Neither direct hardcoding nor static linking is supported with a
19559 # broken collect2.
19560 hardcode_direct_F77=unsupported
19561 fi
19562 ;;
19563
19564 aix4* | aix5*)
19565 if test "$host_cpu" = ia64; then
19566 # On IA64, the linker does run time linking by default, so we don't
19567 # have to do anything special.
19568 aix_use_runtimelinking=no
19569 exp_sym_flag='-Bexport'
19570 no_entry_flag=""
19571 else
19572 # If we're using GNU nm, then we don't want the "-C" option.
19573 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19574 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19575 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'
19576 else
19577 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'
19578 fi
19579 aix_use_runtimelinking=no
19580
19581 # Test if we are trying to use run time linking or normal
19582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19583 # need to do runtime linking.
19584 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19585 for ld_flag in $LDFLAGS; do
19586 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19587 aix_use_runtimelinking=yes
19588 break
19589 fi
19590 done
19591 esac
19592
19593 exp_sym_flag='-bexport'
19594 no_entry_flag='-bnoentry'
19595 fi
19596
19597 # When large executables or shared objects are built, AIX ld can
19598 # have problems creating the table of contents. If linking a library
19599 # or program results in "error TOC overflow" add -mminimal-toc to
19600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19602
19603 archive_cmds_F77=''
19604 hardcode_direct_F77=yes
19605 hardcode_libdir_separator_F77=':'
19606 link_all_deplibs_F77=yes
19607
19608 if test "$GCC" = yes; then
19609 case $host_os in aix4.012|aix4.012.*)
19610 # We only want to do this on AIX 4.2 and lower, the check
19611 # below for broken collect2 doesn't work under 4.3+
19612 collect2name=`${CC} -print-prog-name=collect2`
19613 if test -f "$collect2name" && \
19614 strings "$collect2name" | grep resolve_lib_name >/dev/null
19615 then
19616 # We have reworked collect2
19617 hardcode_direct_F77=yes
19618 else
19619 # We have old collect2
19620 hardcode_direct_F77=unsupported
19621 # It fails to find uninstalled libraries when the uninstalled
19622 # path is not listed in the libpath. Setting hardcode_minus_L
19623 # to unsupported forces relinking
19624 hardcode_minus_L_F77=yes
19625 hardcode_libdir_flag_spec_F77='-L$libdir'
19626 hardcode_libdir_separator_F77=
19627 fi
19628 esac
19629 shared_flag='-shared'
19630 else
19631 # not using gcc
19632 if test "$host_cpu" = ia64; then
19633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19634 # chokes on -Wl,-G. The following line is correct:
19635 shared_flag='-G'
19636 else
19637 if test "$aix_use_runtimelinking" = yes; then
19638 shared_flag='${wl}-G'
19639 else
19640 shared_flag='${wl}-bM:SRE'
19641 fi
19642 fi
19643 fi
19644
19645 # It seems that -bexpall does not export symbols beginning with
19646 # underscore (_), so it is better to generate a list of symbols to export.
19647 always_export_symbols_F77=yes
19648 if test "$aix_use_runtimelinking" = yes; then
19649 # Warning - without using the other runtime loading flags (-brtl),
19650 # -berok will link without error, but may produce a broken library.
19651 allow_undefined_flag_F77='-berok'
19652 # Determine the default libpath from the value encoded in an empty executable.
19653 cat >conftest.$ac_ext <<_ACEOF
19654 program main
19655
19656 end
19657_ACEOF
19658rm -f conftest.$ac_objext conftest$ac_exeext
19659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019660 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019661 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019667 { ac_try='test -z "$ac_f77_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680
19681aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19682}'`
19683# Check for a 64-bit object if we didn't find anything.
19684if 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; }
19685}'`; fi
19686else
19687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019688sed 's/^/| /' conftest.$ac_ext >&5
19689
John Criswell47fdd832003-07-14 16:52:07 +000019690fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019691rm -f conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19694
19695 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19696 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"
19697 else
19698 if test "$host_cpu" = ia64; then
19699 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19700 allow_undefined_flag_F77="-z nodefs"
19701 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"
19702 else
19703 # Determine the default libpath from the value encoded in an empty executable.
19704 cat >conftest.$ac_ext <<_ACEOF
19705 program main
19706
19707 end
19708_ACEOF
19709rm -f conftest.$ac_objext conftest$ac_exeext
19710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019711 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019718 { ac_try='test -z "$ac_f77_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731
19732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19733}'`
19734# Check for a 64-bit object if we didn't find anything.
19735if 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; }
19736}'`; fi
19737else
19738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019739sed 's/^/| /' conftest.$ac_ext >&5
19740
John Criswell47fdd832003-07-14 16:52:07 +000019741fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019742rm -f conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19745
19746 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19747 # Warning - without using the other run time loading flags,
19748 # -berok will link without error, but may produce a broken library.
19749 no_undefined_flag_F77=' ${wl}-bernotok'
19750 allow_undefined_flag_F77=' ${wl}-berok'
19751 # -bexpall does not export symbols beginning with underscore (_)
19752 always_export_symbols_F77=yes
19753 # Exported symbols can be pulled into shared objects from archives
19754 whole_archive_flag_spec_F77=' '
19755 archive_cmds_need_lc_F77=yes
19756 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019757 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 +000019758 fi
19759 fi
19760 ;;
19761
19762 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019763 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 +000019764 hardcode_libdir_flag_spec_F77='-L$libdir'
19765 hardcode_minus_L_F77=yes
19766 # see comment about different semantics on the GNU ld section
19767 ld_shlibs_F77=no
19768 ;;
19769
Reid Spencer2706f8c2004-09-19 23:53:36 +000019770 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019771 export_dynamic_flag_spec_F77=-rdynamic
19772 ;;
19773
19774 cygwin* | mingw* | pw32*)
19775 # When not using gcc, we currently assume that we are using
19776 # Microsoft Visual C++.
19777 # hardcode_libdir_flag_spec is actually meaningless, as there is
19778 # no search path for DLLs.
19779 hardcode_libdir_flag_spec_F77=' '
19780 allow_undefined_flag_F77=unsupported
19781 # Tell ltmain to make .lib files, not .a files.
19782 libext=lib
19783 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019784 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019785 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019786 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 +000019787 # The linker will automatically build a .lib file if we build a DLL.
19788 old_archive_From_new_cmds_F77='true'
19789 # FIXME: Should let the user specify the lib program.
19790 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19791 fix_srcfile_path='`cygpath -w "$srcfile"`'
19792 enable_shared_with_static_runtimes_F77=yes
19793 ;;
19794
19795 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019796 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019797 rhapsody* | darwin1.[012])
19798 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19799 ;;
19800 *) # Darwin 1.3 on
19801 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19802 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19803 else
19804 case ${MACOSX_DEPLOYMENT_TARGET} in
19805 10.[012])
19806 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19807 ;;
19808 10.*)
19809 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19810 ;;
19811 esac
19812 fi
19813 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019814 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019815 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019816 hardcode_direct_F77=no
19817 hardcode_automatic_F77=yes
19818 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019819 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019820 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019821 if test "$GCC" = yes ; then
19822 output_verbose_link_cmd='echo'
19823 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19824 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19825 # 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 +000019826 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}'
19827 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 +000019828 else
19829 case "$cc_basename" in
19830 xlc*)
19831 output_verbose_link_cmd='echo'
19832 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19833 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19834 # 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 +000019835 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}'
19836 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 +000019837 ;;
19838 *)
19839 ld_shlibs_F77=no
19840 ;;
19841 esac
John Criswell47fdd832003-07-14 16:52:07 +000019842 fi
19843 ;;
19844
19845 dgux*)
19846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19847 hardcode_libdir_flag_spec_F77='-L$libdir'
19848 hardcode_shlibpath_var_F77=no
19849 ;;
19850
19851 freebsd1*)
19852 ld_shlibs_F77=no
19853 ;;
19854
19855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19856 # support. Future versions do this automatically, but an explicit c++rt0.o
19857 # does not break anything, and helps significantly (at the cost of a little
19858 # extra space).
19859 freebsd2.2*)
19860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19861 hardcode_libdir_flag_spec_F77='-R$libdir'
19862 hardcode_direct_F77=yes
19863 hardcode_shlibpath_var_F77=no
19864 ;;
19865
19866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19867 freebsd2*)
19868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19869 hardcode_direct_F77=yes
19870 hardcode_minus_L_F77=yes
19871 hardcode_shlibpath_var_F77=no
19872 ;;
19873
19874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019875 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019876 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19877 hardcode_libdir_flag_spec_F77='-R$libdir'
19878 hardcode_direct_F77=yes
19879 hardcode_shlibpath_var_F77=no
19880 ;;
19881
19882 hpux9*)
19883 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019884 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 +000019885 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019886 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 +000019887 fi
19888 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19889 hardcode_libdir_separator_F77=:
19890 hardcode_direct_F77=yes
19891
19892 # hardcode_minus_L: Not really in the search PATH,
19893 # but as the default location of the library.
19894 hardcode_minus_L_F77=yes
19895 export_dynamic_flag_spec_F77='${wl}-E'
19896 ;;
19897
19898 hpux10* | hpux11*)
19899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19900 case "$host_cpu" in
19901 hppa*64*|ia64*)
19902 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19903 ;;
19904 *)
19905 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19906 ;;
19907 esac
19908 else
19909 case "$host_cpu" in
19910 hppa*64*|ia64*)
19911 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19912 ;;
19913 *)
19914 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19915 ;;
19916 esac
19917 fi
19918 if test "$with_gnu_ld" = no; then
19919 case "$host_cpu" in
19920 hppa*64*)
19921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19922 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19923 hardcode_libdir_separator_F77=:
19924 hardcode_direct_F77=no
19925 hardcode_shlibpath_var_F77=no
19926 ;;
19927 ia64*)
19928 hardcode_libdir_flag_spec_F77='-L$libdir'
19929 hardcode_direct_F77=no
19930 hardcode_shlibpath_var_F77=no
19931
19932 # hardcode_minus_L: Not really in the search PATH,
19933 # but as the default location of the library.
19934 hardcode_minus_L_F77=yes
19935 ;;
19936 *)
19937 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19938 hardcode_libdir_separator_F77=:
19939 hardcode_direct_F77=yes
19940 export_dynamic_flag_spec_F77='${wl}-E'
19941
19942 # hardcode_minus_L: Not really in the search PATH,
19943 # but as the default location of the library.
19944 hardcode_minus_L_F77=yes
19945 ;;
19946 esac
19947 fi
19948 ;;
19949
19950 irix5* | irix6* | nonstopux*)
19951 if test "$GCC" = yes; then
19952 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'
19953 else
19954 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'
19955 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19956 fi
19957 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19958 hardcode_libdir_separator_F77=:
19959 link_all_deplibs_F77=yes
19960 ;;
19961
19962 netbsd*)
19963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19964 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19965 else
19966 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19967 fi
19968 hardcode_libdir_flag_spec_F77='-R$libdir'
19969 hardcode_direct_F77=yes
19970 hardcode_shlibpath_var_F77=no
19971 ;;
19972
19973 newsos6)
19974 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19975 hardcode_direct_F77=yes
19976 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19977 hardcode_libdir_separator_F77=:
19978 hardcode_shlibpath_var_F77=no
19979 ;;
19980
19981 openbsd*)
19982 hardcode_direct_F77=yes
19983 hardcode_shlibpath_var_F77=no
19984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19985 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019986 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 +000019987 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19988 export_dynamic_flag_spec_F77='${wl}-E'
19989 else
19990 case $host_os in
19991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19993 hardcode_libdir_flag_spec_F77='-R$libdir'
19994 ;;
19995 *)
19996 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19997 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19998 ;;
19999 esac
20000 fi
20001 ;;
20002
20003 os2*)
20004 hardcode_libdir_flag_spec_F77='-L$libdir'
20005 hardcode_minus_L_F77=yes
20006 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000020007 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 +000020008 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20009 ;;
20010
20011 osf3*)
20012 if test "$GCC" = yes; then
20013 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20014 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'
20015 else
20016 allow_undefined_flag_F77=' -expect_unresolved \*'
20017 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'
20018 fi
20019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20020 hardcode_libdir_separator_F77=:
20021 ;;
20022
20023 osf4* | osf5*) # as osf3* with the addition of -msym flag
20024 if test "$GCC" = yes; then
20025 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20026 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'
20027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20028 else
20029 allow_undefined_flag_F77=' -expect_unresolved \*'
20030 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 +000020031 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~
20032 $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'
20033
John Criswell47fdd832003-07-14 16:52:07 +000020034 # Both c and cxx compiler support -rpath directly
20035 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20036 fi
20037 hardcode_libdir_separator_F77=:
20038 ;;
20039
20040 sco3.2v5*)
20041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20042 hardcode_shlibpath_var_F77=no
20043 export_dynamic_flag_spec_F77='${wl}-Bexport'
20044 runpath_var=LD_RUN_PATH
20045 hardcode_runpath_var=yes
20046 ;;
20047
20048 solaris*)
20049 no_undefined_flag_F77=' -z text'
20050 if test "$GCC" = yes; then
20051 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20053 $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 +000020054 else
20055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20057 $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 +000020058 fi
20059 hardcode_libdir_flag_spec_F77='-R$libdir'
20060 hardcode_shlibpath_var_F77=no
20061 case $host_os in
20062 solaris2.[0-5] | solaris2.[0-5].*) ;;
20063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20064 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20065 esac
20066 link_all_deplibs_F77=yes
20067 ;;
20068
20069 sunos4*)
20070 if test "x$host_vendor" = xsequent; then
20071 # Use $CC to link under sequent, because it throws in some extra .o
20072 # files that make .init and .fini sections work.
20073 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20074 else
20075 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20076 fi
20077 hardcode_libdir_flag_spec_F77='-L$libdir'
20078 hardcode_direct_F77=yes
20079 hardcode_minus_L_F77=yes
20080 hardcode_shlibpath_var_F77=no
20081 ;;
20082
20083 sysv4)
20084 case $host_vendor in
20085 sni)
20086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20087 hardcode_direct_F77=yes # is this really true???
20088 ;;
20089 siemens)
20090 ## LD is ld it makes a PLAMLIB
20091 ## CC just makes a GrossModule.
20092 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20093 reload_cmds_F77='$CC -r -o $output$reload_objs'
20094 hardcode_direct_F77=no
20095 ;;
20096 motorola)
20097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20098 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20099 ;;
20100 esac
20101 runpath_var='LD_RUN_PATH'
20102 hardcode_shlibpath_var_F77=no
20103 ;;
20104
20105 sysv4.3*)
20106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20107 hardcode_shlibpath_var_F77=no
20108 export_dynamic_flag_spec_F77='-Bexport'
20109 ;;
20110
20111 sysv4*MP*)
20112 if test -d /usr/nec; then
20113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114 hardcode_shlibpath_var_F77=no
20115 runpath_var=LD_RUN_PATH
20116 hardcode_runpath_var=yes
20117 ld_shlibs_F77=yes
20118 fi
20119 ;;
20120
20121 sysv4.2uw2*)
20122 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20123 hardcode_direct_F77=yes
20124 hardcode_minus_L_F77=no
20125 hardcode_shlibpath_var_F77=no
20126 hardcode_runpath_var=yes
20127 runpath_var=LD_RUN_PATH
20128 ;;
20129
20130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20131 no_undefined_flag_F77='${wl}-z ${wl}text'
20132 if test "$GCC" = yes; then
20133 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20134 else
20135 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20136 fi
20137 runpath_var='LD_RUN_PATH'
20138 hardcode_shlibpath_var_F77=no
20139 ;;
20140
20141 sysv5*)
20142 no_undefined_flag_F77=' -z text'
20143 # $CC -shared without GNU ld will not create a library from C++
20144 # object files and a static libstdc++, better avoid it by now
20145 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020146 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20147 $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 +000020148 hardcode_libdir_flag_spec_F77=
20149 hardcode_shlibpath_var_F77=no
20150 runpath_var='LD_RUN_PATH'
20151 ;;
20152
20153 uts4*)
20154 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20155 hardcode_libdir_flag_spec_F77='-L$libdir'
20156 hardcode_shlibpath_var_F77=no
20157 ;;
20158
20159 *)
20160 ld_shlibs_F77=no
20161 ;;
20162 esac
20163 fi
20164
20165echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20166echo "${ECHO_T}$ld_shlibs_F77" >&6
20167test "$ld_shlibs_F77" = no && can_build_shared=no
20168
20169variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20170if test "$GCC" = yes; then
20171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20172fi
20173
20174#
20175# Do we need to explicitly link libc?
20176#
20177case "x$archive_cmds_need_lc_F77" in
20178x|xyes)
20179 # Assume -lc should be added
20180 archive_cmds_need_lc_F77=yes
20181
20182 if test "$enable_shared" = yes && test "$GCC" = yes; then
20183 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020184 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020185 # FIXME: we may have to deal with multi-command sequences.
20186 ;;
20187 '$CC '*)
20188 # Test whether the compiler implicitly links with -lc since on some
20189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20190 # to ld, don't add -lc before -lgcc.
20191 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20192echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20193 $rm conftest*
20194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20195
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } 2>conftest.err; then
20201 soname=conftest
20202 lib=conftest
20203 libobjs=conftest.$ac_objext
20204 deplibs=
20205 wl=$lt_prog_compiler_wl_F77
20206 compiler_flags=-v
20207 linker_flags=-v
20208 verstring=
20209 output_objdir=.
20210 libname=conftest
20211 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20212 allow_undefined_flag_F77=
20213 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20214 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }
20218 then
20219 archive_cmds_need_lc_F77=no
20220 else
20221 archive_cmds_need_lc_F77=yes
20222 fi
20223 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20224 else
20225 cat conftest.err 1>&5
20226 fi
20227 $rm conftest*
20228 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20229echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20230 ;;
20231 esac
20232 fi
20233 ;;
20234esac
20235
John Criswell47fdd832003-07-14 16:52:07 +000020236echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20237echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20238library_names_spec=
20239libname_spec='lib$name'
20240soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020241shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020242postinstall_cmds=
20243postuninstall_cmds=
20244finish_cmds=
20245finish_eval=
20246shlibpath_var=
20247shlibpath_overrides_runpath=unknown
20248version_type=none
20249dynamic_linker="$host_os ld.so"
20250sys_lib_dlsearch_path_spec="/lib /usr/lib"
20251if test "$GCC" = yes; then
20252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20253 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20254 # if the path contains ";" then we assume it to be the separator
20255 # otherwise default to the standard path separator (i.e. ":") - it is
20256 # assumed that no part of a normal pathname contains ";" but that should
20257 # okay in the real world where ";" in dirpaths is itself problematic.
20258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20259 else
20260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20261 fi
20262else
20263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20264fi
20265need_lib_prefix=unknown
20266hardcode_into_libs=no
20267
20268# when you set need_version to no, make sure it does not cause -set_version
20269# flags to be left without arguments
20270need_version=unknown
20271
20272case $host_os in
20273aix3*)
20274 version_type=linux
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20276 shlibpath_var=LIBPATH
20277
20278 # AIX 3 has no versioning support, so we append a major version to the name.
20279 soname_spec='${libname}${release}${shared_ext}$major'
20280 ;;
20281
20282aix4* | aix5*)
20283 version_type=linux
20284 need_lib_prefix=no
20285 need_version=no
20286 hardcode_into_libs=yes
20287 if test "$host_cpu" = ia64; then
20288 # AIX 5 supports IA64
20289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 else
20292 # With GCC up to 2.95.x, collect2 would create an import file
20293 # for dependence libraries. The import file would start with
20294 # the line `#! .'. This would cause the generated library to
20295 # depend on `.', always an invalid library. This was fixed in
20296 # development snapshots of GCC prior to 3.0.
20297 case $host_os in
20298 aix4 | aix4.[01] | aix4.[01].*)
20299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20300 echo ' yes '
20301 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20302 :
20303 else
20304 can_build_shared=no
20305 fi
20306 ;;
20307 esac
20308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20309 # soname into executable. Probably we can add versioning support to
20310 # collect2, so additional links can be useful in future.
20311 if test "$aix_use_runtimelinking" = yes; then
20312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20313 # instead of lib<name>.a to let people know that these are not
20314 # typical AIX shared libraries.
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 else
20317 # We preserve .a as extension for shared libraries through AIX4.2
20318 # and later when we are not doing run time linking.
20319 library_names_spec='${libname}${release}.a $libname.a'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 fi
20322 shlibpath_var=LIBPATH
20323 fi
20324 ;;
20325
20326amigaos*)
20327 library_names_spec='$libname.ixlibrary $libname.a'
20328 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020329 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 +000020330 ;;
20331
20332beos*)
20333 library_names_spec='${libname}${shared_ext}'
20334 dynamic_linker="$host_os ld.so"
20335 shlibpath_var=LIBRARY_PATH
20336 ;;
20337
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020339 version_type=linux
20340 need_version=no
20341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20347 # the default ld.so.conf also contains /usr/contrib/lib and
20348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20349 # libtool to hard-code these into programs
20350 ;;
20351
20352cygwin* | mingw* | pw32*)
20353 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020354 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020355 need_version=no
20356 need_lib_prefix=no
20357
20358 case $GCC,$host_os in
20359 yes,cygwin* | yes,mingw* | yes,pw32*)
20360 library_names_spec='$libname.dll.a'
20361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020362 postinstall_cmds='base_file=`basename \${file}`~
20363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20364 dldir=$destdir/`dirname \$dlpath`~
20365 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020366 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20368 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020369 $rm \$dlpath'
20370 shlibpath_overrides_runpath=yes
20371
20372 case $host_os in
20373 cygwin*)
20374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20375 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 +000020376 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020377 ;;
20378 mingw*)
20379 # MinGW DLLs use traditional 'lib' prefix
20380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20382 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20383 # It is most probably a Windows format PATH printed by
20384 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20385 # path with ; separators, and with drive letters. We can handle the
20386 # drive letters (cygwin fileutils understands them), so leave them,
20387 # especially as we might pass files found there to a mingw objdump,
20388 # which wouldn't understand a cygwinified path. Ahh.
20389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20390 else
20391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20392 fi
20393 ;;
20394 pw32*)
20395 # pw32 DLLs use 'pw' prefix rather than 'lib'
20396 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20397 ;;
20398 esac
20399 ;;
20400
20401 *)
20402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20403 ;;
20404 esac
20405 dynamic_linker='Win32 ld.exe'
20406 # FIXME: first we should search . and the directory the executable is in
20407 shlibpath_var=PATH
20408 ;;
20409
20410darwin* | rhapsody*)
20411 dynamic_linker="$host_os dyld"
20412 version_type=darwin
20413 need_lib_prefix=no
20414 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020416 soname_spec='${libname}${release}${major}$shared_ext'
20417 shlibpath_overrides_runpath=yes
20418 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020419 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020420 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020421 if test "$GCC" = yes; then
20422 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"`
20423 else
20424 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020425 fi
20426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20427 ;;
20428
20429dgux*)
20430 version_type=linux
20431 need_lib_prefix=no
20432 need_version=no
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 ;;
20437
20438freebsd1*)
20439 dynamic_linker=no
20440 ;;
20441
Reid Spencer2706f8c2004-09-19 23:53:36 +000020442kfreebsd*-gnu)
20443 version_type=linux
20444 need_lib_prefix=no
20445 need_version=no
20446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20447 soname_spec='${libname}${release}${shared_ext}$major'
20448 shlibpath_var=LD_LIBRARY_PATH
20449 shlibpath_overrides_runpath=no
20450 hardcode_into_libs=yes
20451 dynamic_linker='GNU ld.so'
20452 ;;
20453
John Criswell47fdd832003-07-14 16:52:07 +000020454freebsd*)
20455 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20456 version_type=freebsd-$objformat
20457 case $version_type in
20458 freebsd-elf*)
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20460 need_version=no
20461 need_lib_prefix=no
20462 ;;
20463 freebsd-*)
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20465 need_version=yes
20466 ;;
20467 esac
20468 shlibpath_var=LD_LIBRARY_PATH
20469 case $host_os in
20470 freebsd2*)
20471 shlibpath_overrides_runpath=yes
20472 ;;
20473 freebsd3.01* | freebsdelf3.01*)
20474 shlibpath_overrides_runpath=yes
20475 hardcode_into_libs=yes
20476 ;;
20477 *) # from 3.2 on
20478 shlibpath_overrides_runpath=no
20479 hardcode_into_libs=yes
20480 ;;
20481 esac
20482 ;;
20483
20484gnu*)
20485 version_type=linux
20486 need_lib_prefix=no
20487 need_version=no
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 hardcode_into_libs=yes
20492 ;;
20493
20494hpux9* | hpux10* | hpux11*)
20495 # Give a soname corresponding to the major version so that dld.sl refuses to
20496 # link against other versions.
20497 version_type=sunos
20498 need_lib_prefix=no
20499 need_version=no
20500 case "$host_cpu" in
20501 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020502 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020503 hardcode_into_libs=yes
20504 dynamic_linker="$host_os dld.so"
20505 shlibpath_var=LD_LIBRARY_PATH
20506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508 soname_spec='${libname}${release}${shared_ext}$major'
20509 if test "X$HPUX_IA64_MODE" = X32; then
20510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20511 else
20512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20513 fi
20514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20515 ;;
20516 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020517 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020518 hardcode_into_libs=yes
20519 dynamic_linker="$host_os dld.sl"
20520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20526 ;;
20527 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020528 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020529 dynamic_linker="$host_os dld.sl"
20530 shlibpath_var=SHLIB_PATH
20531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 ;;
20535 esac
20536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20537 postinstall_cmds='chmod 555 $lib'
20538 ;;
20539
20540irix5* | irix6* | nonstopux*)
20541 case $host_os in
20542 nonstopux*) version_type=nonstopux ;;
20543 *)
20544 if test "$lt_cv_prog_gnu_ld" = yes; then
20545 version_type=linux
20546 else
20547 version_type=irix
20548 fi ;;
20549 esac
20550 need_lib_prefix=no
20551 need_version=no
20552 soname_spec='${libname}${release}${shared_ext}$major'
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20554 case $host_os in
20555 irix5* | nonstopux*)
20556 libsuff= shlibsuff=
20557 ;;
20558 *)
20559 case $LD in # libtool.m4 will add one of these switches to LD
20560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20561 libsuff= shlibsuff= libmagic=32-bit;;
20562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20563 libsuff=32 shlibsuff=N32 libmagic=N32;;
20564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20566 *) libsuff= shlibsuff= libmagic=never-match;;
20567 esac
20568 ;;
20569 esac
20570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20571 shlibpath_overrides_runpath=no
20572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20574 hardcode_into_libs=yes
20575 ;;
20576
20577# No shared lib support for Linux oldld, aout, or coff.
20578linux*oldld* | linux*aout* | linux*coff*)
20579 dynamic_linker=no
20580 ;;
20581
20582# This must be Linux ELF.
20583linux*)
20584 version_type=linux
20585 need_lib_prefix=no
20586 need_version=no
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588 soname_spec='${libname}${release}${shared_ext}$major'
20589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20590 shlibpath_var=LD_LIBRARY_PATH
20591 shlibpath_overrides_runpath=no
20592 # This implies no fast_install, which is unacceptable.
20593 # Some rework will be needed to allow for fast_install
20594 # before this can be enabled.
20595 hardcode_into_libs=yes
20596
Reid Spencer2706f8c2004-09-19 23:53:36 +000020597 # Append ld.so.conf contents to the search path
20598 if test -f /etc/ld.so.conf; then
20599 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20601 fi
20602
John Criswell47fdd832003-07-14 16:52:07 +000020603 # We used to test for /lib/ld.so.1 and disable shared libraries on
20604 # powerpc, because MkLinux only supported shared libraries with the
20605 # GNU dynamic linker. Since this was broken with cross compilers,
20606 # most powerpc-linux boxes support dynamic linking these days and
20607 # people can always --disable-shared, the test was removed, and we
20608 # assume the GNU/Linux dynamic linker is in use.
20609 dynamic_linker='GNU/Linux ld.so'
20610 ;;
20611
Reid Spencer2706f8c2004-09-19 23:53:36 +000020612knetbsd*-gnu)
20613 version_type=linux
20614 need_lib_prefix=no
20615 need_version=no
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20617 soname_spec='${libname}${release}${shared_ext}$major'
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=no
20620 hardcode_into_libs=yes
20621 dynamic_linker='GNU ld.so'
20622 ;;
20623
John Criswell47fdd832003-07-14 16:52:07 +000020624netbsd*)
20625 version_type=sunos
20626 need_lib_prefix=no
20627 need_version=no
20628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631 dynamic_linker='NetBSD (a.out) ld.so'
20632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020634 soname_spec='${libname}${release}${shared_ext}$major'
20635 dynamic_linker='NetBSD ld.elf_so'
20636 fi
20637 shlibpath_var=LD_LIBRARY_PATH
20638 shlibpath_overrides_runpath=yes
20639 hardcode_into_libs=yes
20640 ;;
20641
20642newsos6)
20643 version_type=linux
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 shlibpath_var=LD_LIBRARY_PATH
20646 shlibpath_overrides_runpath=yes
20647 ;;
20648
Reid Spencer2706f8c2004-09-19 23:53:36 +000020649nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020650 version_type=linux
20651 need_lib_prefix=no
20652 need_version=no
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654 soname_spec='${libname}${release}${shared_ext}$major'
20655 shlibpath_var=LD_LIBRARY_PATH
20656 shlibpath_overrides_runpath=yes
20657 ;;
20658
20659openbsd*)
20660 version_type=sunos
20661 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020662 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20665 shlibpath_var=LD_LIBRARY_PATH
20666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20667 case $host_os in
20668 openbsd2.[89] | openbsd2.[89].*)
20669 shlibpath_overrides_runpath=no
20670 ;;
20671 *)
20672 shlibpath_overrides_runpath=yes
20673 ;;
20674 esac
20675 else
20676 shlibpath_overrides_runpath=yes
20677 fi
20678 ;;
20679
20680os2*)
20681 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020682 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020683 need_lib_prefix=no
20684 library_names_spec='$libname${shared_ext} $libname.a'
20685 dynamic_linker='OS/2 ld.exe'
20686 shlibpath_var=LIBPATH
20687 ;;
20688
20689osf3* | osf4* | osf5*)
20690 version_type=osf
20691 need_lib_prefix=no
20692 need_version=no
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 shlibpath_var=LD_LIBRARY_PATH
20696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20698 ;;
20699
20700sco3.2v5*)
20701 version_type=osf
20702 soname_spec='${libname}${release}${shared_ext}$major'
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 shlibpath_var=LD_LIBRARY_PATH
20705 ;;
20706
20707solaris*)
20708 version_type=linux
20709 need_lib_prefix=no
20710 need_version=no
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath=yes
20715 hardcode_into_libs=yes
20716 # ldd complains unless libraries are executable
20717 postinstall_cmds='chmod +x $lib'
20718 ;;
20719
20720sunos4*)
20721 version_type=sunos
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20723 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20724 shlibpath_var=LD_LIBRARY_PATH
20725 shlibpath_overrides_runpath=yes
20726 if test "$with_gnu_ld" = yes; then
20727 need_lib_prefix=no
20728 fi
20729 need_version=yes
20730 ;;
20731
20732sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20733 version_type=linux
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20735 soname_spec='${libname}${release}${shared_ext}$major'
20736 shlibpath_var=LD_LIBRARY_PATH
20737 case $host_vendor in
20738 sni)
20739 shlibpath_overrides_runpath=no
20740 need_lib_prefix=no
20741 export_dynamic_flag_spec='${wl}-Blargedynsym'
20742 runpath_var=LD_RUN_PATH
20743 ;;
20744 siemens)
20745 need_lib_prefix=no
20746 ;;
20747 motorola)
20748 need_lib_prefix=no
20749 need_version=no
20750 shlibpath_overrides_runpath=no
20751 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20752 ;;
20753 esac
20754 ;;
20755
20756sysv4*MP*)
20757 if test -d /usr/nec ;then
20758 version_type=linux
20759 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20760 soname_spec='$libname${shared_ext}.$major'
20761 shlibpath_var=LD_LIBRARY_PATH
20762 fi
20763 ;;
20764
20765uts4*)
20766 version_type=linux
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 shlibpath_var=LD_LIBRARY_PATH
20770 ;;
20771
20772*)
20773 dynamic_linker=no
20774 ;;
20775esac
20776echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20777echo "${ECHO_T}$dynamic_linker" >&6
20778test "$dynamic_linker" = no && can_build_shared=no
20779
Reid Spencer2706f8c2004-09-19 23:53:36 +000020780echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20781echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20782hardcode_action_F77=
20783if test -n "$hardcode_libdir_flag_spec_F77" || \
20784 test -n "$runpath_var_F77" || \
20785 test "X$hardcode_automatic_F77" = "Xyes" ; then
20786
20787 # We can hardcode non-existant directories.
20788 if test "$hardcode_direct_F77" != no &&
20789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20790 # have to relink, otherwise we might link with an installed library
20791 # when we should be linking with a yet-to-be-installed one
20792 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20793 test "$hardcode_minus_L_F77" != no; then
20794 # Linking always hardcodes the temporary library directory.
20795 hardcode_action_F77=relink
20796 else
20797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20798 hardcode_action_F77=immediate
20799 fi
20800else
20801 # We cannot hardcode anything, or else we can only hardcode existing
20802 # directories.
20803 hardcode_action_F77=unsupported
20804fi
20805echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20806echo "${ECHO_T}$hardcode_action_F77" >&6
20807
20808if test "$hardcode_action_F77" = relink; then
20809 # Fast installation is not supported
20810 enable_fast_install=no
20811elif test "$shlibpath_overrides_runpath" = yes ||
20812 test "$enable_shared" = no; then
20813 # Fast installation is not necessary
20814 enable_fast_install=needless
20815fi
20816
20817striplib=
20818old_striplib=
20819echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20820echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20821if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20822 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20823 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20824 echo "$as_me:$LINENO: result: yes" >&5
20825echo "${ECHO_T}yes" >&6
20826else
20827# FIXME - insert some real tests, host_os isn't really good enough
20828 case $host_os in
20829 darwin*)
20830 if test -n "$STRIP" ; then
20831 striplib="$STRIP -x"
20832 echo "$as_me:$LINENO: result: yes" >&5
20833echo "${ECHO_T}yes" >&6
20834 else
20835 echo "$as_me:$LINENO: result: no" >&5
20836echo "${ECHO_T}no" >&6
20837fi
20838 ;;
20839 *)
20840 echo "$as_me:$LINENO: result: no" >&5
20841echo "${ECHO_T}no" >&6
20842 ;;
20843 esac
20844fi
20845
20846
John Criswell47fdd832003-07-14 16:52:07 +000020847
20848# The else clause should only fire when bootstrapping the
20849# libtool distribution, otherwise you forgot to ship ltmain.sh
20850# with your package, and you will get complaints that there are
20851# no rules to generate ltmain.sh.
20852if test -f "$ltmain"; then
20853 # See if we are running on zsh, and set the options which allow our commands through
20854 # without removal of \ escapes.
20855 if test -n "${ZSH_VERSION+set}" ; then
20856 setopt NO_GLOB_SUBST
20857 fi
20858 # Now quote all the things that may contain metacharacters while being
20859 # careful not to overquote the AC_SUBSTed values. We take copies of the
20860 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20862 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20865 deplibs_check_method reload_flag reload_cmds need_locks \
20866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20867 lt_cv_sys_global_symbol_to_c_name_address \
20868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20869 old_postinstall_cmds old_postuninstall_cmds \
20870 compiler_F77 \
20871 CC_F77 \
20872 LD_F77 \
20873 lt_prog_compiler_wl_F77 \
20874 lt_prog_compiler_pic_F77 \
20875 lt_prog_compiler_static_F77 \
20876 lt_prog_compiler_no_builtin_flag_F77 \
20877 export_dynamic_flag_spec_F77 \
20878 thread_safe_flag_spec_F77 \
20879 whole_archive_flag_spec_F77 \
20880 enable_shared_with_static_runtimes_F77 \
20881 old_archive_cmds_F77 \
20882 old_archive_from_new_cmds_F77 \
20883 predep_objects_F77 \
20884 postdep_objects_F77 \
20885 predeps_F77 \
20886 postdeps_F77 \
20887 compiler_lib_search_path_F77 \
20888 archive_cmds_F77 \
20889 archive_expsym_cmds_F77 \
20890 postinstall_cmds_F77 \
20891 postuninstall_cmds_F77 \
20892 old_archive_from_expsyms_cmds_F77 \
20893 allow_undefined_flag_F77 \
20894 no_undefined_flag_F77 \
20895 export_symbols_cmds_F77 \
20896 hardcode_libdir_flag_spec_F77 \
20897 hardcode_libdir_flag_spec_ld_F77 \
20898 hardcode_libdir_separator_F77 \
20899 hardcode_automatic_F77 \
20900 module_cmds_F77 \
20901 module_expsym_cmds_F77 \
20902 lt_cv_prog_compiler_c_o_F77 \
20903 exclude_expsyms_F77 \
20904 include_expsyms_F77; do
20905
20906 case $var in
20907 old_archive_cmds_F77 | \
20908 old_archive_from_new_cmds_F77 | \
20909 archive_cmds_F77 | \
20910 archive_expsym_cmds_F77 | \
20911 module_cmds_F77 | \
20912 module_expsym_cmds_F77 | \
20913 old_archive_from_expsyms_cmds_F77 | \
20914 export_symbols_cmds_F77 | \
20915 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20916 postinstall_cmds | postuninstall_cmds | \
20917 old_postinstall_cmds | old_postuninstall_cmds | \
20918 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20919 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020920 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 +000020921 ;;
20922 *)
20923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20924 ;;
20925 esac
20926 done
20927
20928 case $lt_echo in
20929 *'\$0 --fallback-echo"')
20930 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20931 ;;
20932 esac
20933
20934cfgfile="$ofile"
20935
20936 cat <<__EOF__ >> "$cfgfile"
20937# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20938
20939# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20940
20941# Shell to use when invoking shell scripts.
20942SHELL=$lt_SHELL
20943
20944# Whether or not to build shared libraries.
20945build_libtool_libs=$enable_shared
20946
20947# Whether or not to build static libraries.
20948build_old_libs=$enable_static
20949
20950# Whether or not to add -lc for building shared libraries.
20951build_libtool_need_lc=$archive_cmds_need_lc_F77
20952
20953# Whether or not to disallow shared libs when runtime libs are static
20954allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20955
20956# Whether or not to optimize for fast installation.
20957fast_install=$enable_fast_install
20958
20959# The host system.
20960host_alias=$host_alias
20961host=$host
20962
20963# An echo program that does not interpret backslashes.
20964echo=$lt_echo
20965
20966# The archiver.
20967AR=$lt_AR
20968AR_FLAGS=$lt_AR_FLAGS
20969
20970# A C compiler.
20971LTCC=$lt_LTCC
20972
20973# A language-specific compiler.
20974CC=$lt_compiler_F77
20975
20976# Is the compiler the GNU C compiler?
20977with_gcc=$GCC_F77
20978
20979# An ERE matcher.
20980EGREP=$lt_EGREP
20981
20982# The linker used to build libraries.
20983LD=$lt_LD_F77
20984
20985# Whether we need hard or soft links.
20986LN_S=$lt_LN_S
20987
20988# A BSD-compatible nm program.
20989NM=$lt_NM
20990
20991# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020992STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020993
20994# Used to examine libraries when file_magic_cmd begins "file"
20995MAGIC_CMD=$MAGIC_CMD
20996
20997# Used on cygwin: DLL creation program.
20998DLLTOOL="$DLLTOOL"
20999
21000# Used on cygwin: object dumper.
21001OBJDUMP="$OBJDUMP"
21002
21003# Used on cygwin: assembler.
21004AS="$AS"
21005
21006# The name of the directory that contains temporary libtool files.
21007objdir=$objdir
21008
21009# How to create reloadable object files.
21010reload_flag=$lt_reload_flag
21011reload_cmds=$lt_reload_cmds
21012
21013# How to pass a linker flag through the compiler.
21014wl=$lt_lt_prog_compiler_wl_F77
21015
21016# Object file suffix (normally "o").
21017objext="$ac_objext"
21018
21019# Old archive suffix (normally "a").
21020libext="$libext"
21021
21022# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021023shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021024
21025# Executable file suffix (normally "").
21026exeext="$exeext"
21027
21028# Additional compiler flags for building library objects.
21029pic_flag=$lt_lt_prog_compiler_pic_F77
21030pic_mode=$pic_mode
21031
21032# What is the maximum length of a command?
21033max_cmd_len=$lt_cv_sys_max_cmd_len
21034
21035# Does compiler simultaneously support -c and -o options?
21036compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21037
21038# Must we lock files when doing compilation ?
21039need_locks=$lt_need_locks
21040
21041# Do we need the lib prefix for modules?
21042need_lib_prefix=$need_lib_prefix
21043
21044# Do we need a version for libraries?
21045need_version=$need_version
21046
21047# Whether dlopen is supported.
21048dlopen_support=$enable_dlopen
21049
21050# Whether dlopen of programs is supported.
21051dlopen_self=$enable_dlopen_self
21052
21053# Whether dlopen of statically linked programs is supported.
21054dlopen_self_static=$enable_dlopen_self_static
21055
21056# Compiler flag to prevent dynamic linking.
21057link_static_flag=$lt_lt_prog_compiler_static_F77
21058
21059# Compiler flag to turn off builtin functions.
21060no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21061
21062# Compiler flag to allow reflexive dlopens.
21063export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21064
21065# Compiler flag to generate shared objects directly from archives.
21066whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21067
21068# Compiler flag to generate thread-safe objects.
21069thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21070
21071# Library versioning type.
21072version_type=$version_type
21073
21074# Format of library name prefix.
21075libname_spec=$lt_libname_spec
21076
21077# List of archive names. First name is the real one, the rest are links.
21078# The last name is the one that the linker finds with -lNAME.
21079library_names_spec=$lt_library_names_spec
21080
21081# The coded name of the library, if different from the real name.
21082soname_spec=$lt_soname_spec
21083
21084# Commands used to build and install an old-style archive.
21085RANLIB=$lt_RANLIB
21086old_archive_cmds=$lt_old_archive_cmds_F77
21087old_postinstall_cmds=$lt_old_postinstall_cmds
21088old_postuninstall_cmds=$lt_old_postuninstall_cmds
21089
21090# Create an old-style archive from a shared archive.
21091old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21092
21093# Create a temporary old-style archive to link instead of a shared archive.
21094old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21095
21096# Commands used to build and install a shared archive.
21097archive_cmds=$lt_archive_cmds_F77
21098archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21099postinstall_cmds=$lt_postinstall_cmds
21100postuninstall_cmds=$lt_postuninstall_cmds
21101
21102# Commands used to build a loadable module (assumed same as above if empty)
21103module_cmds=$lt_module_cmds_F77
21104module_expsym_cmds=$lt_module_expsym_cmds_F77
21105
21106# Commands to strip libraries.
21107old_striplib=$lt_old_striplib
21108striplib=$lt_striplib
21109
21110# Dependencies to place before the objects being linked to create a
21111# shared library.
21112predep_objects=$lt_predep_objects_F77
21113
21114# Dependencies to place after the objects being linked to create a
21115# shared library.
21116postdep_objects=$lt_postdep_objects_F77
21117
21118# Dependencies to place before the objects being linked to create a
21119# shared library.
21120predeps=$lt_predeps_F77
21121
21122# Dependencies to place after the objects being linked to create a
21123# shared library.
21124postdeps=$lt_postdeps_F77
21125
21126# The library search path used internally by the compiler when linking
21127# a shared library.
21128compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21129
21130# Method to check whether dependent libraries are shared objects.
21131deplibs_check_method=$lt_deplibs_check_method
21132
21133# Command to use when deplibs_check_method == file_magic.
21134file_magic_cmd=$lt_file_magic_cmd
21135
21136# Flag that allows shared libraries with undefined symbols to be built.
21137allow_undefined_flag=$lt_allow_undefined_flag_F77
21138
21139# Flag that forces no undefined symbols.
21140no_undefined_flag=$lt_no_undefined_flag_F77
21141
21142# Commands used to finish a libtool library installation in a directory.
21143finish_cmds=$lt_finish_cmds
21144
21145# Same as above, but a single script fragment to be evaled but not shown.
21146finish_eval=$lt_finish_eval
21147
21148# Take the output of nm and produce a listing of raw symbols and C names.
21149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21150
21151# Transform the output of nm in a proper C declaration
21152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21153
21154# Transform the output of nm in a C name address pair
21155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21156
21157# This is the shared library runtime path variable.
21158runpath_var=$runpath_var
21159
21160# This is the shared library path variable.
21161shlibpath_var=$shlibpath_var
21162
21163# Is shlibpath searched before the hard-coded library search path?
21164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21165
21166# How to hardcode a shared library path into an executable.
21167hardcode_action=$hardcode_action_F77
21168
21169# Whether we should hardcode library paths into libraries.
21170hardcode_into_libs=$hardcode_into_libs
21171
21172# Flag to hardcode \$libdir into a binary during linking.
21173# This must work even if \$libdir does not exist.
21174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21175
21176# If ld is used when linking, flag to hardcode \$libdir into
21177# a binary during linking. This must work even if \$libdir does
21178# not exist.
21179hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21180
21181# Whether we need a single -rpath flag with a separated argument.
21182hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21183
21184# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21185# resulting binary.
21186hardcode_direct=$hardcode_direct_F77
21187
21188# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21189# resulting binary.
21190hardcode_minus_L=$hardcode_minus_L_F77
21191
21192# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21193# the resulting binary.
21194hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21195
21196# Set to yes if building a shared library automatically hardcodes DIR into the library
21197# and all subsequent libraries and executables linked against it.
21198hardcode_automatic=$hardcode_automatic_F77
21199
21200# Variables whose values should be saved in libtool wrapper scripts and
21201# restored at relink time.
21202variables_saved_for_relink="$variables_saved_for_relink"
21203
21204# Whether libtool must link a program against all its dependency libraries.
21205link_all_deplibs=$link_all_deplibs_F77
21206
21207# Compile-time system search path for libraries
21208sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21209
21210# Run-time system search path for libraries
21211sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21212
21213# Fix the shell variable \$srcfile for the compiler.
21214fix_srcfile_path="$fix_srcfile_path_F77"
21215
21216# Set to yes if exported symbols are required.
21217always_export_symbols=$always_export_symbols_F77
21218
21219# The commands to list exported symbols.
21220export_symbols_cmds=$lt_export_symbols_cmds_F77
21221
21222# The commands to extract the exported symbol list from a shared archive.
21223extract_expsyms_cmds=$lt_extract_expsyms_cmds
21224
21225# Symbols that should not be listed in the preloaded symbols.
21226exclude_expsyms=$lt_exclude_expsyms_F77
21227
21228# Symbols that must always be exported.
21229include_expsyms=$lt_include_expsyms_F77
21230
21231# ### END LIBTOOL TAG CONFIG: $tagname
21232
21233__EOF__
21234
21235
21236else
21237 # If there is no Makefile yet, we rely on a make rule to execute
21238 # `config.status --recheck' to rerun these tests and create the
21239 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021240 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21241 if test -f "$ltmain_in"; then
21242 test -f Makefile && make "$ltmain"
21243 fi
John Criswell47fdd832003-07-14 16:52:07 +000021244fi
21245
21246
21247ac_ext=c
21248ac_cpp='$CPP $CPPFLAGS'
21249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251ac_compiler_gnu=$ac_cv_c_compiler_gnu
21252
21253CC="$lt_save_CC"
21254
21255 else
21256 tagname=""
21257 fi
21258 ;;
21259
21260 GCJ)
21261 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021262 ac_ext=c
21263ac_cpp='$CPP $CPPFLAGS'
21264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021267
21268
21269# Source file extension for Java test sources.
21270ac_ext=java
21271
21272# Object file extension for compiled Java test sources.
21273objext=o
21274objext_GCJ=$objext
21275
21276# Code to be used in simple compile tests
21277lt_simple_compile_test_code="class foo {}\n"
21278
21279# Code to be used in simple link tests
21280lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21281
21282# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21283
21284# If no C compiler was specified, use CC.
21285LTCC=${LTCC-"$CC"}
21286
21287# Allow CC to be a program name with arguments.
21288compiler=$CC
21289
21290
21291# Allow CC to be a program name with arguments.
21292lt_save_CC="$CC"
21293CC=${GCJ-"gcj"}
21294compiler=$CC
21295compiler_GCJ=$CC
21296
21297# GCJ did not exist at the time GCC didn't implicitly link libc in.
21298archive_cmds_need_lc_GCJ=no
21299
John Criswell47fdd832003-07-14 16:52:07 +000021300
21301lt_prog_compiler_no_builtin_flag_GCJ=
21302
21303if test "$GCC" = yes; then
21304 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21305
Reid Spencer2706f8c2004-09-19 23:53:36 +000021306
21307echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021308echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21309if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21311else
21312 lt_cv_prog_compiler_rtti_exceptions=no
21313 ac_outfile=conftest.$ac_objext
21314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21315 lt_compiler_flag="-fno-rtti -fno-exceptions"
21316 # Insert the option either (1) after the last *FLAGS variable, or
21317 # (2) before a word containing "conftest.", or (3) at the end.
21318 # Note that $ac_compile itself does not contain backslashes and begins
21319 # with a dollar sign (not a hyphen), so the echo should work correctly.
21320 # The option is referenced via a variable to avoid confusing sed.
21321 lt_compile=`echo "$ac_compile" | $SED \
21322 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21324 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000021325 (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021326 (eval "$lt_compile" 2>conftest.err)
21327 ac_status=$?
21328 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000021329 echo "$as_me:21329: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021330 if (exit $ac_status) && test -s "$ac_outfile"; then
21331 # The compiler can only warn and ignore the option if not recognized
21332 # So say no if there are warnings
21333 if test ! -s conftest.err; then
21334 lt_cv_prog_compiler_rtti_exceptions=yes
21335 fi
21336 fi
21337 $rm conftest*
21338
21339fi
21340echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21342
21343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21344 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21345else
21346 :
21347fi
21348
21349fi
21350
21351lt_prog_compiler_wl_GCJ=
21352lt_prog_compiler_pic_GCJ=
21353lt_prog_compiler_static_GCJ=
21354
21355echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21357
21358 if test "$GCC" = yes; then
21359 lt_prog_compiler_wl_GCJ='-Wl,'
21360 lt_prog_compiler_static_GCJ='-static'
21361
21362 case $host_os in
21363 aix*)
21364 # All AIX code is PIC.
21365 if test "$host_cpu" = ia64; then
21366 # AIX 5 now supports IA64 processor
21367 lt_prog_compiler_static_GCJ='-Bstatic'
21368 fi
21369 ;;
21370
21371 amigaos*)
21372 # FIXME: we need at least 68020 code to build shared libraries, but
21373 # adding the `-m68020' flag to GCC prevents building anything better,
21374 # like `-m68040'.
21375 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21376 ;;
21377
21378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21379 # PIC is the default for these OSes.
21380 ;;
21381
21382 mingw* | pw32* | os2*)
21383 # This hack is so that the source file can tell whether it is being
21384 # built for inclusion in a dll (and should export symbols for example).
21385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21386 ;;
21387
21388 darwin* | rhapsody*)
21389 # PIC is the default on this platform
21390 # Common symbols not allowed in MH_DYLIB files
21391 lt_prog_compiler_pic_GCJ='-fno-common'
21392 ;;
21393
21394 msdosdjgpp*)
21395 # Just because we use GCC doesn't mean we suddenly get shared libraries
21396 # on systems that don't support them.
21397 lt_prog_compiler_can_build_shared_GCJ=no
21398 enable_shared=no
21399 ;;
21400
21401 sysv4*MP*)
21402 if test -d /usr/nec; then
21403 lt_prog_compiler_pic_GCJ=-Kconform_pic
21404 fi
21405 ;;
21406
21407 hpux*)
21408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21409 # not for PA HP-UX.
21410 case "$host_cpu" in
21411 hppa*64*|ia64*)
21412 # +Z the default
21413 ;;
21414 *)
21415 lt_prog_compiler_pic_GCJ='-fPIC'
21416 ;;
21417 esac
21418 ;;
21419
21420 *)
21421 lt_prog_compiler_pic_GCJ='-fPIC'
21422 ;;
21423 esac
21424 else
21425 # PORTME Check for flag to pass linker flags through the system compiler.
21426 case $host_os in
21427 aix*)
21428 lt_prog_compiler_wl_GCJ='-Wl,'
21429 if test "$host_cpu" = ia64; then
21430 # AIX 5 now supports IA64 processor
21431 lt_prog_compiler_static_GCJ='-Bstatic'
21432 else
21433 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21434 fi
21435 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 darwin*)
21437 # PIC is the default on this platform
21438 # Common symbols not allowed in MH_DYLIB files
21439 case "$cc_basename" in
21440 xlc*)
21441 lt_prog_compiler_pic_GCJ='-qnocommon'
21442 lt_prog_compiler_wl_GCJ='-Wl,'
21443 ;;
21444 esac
21445 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021446
21447 mingw* | pw32* | os2*)
21448 # This hack is so that the source file can tell whether it is being
21449 # built for inclusion in a dll (and should export symbols for example).
21450 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21451 ;;
21452
21453 hpux9* | hpux10* | hpux11*)
21454 lt_prog_compiler_wl_GCJ='-Wl,'
21455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21456 # not for PA HP-UX.
21457 case "$host_cpu" in
21458 hppa*64*|ia64*)
21459 # +Z the default
21460 ;;
21461 *)
21462 lt_prog_compiler_pic_GCJ='+Z'
21463 ;;
21464 esac
21465 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21466 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21467 ;;
21468
21469 irix5* | irix6* | nonstopux*)
21470 lt_prog_compiler_wl_GCJ='-Wl,'
21471 # PIC (with -KPIC) is the default.
21472 lt_prog_compiler_static_GCJ='-non_shared'
21473 ;;
21474
21475 newsos6)
21476 lt_prog_compiler_pic_GCJ='-KPIC'
21477 lt_prog_compiler_static_GCJ='-Bstatic'
21478 ;;
21479
21480 linux*)
21481 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021482 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021483 lt_prog_compiler_wl_GCJ='-Wl,'
21484 lt_prog_compiler_pic_GCJ='-KPIC'
21485 lt_prog_compiler_static_GCJ='-static'
21486 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021487 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021488 lt_prog_compiler_wl_GCJ='-Wl,'
21489 # All Alpha code is PIC.
21490 lt_prog_compiler_static_GCJ='-non_shared'
21491 ;;
21492 esac
21493 ;;
21494
21495 osf3* | osf4* | osf5*)
21496 lt_prog_compiler_wl_GCJ='-Wl,'
21497 # All OSF/1 code is PIC.
21498 lt_prog_compiler_static_GCJ='-non_shared'
21499 ;;
21500
21501 sco3.2v5*)
21502 lt_prog_compiler_pic_GCJ='-Kpic'
21503 lt_prog_compiler_static_GCJ='-dn'
21504 ;;
21505
21506 solaris*)
21507 lt_prog_compiler_wl_GCJ='-Wl,'
21508 lt_prog_compiler_pic_GCJ='-KPIC'
21509 lt_prog_compiler_static_GCJ='-Bstatic'
21510 ;;
21511
21512 sunos4*)
21513 lt_prog_compiler_wl_GCJ='-Qoption ld '
21514 lt_prog_compiler_pic_GCJ='-PIC'
21515 lt_prog_compiler_static_GCJ='-Bstatic'
21516 ;;
21517
21518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21519 lt_prog_compiler_wl_GCJ='-Wl,'
21520 lt_prog_compiler_pic_GCJ='-KPIC'
21521 lt_prog_compiler_static_GCJ='-Bstatic'
21522 ;;
21523
21524 sysv4*MP*)
21525 if test -d /usr/nec ;then
21526 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21527 lt_prog_compiler_static_GCJ='-Bstatic'
21528 fi
21529 ;;
21530
21531 uts4*)
21532 lt_prog_compiler_pic_GCJ='-pic'
21533 lt_prog_compiler_static_GCJ='-Bstatic'
21534 ;;
21535
21536 *)
21537 lt_prog_compiler_can_build_shared_GCJ=no
21538 ;;
21539 esac
21540 fi
21541
21542echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21543echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21544
21545#
21546# Check to make sure the PIC flag actually works.
21547#
21548if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021549
21550echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021551echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21552if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555 lt_prog_compiler_pic_works_GCJ=no
21556 ac_outfile=conftest.$ac_objext
21557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21558 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21559 # Insert the option either (1) after the last *FLAGS variable, or
21560 # (2) before a word containing "conftest.", or (3) at the end.
21561 # Note that $ac_compile itself does not contain backslashes and begins
21562 # with a dollar sign (not a hyphen), so the echo should work correctly.
21563 # The option is referenced via a variable to avoid confusing sed.
21564 lt_compile=`echo "$ac_compile" | $SED \
21565 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000021568 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021569 (eval "$lt_compile" 2>conftest.err)
21570 ac_status=$?
21571 cat conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000021572 echo "$as_me:21572: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021573 if (exit $ac_status) && test -s "$ac_outfile"; then
21574 # The compiler can only warn and ignore the option if not recognized
21575 # So say no if there are warnings
21576 if test ! -s conftest.err; then
21577 lt_prog_compiler_pic_works_GCJ=yes
21578 fi
21579 fi
21580 $rm conftest*
21581
21582fi
21583echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21584echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21585
21586if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21587 case $lt_prog_compiler_pic_GCJ in
21588 "" | " "*) ;;
21589 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21590 esac
21591else
21592 lt_prog_compiler_pic_GCJ=
21593 lt_prog_compiler_can_build_shared_GCJ=no
21594fi
21595
21596fi
21597case "$host_os" in
21598 # For platforms which do not support PIC, -DPIC is meaningless:
21599 *djgpp*)
21600 lt_prog_compiler_pic_GCJ=
21601 ;;
21602 *)
21603 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21604 ;;
21605esac
21606
21607echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21608echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21609if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611else
21612 lt_cv_prog_compiler_c_o_GCJ=no
21613 $rm -r conftest 2>/dev/null
21614 mkdir conftest
21615 cd conftest
21616 mkdir out
21617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21618
John Criswell47fdd832003-07-14 16:52:07 +000021619 lt_compiler_flag="-o out/conftest2.$ac_objext"
21620 # Insert the option either (1) after the last *FLAGS variable, or
21621 # (2) before a word containing "conftest.", or (3) at the end.
21622 # Note that $ac_compile itself does not contain backslashes and begins
21623 # with a dollar sign (not a hyphen), so the echo should work correctly.
21624 lt_compile=`echo "$ac_compile" | $SED \
21625 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21627 -e 's:$: $lt_compiler_flag:'`
John Criswell0389cf72006-06-20 17:44:40 +000021628 (eval echo "\"\$as_me:21628: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021629 (eval "$lt_compile" 2>out/conftest.err)
21630 ac_status=$?
21631 cat out/conftest.err >&5
John Criswell0389cf72006-06-20 17:44:40 +000021632 echo "$as_me:21632: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21634 then
21635 # The compiler can only warn and ignore the option if not recognized
21636 # So say no if there are warnings
21637 if test ! -s out/conftest.err; then
21638 lt_cv_prog_compiler_c_o_GCJ=yes
21639 fi
21640 fi
21641 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021642 $rm conftest*
21643 # SGI C++ compiler will create directory out/ii_files/ for
21644 # template instantiation
21645 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21646 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021647 cd ..
21648 rmdir conftest
21649 $rm conftest*
21650
21651fi
21652echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21653echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21654
21655
21656hard_links="nottested"
21657if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21658 # do not overwrite the value of need_locks provided by the user
21659 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21660echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21661 hard_links=yes
21662 $rm conftest*
21663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21664 touch conftest.a
21665 ln conftest.a conftest.b 2>&5 || hard_links=no
21666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21667 echo "$as_me:$LINENO: result: $hard_links" >&5
21668echo "${ECHO_T}$hard_links" >&6
21669 if test "$hard_links" = no; then
21670 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21671echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21672 need_locks=warn
21673 fi
21674else
21675 need_locks=no
21676fi
21677
21678echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21679echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21680
21681 runpath_var=
21682 allow_undefined_flag_GCJ=
21683 enable_shared_with_static_runtimes_GCJ=no
21684 archive_cmds_GCJ=
21685 archive_expsym_cmds_GCJ=
21686 old_archive_From_new_cmds_GCJ=
21687 old_archive_from_expsyms_cmds_GCJ=
21688 export_dynamic_flag_spec_GCJ=
21689 whole_archive_flag_spec_GCJ=
21690 thread_safe_flag_spec_GCJ=
21691 hardcode_libdir_flag_spec_GCJ=
21692 hardcode_libdir_flag_spec_ld_GCJ=
21693 hardcode_libdir_separator_GCJ=
21694 hardcode_direct_GCJ=no
21695 hardcode_minus_L_GCJ=no
21696 hardcode_shlibpath_var_GCJ=unsupported
21697 link_all_deplibs_GCJ=unknown
21698 hardcode_automatic_GCJ=no
21699 module_cmds_GCJ=
21700 module_expsym_cmds_GCJ=
21701 always_export_symbols_GCJ=no
21702 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21703 # include_expsyms should be a list of space-separated symbols to be *always*
21704 # included in the symbol list
21705 include_expsyms_GCJ=
21706 # exclude_expsyms can be an extended regexp of symbols to exclude
21707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21709 # as well as any symbol that contains `d'.
21710 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21712 # platforms (ab)use it in PIC code, but their linkers get confused if
21713 # the symbol is explicitly referenced. Since portable code cannot
21714 # rely on this symbol name, it's probably fine to never include it in
21715 # preloaded symbol tables.
21716 extract_expsyms_cmds=
21717
21718 case $host_os in
21719 cygwin* | mingw* | pw32*)
21720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21721 # When not using gcc, we currently assume that we are using
21722 # Microsoft Visual C++.
21723 if test "$GCC" != yes; then
21724 with_gnu_ld=no
21725 fi
21726 ;;
21727 openbsd*)
21728 with_gnu_ld=no
21729 ;;
21730 esac
21731
21732 ld_shlibs_GCJ=yes
21733 if test "$with_gnu_ld" = yes; then
21734 # If archive_cmds runs LD, not CC, wlarc should be empty
21735 wlarc='${wl}'
21736
21737 # See if GNU ld supports shared libraries.
21738 case $host_os in
21739 aix3* | aix4* | aix5*)
21740 # On AIX/PPC, the GNU linker is very broken
21741 if test "$host_cpu" != ia64; then
21742 ld_shlibs_GCJ=no
21743 cat <<EOF 1>&2
21744
21745*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21746*** to be unable to reliably create shared libraries on AIX.
21747*** Therefore, libtool is disabling shared libraries support. If you
21748*** really care for shared libraries, you may want to modify your PATH
21749*** so that a non-GNU linker is found, and then restart.
21750
21751EOF
21752 fi
21753 ;;
21754
21755 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021756 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 +000021757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21758 hardcode_minus_L_GCJ=yes
21759
21760 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21761 # that the semantics of dynamic libraries on AmigaOS, at least up
21762 # to version 4, is to share data among multiple programs linked
21763 # with the same dynamic library. Since this doesn't match the
21764 # behavior of shared libraries on other platforms, we can't use
21765 # them.
21766 ld_shlibs_GCJ=no
21767 ;;
21768
21769 beos*)
21770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21771 allow_undefined_flag_GCJ=unsupported
21772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21773 # support --undefined. This deserves some investigation. FIXME
21774 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21775 else
21776 ld_shlibs_GCJ=no
21777 fi
21778 ;;
21779
21780 cygwin* | mingw* | pw32*)
21781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21782 # as there is no search path for DLLs.
21783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21784 allow_undefined_flag_GCJ=unsupported
21785 always_export_symbols_GCJ=no
21786 enable_shared_with_static_runtimes_GCJ=yes
21787 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21788
21789 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21790 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21791 # If the export-symbols file already is a .def file (1st line
21792 # is EXPORTS), use it as is; otherwise, prepend...
21793 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21794 cp $export_symbols $output_objdir/$soname.def;
21795 else
21796 echo EXPORTS > $output_objdir/$soname.def;
21797 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021798 fi~
21799 $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 +000021800 else
21801 ld_shlibs=no
21802 fi
21803 ;;
21804
21805 netbsd*)
21806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21807 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21808 wlarc=
21809 else
21810 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21811 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21812 fi
21813 ;;
21814
21815 solaris* | sysv5*)
21816 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21817 ld_shlibs_GCJ=no
21818 cat <<EOF 1>&2
21819
21820*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21821*** create shared libraries on Solaris systems. Therefore, libtool
21822*** is disabling shared libraries support. We urge you to upgrade GNU
21823*** binutils to release 2.9.1 or newer. Another option is to modify
21824*** your PATH or compiler configuration so that the native linker is
21825*** used, and then restart.
21826
21827EOF
21828 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21829 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21831 else
21832 ld_shlibs_GCJ=no
21833 fi
21834 ;;
21835
21836 sunos4*)
21837 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21838 wlarc=
21839 hardcode_direct_GCJ=yes
21840 hardcode_shlibpath_var_GCJ=no
21841 ;;
21842
Reid Spencer2706f8c2004-09-19 23:53:36 +000021843 linux*)
21844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21845 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21846 archive_cmds_GCJ="$tmp_archive_cmds"
21847 supports_anon_versioning=no
21848 case `$LD -v 2>/dev/null` in
21849 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21850 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21851 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21852 *\ 2.11.*) ;; # other 2.11 versions
21853 *) supports_anon_versioning=yes ;;
21854 esac
21855 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021856 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21857cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21858$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21860 else
21861 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21862 fi
21863 else
21864 ld_shlibs_GCJ=no
21865 fi
21866 ;;
21867
John Criswell47fdd832003-07-14 16:52:07 +000021868 *)
21869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21872 else
21873 ld_shlibs_GCJ=no
21874 fi
21875 ;;
21876 esac
21877
21878 if test "$ld_shlibs_GCJ" = yes; then
21879 runpath_var=LD_RUN_PATH
21880 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21881 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21882 # ancient GNU ld didn't support --whole-archive et. al.
21883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21884 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21885 else
21886 whole_archive_flag_spec_GCJ=
21887 fi
21888 fi
21889 else
21890 # PORTME fill in a description of your system's linker (not GNU ld)
21891 case $host_os in
21892 aix3*)
21893 allow_undefined_flag_GCJ=unsupported
21894 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021895 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 +000021896 # Note: this linker hardcodes the directories in LIBPATH if there
21897 # are no directories specified by -L.
21898 hardcode_minus_L_GCJ=yes
21899 if test "$GCC" = yes && test -z "$link_static_flag"; then
21900 # Neither direct hardcoding nor static linking is supported with a
21901 # broken collect2.
21902 hardcode_direct_GCJ=unsupported
21903 fi
21904 ;;
21905
21906 aix4* | aix5*)
21907 if test "$host_cpu" = ia64; then
21908 # On IA64, the linker does run time linking by default, so we don't
21909 # have to do anything special.
21910 aix_use_runtimelinking=no
21911 exp_sym_flag='-Bexport'
21912 no_entry_flag=""
21913 else
21914 # If we're using GNU nm, then we don't want the "-C" option.
21915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21916 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21917 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'
21918 else
21919 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'
21920 fi
21921 aix_use_runtimelinking=no
21922
21923 # Test if we are trying to use run time linking or normal
21924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21925 # need to do runtime linking.
21926 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21927 for ld_flag in $LDFLAGS; do
21928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21929 aix_use_runtimelinking=yes
21930 break
21931 fi
21932 done
21933 esac
21934
21935 exp_sym_flag='-bexport'
21936 no_entry_flag='-bnoentry'
21937 fi
21938
21939 # When large executables or shared objects are built, AIX ld can
21940 # have problems creating the table of contents. If linking a library
21941 # or program results in "error TOC overflow" add -mminimal-toc to
21942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21944
21945 archive_cmds_GCJ=''
21946 hardcode_direct_GCJ=yes
21947 hardcode_libdir_separator_GCJ=':'
21948 link_all_deplibs_GCJ=yes
21949
21950 if test "$GCC" = yes; then
21951 case $host_os in aix4.012|aix4.012.*)
21952 # We only want to do this on AIX 4.2 and lower, the check
21953 # below for broken collect2 doesn't work under 4.3+
21954 collect2name=`${CC} -print-prog-name=collect2`
21955 if test -f "$collect2name" && \
21956 strings "$collect2name" | grep resolve_lib_name >/dev/null
21957 then
21958 # We have reworked collect2
21959 hardcode_direct_GCJ=yes
21960 else
21961 # We have old collect2
21962 hardcode_direct_GCJ=unsupported
21963 # It fails to find uninstalled libraries when the uninstalled
21964 # path is not listed in the libpath. Setting hardcode_minus_L
21965 # to unsupported forces relinking
21966 hardcode_minus_L_GCJ=yes
21967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21968 hardcode_libdir_separator_GCJ=
21969 fi
21970 esac
21971 shared_flag='-shared'
21972 else
21973 # not using gcc
21974 if test "$host_cpu" = ia64; then
21975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21976 # chokes on -Wl,-G. The following line is correct:
21977 shared_flag='-G'
21978 else
21979 if test "$aix_use_runtimelinking" = yes; then
21980 shared_flag='${wl}-G'
21981 else
21982 shared_flag='${wl}-bM:SRE'
21983 fi
21984 fi
21985 fi
21986
21987 # It seems that -bexpall does not export symbols beginning with
21988 # underscore (_), so it is better to generate a list of symbols to export.
21989 always_export_symbols_GCJ=yes
21990 if test "$aix_use_runtimelinking" = yes; then
21991 # Warning - without using the other runtime loading flags (-brtl),
21992 # -berok will link without error, but may produce a broken library.
21993 allow_undefined_flag_GCJ='-berok'
21994 # Determine the default libpath from the value encoded in an empty executable.
21995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022001
John Criswell47fdd832003-07-14 16:52:07 +000022002int
22003main ()
22004{
22005
22006 ;
22007 return 0;
22008}
22009_ACEOF
22010rm -f conftest.$ac_objext conftest$ac_exeext
22011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022012 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022019 { ac_try='test -z "$ac_c_werror_flag"
22020 || test ! -s conftest.err'
22021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022 (eval $ac_try) 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032
22033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22034}'`
22035# Check for a 64-bit object if we didn't find anything.
22036if 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; }
22037}'`; fi
22038else
22039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022040sed 's/^/| /' conftest.$ac_ext >&5
22041
John Criswell47fdd832003-07-14 16:52:07 +000022042fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022043rm -f conftest.err conftest.$ac_objext \
22044 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22046
22047 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22048 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"
22049 else
22050 if test "$host_cpu" = ia64; then
22051 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22052 allow_undefined_flag_GCJ="-z nodefs"
22053 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"
22054 else
22055 # Determine the default libpath from the value encoded in an empty executable.
22056 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022057/* confdefs.h. */
22058_ACEOF
22059cat confdefs.h >>conftest.$ac_ext
22060cat >>conftest.$ac_ext <<_ACEOF
22061/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022062
John Criswell47fdd832003-07-14 16:52:07 +000022063int
22064main ()
22065{
22066
22067 ;
22068 return 0;
22069}
22070_ACEOF
22071rm -f conftest.$ac_objext conftest$ac_exeext
22072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022073 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022080 { ac_try='test -z "$ac_c_werror_flag"
22081 || test ! -s conftest.err'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; } &&
22087 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22090 ac_status=$?
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
22093
22094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22095}'`
22096# Check for a 64-bit object if we didn't find anything.
22097if 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; }
22098}'`; fi
22099else
22100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022101sed 's/^/| /' conftest.$ac_ext >&5
22102
John Criswell47fdd832003-07-14 16:52:07 +000022103fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022104rm -f conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22107
22108 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22109 # Warning - without using the other run time loading flags,
22110 # -berok will link without error, but may produce a broken library.
22111 no_undefined_flag_GCJ=' ${wl}-bernotok'
22112 allow_undefined_flag_GCJ=' ${wl}-berok'
22113 # -bexpall does not export symbols beginning with underscore (_)
22114 always_export_symbols_GCJ=yes
22115 # Exported symbols can be pulled into shared objects from archives
22116 whole_archive_flag_spec_GCJ=' '
22117 archive_cmds_need_lc_GCJ=yes
22118 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022119 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 +000022120 fi
22121 fi
22122 ;;
22123
22124 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022125 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 +000022126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22127 hardcode_minus_L_GCJ=yes
22128 # see comment about different semantics on the GNU ld section
22129 ld_shlibs_GCJ=no
22130 ;;
22131
Reid Spencer2706f8c2004-09-19 23:53:36 +000022132 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022133 export_dynamic_flag_spec_GCJ=-rdynamic
22134 ;;
22135
22136 cygwin* | mingw* | pw32*)
22137 # When not using gcc, we currently assume that we are using
22138 # Microsoft Visual C++.
22139 # hardcode_libdir_flag_spec is actually meaningless, as there is
22140 # no search path for DLLs.
22141 hardcode_libdir_flag_spec_GCJ=' '
22142 allow_undefined_flag_GCJ=unsupported
22143 # Tell ltmain to make .lib files, not .a files.
22144 libext=lib
22145 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022146 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022147 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022148 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 +000022149 # The linker will automatically build a .lib file if we build a DLL.
22150 old_archive_From_new_cmds_GCJ='true'
22151 # FIXME: Should let the user specify the lib program.
22152 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22153 fix_srcfile_path='`cygpath -w "$srcfile"`'
22154 enable_shared_with_static_runtimes_GCJ=yes
22155 ;;
22156
22157 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022158 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022159 rhapsody* | darwin1.[012])
22160 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22161 ;;
22162 *) # Darwin 1.3 on
22163 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22165 else
22166 case ${MACOSX_DEPLOYMENT_TARGET} in
22167 10.[012])
22168 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22169 ;;
22170 10.*)
22171 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22172 ;;
22173 esac
22174 fi
22175 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022176 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022177 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022178 hardcode_direct_GCJ=no
22179 hardcode_automatic_GCJ=yes
22180 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022181 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022182 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022183 if test "$GCC" = yes ; then
22184 output_verbose_link_cmd='echo'
22185 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22186 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22187 # 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 +000022188 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}'
22189 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 +000022190 else
22191 case "$cc_basename" in
22192 xlc*)
22193 output_verbose_link_cmd='echo'
22194 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22195 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22196 # 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 +000022197 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}'
22198 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 +000022199 ;;
22200 *)
22201 ld_shlibs_GCJ=no
22202 ;;
22203 esac
John Criswell47fdd832003-07-14 16:52:07 +000022204 fi
22205 ;;
22206
22207 dgux*)
22208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22210 hardcode_shlibpath_var_GCJ=no
22211 ;;
22212
22213 freebsd1*)
22214 ld_shlibs_GCJ=no
22215 ;;
22216
22217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22218 # support. Future versions do this automatically, but an explicit c++rt0.o
22219 # does not break anything, and helps significantly (at the cost of a little
22220 # extra space).
22221 freebsd2.2*)
22222 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22223 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22224 hardcode_direct_GCJ=yes
22225 hardcode_shlibpath_var_GCJ=no
22226 ;;
22227
22228 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22229 freebsd2*)
22230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22231 hardcode_direct_GCJ=yes
22232 hardcode_minus_L_GCJ=yes
22233 hardcode_shlibpath_var_GCJ=no
22234 ;;
22235
22236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022237 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022238 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240 hardcode_direct_GCJ=yes
22241 hardcode_shlibpath_var_GCJ=no
22242 ;;
22243
22244 hpux9*)
22245 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022246 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 +000022247 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022248 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 +000022249 fi
22250 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22251 hardcode_libdir_separator_GCJ=:
22252 hardcode_direct_GCJ=yes
22253
22254 # hardcode_minus_L: Not really in the search PATH,
22255 # but as the default location of the library.
22256 hardcode_minus_L_GCJ=yes
22257 export_dynamic_flag_spec_GCJ='${wl}-E'
22258 ;;
22259
22260 hpux10* | hpux11*)
22261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22262 case "$host_cpu" in
22263 hppa*64*|ia64*)
22264 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22265 ;;
22266 *)
22267 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22268 ;;
22269 esac
22270 else
22271 case "$host_cpu" in
22272 hppa*64*|ia64*)
22273 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22274 ;;
22275 *)
22276 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22277 ;;
22278 esac
22279 fi
22280 if test "$with_gnu_ld" = no; then
22281 case "$host_cpu" in
22282 hppa*64*)
22283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22284 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22285 hardcode_libdir_separator_GCJ=:
22286 hardcode_direct_GCJ=no
22287 hardcode_shlibpath_var_GCJ=no
22288 ;;
22289 ia64*)
22290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22291 hardcode_direct_GCJ=no
22292 hardcode_shlibpath_var_GCJ=no
22293
22294 # hardcode_minus_L: Not really in the search PATH,
22295 # but as the default location of the library.
22296 hardcode_minus_L_GCJ=yes
22297 ;;
22298 *)
22299 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22300 hardcode_libdir_separator_GCJ=:
22301 hardcode_direct_GCJ=yes
22302 export_dynamic_flag_spec_GCJ='${wl}-E'
22303
22304 # hardcode_minus_L: Not really in the search PATH,
22305 # but as the default location of the library.
22306 hardcode_minus_L_GCJ=yes
22307 ;;
22308 esac
22309 fi
22310 ;;
22311
22312 irix5* | irix6* | nonstopux*)
22313 if test "$GCC" = yes; then
22314 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'
22315 else
22316 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'
22317 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22318 fi
22319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22320 hardcode_libdir_separator_GCJ=:
22321 link_all_deplibs_GCJ=yes
22322 ;;
22323
22324 netbsd*)
22325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22327 else
22328 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22329 fi
22330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22331 hardcode_direct_GCJ=yes
22332 hardcode_shlibpath_var_GCJ=no
22333 ;;
22334
22335 newsos6)
22336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22337 hardcode_direct_GCJ=yes
22338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22339 hardcode_libdir_separator_GCJ=:
22340 hardcode_shlibpath_var_GCJ=no
22341 ;;
22342
22343 openbsd*)
22344 hardcode_direct_GCJ=yes
22345 hardcode_shlibpath_var_GCJ=no
22346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022348 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 +000022349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22350 export_dynamic_flag_spec_GCJ='${wl}-E'
22351 else
22352 case $host_os in
22353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22356 ;;
22357 *)
22358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22359 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22360 ;;
22361 esac
22362 fi
22363 ;;
22364
22365 os2*)
22366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22367 hardcode_minus_L_GCJ=yes
22368 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022369 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 +000022370 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22371 ;;
22372
22373 osf3*)
22374 if test "$GCC" = yes; then
22375 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22376 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'
22377 else
22378 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22379 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'
22380 fi
22381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22382 hardcode_libdir_separator_GCJ=:
22383 ;;
22384
22385 osf4* | osf5*) # as osf3* with the addition of -msym flag
22386 if test "$GCC" = yes; then
22387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22388 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'
22389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22390 else
22391 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22392 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 +000022393 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~
22394 $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'
22395
John Criswell47fdd832003-07-14 16:52:07 +000022396 # Both c and cxx compiler support -rpath directly
22397 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22398 fi
22399 hardcode_libdir_separator_GCJ=:
22400 ;;
22401
22402 sco3.2v5*)
22403 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22404 hardcode_shlibpath_var_GCJ=no
22405 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22406 runpath_var=LD_RUN_PATH
22407 hardcode_runpath_var=yes
22408 ;;
22409
22410 solaris*)
22411 no_undefined_flag_GCJ=' -z text'
22412 if test "$GCC" = yes; then
22413 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22415 $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 +000022416 else
22417 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022418 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22419 $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 +000022420 fi
22421 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22422 hardcode_shlibpath_var_GCJ=no
22423 case $host_os in
22424 solaris2.[0-5] | solaris2.[0-5].*) ;;
22425 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22426 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22427 esac
22428 link_all_deplibs_GCJ=yes
22429 ;;
22430
22431 sunos4*)
22432 if test "x$host_vendor" = xsequent; then
22433 # Use $CC to link under sequent, because it throws in some extra .o
22434 # files that make .init and .fini sections work.
22435 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22436 else
22437 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22438 fi
22439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22440 hardcode_direct_GCJ=yes
22441 hardcode_minus_L_GCJ=yes
22442 hardcode_shlibpath_var_GCJ=no
22443 ;;
22444
22445 sysv4)
22446 case $host_vendor in
22447 sni)
22448 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22449 hardcode_direct_GCJ=yes # is this really true???
22450 ;;
22451 siemens)
22452 ## LD is ld it makes a PLAMLIB
22453 ## CC just makes a GrossModule.
22454 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22455 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22456 hardcode_direct_GCJ=no
22457 ;;
22458 motorola)
22459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22461 ;;
22462 esac
22463 runpath_var='LD_RUN_PATH'
22464 hardcode_shlibpath_var_GCJ=no
22465 ;;
22466
22467 sysv4.3*)
22468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469 hardcode_shlibpath_var_GCJ=no
22470 export_dynamic_flag_spec_GCJ='-Bexport'
22471 ;;
22472
22473 sysv4*MP*)
22474 if test -d /usr/nec; then
22475 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22476 hardcode_shlibpath_var_GCJ=no
22477 runpath_var=LD_RUN_PATH
22478 hardcode_runpath_var=yes
22479 ld_shlibs_GCJ=yes
22480 fi
22481 ;;
22482
22483 sysv4.2uw2*)
22484 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22485 hardcode_direct_GCJ=yes
22486 hardcode_minus_L_GCJ=no
22487 hardcode_shlibpath_var_GCJ=no
22488 hardcode_runpath_var=yes
22489 runpath_var=LD_RUN_PATH
22490 ;;
22491
22492 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22493 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22494 if test "$GCC" = yes; then
22495 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22496 else
22497 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22498 fi
22499 runpath_var='LD_RUN_PATH'
22500 hardcode_shlibpath_var_GCJ=no
22501 ;;
22502
22503 sysv5*)
22504 no_undefined_flag_GCJ=' -z text'
22505 # $CC -shared without GNU ld will not create a library from C++
22506 # object files and a static libstdc++, better avoid it by now
22507 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022508 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22509 $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 +000022510 hardcode_libdir_flag_spec_GCJ=
22511 hardcode_shlibpath_var_GCJ=no
22512 runpath_var='LD_RUN_PATH'
22513 ;;
22514
22515 uts4*)
22516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22518 hardcode_shlibpath_var_GCJ=no
22519 ;;
22520
22521 *)
22522 ld_shlibs_GCJ=no
22523 ;;
22524 esac
22525 fi
22526
22527echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22528echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22529test "$ld_shlibs_GCJ" = no && can_build_shared=no
22530
22531variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22532if test "$GCC" = yes; then
22533 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22534fi
22535
22536#
22537# Do we need to explicitly link libc?
22538#
22539case "x$archive_cmds_need_lc_GCJ" in
22540x|xyes)
22541 # Assume -lc should be added
22542 archive_cmds_need_lc_GCJ=yes
22543
22544 if test "$enable_shared" = yes && test "$GCC" = yes; then
22545 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022546 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022547 # FIXME: we may have to deal with multi-command sequences.
22548 ;;
22549 '$CC '*)
22550 # Test whether the compiler implicitly links with -lc since on some
22551 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22552 # to ld, don't add -lc before -lgcc.
22553 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22554echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22555 $rm conftest*
22556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22557
22558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22559 (eval $ac_compile) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } 2>conftest.err; then
22563 soname=conftest
22564 lib=conftest
22565 libobjs=conftest.$ac_objext
22566 deplibs=
22567 wl=$lt_prog_compiler_wl_GCJ
22568 compiler_flags=-v
22569 linker_flags=-v
22570 verstring=
22571 output_objdir=.
22572 libname=conftest
22573 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22574 allow_undefined_flag_GCJ=
22575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22576 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }
22580 then
22581 archive_cmds_need_lc_GCJ=no
22582 else
22583 archive_cmds_need_lc_GCJ=yes
22584 fi
22585 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22586 else
22587 cat conftest.err 1>&5
22588 fi
22589 $rm conftest*
22590 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22591echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22592 ;;
22593 esac
22594 fi
22595 ;;
22596esac
22597
John Criswell47fdd832003-07-14 16:52:07 +000022598echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22599echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22600library_names_spec=
22601libname_spec='lib$name'
22602soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022604postinstall_cmds=
22605postuninstall_cmds=
22606finish_cmds=
22607finish_eval=
22608shlibpath_var=
22609shlibpath_overrides_runpath=unknown
22610version_type=none
22611dynamic_linker="$host_os ld.so"
22612sys_lib_dlsearch_path_spec="/lib /usr/lib"
22613if test "$GCC" = yes; then
22614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22616 # if the path contains ";" then we assume it to be the separator
22617 # otherwise default to the standard path separator (i.e. ":") - it is
22618 # assumed that no part of a normal pathname contains ";" but that should
22619 # okay in the real world where ";" in dirpaths is itself problematic.
22620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22621 else
22622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22623 fi
22624else
22625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22626fi
22627need_lib_prefix=unknown
22628hardcode_into_libs=no
22629
22630# when you set need_version to no, make sure it does not cause -set_version
22631# flags to be left without arguments
22632need_version=unknown
22633
22634case $host_os in
22635aix3*)
22636 version_type=linux
22637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22638 shlibpath_var=LIBPATH
22639
22640 # AIX 3 has no versioning support, so we append a major version to the name.
22641 soname_spec='${libname}${release}${shared_ext}$major'
22642 ;;
22643
22644aix4* | aix5*)
22645 version_type=linux
22646 need_lib_prefix=no
22647 need_version=no
22648 hardcode_into_libs=yes
22649 if test "$host_cpu" = ia64; then
22650 # AIX 5 supports IA64
22651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22652 shlibpath_var=LD_LIBRARY_PATH
22653 else
22654 # With GCC up to 2.95.x, collect2 would create an import file
22655 # for dependence libraries. The import file would start with
22656 # the line `#! .'. This would cause the generated library to
22657 # depend on `.', always an invalid library. This was fixed in
22658 # development snapshots of GCC prior to 3.0.
22659 case $host_os in
22660 aix4 | aix4.[01] | aix4.[01].*)
22661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22662 echo ' yes '
22663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22664 :
22665 else
22666 can_build_shared=no
22667 fi
22668 ;;
22669 esac
22670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22671 # soname into executable. Probably we can add versioning support to
22672 # collect2, so additional links can be useful in future.
22673 if test "$aix_use_runtimelinking" = yes; then
22674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22675 # instead of lib<name>.a to let people know that these are not
22676 # typical AIX shared libraries.
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 else
22679 # We preserve .a as extension for shared libraries through AIX4.2
22680 # and later when we are not doing run time linking.
22681 library_names_spec='${libname}${release}.a $libname.a'
22682 soname_spec='${libname}${release}${shared_ext}$major'
22683 fi
22684 shlibpath_var=LIBPATH
22685 fi
22686 ;;
22687
22688amigaos*)
22689 library_names_spec='$libname.ixlibrary $libname.a'
22690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022691 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 +000022692 ;;
22693
22694beos*)
22695 library_names_spec='${libname}${shared_ext}'
22696 dynamic_linker="$host_os ld.so"
22697 shlibpath_var=LIBRARY_PATH
22698 ;;
22699
Reid Spencer2706f8c2004-09-19 23:53:36 +000022700bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022701 version_type=linux
22702 need_version=no
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22704 soname_spec='${libname}${release}${shared_ext}$major'
22705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22709 # the default ld.so.conf also contains /usr/contrib/lib and
22710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22711 # libtool to hard-code these into programs
22712 ;;
22713
22714cygwin* | mingw* | pw32*)
22715 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022716 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022717 need_version=no
22718 need_lib_prefix=no
22719
22720 case $GCC,$host_os in
22721 yes,cygwin* | yes,mingw* | yes,pw32*)
22722 library_names_spec='$libname.dll.a'
22723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022724 postinstall_cmds='base_file=`basename \${file}`~
22725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22726 dldir=$destdir/`dirname \$dlpath`~
22727 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022728 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022729 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22730 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022731 $rm \$dlpath'
22732 shlibpath_overrides_runpath=yes
22733
22734 case $host_os in
22735 cygwin*)
22736 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22737 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 +000022738 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022739 ;;
22740 mingw*)
22741 # MinGW DLLs use traditional 'lib' prefix
22742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22744 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22745 # It is most probably a Windows format PATH printed by
22746 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22747 # path with ; separators, and with drive letters. We can handle the
22748 # drive letters (cygwin fileutils understands them), so leave them,
22749 # especially as we might pass files found there to a mingw objdump,
22750 # which wouldn't understand a cygwinified path. Ahh.
22751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22752 else
22753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22754 fi
22755 ;;
22756 pw32*)
22757 # pw32 DLLs use 'pw' prefix rather than 'lib'
22758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22759 ;;
22760 esac
22761 ;;
22762
22763 *)
22764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22765 ;;
22766 esac
22767 dynamic_linker='Win32 ld.exe'
22768 # FIXME: first we should search . and the directory the executable is in
22769 shlibpath_var=PATH
22770 ;;
22771
22772darwin* | rhapsody*)
22773 dynamic_linker="$host_os dyld"
22774 version_type=darwin
22775 need_lib_prefix=no
22776 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022777 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022778 soname_spec='${libname}${release}${major}$shared_ext'
22779 shlibpath_overrides_runpath=yes
22780 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022781 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022782 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022783 if test "$GCC" = yes; then
22784 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"`
22785 else
22786 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022787 fi
22788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22789 ;;
22790
22791dgux*)
22792 version_type=linux
22793 need_lib_prefix=no
22794 need_version=no
22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22796 soname_spec='${libname}${release}${shared_ext}$major'
22797 shlibpath_var=LD_LIBRARY_PATH
22798 ;;
22799
22800freebsd1*)
22801 dynamic_linker=no
22802 ;;
22803
Reid Spencer2706f8c2004-09-19 23:53:36 +000022804kfreebsd*-gnu)
22805 version_type=linux
22806 need_lib_prefix=no
22807 need_version=no
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22809 soname_spec='${libname}${release}${shared_ext}$major'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 shlibpath_overrides_runpath=no
22812 hardcode_into_libs=yes
22813 dynamic_linker='GNU ld.so'
22814 ;;
22815
John Criswell47fdd832003-07-14 16:52:07 +000022816freebsd*)
22817 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22818 version_type=freebsd-$objformat
22819 case $version_type in
22820 freebsd-elf*)
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22822 need_version=no
22823 need_lib_prefix=no
22824 ;;
22825 freebsd-*)
22826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22827 need_version=yes
22828 ;;
22829 esac
22830 shlibpath_var=LD_LIBRARY_PATH
22831 case $host_os in
22832 freebsd2*)
22833 shlibpath_overrides_runpath=yes
22834 ;;
22835 freebsd3.01* | freebsdelf3.01*)
22836 shlibpath_overrides_runpath=yes
22837 hardcode_into_libs=yes
22838 ;;
22839 *) # from 3.2 on
22840 shlibpath_overrides_runpath=no
22841 hardcode_into_libs=yes
22842 ;;
22843 esac
22844 ;;
22845
22846gnu*)
22847 version_type=linux
22848 need_lib_prefix=no
22849 need_version=no
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 shlibpath_var=LD_LIBRARY_PATH
22853 hardcode_into_libs=yes
22854 ;;
22855
22856hpux9* | hpux10* | hpux11*)
22857 # Give a soname corresponding to the major version so that dld.sl refuses to
22858 # link against other versions.
22859 version_type=sunos
22860 need_lib_prefix=no
22861 need_version=no
22862 case "$host_cpu" in
22863 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022864 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022865 hardcode_into_libs=yes
22866 dynamic_linker="$host_os dld.so"
22867 shlibpath_var=LD_LIBRARY_PATH
22868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870 soname_spec='${libname}${release}${shared_ext}$major'
22871 if test "X$HPUX_IA64_MODE" = X32; then
22872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22873 else
22874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22875 fi
22876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22877 ;;
22878 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022879 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022880 hardcode_into_libs=yes
22881 dynamic_linker="$host_os dld.sl"
22882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22885 soname_spec='${libname}${release}${shared_ext}$major'
22886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22888 ;;
22889 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022890 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022891 dynamic_linker="$host_os dld.sl"
22892 shlibpath_var=SHLIB_PATH
22893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 ;;
22897 esac
22898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22899 postinstall_cmds='chmod 555 $lib'
22900 ;;
22901
22902irix5* | irix6* | nonstopux*)
22903 case $host_os in
22904 nonstopux*) version_type=nonstopux ;;
22905 *)
22906 if test "$lt_cv_prog_gnu_ld" = yes; then
22907 version_type=linux
22908 else
22909 version_type=irix
22910 fi ;;
22911 esac
22912 need_lib_prefix=no
22913 need_version=no
22914 soname_spec='${libname}${release}${shared_ext}$major'
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22916 case $host_os in
22917 irix5* | nonstopux*)
22918 libsuff= shlibsuff=
22919 ;;
22920 *)
22921 case $LD in # libtool.m4 will add one of these switches to LD
22922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22923 libsuff= shlibsuff= libmagic=32-bit;;
22924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22925 libsuff=32 shlibsuff=N32 libmagic=N32;;
22926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22928 *) libsuff= shlibsuff= libmagic=never-match;;
22929 esac
22930 ;;
22931 esac
22932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22933 shlibpath_overrides_runpath=no
22934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22936 hardcode_into_libs=yes
22937 ;;
22938
22939# No shared lib support for Linux oldld, aout, or coff.
22940linux*oldld* | linux*aout* | linux*coff*)
22941 dynamic_linker=no
22942 ;;
22943
22944# This must be Linux ELF.
22945linux*)
22946 version_type=linux
22947 need_lib_prefix=no
22948 need_version=no
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22952 shlibpath_var=LD_LIBRARY_PATH
22953 shlibpath_overrides_runpath=no
22954 # This implies no fast_install, which is unacceptable.
22955 # Some rework will be needed to allow for fast_install
22956 # before this can be enabled.
22957 hardcode_into_libs=yes
22958
Reid Spencer2706f8c2004-09-19 23:53:36 +000022959 # Append ld.so.conf contents to the search path
22960 if test -f /etc/ld.so.conf; then
22961 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22963 fi
22964
John Criswell47fdd832003-07-14 16:52:07 +000022965 # We used to test for /lib/ld.so.1 and disable shared libraries on
22966 # powerpc, because MkLinux only supported shared libraries with the
22967 # GNU dynamic linker. Since this was broken with cross compilers,
22968 # most powerpc-linux boxes support dynamic linking these days and
22969 # people can always --disable-shared, the test was removed, and we
22970 # assume the GNU/Linux dynamic linker is in use.
22971 dynamic_linker='GNU/Linux ld.so'
22972 ;;
22973
Reid Spencer2706f8c2004-09-19 23:53:36 +000022974knetbsd*-gnu)
22975 version_type=linux
22976 need_lib_prefix=no
22977 need_version=no
22978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22979 soname_spec='${libname}${release}${shared_ext}$major'
22980 shlibpath_var=LD_LIBRARY_PATH
22981 shlibpath_overrides_runpath=no
22982 hardcode_into_libs=yes
22983 dynamic_linker='GNU ld.so'
22984 ;;
22985
John Criswell47fdd832003-07-14 16:52:07 +000022986netbsd*)
22987 version_type=sunos
22988 need_lib_prefix=no
22989 need_version=no
22990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993 dynamic_linker='NetBSD (a.out) ld.so'
22994 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022996 soname_spec='${libname}${release}${shared_ext}$major'
22997 dynamic_linker='NetBSD ld.elf_so'
22998 fi
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=yes
23001 hardcode_into_libs=yes
23002 ;;
23003
23004newsos6)
23005 version_type=linux
23006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007 shlibpath_var=LD_LIBRARY_PATH
23008 shlibpath_overrides_runpath=yes
23009 ;;
23010
Reid Spencer2706f8c2004-09-19 23:53:36 +000023011nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023012 version_type=linux
23013 need_lib_prefix=no
23014 need_version=no
23015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016 soname_spec='${libname}${release}${shared_ext}$major'
23017 shlibpath_var=LD_LIBRARY_PATH
23018 shlibpath_overrides_runpath=yes
23019 ;;
23020
23021openbsd*)
23022 version_type=sunos
23023 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000023024 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000023025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23027 shlibpath_var=LD_LIBRARY_PATH
23028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23029 case $host_os in
23030 openbsd2.[89] | openbsd2.[89].*)
23031 shlibpath_overrides_runpath=no
23032 ;;
23033 *)
23034 shlibpath_overrides_runpath=yes
23035 ;;
23036 esac
23037 else
23038 shlibpath_overrides_runpath=yes
23039 fi
23040 ;;
23041
23042os2*)
23043 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023044 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023045 need_lib_prefix=no
23046 library_names_spec='$libname${shared_ext} $libname.a'
23047 dynamic_linker='OS/2 ld.exe'
23048 shlibpath_var=LIBPATH
23049 ;;
23050
23051osf3* | osf4* | osf5*)
23052 version_type=osf
23053 need_lib_prefix=no
23054 need_version=no
23055 soname_spec='${libname}${release}${shared_ext}$major'
23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23057 shlibpath_var=LD_LIBRARY_PATH
23058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23060 ;;
23061
23062sco3.2v5*)
23063 version_type=osf
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066 shlibpath_var=LD_LIBRARY_PATH
23067 ;;
23068
23069solaris*)
23070 version_type=linux
23071 need_lib_prefix=no
23072 need_version=no
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 shlibpath_overrides_runpath=yes
23077 hardcode_into_libs=yes
23078 # ldd complains unless libraries are executable
23079 postinstall_cmds='chmod +x $lib'
23080 ;;
23081
23082sunos4*)
23083 version_type=sunos
23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath=yes
23088 if test "$with_gnu_ld" = yes; then
23089 need_lib_prefix=no
23090 fi
23091 need_version=yes
23092 ;;
23093
23094sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23095 version_type=linux
23096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097 soname_spec='${libname}${release}${shared_ext}$major'
23098 shlibpath_var=LD_LIBRARY_PATH
23099 case $host_vendor in
23100 sni)
23101 shlibpath_overrides_runpath=no
23102 need_lib_prefix=no
23103 export_dynamic_flag_spec='${wl}-Blargedynsym'
23104 runpath_var=LD_RUN_PATH
23105 ;;
23106 siemens)
23107 need_lib_prefix=no
23108 ;;
23109 motorola)
23110 need_lib_prefix=no
23111 need_version=no
23112 shlibpath_overrides_runpath=no
23113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23114 ;;
23115 esac
23116 ;;
23117
23118sysv4*MP*)
23119 if test -d /usr/nec ;then
23120 version_type=linux
23121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23122 soname_spec='$libname${shared_ext}.$major'
23123 shlibpath_var=LD_LIBRARY_PATH
23124 fi
23125 ;;
23126
23127uts4*)
23128 version_type=linux
23129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130 soname_spec='${libname}${release}${shared_ext}$major'
23131 shlibpath_var=LD_LIBRARY_PATH
23132 ;;
23133
23134*)
23135 dynamic_linker=no
23136 ;;
23137esac
23138echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23139echo "${ECHO_T}$dynamic_linker" >&6
23140test "$dynamic_linker" = no && can_build_shared=no
23141
Reid Spencer2706f8c2004-09-19 23:53:36 +000023142echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23143echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23144hardcode_action_GCJ=
23145if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23146 test -n "$runpath_var_GCJ" || \
23147 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23148
23149 # We can hardcode non-existant directories.
23150 if test "$hardcode_direct_GCJ" != no &&
23151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23152 # have to relink, otherwise we might link with an installed library
23153 # when we should be linking with a yet-to-be-installed one
23154 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23155 test "$hardcode_minus_L_GCJ" != no; then
23156 # Linking always hardcodes the temporary library directory.
23157 hardcode_action_GCJ=relink
23158 else
23159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23160 hardcode_action_GCJ=immediate
23161 fi
23162else
23163 # We cannot hardcode anything, or else we can only hardcode existing
23164 # directories.
23165 hardcode_action_GCJ=unsupported
23166fi
23167echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23168echo "${ECHO_T}$hardcode_action_GCJ" >&6
23169
23170if test "$hardcode_action_GCJ" = relink; then
23171 # Fast installation is not supported
23172 enable_fast_install=no
23173elif test "$shlibpath_overrides_runpath" = yes ||
23174 test "$enable_shared" = no; then
23175 # Fast installation is not necessary
23176 enable_fast_install=needless
23177fi
23178
23179striplib=
23180old_striplib=
23181echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23182echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23183if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23185 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23186 echo "$as_me:$LINENO: result: yes" >&5
23187echo "${ECHO_T}yes" >&6
23188else
23189# FIXME - insert some real tests, host_os isn't really good enough
23190 case $host_os in
23191 darwin*)
23192 if test -n "$STRIP" ; then
23193 striplib="$STRIP -x"
23194 echo "$as_me:$LINENO: result: yes" >&5
23195echo "${ECHO_T}yes" >&6
23196 else
23197 echo "$as_me:$LINENO: result: no" >&5
23198echo "${ECHO_T}no" >&6
23199fi
23200 ;;
23201 *)
23202 echo "$as_me:$LINENO: result: no" >&5
23203echo "${ECHO_T}no" >&6
23204 ;;
23205 esac
23206fi
23207
John Criswell47fdd832003-07-14 16:52:07 +000023208if test "x$enable_dlopen" != xyes; then
23209 enable_dlopen=unknown
23210 enable_dlopen_self=unknown
23211 enable_dlopen_self_static=unknown
23212else
23213 lt_cv_dlopen=no
23214 lt_cv_dlopen_libs=
23215
23216 case $host_os in
23217 beos*)
23218 lt_cv_dlopen="load_add_on"
23219 lt_cv_dlopen_libs=
23220 lt_cv_dlopen_self=yes
23221 ;;
23222
23223 mingw* | pw32*)
23224 lt_cv_dlopen="LoadLibrary"
23225 lt_cv_dlopen_libs=
23226 ;;
23227
23228 cygwin*)
23229 lt_cv_dlopen="dlopen"
23230 lt_cv_dlopen_libs=
23231 ;;
23232
23233 darwin*)
23234 # if libdl is installed we need to link against it
23235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23237if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23239else
23240 ac_check_lib_save_LIBS=$LIBS
23241LIBS="-ldl $LIBS"
23242cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023243/* confdefs.h. */
23244_ACEOF
23245cat confdefs.h >>conftest.$ac_ext
23246cat >>conftest.$ac_ext <<_ACEOF
23247/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023248
23249/* Override any gcc2 internal prototype to avoid an error. */
23250#ifdef __cplusplus
23251extern "C"
23252#endif
23253/* We use char because int might match the return type of a gcc2
23254 builtin and then its argument prototype would still apply. */
23255char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023256int
23257main ()
23258{
23259dlopen ();
23260 ;
23261 return 0;
23262}
23263_ACEOF
23264rm -f conftest.$ac_objext conftest$ac_exeext
23265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023266 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_lib_dl_dlopen=yes
23287else
23288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023289sed 's/^/| /' conftest.$ac_ext >&5
23290
John Criswell47fdd832003-07-14 16:52:07 +000023291ac_cv_lib_dl_dlopen=no
23292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023293rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023295LIBS=$ac_check_lib_save_LIBS
23296fi
23297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23299if test $ac_cv_lib_dl_dlopen = yes; then
23300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23301else
23302
23303 lt_cv_dlopen="dyld"
23304 lt_cv_dlopen_libs=
23305 lt_cv_dlopen_self=yes
23306
23307fi
23308
23309 ;;
23310
23311 *)
23312 echo "$as_me:$LINENO: checking for shl_load" >&5
23313echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23314if test "${ac_cv_func_shl_load+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316else
23317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023318/* confdefs.h. */
23319_ACEOF
23320cat confdefs.h >>conftest.$ac_ext
23321cat >>conftest.$ac_ext <<_ACEOF
23322/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023323/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23325#define shl_load innocuous_shl_load
23326
John Criswell47fdd832003-07-14 16:52:07 +000023327/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023328 which can conflict with char shl_load (); below.
23329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23330 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023331
John Criswell0c38eaf2003-09-10 15:17:25 +000023332#ifdef __STDC__
23333# include <limits.h>
23334#else
23335# include <assert.h>
23336#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337
23338#undef shl_load
23339
John Criswell47fdd832003-07-14 16:52:07 +000023340/* Override any gcc2 internal prototype to avoid an error. */
23341#ifdef __cplusplus
23342extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023343{
John Criswell47fdd832003-07-14 16:52:07 +000023344#endif
23345/* We use char because int might match the return type of a gcc2
23346 builtin and then its argument prototype would still apply. */
23347char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023348/* The GNU C library defines this for functions which it implements
23349 to always fail with ENOSYS. Some functions are actually named
23350 something starting with __ and the normal name is an alias. */
23351#if defined (__stub_shl_load) || defined (__stub___shl_load)
23352choke me
23353#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023354char (*f) () = shl_load;
23355#endif
23356#ifdef __cplusplus
23357}
John Criswell47fdd832003-07-14 16:52:07 +000023358#endif
23359
John Criswell0c38eaf2003-09-10 15:17:25 +000023360int
23361main ()
23362{
23363return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023364 ;
23365 return 0;
23366}
23367_ACEOF
23368rm -f conftest.$ac_objext conftest$ac_exeext
23369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023370 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023372 grep -v '^ *+' conftest.er1 >conftest.err
23373 rm -f conftest.er1
23374 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023377 { ac_try='test -z "$ac_c_werror_flag"
23378 || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_func_shl_load=yes
23391else
23392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023393sed 's/^/| /' conftest.$ac_ext >&5
23394
John Criswell47fdd832003-07-14 16:52:07 +000023395ac_cv_func_shl_load=no
23396fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023397rm -f conftest.err conftest.$ac_objext \
23398 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023399fi
23400echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23401echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23402if test $ac_cv_func_shl_load = yes; then
23403 lt_cv_dlopen="shl_load"
23404else
23405 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23406echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23407if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23409else
23410 ac_check_lib_save_LIBS=$LIBS
23411LIBS="-ldld $LIBS"
23412cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023413/* confdefs.h. */
23414_ACEOF
23415cat confdefs.h >>conftest.$ac_ext
23416cat >>conftest.$ac_ext <<_ACEOF
23417/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023418
23419/* Override any gcc2 internal prototype to avoid an error. */
23420#ifdef __cplusplus
23421extern "C"
23422#endif
23423/* We use char because int might match the return type of a gcc2
23424 builtin and then its argument prototype would still apply. */
23425char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023426int
23427main ()
23428{
23429shl_load ();
23430 ;
23431 return 0;
23432}
23433_ACEOF
23434rm -f conftest.$ac_objext conftest$ac_exeext
23435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023436 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023438 grep -v '^ *+' conftest.er1 >conftest.err
23439 rm -f conftest.er1
23440 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023443 { ac_try='test -z "$ac_c_werror_flag"
23444 || test ! -s conftest.err'
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; } &&
23450 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; }; then
23456 ac_cv_lib_dld_shl_load=yes
23457else
23458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023459sed 's/^/| /' conftest.$ac_ext >&5
23460
John Criswell47fdd832003-07-14 16:52:07 +000023461ac_cv_lib_dld_shl_load=no
23462fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023463rm -f conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023465LIBS=$ac_check_lib_save_LIBS
23466fi
23467echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23468echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23469if test $ac_cv_lib_dld_shl_load = yes; then
23470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23471else
23472 echo "$as_me:$LINENO: checking for dlopen" >&5
23473echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23474if test "${ac_cv_func_dlopen+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23476else
23477 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023478/* confdefs.h. */
23479_ACEOF
23480cat confdefs.h >>conftest.$ac_ext
23481cat >>conftest.$ac_ext <<_ACEOF
23482/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023483/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23485#define dlopen innocuous_dlopen
23486
John Criswell47fdd832003-07-14 16:52:07 +000023487/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023488 which can conflict with char dlopen (); below.
23489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23490 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023491
John Criswell0c38eaf2003-09-10 15:17:25 +000023492#ifdef __STDC__
23493# include <limits.h>
23494#else
23495# include <assert.h>
23496#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023497
23498#undef dlopen
23499
John Criswell47fdd832003-07-14 16:52:07 +000023500/* Override any gcc2 internal prototype to avoid an error. */
23501#ifdef __cplusplus
23502extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023503{
John Criswell47fdd832003-07-14 16:52:07 +000023504#endif
23505/* We use char because int might match the return type of a gcc2
23506 builtin and then its argument prototype would still apply. */
23507char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023508/* The GNU C library defines this for functions which it implements
23509 to always fail with ENOSYS. Some functions are actually named
23510 something starting with __ and the normal name is an alias. */
23511#if defined (__stub_dlopen) || defined (__stub___dlopen)
23512choke me
23513#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023514char (*f) () = dlopen;
23515#endif
23516#ifdef __cplusplus
23517}
John Criswell47fdd832003-07-14 16:52:07 +000023518#endif
23519
John Criswell0c38eaf2003-09-10 15:17:25 +000023520int
23521main ()
23522{
23523return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023524 ;
23525 return 0;
23526}
23527_ACEOF
23528rm -f conftest.$ac_objext conftest$ac_exeext
23529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023530 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023531 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023537 { ac_try='test -z "$ac_c_werror_flag"
23538 || test ! -s conftest.err'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; } &&
23544 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 ac_cv_func_dlopen=yes
23551else
23552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023553sed 's/^/| /' conftest.$ac_ext >&5
23554
John Criswell47fdd832003-07-14 16:52:07 +000023555ac_cv_func_dlopen=no
23556fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023557rm -f conftest.err conftest.$ac_objext \
23558 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023559fi
23560echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23561echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23562if test $ac_cv_func_dlopen = yes; then
23563 lt_cv_dlopen="dlopen"
23564else
23565 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23566echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23567if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569else
23570 ac_check_lib_save_LIBS=$LIBS
23571LIBS="-ldl $LIBS"
23572cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023573/* confdefs.h. */
23574_ACEOF
23575cat confdefs.h >>conftest.$ac_ext
23576cat >>conftest.$ac_ext <<_ACEOF
23577/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023578
23579/* Override any gcc2 internal prototype to avoid an error. */
23580#ifdef __cplusplus
23581extern "C"
23582#endif
23583/* We use char because int might match the return type of a gcc2
23584 builtin and then its argument prototype would still apply. */
23585char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023586int
23587main ()
23588{
23589dlopen ();
23590 ;
23591 return 0;
23592}
23593_ACEOF
23594rm -f conftest.$ac_objext conftest$ac_exeext
23595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023596 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023597 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023598 grep -v '^ *+' conftest.er1 >conftest.err
23599 rm -f conftest.er1
23600 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023603 { ac_try='test -z "$ac_c_werror_flag"
23604 || test ! -s conftest.err'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } &&
23610 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; }; then
23616 ac_cv_lib_dl_dlopen=yes
23617else
23618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023619sed 's/^/| /' conftest.$ac_ext >&5
23620
John Criswell47fdd832003-07-14 16:52:07 +000023621ac_cv_lib_dl_dlopen=no
23622fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023623rm -f conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023625LIBS=$ac_check_lib_save_LIBS
23626fi
23627echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23628echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23629if test $ac_cv_lib_dl_dlopen = yes; then
23630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23631else
23632 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23633echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23634if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23636else
23637 ac_check_lib_save_LIBS=$LIBS
23638LIBS="-lsvld $LIBS"
23639cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023640/* confdefs.h. */
23641_ACEOF
23642cat confdefs.h >>conftest.$ac_ext
23643cat >>conftest.$ac_ext <<_ACEOF
23644/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023645
23646/* Override any gcc2 internal prototype to avoid an error. */
23647#ifdef __cplusplus
23648extern "C"
23649#endif
23650/* We use char because int might match the return type of a gcc2
23651 builtin and then its argument prototype would still apply. */
23652char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023653int
23654main ()
23655{
23656dlopen ();
23657 ;
23658 return 0;
23659}
23660_ACEOF
23661rm -f conftest.$ac_objext conftest$ac_exeext
23662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023663 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023665 grep -v '^ *+' conftest.er1 >conftest.err
23666 rm -f conftest.er1
23667 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023670 { ac_try='test -z "$ac_c_werror_flag"
23671 || test ! -s conftest.err'
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23674 ac_status=$?
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; } &&
23677 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; }; then
23683 ac_cv_lib_svld_dlopen=yes
23684else
23685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023686sed 's/^/| /' conftest.$ac_ext >&5
23687
John Criswell47fdd832003-07-14 16:52:07 +000023688ac_cv_lib_svld_dlopen=no
23689fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023690rm -f conftest.err conftest.$ac_objext \
23691 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023692LIBS=$ac_check_lib_save_LIBS
23693fi
23694echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23695echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23696if test $ac_cv_lib_svld_dlopen = yes; then
23697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23698else
23699 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23700echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23701if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703else
23704 ac_check_lib_save_LIBS=$LIBS
23705LIBS="-ldld $LIBS"
23706cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023707/* confdefs.h. */
23708_ACEOF
23709cat confdefs.h >>conftest.$ac_ext
23710cat >>conftest.$ac_ext <<_ACEOF
23711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023712
23713/* Override any gcc2 internal prototype to avoid an error. */
23714#ifdef __cplusplus
23715extern "C"
23716#endif
23717/* We use char because int might match the return type of a gcc2
23718 builtin and then its argument prototype would still apply. */
23719char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023720int
23721main ()
23722{
23723dld_link ();
23724 ;
23725 return 0;
23726}
23727_ACEOF
23728rm -f conftest.$ac_objext conftest$ac_exeext
23729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023730 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023731 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023732 grep -v '^ *+' conftest.er1 >conftest.err
23733 rm -f conftest.er1
23734 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023737 { ac_try='test -z "$ac_c_werror_flag"
23738 || test ! -s conftest.err'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23741 ac_status=$?
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; } &&
23744 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23747 ac_status=$?
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 ac_cv_lib_dld_dld_link=yes
23751else
23752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023753sed 's/^/| /' conftest.$ac_ext >&5
23754
John Criswell47fdd832003-07-14 16:52:07 +000023755ac_cv_lib_dld_dld_link=no
23756fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023757rm -f conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023759LIBS=$ac_check_lib_save_LIBS
23760fi
23761echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23762echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23763if test $ac_cv_lib_dld_dld_link = yes; then
23764 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23765fi
23766
23767
23768fi
23769
23770
23771fi
23772
23773
23774fi
23775
23776
23777fi
23778
23779
23780fi
23781
23782 ;;
23783 esac
23784
23785 if test "x$lt_cv_dlopen" != xno; then
23786 enable_dlopen=yes
23787 else
23788 enable_dlopen=no
23789 fi
23790
23791 case $lt_cv_dlopen in
23792 dlopen)
23793 save_CPPFLAGS="$CPPFLAGS"
23794 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23795
23796 save_LDFLAGS="$LDFLAGS"
23797 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23798
23799 save_LIBS="$LIBS"
23800 LIBS="$lt_cv_dlopen_libs $LIBS"
23801
23802 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23803echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23804if test "${lt_cv_dlopen_self+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806else
23807 if test "$cross_compiling" = yes; then :
23808 lt_cv_dlopen_self=cross
23809else
23810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23811 lt_status=$lt_dlunknown
23812 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000023813#line 23813 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023814#include "confdefs.h"
23815
23816#if HAVE_DLFCN_H
23817#include <dlfcn.h>
23818#endif
23819
23820#include <stdio.h>
23821
23822#ifdef RTLD_GLOBAL
23823# define LT_DLGLOBAL RTLD_GLOBAL
23824#else
23825# ifdef DL_GLOBAL
23826# define LT_DLGLOBAL DL_GLOBAL
23827# else
23828# define LT_DLGLOBAL 0
23829# endif
23830#endif
23831
23832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23833 find out it does not work in some platform. */
23834#ifndef LT_DLLAZY_OR_NOW
23835# ifdef RTLD_LAZY
23836# define LT_DLLAZY_OR_NOW RTLD_LAZY
23837# else
23838# ifdef DL_LAZY
23839# define LT_DLLAZY_OR_NOW DL_LAZY
23840# else
23841# ifdef RTLD_NOW
23842# define LT_DLLAZY_OR_NOW RTLD_NOW
23843# else
23844# ifdef DL_NOW
23845# define LT_DLLAZY_OR_NOW DL_NOW
23846# else
23847# define LT_DLLAZY_OR_NOW 0
23848# endif
23849# endif
23850# endif
23851# endif
23852#endif
23853
23854#ifdef __cplusplus
23855extern "C" void exit (int);
23856#endif
23857
23858void fnord() { int i=42;}
23859int main ()
23860{
23861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23862 int status = $lt_dlunknown;
23863
23864 if (self)
23865 {
23866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23868 /* dlclose (self); */
23869 }
23870
23871 exit (status);
23872}
23873EOF
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875 (eval $ac_link) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23879 (./conftest; exit; ) 2>/dev/null
23880 lt_status=$?
23881 case x$lt_status in
23882 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23883 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23884 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23885 esac
23886 else :
23887 # compilation failed
23888 lt_cv_dlopen_self=no
23889 fi
23890fi
23891rm -fr conftest*
23892
23893
23894fi
23895echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23896echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23897
23898 if test "x$lt_cv_dlopen_self" = xyes; then
23899 LDFLAGS="$LDFLAGS $link_static_flag"
23900 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23901echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23902if test "${lt_cv_dlopen_self_static+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23904else
23905 if test "$cross_compiling" = yes; then :
23906 lt_cv_dlopen_self_static=cross
23907else
23908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23909 lt_status=$lt_dlunknown
23910 cat > conftest.$ac_ext <<EOF
John Criswell0389cf72006-06-20 17:44:40 +000023911#line 23911 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023912#include "confdefs.h"
23913
23914#if HAVE_DLFCN_H
23915#include <dlfcn.h>
23916#endif
23917
23918#include <stdio.h>
23919
23920#ifdef RTLD_GLOBAL
23921# define LT_DLGLOBAL RTLD_GLOBAL
23922#else
23923# ifdef DL_GLOBAL
23924# define LT_DLGLOBAL DL_GLOBAL
23925# else
23926# define LT_DLGLOBAL 0
23927# endif
23928#endif
23929
23930/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23931 find out it does not work in some platform. */
23932#ifndef LT_DLLAZY_OR_NOW
23933# ifdef RTLD_LAZY
23934# define LT_DLLAZY_OR_NOW RTLD_LAZY
23935# else
23936# ifdef DL_LAZY
23937# define LT_DLLAZY_OR_NOW DL_LAZY
23938# else
23939# ifdef RTLD_NOW
23940# define LT_DLLAZY_OR_NOW RTLD_NOW
23941# else
23942# ifdef DL_NOW
23943# define LT_DLLAZY_OR_NOW DL_NOW
23944# else
23945# define LT_DLLAZY_OR_NOW 0
23946# endif
23947# endif
23948# endif
23949# endif
23950#endif
23951
23952#ifdef __cplusplus
23953extern "C" void exit (int);
23954#endif
23955
23956void fnord() { int i=42;}
23957int main ()
23958{
23959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23960 int status = $lt_dlunknown;
23961
23962 if (self)
23963 {
23964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23966 /* dlclose (self); */
23967 }
23968
23969 exit (status);
23970}
23971EOF
23972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23973 (eval $ac_link) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23977 (./conftest; exit; ) 2>/dev/null
23978 lt_status=$?
23979 case x$lt_status in
23980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23982 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23983 esac
23984 else :
23985 # compilation failed
23986 lt_cv_dlopen_self_static=no
23987 fi
23988fi
23989rm -fr conftest*
23990
23991
23992fi
23993echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23994echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23995 fi
23996
23997 CPPFLAGS="$save_CPPFLAGS"
23998 LDFLAGS="$save_LDFLAGS"
23999 LIBS="$save_LIBS"
24000 ;;
24001 esac
24002
24003 case $lt_cv_dlopen_self in
24004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24005 *) enable_dlopen_self=unknown ;;
24006 esac
24007
24008 case $lt_cv_dlopen_self_static in
24009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24010 *) enable_dlopen_self_static=unknown ;;
24011 esac
24012fi
24013
24014
24015# The else clause should only fire when bootstrapping the
24016# libtool distribution, otherwise you forgot to ship ltmain.sh
24017# with your package, and you will get complaints that there are
24018# no rules to generate ltmain.sh.
24019if test -f "$ltmain"; then
24020 # See if we are running on zsh, and set the options which allow our commands through
24021 # without removal of \ escapes.
24022 if test -n "${ZSH_VERSION+set}" ; then
24023 setopt NO_GLOB_SUBST
24024 fi
24025 # Now quote all the things that may contain metacharacters while being
24026 # careful not to overquote the AC_SUBSTed values. We take copies of the
24027 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24029 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24032 deplibs_check_method reload_flag reload_cmds need_locks \
24033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24034 lt_cv_sys_global_symbol_to_c_name_address \
24035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24036 old_postinstall_cmds old_postuninstall_cmds \
24037 compiler_GCJ \
24038 CC_GCJ \
24039 LD_GCJ \
24040 lt_prog_compiler_wl_GCJ \
24041 lt_prog_compiler_pic_GCJ \
24042 lt_prog_compiler_static_GCJ \
24043 lt_prog_compiler_no_builtin_flag_GCJ \
24044 export_dynamic_flag_spec_GCJ \
24045 thread_safe_flag_spec_GCJ \
24046 whole_archive_flag_spec_GCJ \
24047 enable_shared_with_static_runtimes_GCJ \
24048 old_archive_cmds_GCJ \
24049 old_archive_from_new_cmds_GCJ \
24050 predep_objects_GCJ \
24051 postdep_objects_GCJ \
24052 predeps_GCJ \
24053 postdeps_GCJ \
24054 compiler_lib_search_path_GCJ \
24055 archive_cmds_GCJ \
24056 archive_expsym_cmds_GCJ \
24057 postinstall_cmds_GCJ \
24058 postuninstall_cmds_GCJ \
24059 old_archive_from_expsyms_cmds_GCJ \
24060 allow_undefined_flag_GCJ \
24061 no_undefined_flag_GCJ \
24062 export_symbols_cmds_GCJ \
24063 hardcode_libdir_flag_spec_GCJ \
24064 hardcode_libdir_flag_spec_ld_GCJ \
24065 hardcode_libdir_separator_GCJ \
24066 hardcode_automatic_GCJ \
24067 module_cmds_GCJ \
24068 module_expsym_cmds_GCJ \
24069 lt_cv_prog_compiler_c_o_GCJ \
24070 exclude_expsyms_GCJ \
24071 include_expsyms_GCJ; do
24072
24073 case $var in
24074 old_archive_cmds_GCJ | \
24075 old_archive_from_new_cmds_GCJ | \
24076 archive_cmds_GCJ | \
24077 archive_expsym_cmds_GCJ | \
24078 module_cmds_GCJ | \
24079 module_expsym_cmds_GCJ | \
24080 old_archive_from_expsyms_cmds_GCJ | \
24081 export_symbols_cmds_GCJ | \
24082 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24083 postinstall_cmds | postuninstall_cmds | \
24084 old_postinstall_cmds | old_postuninstall_cmds | \
24085 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24086 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024087 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 +000024088 ;;
24089 *)
24090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24091 ;;
24092 esac
24093 done
24094
24095 case $lt_echo in
24096 *'\$0 --fallback-echo"')
24097 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24098 ;;
24099 esac
24100
24101cfgfile="$ofile"
24102
24103 cat <<__EOF__ >> "$cfgfile"
24104# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24105
24106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24107
24108# Shell to use when invoking shell scripts.
24109SHELL=$lt_SHELL
24110
24111# Whether or not to build shared libraries.
24112build_libtool_libs=$enable_shared
24113
24114# Whether or not to build static libraries.
24115build_old_libs=$enable_static
24116
24117# Whether or not to add -lc for building shared libraries.
24118build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24119
24120# Whether or not to disallow shared libs when runtime libs are static
24121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24122
24123# Whether or not to optimize for fast installation.
24124fast_install=$enable_fast_install
24125
24126# The host system.
24127host_alias=$host_alias
24128host=$host
24129
24130# An echo program that does not interpret backslashes.
24131echo=$lt_echo
24132
24133# The archiver.
24134AR=$lt_AR
24135AR_FLAGS=$lt_AR_FLAGS
24136
24137# A C compiler.
24138LTCC=$lt_LTCC
24139
24140# A language-specific compiler.
24141CC=$lt_compiler_GCJ
24142
24143# Is the compiler the GNU C compiler?
24144with_gcc=$GCC_GCJ
24145
24146# An ERE matcher.
24147EGREP=$lt_EGREP
24148
24149# The linker used to build libraries.
24150LD=$lt_LD_GCJ
24151
24152# Whether we need hard or soft links.
24153LN_S=$lt_LN_S
24154
24155# A BSD-compatible nm program.
24156NM=$lt_NM
24157
24158# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024159STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024160
24161# Used to examine libraries when file_magic_cmd begins "file"
24162MAGIC_CMD=$MAGIC_CMD
24163
24164# Used on cygwin: DLL creation program.
24165DLLTOOL="$DLLTOOL"
24166
24167# Used on cygwin: object dumper.
24168OBJDUMP="$OBJDUMP"
24169
24170# Used on cygwin: assembler.
24171AS="$AS"
24172
24173# The name of the directory that contains temporary libtool files.
24174objdir=$objdir
24175
24176# How to create reloadable object files.
24177reload_flag=$lt_reload_flag
24178reload_cmds=$lt_reload_cmds
24179
24180# How to pass a linker flag through the compiler.
24181wl=$lt_lt_prog_compiler_wl_GCJ
24182
24183# Object file suffix (normally "o").
24184objext="$ac_objext"
24185
24186# Old archive suffix (normally "a").
24187libext="$libext"
24188
24189# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024190shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024191
24192# Executable file suffix (normally "").
24193exeext="$exeext"
24194
24195# Additional compiler flags for building library objects.
24196pic_flag=$lt_lt_prog_compiler_pic_GCJ
24197pic_mode=$pic_mode
24198
24199# What is the maximum length of a command?
24200max_cmd_len=$lt_cv_sys_max_cmd_len
24201
24202# Does compiler simultaneously support -c and -o options?
24203compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24204
24205# Must we lock files when doing compilation ?
24206need_locks=$lt_need_locks
24207
24208# Do we need the lib prefix for modules?
24209need_lib_prefix=$need_lib_prefix
24210
24211# Do we need a version for libraries?
24212need_version=$need_version
24213
24214# Whether dlopen is supported.
24215dlopen_support=$enable_dlopen
24216
24217# Whether dlopen of programs is supported.
24218dlopen_self=$enable_dlopen_self
24219
24220# Whether dlopen of statically linked programs is supported.
24221dlopen_self_static=$enable_dlopen_self_static
24222
24223# Compiler flag to prevent dynamic linking.
24224link_static_flag=$lt_lt_prog_compiler_static_GCJ
24225
24226# Compiler flag to turn off builtin functions.
24227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24228
24229# Compiler flag to allow reflexive dlopens.
24230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24231
24232# Compiler flag to generate shared objects directly from archives.
24233whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24234
24235# Compiler flag to generate thread-safe objects.
24236thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24237
24238# Library versioning type.
24239version_type=$version_type
24240
24241# Format of library name prefix.
24242libname_spec=$lt_libname_spec
24243
24244# List of archive names. First name is the real one, the rest are links.
24245# The last name is the one that the linker finds with -lNAME.
24246library_names_spec=$lt_library_names_spec
24247
24248# The coded name of the library, if different from the real name.
24249soname_spec=$lt_soname_spec
24250
24251# Commands used to build and install an old-style archive.
24252RANLIB=$lt_RANLIB
24253old_archive_cmds=$lt_old_archive_cmds_GCJ
24254old_postinstall_cmds=$lt_old_postinstall_cmds
24255old_postuninstall_cmds=$lt_old_postuninstall_cmds
24256
24257# Create an old-style archive from a shared archive.
24258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24259
24260# Create a temporary old-style archive to link instead of a shared archive.
24261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24262
24263# Commands used to build and install a shared archive.
24264archive_cmds=$lt_archive_cmds_GCJ
24265archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24266postinstall_cmds=$lt_postinstall_cmds
24267postuninstall_cmds=$lt_postuninstall_cmds
24268
24269# Commands used to build a loadable module (assumed same as above if empty)
24270module_cmds=$lt_module_cmds_GCJ
24271module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24272
24273# Commands to strip libraries.
24274old_striplib=$lt_old_striplib
24275striplib=$lt_striplib
24276
24277# Dependencies to place before the objects being linked to create a
24278# shared library.
24279predep_objects=$lt_predep_objects_GCJ
24280
24281# Dependencies to place after the objects being linked to create a
24282# shared library.
24283postdep_objects=$lt_postdep_objects_GCJ
24284
24285# Dependencies to place before the objects being linked to create a
24286# shared library.
24287predeps=$lt_predeps_GCJ
24288
24289# Dependencies to place after the objects being linked to create a
24290# shared library.
24291postdeps=$lt_postdeps_GCJ
24292
24293# The library search path used internally by the compiler when linking
24294# a shared library.
24295compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24296
24297# Method to check whether dependent libraries are shared objects.
24298deplibs_check_method=$lt_deplibs_check_method
24299
24300# Command to use when deplibs_check_method == file_magic.
24301file_magic_cmd=$lt_file_magic_cmd
24302
24303# Flag that allows shared libraries with undefined symbols to be built.
24304allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24305
24306# Flag that forces no undefined symbols.
24307no_undefined_flag=$lt_no_undefined_flag_GCJ
24308
24309# Commands used to finish a libtool library installation in a directory.
24310finish_cmds=$lt_finish_cmds
24311
24312# Same as above, but a single script fragment to be evaled but not shown.
24313finish_eval=$lt_finish_eval
24314
24315# Take the output of nm and produce a listing of raw symbols and C names.
24316global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24317
24318# Transform the output of nm in a proper C declaration
24319global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24320
24321# Transform the output of nm in a C name address pair
24322global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24323
24324# This is the shared library runtime path variable.
24325runpath_var=$runpath_var
24326
24327# This is the shared library path variable.
24328shlibpath_var=$shlibpath_var
24329
24330# Is shlibpath searched before the hard-coded library search path?
24331shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24332
24333# How to hardcode a shared library path into an executable.
24334hardcode_action=$hardcode_action_GCJ
24335
24336# Whether we should hardcode library paths into libraries.
24337hardcode_into_libs=$hardcode_into_libs
24338
24339# Flag to hardcode \$libdir into a binary during linking.
24340# This must work even if \$libdir does not exist.
24341hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24342
24343# If ld is used when linking, flag to hardcode \$libdir into
24344# a binary during linking. This must work even if \$libdir does
24345# not exist.
24346hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24347
24348# Whether we need a single -rpath flag with a separated argument.
24349hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24350
24351# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24352# resulting binary.
24353hardcode_direct=$hardcode_direct_GCJ
24354
24355# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24356# resulting binary.
24357hardcode_minus_L=$hardcode_minus_L_GCJ
24358
24359# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24360# the resulting binary.
24361hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24362
24363# Set to yes if building a shared library automatically hardcodes DIR into the library
24364# and all subsequent libraries and executables linked against it.
24365hardcode_automatic=$hardcode_automatic_GCJ
24366
24367# Variables whose values should be saved in libtool wrapper scripts and
24368# restored at relink time.
24369variables_saved_for_relink="$variables_saved_for_relink"
24370
24371# Whether libtool must link a program against all its dependency libraries.
24372link_all_deplibs=$link_all_deplibs_GCJ
24373
24374# Compile-time system search path for libraries
24375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24376
24377# Run-time system search path for libraries
24378sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24379
24380# Fix the shell variable \$srcfile for the compiler.
24381fix_srcfile_path="$fix_srcfile_path_GCJ"
24382
24383# Set to yes if exported symbols are required.
24384always_export_symbols=$always_export_symbols_GCJ
24385
24386# The commands to list exported symbols.
24387export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24388
24389# The commands to extract the exported symbol list from a shared archive.
24390extract_expsyms_cmds=$lt_extract_expsyms_cmds
24391
24392# Symbols that should not be listed in the preloaded symbols.
24393exclude_expsyms=$lt_exclude_expsyms_GCJ
24394
24395# Symbols that must always be exported.
24396include_expsyms=$lt_include_expsyms_GCJ
24397
24398# ### END LIBTOOL TAG CONFIG: $tagname
24399
24400__EOF__
24401
24402
24403else
24404 # If there is no Makefile yet, we rely on a make rule to execute
24405 # `config.status --recheck' to rerun these tests and create the
24406 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24408 if test -f "$ltmain_in"; then
24409 test -f Makefile && make "$ltmain"
24410 fi
John Criswell47fdd832003-07-14 16:52:07 +000024411fi
24412
24413
24414ac_ext=c
24415ac_cpp='$CPP $CPPFLAGS'
24416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24418ac_compiler_gnu=$ac_cv_c_compiler_gnu
24419
24420CC="$lt_save_CC"
24421
24422 else
24423 tagname=""
24424 fi
24425 ;;
24426
24427 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024428 ac_ext=c
24429ac_cpp='$CPP $CPPFLAGS'
24430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024433
24434
24435# Source file extension for RC test sources.
24436ac_ext=rc
24437
24438# Object file extension for compiled RC test sources.
24439objext=o
24440objext_RC=$objext
24441
24442# Code to be used in simple compile tests
24443lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24444
24445# Code to be used in simple link tests
24446lt_simple_link_test_code="$lt_simple_compile_test_code"
24447
24448# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24449
24450# If no C compiler was specified, use CC.
24451LTCC=${LTCC-"$CC"}
24452
24453# Allow CC to be a program name with arguments.
24454compiler=$CC
24455
24456
24457# Allow CC to be a program name with arguments.
24458lt_save_CC="$CC"
24459CC=${RC-"windres"}
24460compiler=$CC
24461compiler_RC=$CC
24462lt_cv_prog_compiler_c_o_RC=yes
24463
24464# The else clause should only fire when bootstrapping the
24465# libtool distribution, otherwise you forgot to ship ltmain.sh
24466# with your package, and you will get complaints that there are
24467# no rules to generate ltmain.sh.
24468if test -f "$ltmain"; then
24469 # See if we are running on zsh, and set the options which allow our commands through
24470 # without removal of \ escapes.
24471 if test -n "${ZSH_VERSION+set}" ; then
24472 setopt NO_GLOB_SUBST
24473 fi
24474 # Now quote all the things that may contain metacharacters while being
24475 # careful not to overquote the AC_SUBSTed values. We take copies of the
24476 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024477 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24478 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024479 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24480 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24481 deplibs_check_method reload_flag reload_cmds need_locks \
24482 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24483 lt_cv_sys_global_symbol_to_c_name_address \
24484 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24485 old_postinstall_cmds old_postuninstall_cmds \
24486 compiler_RC \
24487 CC_RC \
24488 LD_RC \
24489 lt_prog_compiler_wl_RC \
24490 lt_prog_compiler_pic_RC \
24491 lt_prog_compiler_static_RC \
24492 lt_prog_compiler_no_builtin_flag_RC \
24493 export_dynamic_flag_spec_RC \
24494 thread_safe_flag_spec_RC \
24495 whole_archive_flag_spec_RC \
24496 enable_shared_with_static_runtimes_RC \
24497 old_archive_cmds_RC \
24498 old_archive_from_new_cmds_RC \
24499 predep_objects_RC \
24500 postdep_objects_RC \
24501 predeps_RC \
24502 postdeps_RC \
24503 compiler_lib_search_path_RC \
24504 archive_cmds_RC \
24505 archive_expsym_cmds_RC \
24506 postinstall_cmds_RC \
24507 postuninstall_cmds_RC \
24508 old_archive_from_expsyms_cmds_RC \
24509 allow_undefined_flag_RC \
24510 no_undefined_flag_RC \
24511 export_symbols_cmds_RC \
24512 hardcode_libdir_flag_spec_RC \
24513 hardcode_libdir_flag_spec_ld_RC \
24514 hardcode_libdir_separator_RC \
24515 hardcode_automatic_RC \
24516 module_cmds_RC \
24517 module_expsym_cmds_RC \
24518 lt_cv_prog_compiler_c_o_RC \
24519 exclude_expsyms_RC \
24520 include_expsyms_RC; do
24521
24522 case $var in
24523 old_archive_cmds_RC | \
24524 old_archive_from_new_cmds_RC | \
24525 archive_cmds_RC | \
24526 archive_expsym_cmds_RC | \
24527 module_cmds_RC | \
24528 module_expsym_cmds_RC | \
24529 old_archive_from_expsyms_cmds_RC | \
24530 export_symbols_cmds_RC | \
24531 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24532 postinstall_cmds | postuninstall_cmds | \
24533 old_postinstall_cmds | old_postuninstall_cmds | \
24534 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24535 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024536 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 +000024537 ;;
24538 *)
24539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24540 ;;
24541 esac
24542 done
24543
24544 case $lt_echo in
24545 *'\$0 --fallback-echo"')
24546 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24547 ;;
24548 esac
24549
24550cfgfile="$ofile"
24551
24552 cat <<__EOF__ >> "$cfgfile"
24553# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24554
24555# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24556
24557# Shell to use when invoking shell scripts.
24558SHELL=$lt_SHELL
24559
24560# Whether or not to build shared libraries.
24561build_libtool_libs=$enable_shared
24562
24563# Whether or not to build static libraries.
24564build_old_libs=$enable_static
24565
24566# Whether or not to add -lc for building shared libraries.
24567build_libtool_need_lc=$archive_cmds_need_lc_RC
24568
24569# Whether or not to disallow shared libs when runtime libs are static
24570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24571
24572# Whether or not to optimize for fast installation.
24573fast_install=$enable_fast_install
24574
24575# The host system.
24576host_alias=$host_alias
24577host=$host
24578
24579# An echo program that does not interpret backslashes.
24580echo=$lt_echo
24581
24582# The archiver.
24583AR=$lt_AR
24584AR_FLAGS=$lt_AR_FLAGS
24585
24586# A C compiler.
24587LTCC=$lt_LTCC
24588
24589# A language-specific compiler.
24590CC=$lt_compiler_RC
24591
24592# Is the compiler the GNU C compiler?
24593with_gcc=$GCC_RC
24594
24595# An ERE matcher.
24596EGREP=$lt_EGREP
24597
24598# The linker used to build libraries.
24599LD=$lt_LD_RC
24600
24601# Whether we need hard or soft links.
24602LN_S=$lt_LN_S
24603
24604# A BSD-compatible nm program.
24605NM=$lt_NM
24606
24607# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024608STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024609
24610# Used to examine libraries when file_magic_cmd begins "file"
24611MAGIC_CMD=$MAGIC_CMD
24612
24613# Used on cygwin: DLL creation program.
24614DLLTOOL="$DLLTOOL"
24615
24616# Used on cygwin: object dumper.
24617OBJDUMP="$OBJDUMP"
24618
24619# Used on cygwin: assembler.
24620AS="$AS"
24621
24622# The name of the directory that contains temporary libtool files.
24623objdir=$objdir
24624
24625# How to create reloadable object files.
24626reload_flag=$lt_reload_flag
24627reload_cmds=$lt_reload_cmds
24628
24629# How to pass a linker flag through the compiler.
24630wl=$lt_lt_prog_compiler_wl_RC
24631
24632# Object file suffix (normally "o").
24633objext="$ac_objext"
24634
24635# Old archive suffix (normally "a").
24636libext="$libext"
24637
24638# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024639shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024640
24641# Executable file suffix (normally "").
24642exeext="$exeext"
24643
24644# Additional compiler flags for building library objects.
24645pic_flag=$lt_lt_prog_compiler_pic_RC
24646pic_mode=$pic_mode
24647
24648# What is the maximum length of a command?
24649max_cmd_len=$lt_cv_sys_max_cmd_len
24650
24651# Does compiler simultaneously support -c and -o options?
24652compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24653
24654# Must we lock files when doing compilation ?
24655need_locks=$lt_need_locks
24656
24657# Do we need the lib prefix for modules?
24658need_lib_prefix=$need_lib_prefix
24659
24660# Do we need a version for libraries?
24661need_version=$need_version
24662
24663# Whether dlopen is supported.
24664dlopen_support=$enable_dlopen
24665
24666# Whether dlopen of programs is supported.
24667dlopen_self=$enable_dlopen_self
24668
24669# Whether dlopen of statically linked programs is supported.
24670dlopen_self_static=$enable_dlopen_self_static
24671
24672# Compiler flag to prevent dynamic linking.
24673link_static_flag=$lt_lt_prog_compiler_static_RC
24674
24675# Compiler flag to turn off builtin functions.
24676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24677
24678# Compiler flag to allow reflexive dlopens.
24679export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24680
24681# Compiler flag to generate shared objects directly from archives.
24682whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24683
24684# Compiler flag to generate thread-safe objects.
24685thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24686
24687# Library versioning type.
24688version_type=$version_type
24689
24690# Format of library name prefix.
24691libname_spec=$lt_libname_spec
24692
24693# List of archive names. First name is the real one, the rest are links.
24694# The last name is the one that the linker finds with -lNAME.
24695library_names_spec=$lt_library_names_spec
24696
24697# The coded name of the library, if different from the real name.
24698soname_spec=$lt_soname_spec
24699
24700# Commands used to build and install an old-style archive.
24701RANLIB=$lt_RANLIB
24702old_archive_cmds=$lt_old_archive_cmds_RC
24703old_postinstall_cmds=$lt_old_postinstall_cmds
24704old_postuninstall_cmds=$lt_old_postuninstall_cmds
24705
24706# Create an old-style archive from a shared archive.
24707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24708
24709# Create a temporary old-style archive to link instead of a shared archive.
24710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24711
24712# Commands used to build and install a shared archive.
24713archive_cmds=$lt_archive_cmds_RC
24714archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24715postinstall_cmds=$lt_postinstall_cmds
24716postuninstall_cmds=$lt_postuninstall_cmds
24717
24718# Commands used to build a loadable module (assumed same as above if empty)
24719module_cmds=$lt_module_cmds_RC
24720module_expsym_cmds=$lt_module_expsym_cmds_RC
24721
24722# Commands to strip libraries.
24723old_striplib=$lt_old_striplib
24724striplib=$lt_striplib
24725
24726# Dependencies to place before the objects being linked to create a
24727# shared library.
24728predep_objects=$lt_predep_objects_RC
24729
24730# Dependencies to place after the objects being linked to create a
24731# shared library.
24732postdep_objects=$lt_postdep_objects_RC
24733
24734# Dependencies to place before the objects being linked to create a
24735# shared library.
24736predeps=$lt_predeps_RC
24737
24738# Dependencies to place after the objects being linked to create a
24739# shared library.
24740postdeps=$lt_postdeps_RC
24741
24742# The library search path used internally by the compiler when linking
24743# a shared library.
24744compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24745
24746# Method to check whether dependent libraries are shared objects.
24747deplibs_check_method=$lt_deplibs_check_method
24748
24749# Command to use when deplibs_check_method == file_magic.
24750file_magic_cmd=$lt_file_magic_cmd
24751
24752# Flag that allows shared libraries with undefined symbols to be built.
24753allow_undefined_flag=$lt_allow_undefined_flag_RC
24754
24755# Flag that forces no undefined symbols.
24756no_undefined_flag=$lt_no_undefined_flag_RC
24757
24758# Commands used to finish a libtool library installation in a directory.
24759finish_cmds=$lt_finish_cmds
24760
24761# Same as above, but a single script fragment to be evaled but not shown.
24762finish_eval=$lt_finish_eval
24763
24764# Take the output of nm and produce a listing of raw symbols and C names.
24765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24766
24767# Transform the output of nm in a proper C declaration
24768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24769
24770# Transform the output of nm in a C name address pair
24771global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24772
24773# This is the shared library runtime path variable.
24774runpath_var=$runpath_var
24775
24776# This is the shared library path variable.
24777shlibpath_var=$shlibpath_var
24778
24779# Is shlibpath searched before the hard-coded library search path?
24780shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24781
24782# How to hardcode a shared library path into an executable.
24783hardcode_action=$hardcode_action_RC
24784
24785# Whether we should hardcode library paths into libraries.
24786hardcode_into_libs=$hardcode_into_libs
24787
24788# Flag to hardcode \$libdir into a binary during linking.
24789# This must work even if \$libdir does not exist.
24790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24791
24792# If ld is used when linking, flag to hardcode \$libdir into
24793# a binary during linking. This must work even if \$libdir does
24794# not exist.
24795hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24796
24797# Whether we need a single -rpath flag with a separated argument.
24798hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24799
24800# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24801# resulting binary.
24802hardcode_direct=$hardcode_direct_RC
24803
24804# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24805# resulting binary.
24806hardcode_minus_L=$hardcode_minus_L_RC
24807
24808# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24809# the resulting binary.
24810hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24811
24812# Set to yes if building a shared library automatically hardcodes DIR into the library
24813# and all subsequent libraries and executables linked against it.
24814hardcode_automatic=$hardcode_automatic_RC
24815
24816# Variables whose values should be saved in libtool wrapper scripts and
24817# restored at relink time.
24818variables_saved_for_relink="$variables_saved_for_relink"
24819
24820# Whether libtool must link a program against all its dependency libraries.
24821link_all_deplibs=$link_all_deplibs_RC
24822
24823# Compile-time system search path for libraries
24824sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24825
24826# Run-time system search path for libraries
24827sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24828
24829# Fix the shell variable \$srcfile for the compiler.
24830fix_srcfile_path="$fix_srcfile_path_RC"
24831
24832# Set to yes if exported symbols are required.
24833always_export_symbols=$always_export_symbols_RC
24834
24835# The commands to list exported symbols.
24836export_symbols_cmds=$lt_export_symbols_cmds_RC
24837
24838# The commands to extract the exported symbol list from a shared archive.
24839extract_expsyms_cmds=$lt_extract_expsyms_cmds
24840
24841# Symbols that should not be listed in the preloaded symbols.
24842exclude_expsyms=$lt_exclude_expsyms_RC
24843
24844# Symbols that must always be exported.
24845include_expsyms=$lt_include_expsyms_RC
24846
24847# ### END LIBTOOL TAG CONFIG: $tagname
24848
24849__EOF__
24850
24851
24852else
24853 # If there is no Makefile yet, we rely on a make rule to execute
24854 # `config.status --recheck' to rerun these tests and create the
24855 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24857 if test -f "$ltmain_in"; then
24858 test -f Makefile && make "$ltmain"
24859 fi
John Criswell47fdd832003-07-14 16:52:07 +000024860fi
24861
24862
24863ac_ext=c
24864ac_cpp='$CPP $CPPFLAGS'
24865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24867ac_compiler_gnu=$ac_cv_c_compiler_gnu
24868
24869CC="$lt_save_CC"
24870
24871 ;;
24872
24873 *)
24874 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24875echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24876 { (exit 1); exit 1; }; }
24877 ;;
24878 esac
24879
24880 # Append the new tag name to the list of available tags.
24881 if test -n "$tagname" ; then
24882 available_tags="$available_tags $tagname"
24883 fi
24884 fi
24885 done
24886 IFS="$lt_save_ifs"
24887
24888 # Now substitute the updated list of available tags.
24889 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24890 mv "${ofile}T" "$ofile"
24891 chmod +x "$ofile"
24892 else
24893 rm -f "${ofile}T"
24894 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24895echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24896 { (exit 1); exit 1; }; }
24897 fi
24898fi
John Criswell7a73b802003-06-30 21:59:07 +000024899
24900
24901
24902# This can be used to rebuild libtool when needed
24903LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24904
24905# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024906LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024907
24908# Prevent multiple expansion
24909
24910
24911
John Criswell47fdd832003-07-14 16:52:07 +000024912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024929
Reid Spencer582a23c2004-12-29 07:07:57 +000024930if test "$lt_cv_dlopen_self" = "yes" ; then
24931
24932cat >>confdefs.h <<\_ACEOF
24933#define CAN_DLOPEN_SELF 1
24934_ACEOF
24935
24936fi
24937
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024938etags_version=`$ETAGS --version 2>&1`
24939case "$etags_version" in
24940 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24941 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24942 *) ETAGSFLAGS="" ;;
24943esac
24944ETAGSFLAGS=$ETAGSFLAGS
24945
24946
Reid Spencer7931a782004-12-27 06:15:02 +000024947if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024948 LLVMGCC="llvm-gcc${EXEEXT}"
24949 LLVMGXX="llvm-g++${EXEEXT}"
24950 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24951set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024952echo "$as_me:$LINENO: checking for $ac_word" >&5
24953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24954if test "${ac_cv_path_LLVMGCC+set}" = set; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24956else
24957 case $LLVMGCC in
24958 [\\/]* | ?:[\\/]*)
24959 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24960 ;;
24961 *)
24962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24963for as_dir in $PATH
24964do
24965 IFS=$as_save_IFS
24966 test -z "$as_dir" && as_dir=.
24967 for ac_exec_ext in '' $ac_executable_extensions; do
24968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24969 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24971 break 2
24972 fi
24973done
24974done
24975
Reid Spencer59473af2004-12-25 07:31:29 +000024976 ;;
24977esac
24978fi
24979LLVMGCC=$ac_cv_path_LLVMGCC
24980
24981if test -n "$LLVMGCC"; then
24982 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24983echo "${ECHO_T}$LLVMGCC" >&6
24984else
24985 echo "$as_me:$LINENO: result: no" >&5
24986echo "${ECHO_T}no" >&6
24987fi
24988
Reid Spencerc84492c2005-06-02 22:34:49 +000024989 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24990set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024991echo "$as_me:$LINENO: checking for $ac_word" >&5
24992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24993if test "${ac_cv_path_LLVMGXX+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995else
24996 case $LLVMGXX in
24997 [\\/]* | ?:[\\/]*)
24998 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24999 ;;
25000 *)
25001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25002for as_dir in $PATH
25003do
25004 IFS=$as_save_IFS
25005 test -z "$as_dir" && as_dir=.
25006 for ac_exec_ext in '' $ac_executable_extensions; do
25007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25008 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25010 break 2
25011 fi
25012done
25013done
25014
Reid Spencer59473af2004-12-25 07:31:29 +000025015 ;;
25016esac
25017fi
25018LLVMGXX=$ac_cv_path_LLVMGXX
25019
25020if test -n "$LLVMGXX"; then
25021 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25022echo "${ECHO_T}$LLVMGXX" >&6
25023else
25024 echo "$as_me:$LINENO: result: no" >&5
25025echo "${ECHO_T}no" >&6
25026fi
25027
25028else
Reid Spencerc84492c2005-06-02 22:34:49 +000025029 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25030 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000025031 LLVMGCC=$LLVMGCC
25032
25033 LLVMGXX=$LLVMGXX
25034
25035fi
25036
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025037echo "$as_me:$LINENO: checking tool compatibility" >&5
25038echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25039
Reid Spencer86901802004-12-08 23:07:27 +000025040ICC=no
25041IXX=no
25042case $CC in
25043 icc*|icpc*)
25044 ICC=yes
25045 IXX=yes
25046 ;;
25047 *)
25048 ;;
25049esac
25050
Duraid Madina937c60a2006-02-15 07:57:42 +000025051if test "$GCC" != "yes" && test "$ICC" != "yes"
25052then
25053 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25054echo "$as_me: error: gcc|icc required but not found" >&2;}
25055 { (exit 1); exit 1; }; }
25056fi
25057
25058if test "$GXX" != "yes" && test "$IXX" != "yes"
25059then
25060 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25061echo "$as_me: error: g++|icc required but not found" >&2;}
25062 { (exit 1); exit 1; }; }
25063fi
25064
Reid Spencer86901802004-12-08 23:07:27 +000025065if test "$GCC" = "yes"
25066then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025067 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025068 if test "$gccmajor" -lt "3"
25069 then
25070 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025071echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25072 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025073 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025074fi
25075
25076if test -z "$llvm_cv_gnu_make_command"
25077then
25078 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25079echo "$as_me: error: GNU Make required but not found" >&2;}
25080 { (exit 1); exit 1; }; }
25081fi
25082
25083echo "$as_me:$LINENO: result: ok" >&5
25084echo "${ECHO_T}ok" >&6
25085
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025086
John Criswell7a73b802003-06-30 21:59:07 +000025087
John Criswell7a73b802003-06-30 21:59:07 +000025088echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25089echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25090if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25092else
25093 ac_check_lib_save_LIBS=$LIBS
25094LIBS="-lelf $LIBS"
25095cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025096/* confdefs.h. */
25097_ACEOF
25098cat confdefs.h >>conftest.$ac_ext
25099cat >>conftest.$ac_ext <<_ACEOF
25100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025101
25102/* Override any gcc2 internal prototype to avoid an error. */
25103#ifdef __cplusplus
25104extern "C"
25105#endif
25106/* We use char because int might match the return type of a gcc2
25107 builtin and then its argument prototype would still apply. */
25108char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025109int
25110main ()
25111{
25112elf_begin ();
25113 ;
25114 return 0;
25115}
25116_ACEOF
25117rm -f conftest.$ac_objext conftest$ac_exeext
25118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025119 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025121 grep -v '^ *+' conftest.er1 >conftest.err
25122 rm -f conftest.er1
25123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025126 { ac_try='test -z "$ac_c_werror_flag"
25127 || test ! -s conftest.err'
25128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); }; } &&
25133 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; }; then
25139 ac_cv_lib_elf_elf_begin=yes
25140else
25141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025142sed 's/^/| /' conftest.$ac_ext >&5
25143
John Criswell7a73b802003-06-30 21:59:07 +000025144ac_cv_lib_elf_elf_begin=no
25145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025146rm -f conftest.err conftest.$ac_objext \
25147 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025148LIBS=$ac_check_lib_save_LIBS
25149fi
25150echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25151echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25152if test $ac_cv_lib_elf_elf_begin = yes; then
25153 cat >>confdefs.h <<_ACEOF
25154#define HAVE_LIBELF 1
25155_ACEOF
25156
25157 LIBS="-lelf $LIBS"
25158
25159fi
25160
25161
Reid Spencer3484a992006-01-19 08:31:08 +000025162echo "$as_me:$LINENO: checking for sin in -lm" >&5
25163echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25164if test "${ac_cv_lib_m_sin+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166else
25167 ac_check_lib_save_LIBS=$LIBS
25168LIBS="-lm $LIBS"
25169cat >conftest.$ac_ext <<_ACEOF
25170/* confdefs.h. */
25171_ACEOF
25172cat confdefs.h >>conftest.$ac_ext
25173cat >>conftest.$ac_ext <<_ACEOF
25174/* end confdefs.h. */
25175
25176/* Override any gcc2 internal prototype to avoid an error. */
25177#ifdef __cplusplus
25178extern "C"
25179#endif
25180/* We use char because int might match the return type of a gcc2
25181 builtin and then its argument prototype would still apply. */
25182char sin ();
25183int
25184main ()
25185{
25186sin ();
25187 ;
25188 return 0;
25189}
25190_ACEOF
25191rm -f conftest.$ac_objext conftest$ac_exeext
25192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193 (eval $ac_link) 2>conftest.er1
25194 ac_status=$?
25195 grep -v '^ *+' conftest.er1 >conftest.err
25196 rm -f conftest.er1
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_lib_m_sin=yes
25214else
25215 echo "$as_me: failed program was:" >&5
25216sed 's/^/| /' conftest.$ac_ext >&5
25217
25218ac_cv_lib_m_sin=no
25219fi
25220rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
25222LIBS=$ac_check_lib_save_LIBS
25223fi
25224echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25225echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25226if test $ac_cv_lib_m_sin = yes; then
25227 cat >>confdefs.h <<_ACEOF
25228#define HAVE_LIBM 1
25229_ACEOF
25230
25231 LIBS="-lm $LIBS"
25232
25233fi
25234
Reid Spencer484fc8e2006-06-01 16:55:59 +000025235if test "$llvm_cv_os_type" == "MingW" ; then
25236
Reid Spencer48fdf912006-06-01 19:03:21 +000025237echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25238echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25239if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025240 echo $ECHO_N "(cached) $ECHO_C" >&6
25241else
25242 ac_check_lib_save_LIBS=$LIBS
25243LIBS="-limagehlp $LIBS"
25244cat >conftest.$ac_ext <<_ACEOF
25245/* confdefs.h. */
25246_ACEOF
25247cat confdefs.h >>conftest.$ac_ext
25248cat >>conftest.$ac_ext <<_ACEOF
25249/* end confdefs.h. */
25250
Reid Spencer48fdf912006-06-01 19:03:21 +000025251
Reid Spencer484fc8e2006-06-01 16:55:59 +000025252int
25253main ()
25254{
Reid Spencer48fdf912006-06-01 19:03:21 +000025255main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025256 ;
25257 return 0;
25258}
25259_ACEOF
25260rm -f conftest.$ac_objext conftest$ac_exeext
25261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262 (eval $ac_link) 2>conftest.er1
25263 ac_status=$?
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } &&
25269 { ac_try='test -z "$ac_c_werror_flag"
25270 || test ! -s conftest.err'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; } &&
25276 { ac_try='test -s conftest$ac_exeext'
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025282 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025283else
25284 echo "$as_me: failed program was:" >&5
25285sed 's/^/| /' conftest.$ac_ext >&5
25286
Reid Spencer48fdf912006-06-01 19:03:21 +000025287ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025288fi
25289rm -f conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25291LIBS=$ac_check_lib_save_LIBS
25292fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025293echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25294echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25295if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025296 cat >>confdefs.h <<_ACEOF
25297#define HAVE_LIBIMAGEHLP 1
25298_ACEOF
25299
25300 LIBS="-limagehlp $LIBS"
25301
25302fi
25303
25304
Reid Spencer48fdf912006-06-01 19:03:21 +000025305echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25306echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25307if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025308 echo $ECHO_N "(cached) $ECHO_C" >&6
25309else
25310 ac_check_lib_save_LIBS=$LIBS
25311LIBS="-lpsapi $LIBS"
25312cat >conftest.$ac_ext <<_ACEOF
25313/* confdefs.h. */
25314_ACEOF
25315cat confdefs.h >>conftest.$ac_ext
25316cat >>conftest.$ac_ext <<_ACEOF
25317/* end confdefs.h. */
25318
Reid Spencer48fdf912006-06-01 19:03:21 +000025319
Reid Spencer484fc8e2006-06-01 16:55:59 +000025320int
25321main ()
25322{
Reid Spencer48fdf912006-06-01 19:03:21 +000025323main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025324 ;
25325 return 0;
25326}
25327_ACEOF
25328rm -f conftest.$ac_objext conftest$ac_exeext
25329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25330 (eval $ac_link) 2>conftest.er1
25331 ac_status=$?
25332 grep -v '^ *+' conftest.er1 >conftest.err
25333 rm -f conftest.er1
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag"
25338 || test ! -s conftest.err'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest$ac_exeext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025350 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025351else
25352 echo "$as_me: failed program was:" >&5
25353sed 's/^/| /' conftest.$ac_ext >&5
25354
Reid Spencer48fdf912006-06-01 19:03:21 +000025355ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025356fi
25357rm -f conftest.err conftest.$ac_objext \
25358 conftest$ac_exeext conftest.$ac_ext
25359LIBS=$ac_check_lib_save_LIBS
25360fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025361echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25362echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25363if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025364 cat >>confdefs.h <<_ACEOF
25365#define HAVE_LIBPSAPI 1
25366_ACEOF
25367
25368 LIBS="-lpsapi $LIBS"
25369
25370fi
25371
25372fi
Reid Spencer22177fe2005-07-12 15:24:20 +000025373
Reid Spencer17795972004-11-18 09:47:37 +000025374echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25375echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25376if test "${ac_cv_search_lt_dlopen+set}" = set; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25378else
25379 ac_func_search_save_LIBS=$LIBS
25380ac_cv_search_lt_dlopen=no
25381cat >conftest.$ac_ext <<_ACEOF
25382/* confdefs.h. */
25383_ACEOF
25384cat confdefs.h >>conftest.$ac_ext
25385cat >>conftest.$ac_ext <<_ACEOF
25386/* end confdefs.h. */
25387
25388/* Override any gcc2 internal prototype to avoid an error. */
25389#ifdef __cplusplus
25390extern "C"
25391#endif
25392/* We use char because int might match the return type of a gcc2
25393 builtin and then its argument prototype would still apply. */
25394char lt_dlopen ();
25395int
25396main ()
25397{
25398lt_dlopen ();
25399 ;
25400 return 0;
25401}
25402_ACEOF
25403rm -f conftest.$ac_objext conftest$ac_exeext
25404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405 (eval $ac_link) 2>conftest.er1
25406 ac_status=$?
25407 grep -v '^ *+' conftest.er1 >conftest.err
25408 rm -f conftest.er1
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } &&
25412 { ac_try='test -z "$ac_c_werror_flag"
25413 || test ! -s conftest.err'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25416 ac_status=$?
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; } &&
25419 { ac_try='test -s conftest$ac_exeext'
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; }; then
25425 ac_cv_search_lt_dlopen="none required"
25426else
25427 echo "$as_me: failed program was:" >&5
25428sed 's/^/| /' conftest.$ac_ext >&5
25429
25430fi
25431rm -f conftest.err conftest.$ac_objext \
25432 conftest$ac_exeext conftest.$ac_ext
25433if test "$ac_cv_search_lt_dlopen" = no; then
25434 for ac_lib in ltdl; do
25435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25436 cat >conftest.$ac_ext <<_ACEOF
25437/* confdefs.h. */
25438_ACEOF
25439cat confdefs.h >>conftest.$ac_ext
25440cat >>conftest.$ac_ext <<_ACEOF
25441/* end confdefs.h. */
25442
25443/* Override any gcc2 internal prototype to avoid an error. */
25444#ifdef __cplusplus
25445extern "C"
25446#endif
25447/* We use char because int might match the return type of a gcc2
25448 builtin and then its argument prototype would still apply. */
25449char lt_dlopen ();
25450int
25451main ()
25452{
25453lt_dlopen ();
25454 ;
25455 return 0;
25456}
25457_ACEOF
25458rm -f conftest.$ac_objext conftest$ac_exeext
25459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25460 (eval $ac_link) 2>conftest.er1
25461 ac_status=$?
25462 grep -v '^ *+' conftest.er1 >conftest.err
25463 rm -f conftest.er1
25464 cat conftest.err >&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } &&
25467 { ac_try='test -z "$ac_c_werror_flag"
25468 || test ! -s conftest.err'
25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470 (eval $ac_try) 2>&5
25471 ac_status=$?
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); }; } &&
25474 { ac_try='test -s conftest$ac_exeext'
25475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); }; }; then
25480 ac_cv_search_lt_dlopen="-l$ac_lib"
25481break
25482else
25483 echo "$as_me: failed program was:" >&5
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486fi
25487rm -f conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
25489 done
25490fi
25491LIBS=$ac_func_search_save_LIBS
25492fi
25493echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25494echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25495if test "$ac_cv_search_lt_dlopen" != no; then
25496 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25497
25498cat >>confdefs.h <<\_ACEOF
25499#define HAVE_LT_DLOPEN 1
25500_ACEOF
25501
25502else
25503 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25504 not be available" >&5
25505echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25506 not be available" >&2;}
25507fi
25508
25509
John Criswell7a73b802003-06-30 21:59:07 +000025510echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25511echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25512if test "${ac_cv_search_dlopen+set}" = set; then
25513 echo $ECHO_N "(cached) $ECHO_C" >&6
25514else
25515 ac_func_search_save_LIBS=$LIBS
25516ac_cv_search_dlopen=no
25517cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025518/* confdefs.h. */
25519_ACEOF
25520cat confdefs.h >>conftest.$ac_ext
25521cat >>conftest.$ac_ext <<_ACEOF
25522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025523
25524/* Override any gcc2 internal prototype to avoid an error. */
25525#ifdef __cplusplus
25526extern "C"
25527#endif
25528/* We use char because int might match the return type of a gcc2
25529 builtin and then its argument prototype would still apply. */
25530char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025531int
25532main ()
25533{
25534dlopen ();
25535 ;
25536 return 0;
25537}
25538_ACEOF
25539rm -f conftest.$ac_objext conftest$ac_exeext
25540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025541 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025543 grep -v '^ *+' conftest.er1 >conftest.err
25544 rm -f conftest.er1
25545 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025548 { ac_try='test -z "$ac_c_werror_flag"
25549 || test ! -s conftest.err'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25552 ac_status=$?
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; } &&
25555 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; }; then
25561 ac_cv_search_dlopen="none required"
25562else
25563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025564sed 's/^/| /' conftest.$ac_ext >&5
25565
John Criswell7a73b802003-06-30 21:59:07 +000025566fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025567rm -f conftest.err conftest.$ac_objext \
25568 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025569if test "$ac_cv_search_dlopen" = no; then
25570 for ac_lib in dl; do
25571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25572 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025573/* confdefs.h. */
25574_ACEOF
25575cat confdefs.h >>conftest.$ac_ext
25576cat >>conftest.$ac_ext <<_ACEOF
25577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025578
25579/* Override any gcc2 internal prototype to avoid an error. */
25580#ifdef __cplusplus
25581extern "C"
25582#endif
25583/* We use char because int might match the return type of a gcc2
25584 builtin and then its argument prototype would still apply. */
25585char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025586int
25587main ()
25588{
25589dlopen ();
25590 ;
25591 return 0;
25592}
25593_ACEOF
25594rm -f conftest.$ac_objext conftest$ac_exeext
25595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025596 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025597 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025598 grep -v '^ *+' conftest.er1 >conftest.err
25599 rm -f conftest.er1
25600 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025603 { ac_try='test -z "$ac_c_werror_flag"
25604 || test ! -s conftest.err'
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; } &&
25610 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612 (eval $ac_try) 2>&5
25613 ac_status=$?
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); }; }; then
25616 ac_cv_search_dlopen="-l$ac_lib"
25617break
25618else
25619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025620sed 's/^/| /' conftest.$ac_ext >&5
25621
John Criswell7a73b802003-06-30 21:59:07 +000025622fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025623rm -f conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025625 done
25626fi
25627LIBS=$ac_func_search_save_LIBS
25628fi
25629echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25630echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25631if test "$ac_cv_search_dlopen" != no; then
25632 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025633
25634cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025635#define HAVE_DLOPEN 1
25636_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025637
25638else
Brian Gaekec45be042003-10-07 06:01:34 +000025639 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25640echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025641fi
25642
25643
25644echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25645echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25646if test "${ac_cv_search_mallinfo+set}" = set; then
25647 echo $ECHO_N "(cached) $ECHO_C" >&6
25648else
25649 ac_func_search_save_LIBS=$LIBS
25650ac_cv_search_mallinfo=no
25651cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025652/* confdefs.h. */
25653_ACEOF
25654cat confdefs.h >>conftest.$ac_ext
25655cat >>conftest.$ac_ext <<_ACEOF
25656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025657
25658/* Override any gcc2 internal prototype to avoid an error. */
25659#ifdef __cplusplus
25660extern "C"
25661#endif
25662/* We use char because int might match the return type of a gcc2
25663 builtin and then its argument prototype would still apply. */
25664char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025665int
25666main ()
25667{
25668mallinfo ();
25669 ;
25670 return 0;
25671}
25672_ACEOF
25673rm -f conftest.$ac_objext conftest$ac_exeext
25674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025675 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025677 grep -v '^ *+' conftest.er1 >conftest.err
25678 rm -f conftest.er1
25679 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025682 { ac_try='test -z "$ac_c_werror_flag"
25683 || test ! -s conftest.err'
25684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; } &&
25689 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691 (eval $ac_try) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); }; }; then
25695 ac_cv_search_mallinfo="none required"
25696else
25697 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025698sed 's/^/| /' conftest.$ac_ext >&5
25699
John Criswell7a73b802003-06-30 21:59:07 +000025700fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025701rm -f conftest.err conftest.$ac_objext \
25702 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025703if test "$ac_cv_search_mallinfo" = no; then
25704 for ac_lib in malloc; do
25705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025707/* confdefs.h. */
25708_ACEOF
25709cat confdefs.h >>conftest.$ac_ext
25710cat >>conftest.$ac_ext <<_ACEOF
25711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025712
25713/* Override any gcc2 internal prototype to avoid an error. */
25714#ifdef __cplusplus
25715extern "C"
25716#endif
25717/* We use char because int might match the return type of a gcc2
25718 builtin and then its argument prototype would still apply. */
25719char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025720int
25721main ()
25722{
25723mallinfo ();
25724 ;
25725 return 0;
25726}
25727_ACEOF
25728rm -f conftest.$ac_objext conftest$ac_exeext
25729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025730 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025731 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025732 grep -v '^ *+' conftest.er1 >conftest.err
25733 rm -f conftest.er1
25734 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025737 { ac_try='test -z "$ac_c_werror_flag"
25738 || test ! -s conftest.err'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; } &&
25744 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25747 ac_status=$?
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 ac_cv_search_mallinfo="-l$ac_lib"
25751break
25752else
25753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025754sed 's/^/| /' conftest.$ac_ext >&5
25755
John Criswell7a73b802003-06-30 21:59:07 +000025756fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025757rm -f conftest.err conftest.$ac_objext \
25758 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025759 done
25760fi
25761LIBS=$ac_func_search_save_LIBS
25762fi
25763echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25764echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25765if test "$ac_cv_search_mallinfo" != no; then
25766 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025767
25768cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025769#define HAVE_MALLINFO 1
25770_ACEOF
25771
25772fi
25773
25774
Reid Spencer0a262ba2005-08-24 10:07:20 +000025775if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025776
25777echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25778echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25779if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25780 echo $ECHO_N "(cached) $ECHO_C" >&6
25781else
25782 ac_check_lib_save_LIBS=$LIBS
25783LIBS="-lpthread $LIBS"
25784cat >conftest.$ac_ext <<_ACEOF
25785/* confdefs.h. */
25786_ACEOF
25787cat confdefs.h >>conftest.$ac_ext
25788cat >>conftest.$ac_ext <<_ACEOF
25789/* end confdefs.h. */
25790
25791/* Override any gcc2 internal prototype to avoid an error. */
25792#ifdef __cplusplus
25793extern "C"
25794#endif
25795/* We use char because int might match the return type of a gcc2
25796 builtin and then its argument prototype would still apply. */
25797char pthread_mutex_init ();
25798int
25799main ()
25800{
25801pthread_mutex_init ();
25802 ;
25803 return 0;
25804}
25805_ACEOF
25806rm -f conftest.$ac_objext conftest$ac_exeext
25807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25808 (eval $ac_link) 2>conftest.er1
25809 ac_status=$?
25810 grep -v '^ *+' conftest.er1 >conftest.err
25811 rm -f conftest.er1
25812 cat conftest.err >&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } &&
25815 { ac_try='test -z "$ac_c_werror_flag"
25816 || test ! -s conftest.err'
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; } &&
25822 { ac_try='test -s conftest$ac_exeext'
25823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824 (eval $ac_try) 2>&5
25825 ac_status=$?
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); }; }; then
25828 ac_cv_lib_pthread_pthread_mutex_init=yes
25829else
25830 echo "$as_me: failed program was:" >&5
25831sed 's/^/| /' conftest.$ac_ext >&5
25832
25833ac_cv_lib_pthread_pthread_mutex_init=no
25834fi
25835rm -f conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
25837LIBS=$ac_check_lib_save_LIBS
25838fi
25839echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25840echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25841if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25842 cat >>confdefs.h <<_ACEOF
25843#define HAVE_LIBPTHREAD 1
25844_ACEOF
25845
25846 LIBS="-lpthread $LIBS"
25847
25848fi
25849
Reid Spencer0a262ba2005-08-24 10:07:20 +000025850 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025851echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25852if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25854else
25855 ac_func_search_save_LIBS=$LIBS
25856ac_cv_search_pthread_mutex_lock=no
25857cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025858/* confdefs.h. */
25859_ACEOF
25860cat confdefs.h >>conftest.$ac_ext
25861cat >>conftest.$ac_ext <<_ACEOF
25862/* end confdefs.h. */
25863
25864/* Override any gcc2 internal prototype to avoid an error. */
25865#ifdef __cplusplus
25866extern "C"
25867#endif
25868/* We use char because int might match the return type of a gcc2
25869 builtin and then its argument prototype would still apply. */
25870char pthread_mutex_lock ();
25871int
25872main ()
25873{
25874pthread_mutex_lock ();
25875 ;
25876 return 0;
25877}
25878_ACEOF
25879rm -f conftest.$ac_objext conftest$ac_exeext
25880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025881 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025882 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025883 grep -v '^ *+' conftest.er1 >conftest.err
25884 rm -f conftest.er1
25885 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025888 { ac_try='test -z "$ac_c_werror_flag"
25889 || test ! -s conftest.err'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
25895 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_cv_search_pthread_mutex_lock="none required"
25902else
25903 echo "$as_me: failed program was:" >&5
25904sed 's/^/| /' conftest.$ac_ext >&5
25905
25906fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025907rm -f conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025909if test "$ac_cv_search_pthread_mutex_lock" = no; then
25910 for ac_lib in pthread; do
25911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25912 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025913/* confdefs.h. */
25914_ACEOF
25915cat confdefs.h >>conftest.$ac_ext
25916cat >>conftest.$ac_ext <<_ACEOF
25917/* end confdefs.h. */
25918
25919/* Override any gcc2 internal prototype to avoid an error. */
25920#ifdef __cplusplus
25921extern "C"
25922#endif
25923/* We use char because int might match the return type of a gcc2
25924 builtin and then its argument prototype would still apply. */
25925char pthread_mutex_lock ();
25926int
25927main ()
25928{
25929pthread_mutex_lock ();
25930 ;
25931 return 0;
25932}
25933_ACEOF
25934rm -f conftest.$ac_objext conftest$ac_exeext
25935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025936 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025937 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025943 { ac_try='test -z "$ac_c_werror_flag"
25944 || test ! -s conftest.err'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; } &&
25950 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25957break
25958else
25959 echo "$as_me: failed program was:" >&5
25960sed 's/^/| /' conftest.$ac_ext >&5
25961
25962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025963rm -f conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025965 done
25966fi
25967LIBS=$ac_func_search_save_LIBS
25968fi
25969echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25970echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25971if test "$ac_cv_search_pthread_mutex_lock" != no; then
25972 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025973
John Criswell40468462004-09-24 21:19:06 +000025974cat >>confdefs.h <<\_ACEOF
25975#define HAVE_PTHREAD_MUTEX_LOCK 1
25976_ACEOF
25977
25978fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025979
Reid Spencer0a262ba2005-08-24 10:07:20 +000025980fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025981
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025982
Reid Spencer59473af2004-12-25 07:31:29 +000025983
25984
25985
25986
25987
25988ac_header_dirent=no
25989for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25990 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25991echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25992echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25993if eval "test \"\${$as_ac_Header+set}\" = set"; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25995else
25996 cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h. */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h. */
26002#include <sys/types.h>
26003#include <$ac_hdr>
26004
26005int
26006main ()
26007{
26008if ((DIR *) 0)
26009return 0;
26010 ;
26011 return 0;
26012}
26013_ACEOF
26014rm -f conftest.$ac_objext
26015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26016 (eval $ac_compile) 2>conftest.er1
26017 ac_status=$?
26018 grep -v '^ *+' conftest.er1 >conftest.err
26019 rm -f conftest.er1
26020 cat conftest.err >&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } &&
26023 { ac_try='test -z "$ac_c_werror_flag"
26024 || test ! -s conftest.err'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; } &&
26030 { ac_try='test -s conftest.$ac_objext'
26031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032 (eval $ac_try) 2>&5
26033 ac_status=$?
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); }; }; then
26036 eval "$as_ac_Header=yes"
26037else
26038 echo "$as_me: failed program was:" >&5
26039sed 's/^/| /' conftest.$ac_ext >&5
26040
26041eval "$as_ac_Header=no"
26042fi
26043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26044fi
26045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26047if test `eval echo '${'$as_ac_Header'}'` = yes; then
26048 cat >>confdefs.h <<_ACEOF
26049#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26050_ACEOF
26051
26052ac_header_dirent=$ac_hdr; break
26053fi
26054
26055done
26056# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26057if test $ac_header_dirent = dirent.h; then
26058 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26059echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26060if test "${ac_cv_search_opendir+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26062else
26063 ac_func_search_save_LIBS=$LIBS
26064ac_cv_search_opendir=no
26065cat >conftest.$ac_ext <<_ACEOF
26066/* confdefs.h. */
26067_ACEOF
26068cat confdefs.h >>conftest.$ac_ext
26069cat >>conftest.$ac_ext <<_ACEOF
26070/* end confdefs.h. */
26071
26072/* Override any gcc2 internal prototype to avoid an error. */
26073#ifdef __cplusplus
26074extern "C"
26075#endif
26076/* We use char because int might match the return type of a gcc2
26077 builtin and then its argument prototype would still apply. */
26078char opendir ();
26079int
26080main ()
26081{
26082opendir ();
26083 ;
26084 return 0;
26085}
26086_ACEOF
26087rm -f conftest.$ac_objext conftest$ac_exeext
26088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089 (eval $ac_link) 2>conftest.er1
26090 ac_status=$?
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag"
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } &&
26103 { ac_try='test -s conftest$ac_exeext'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109 ac_cv_search_opendir="none required"
26110else
26111 echo "$as_me: failed program was:" >&5
26112sed 's/^/| /' conftest.$ac_ext >&5
26113
26114fi
26115rm -f conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
26117if test "$ac_cv_search_opendir" = no; then
26118 for ac_lib in dir; do
26119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26120 cat >conftest.$ac_ext <<_ACEOF
26121/* confdefs.h. */
26122_ACEOF
26123cat confdefs.h >>conftest.$ac_ext
26124cat >>conftest.$ac_ext <<_ACEOF
26125/* end confdefs.h. */
26126
26127/* Override any gcc2 internal prototype to avoid an error. */
26128#ifdef __cplusplus
26129extern "C"
26130#endif
26131/* We use char because int might match the return type of a gcc2
26132 builtin and then its argument prototype would still apply. */
26133char opendir ();
26134int
26135main ()
26136{
26137opendir ();
26138 ;
26139 return 0;
26140}
26141_ACEOF
26142rm -f conftest.$ac_objext conftest$ac_exeext
26143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26144 (eval $ac_link) 2>conftest.er1
26145 ac_status=$?
26146 grep -v '^ *+' conftest.er1 >conftest.err
26147 rm -f conftest.er1
26148 cat conftest.err >&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } &&
26151 { ac_try='test -z "$ac_c_werror_flag"
26152 || test ! -s conftest.err'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; } &&
26158 { ac_try='test -s conftest$ac_exeext'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164 ac_cv_search_opendir="-l$ac_lib"
26165break
26166else
26167 echo "$as_me: failed program was:" >&5
26168sed 's/^/| /' conftest.$ac_ext >&5
26169
26170fi
26171rm -f conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
26173 done
26174fi
26175LIBS=$ac_func_search_save_LIBS
26176fi
26177echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26178echo "${ECHO_T}$ac_cv_search_opendir" >&6
26179if test "$ac_cv_search_opendir" != no; then
26180 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26181
26182fi
26183
26184else
26185 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26186echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26187if test "${ac_cv_search_opendir+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26189else
26190 ac_func_search_save_LIBS=$LIBS
26191ac_cv_search_opendir=no
26192cat >conftest.$ac_ext <<_ACEOF
26193/* confdefs.h. */
26194_ACEOF
26195cat confdefs.h >>conftest.$ac_ext
26196cat >>conftest.$ac_ext <<_ACEOF
26197/* end confdefs.h. */
26198
26199/* Override any gcc2 internal prototype to avoid an error. */
26200#ifdef __cplusplus
26201extern "C"
26202#endif
26203/* We use char because int might match the return type of a gcc2
26204 builtin and then its argument prototype would still apply. */
26205char opendir ();
26206int
26207main ()
26208{
26209opendir ();
26210 ;
26211 return 0;
26212}
26213_ACEOF
26214rm -f conftest.$ac_objext conftest$ac_exeext
26215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26216 (eval $ac_link) 2>conftest.er1
26217 ac_status=$?
26218 grep -v '^ *+' conftest.er1 >conftest.err
26219 rm -f conftest.er1
26220 cat conftest.err >&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } &&
26223 { ac_try='test -z "$ac_c_werror_flag"
26224 || test ! -s conftest.err'
26225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226 (eval $ac_try) 2>&5
26227 ac_status=$?
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); }; } &&
26230 { ac_try='test -s conftest$ac_exeext'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26233 ac_status=$?
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; }; then
26236 ac_cv_search_opendir="none required"
26237else
26238 echo "$as_me: failed program was:" >&5
26239sed 's/^/| /' conftest.$ac_ext >&5
26240
26241fi
26242rm -f conftest.err conftest.$ac_objext \
26243 conftest$ac_exeext conftest.$ac_ext
26244if test "$ac_cv_search_opendir" = no; then
26245 for ac_lib in x; do
26246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26247 cat >conftest.$ac_ext <<_ACEOF
26248/* confdefs.h. */
26249_ACEOF
26250cat confdefs.h >>conftest.$ac_ext
26251cat >>conftest.$ac_ext <<_ACEOF
26252/* end confdefs.h. */
26253
26254/* Override any gcc2 internal prototype to avoid an error. */
26255#ifdef __cplusplus
26256extern "C"
26257#endif
26258/* We use char because int might match the return type of a gcc2
26259 builtin and then its argument prototype would still apply. */
26260char opendir ();
26261int
26262main ()
26263{
26264opendir ();
26265 ;
26266 return 0;
26267}
26268_ACEOF
26269rm -f conftest.$ac_objext conftest$ac_exeext
26270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26271 (eval $ac_link) 2>conftest.er1
26272 ac_status=$?
26273 grep -v '^ *+' conftest.er1 >conftest.err
26274 rm -f conftest.er1
26275 cat conftest.err >&5
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
26278 { ac_try='test -z "$ac_c_werror_flag"
26279 || test ! -s conftest.err'
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; } &&
26285 { ac_try='test -s conftest$ac_exeext'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291 ac_cv_search_opendir="-l$ac_lib"
26292break
26293else
26294 echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297fi
26298rm -f conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
26300 done
26301fi
26302LIBS=$ac_func_search_save_LIBS
26303fi
26304echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26305echo "${ECHO_T}$ac_cv_search_opendir" >&6
26306if test "$ac_cv_search_opendir" != no; then
26307 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26308
26309fi
26310
26311fi
26312
26313echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26314echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26315if test "${ac_cv_header_mmap_anon+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26317else
26318 ac_ext=c
26319ac_cpp='$CPP $CPPFLAGS'
26320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322ac_compiler_gnu=$ac_cv_c_compiler_gnu
26323
26324 cat >conftest.$ac_ext <<_ACEOF
26325/* confdefs.h. */
26326_ACEOF
26327cat confdefs.h >>conftest.$ac_ext
26328cat >>conftest.$ac_ext <<_ACEOF
26329/* end confdefs.h. */
26330#include <sys/mman.h>
26331#include <unistd.h>
26332#include <fcntl.h>
26333int
26334main ()
26335{
26336mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26337 ;
26338 return 0;
26339}
26340_ACEOF
26341rm -f conftest.$ac_objext
26342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26343 (eval $ac_compile) 2>conftest.er1
26344 ac_status=$?
26345 grep -v '^ *+' conftest.er1 >conftest.err
26346 rm -f conftest.er1
26347 cat conftest.err >&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
26350 { ac_try='test -z "$ac_c_werror_flag"
26351 || test ! -s conftest.err'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; } &&
26357 { ac_try='test -s conftest.$ac_objext'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; }; then
26363 ac_cv_header_mmap_anon=yes
26364else
26365 echo "$as_me: failed program was:" >&5
26366sed 's/^/| /' conftest.$ac_ext >&5
26367
26368ac_cv_header_mmap_anon=no
26369fi
26370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26371 ac_ext=c
26372ac_cpp='$CPP $CPPFLAGS'
26373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26375ac_compiler_gnu=$ac_cv_c_compiler_gnu
26376
26377
26378fi
26379echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26380echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26381if test "$ac_cv_header_mmap_anon" = yes; then
26382
26383cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026384#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026385_ACEOF
26386
26387fi
26388
26389echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26390echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26391if test "${ac_cv_header_stat_broken+set}" = set; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26393else
26394 cat >conftest.$ac_ext <<_ACEOF
26395/* confdefs.h. */
26396_ACEOF
26397cat confdefs.h >>conftest.$ac_ext
26398cat >>conftest.$ac_ext <<_ACEOF
26399/* end confdefs.h. */
26400#include <sys/types.h>
26401#include <sys/stat.h>
26402
26403#if defined(S_ISBLK) && defined(S_IFDIR)
26404# if S_ISBLK (S_IFDIR)
26405You lose.
26406# endif
26407#endif
26408
26409#if defined(S_ISBLK) && defined(S_IFCHR)
26410# if S_ISBLK (S_IFCHR)
26411You lose.
26412# endif
26413#endif
26414
26415#if defined(S_ISLNK) && defined(S_IFREG)
26416# if S_ISLNK (S_IFREG)
26417You lose.
26418# endif
26419#endif
26420
26421#if defined(S_ISSOCK) && defined(S_IFREG)
26422# if S_ISSOCK (S_IFREG)
26423You lose.
26424# endif
26425#endif
26426
26427_ACEOF
26428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26429 $EGREP "You lose" >/dev/null 2>&1; then
26430 ac_cv_header_stat_broken=yes
26431else
26432 ac_cv_header_stat_broken=no
26433fi
26434rm -f conftest*
26435
26436fi
26437echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26438echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26439if test $ac_cv_header_stat_broken = yes; then
26440
26441cat >>confdefs.h <<\_ACEOF
26442#define STAT_MACROS_BROKEN 1
26443_ACEOF
26444
26445fi
26446
John Criswell7a73b802003-06-30 21:59:07 +000026447echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26448echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26449if test "${ac_cv_header_stdc+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26451else
26452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026453/* confdefs.h. */
26454_ACEOF
26455cat confdefs.h >>conftest.$ac_ext
26456cat >>conftest.$ac_ext <<_ACEOF
26457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026458#include <stdlib.h>
26459#include <stdarg.h>
26460#include <string.h>
26461#include <float.h>
26462
John Criswell0c38eaf2003-09-10 15:17:25 +000026463int
26464main ()
26465{
26466
26467 ;
26468 return 0;
26469}
John Criswell7a73b802003-06-30 21:59:07 +000026470_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026471rm -f conftest.$ac_objext
26472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026473 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026479 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026493 ac_cv_header_stdc=yes
26494else
26495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026496sed 's/^/| /' conftest.$ac_ext >&5
26497
26498ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026499fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026501
26502if test $ac_cv_header_stdc = yes; then
26503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26504 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026505/* confdefs.h. */
26506_ACEOF
26507cat confdefs.h >>conftest.$ac_ext
26508cat >>conftest.$ac_ext <<_ACEOF
26509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026510#include <string.h>
26511
26512_ACEOF
26513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026514 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026515 :
26516else
26517 ac_cv_header_stdc=no
26518fi
26519rm -f conftest*
26520
26521fi
26522
26523if test $ac_cv_header_stdc = yes; then
26524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26525 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026526/* confdefs.h. */
26527_ACEOF
26528cat confdefs.h >>conftest.$ac_ext
26529cat >>conftest.$ac_ext <<_ACEOF
26530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026531#include <stdlib.h>
26532
26533_ACEOF
26534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026535 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026536 :
26537else
26538 ac_cv_header_stdc=no
26539fi
26540rm -f conftest*
26541
26542fi
26543
26544if test $ac_cv_header_stdc = yes; then
26545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26546 if test "$cross_compiling" = yes; then
26547 :
26548else
26549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026550/* confdefs.h. */
26551_ACEOF
26552cat confdefs.h >>conftest.$ac_ext
26553cat >>conftest.$ac_ext <<_ACEOF
26554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026555#include <ctype.h>
26556#if ((' ' & 0x0FF) == 0x020)
26557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26559#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026560# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026561 (('a' <= (c) && (c) <= 'i') \
26562 || ('j' <= (c) && (c) <= 'r') \
26563 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26565#endif
26566
26567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26568int
26569main ()
26570{
26571 int i;
26572 for (i = 0; i < 256; i++)
26573 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026574 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026575 exit(2);
26576 exit (0);
26577}
26578_ACEOF
26579rm -f conftest$ac_exeext
26580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26581 (eval $ac_link) 2>&5
26582 ac_status=$?
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26587 ac_status=$?
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; }; then
26590 :
26591else
26592 echo "$as_me: program exited with status $ac_status" >&5
26593echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026594sed 's/^/| /' conftest.$ac_ext >&5
26595
John Criswell7a73b802003-06-30 21:59:07 +000026596( exit $ac_status )
26597ac_cv_header_stdc=no
26598fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026600fi
26601fi
26602fi
26603echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26604echo "${ECHO_T}$ac_cv_header_stdc" >&6
26605if test $ac_cv_header_stdc = yes; then
26606
26607cat >>confdefs.h <<\_ACEOF
26608#define STDC_HEADERS 1
26609_ACEOF
26610
26611fi
26612
26613echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26614echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26615if test "${ac_cv_header_sys_wait_h+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26617else
26618 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026619/* confdefs.h. */
26620_ACEOF
26621cat confdefs.h >>conftest.$ac_ext
26622cat >>conftest.$ac_ext <<_ACEOF
26623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026624#include <sys/types.h>
26625#include <sys/wait.h>
26626#ifndef WEXITSTATUS
26627# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26628#endif
26629#ifndef WIFEXITED
26630# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26631#endif
26632
John Criswell7a73b802003-06-30 21:59:07 +000026633int
26634main ()
26635{
26636 int s;
26637 wait (&s);
26638 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26639 ;
26640 return 0;
26641}
26642_ACEOF
26643rm -f conftest.$ac_objext
26644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026645 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026647 grep -v '^ *+' conftest.er1 >conftest.err
26648 rm -f conftest.er1
26649 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026652 { ac_try='test -z "$ac_c_werror_flag"
26653 || test ! -s conftest.err'
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26656 ac_status=$?
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; } &&
26659 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; }; then
26665 ac_cv_header_sys_wait_h=yes
26666else
26667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026668sed 's/^/| /' conftest.$ac_ext >&5
26669
John Criswell7a73b802003-06-30 21:59:07 +000026670ac_cv_header_sys_wait_h=no
26671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026673fi
26674echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26675echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26676if test $ac_cv_header_sys_wait_h = yes; then
26677
26678cat >>confdefs.h <<\_ACEOF
26679#define HAVE_SYS_WAIT_H 1
26680_ACEOF
26681
26682fi
26683
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026684echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26685echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26686if test "${ac_cv_header_time+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689 cat >conftest.$ac_ext <<_ACEOF
26690/* confdefs.h. */
26691_ACEOF
26692cat confdefs.h >>conftest.$ac_ext
26693cat >>conftest.$ac_ext <<_ACEOF
26694/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026695#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026696#include <sys/time.h>
26697#include <time.h>
26698
26699int
26700main ()
26701{
26702if ((struct tm *) 0)
26703return 0;
26704 ;
26705 return 0;
26706}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026707_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026708rm -f conftest.$ac_objext
26709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26710 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026711 ac_status=$?
26712 grep -v '^ *+' conftest.er1 >conftest.err
26713 rm -f conftest.er1
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026716 (exit $ac_status); } &&
26717 { ac_try='test -z "$ac_c_werror_flag"
26718 || test ! -s conftest.err'
26719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720 (eval $ac_try) 2>&5
26721 ac_status=$?
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); }; } &&
26724 { ac_try='test -s conftest.$ac_objext'
26725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; }; then
26730 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026731else
26732 echo "$as_me: failed program was:" >&5
26733sed 's/^/| /' conftest.$ac_ext >&5
26734
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026735ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026736fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26738fi
26739echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26740echo "${ECHO_T}$ac_cv_header_time" >&6
26741if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026742
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026743cat >>confdefs.h <<\_ACEOF
26744#define TIME_WITH_SYS_TIME 1
26745_ACEOF
26746
26747fi
26748
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026749
Reid Spencer59473af2004-12-25 07:31:29 +000026750
26751
26752
26753
26754
26755
26756for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26757do
26758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26759if eval "test \"\${$as_ac_Header+set}\" = set"; then
26760 echo "$as_me:$LINENO: checking for $ac_header" >&5
26761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26762if eval "test \"\${$as_ac_Header+set}\" = set"; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26764fi
26765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26767else
26768 # Is the header compilable?
26769echo "$as_me:$LINENO: checking $ac_header usability" >&5
26770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26771cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026772/* confdefs.h. */
26773_ACEOF
26774cat confdefs.h >>conftest.$ac_ext
26775cat >>conftest.$ac_ext <<_ACEOF
26776/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026777$ac_includes_default
26778#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026779_ACEOF
26780rm -f conftest.$ac_objext
26781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782 (eval $ac_compile) 2>conftest.er1
26783 ac_status=$?
26784 grep -v '^ *+' conftest.er1 >conftest.err
26785 rm -f conftest.er1
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } &&
26789 { ac_try='test -z "$ac_c_werror_flag"
26790 || test ! -s conftest.err'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; } &&
26796 { ac_try='test -s conftest.$ac_objext'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26799 ac_status=$?
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026802 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026803else
26804 echo "$as_me: failed program was:" >&5
26805sed 's/^/| /' conftest.$ac_ext >&5
26806
Reid Spencer59473af2004-12-25 07:31:29 +000026807ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026808fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26811echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026812
Reid Spencer59473af2004-12-25 07:31:29 +000026813# Is the header present?
26814echo "$as_me:$LINENO: checking $ac_header presence" >&5
26815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26816cat >conftest.$ac_ext <<_ACEOF
26817/* confdefs.h. */
26818_ACEOF
26819cat confdefs.h >>conftest.$ac_ext
26820cat >>conftest.$ac_ext <<_ACEOF
26821/* end confdefs.h. */
26822#include <$ac_header>
26823_ACEOF
26824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26826 ac_status=$?
26827 grep -v '^ *+' conftest.er1 >conftest.err
26828 rm -f conftest.er1
26829 cat conftest.err >&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } >/dev/null; then
26832 if test -s conftest.err; then
26833 ac_cpp_err=$ac_c_preproc_warn_flag
26834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26835 else
26836 ac_cpp_err=
26837 fi
26838else
26839 ac_cpp_err=yes
26840fi
26841if test -z "$ac_cpp_err"; then
26842 ac_header_preproc=yes
26843else
26844 echo "$as_me: failed program was:" >&5
26845sed 's/^/| /' conftest.$ac_ext >&5
26846
26847 ac_header_preproc=no
26848fi
26849rm -f conftest.err conftest.$ac_ext
26850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26851echo "${ECHO_T}$ac_header_preproc" >&6
26852
26853# So? What about this header?
26854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26855 yes:no: )
26856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26860 ac_header_preproc=yes
26861 ;;
26862 no:yes:* )
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26875 (
26876 cat <<\_ASBOX
26877## ----------------------------------- ##
26878## Report this to llvmbugs@cs.uiuc.edu ##
26879## ----------------------------------- ##
26880_ASBOX
26881 ) |
26882 sed "s/^/$as_me: WARNING: /" >&2
26883 ;;
26884esac
26885echo "$as_me:$LINENO: checking for $ac_header" >&5
26886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26887if eval "test \"\${$as_ac_Header+set}\" = set"; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
26889else
26890 eval "$as_ac_Header=\$ac_header_preproc"
26891fi
26892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026894
26895fi
Reid Spencer59473af2004-12-25 07:31:29 +000026896if test `eval echo '${'$as_ac_Header'}'` = yes; then
26897 cat >>confdefs.h <<_ACEOF
26898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026899_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026900
26901fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026902
Reid Spencer59473af2004-12-25 07:31:29 +000026903done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026904
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026905
26906
Reid Spencer59473af2004-12-25 07:31:29 +000026907
26908
26909
26910
Reid Spencercdb08a32006-06-05 16:11:07 +000026911for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000026912do
26913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26914if eval "test \"\${$as_ac_Header+set}\" = set"; then
26915 echo "$as_me:$LINENO: checking for $ac_header" >&5
26916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26917if eval "test \"\${$as_ac_Header+set}\" = set"; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26919fi
26920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26922else
26923 # Is the header compilable?
26924echo "$as_me:$LINENO: checking $ac_header usability" >&5
26925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26926cat >conftest.$ac_ext <<_ACEOF
26927/* confdefs.h. */
26928_ACEOF
26929cat confdefs.h >>conftest.$ac_ext
26930cat >>conftest.$ac_ext <<_ACEOF
26931/* end confdefs.h. */
26932$ac_includes_default
26933#include <$ac_header>
26934_ACEOF
26935rm -f conftest.$ac_objext
26936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26937 (eval $ac_compile) 2>conftest.er1
26938 ac_status=$?
26939 grep -v '^ *+' conftest.er1 >conftest.err
26940 rm -f conftest.er1
26941 cat conftest.err >&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); } &&
26944 { ac_try='test -z "$ac_c_werror_flag"
26945 || test ! -s conftest.err'
26946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; } &&
26951 { ac_try='test -s conftest.$ac_objext'
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; }; then
26957 ac_header_compiler=yes
26958else
26959 echo "$as_me: failed program was:" >&5
26960sed 's/^/| /' conftest.$ac_ext >&5
26961
26962ac_header_compiler=no
26963fi
26964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26966echo "${ECHO_T}$ac_header_compiler" >&6
26967
26968# Is the header present?
26969echo "$as_me:$LINENO: checking $ac_header presence" >&5
26970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26971cat >conftest.$ac_ext <<_ACEOF
26972/* confdefs.h. */
26973_ACEOF
26974cat confdefs.h >>conftest.$ac_ext
26975cat >>conftest.$ac_ext <<_ACEOF
26976/* end confdefs.h. */
26977#include <$ac_header>
26978_ACEOF
26979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26981 ac_status=$?
26982 grep -v '^ *+' conftest.er1 >conftest.err
26983 rm -f conftest.er1
26984 cat conftest.err >&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } >/dev/null; then
26987 if test -s conftest.err; then
26988 ac_cpp_err=$ac_c_preproc_warn_flag
26989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26990 else
26991 ac_cpp_err=
26992 fi
26993else
26994 ac_cpp_err=yes
26995fi
26996if test -z "$ac_cpp_err"; then
26997 ac_header_preproc=yes
26998else
26999 echo "$as_me: failed program was:" >&5
27000sed 's/^/| /' conftest.$ac_ext >&5
27001
27002 ac_header_preproc=no
27003fi
27004rm -f conftest.err conftest.$ac_ext
27005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27006echo "${ECHO_T}$ac_header_preproc" >&6
27007
27008# So? What about this header?
27009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27010 yes:no: )
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27015 ac_header_preproc=yes
27016 ;;
27017 no:yes:* )
27018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27030 (
27031 cat <<\_ASBOX
27032## ----------------------------------- ##
27033## Report this to llvmbugs@cs.uiuc.edu ##
27034## ----------------------------------- ##
27035_ASBOX
27036 ) |
27037 sed "s/^/$as_me: WARNING: /" >&2
27038 ;;
27039esac
27040echo "$as_me:$LINENO: checking for $ac_header" >&5
27041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27042if eval "test \"\${$as_ac_Header+set}\" = set"; then
27043 echo $ECHO_N "(cached) $ECHO_C" >&6
27044else
27045 eval "$as_ac_Header=\$ac_header_preproc"
27046fi
27047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27049
27050fi
27051if test `eval echo '${'$as_ac_Header'}'` = yes; then
27052 cat >>confdefs.h <<_ACEOF
27053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27054_ACEOF
27055
27056fi
27057
27058done
27059
27060
27061
27062
27063
27064
Reid Spencercdb08a32006-06-05 16:11:07 +000027065for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027066do
27067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27068if eval "test \"\${$as_ac_Header+set}\" = set"; then
27069 echo "$as_me:$LINENO: checking for $ac_header" >&5
27070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27071if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027072 echo $ECHO_N "(cached) $ECHO_C" >&6
27073fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027076else
27077 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027078echo "$as_me:$LINENO: checking $ac_header usability" >&5
27079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027080cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027081/* confdefs.h. */
27082_ACEOF
27083cat confdefs.h >>conftest.$ac_ext
27084cat >>conftest.$ac_ext <<_ACEOF
27085/* end confdefs.h. */
27086$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027087#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027088_ACEOF
27089rm -f conftest.$ac_objext
27090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027091 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027092 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027093 grep -v '^ *+' conftest.er1 >conftest.err
27094 rm -f conftest.er1
27095 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027098 { ac_try='test -z "$ac_c_werror_flag"
27099 || test ! -s conftest.err'
27100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; } &&
27105 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107 (eval $ac_try) 2>&5
27108 ac_status=$?
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); }; }; then
27111 ac_header_compiler=yes
27112else
27113 echo "$as_me: failed program was:" >&5
27114sed 's/^/| /' conftest.$ac_ext >&5
27115
27116ac_header_compiler=no
27117fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27120echo "${ECHO_T}$ac_header_compiler" >&6
27121
27122# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027123echo "$as_me:$LINENO: checking $ac_header presence" >&5
27124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027125cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027126/* confdefs.h. */
27127_ACEOF
27128cat confdefs.h >>conftest.$ac_ext
27129cat >>conftest.$ac_ext <<_ACEOF
27130/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027131#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027132_ACEOF
27133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27135 ac_status=$?
27136 grep -v '^ *+' conftest.er1 >conftest.err
27137 rm -f conftest.er1
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } >/dev/null; then
27141 if test -s conftest.err; then
27142 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000027143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027144 else
27145 ac_cpp_err=
27146 fi
27147else
27148 ac_cpp_err=yes
27149fi
27150if test -z "$ac_cpp_err"; then
27151 ac_header_preproc=yes
27152else
27153 echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
27156 ac_header_preproc=no
27157fi
27158rm -f conftest.err conftest.$ac_ext
27159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27160echo "${ECHO_T}$ac_header_preproc" >&6
27161
27162# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27164 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027169 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027170 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027171 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000027184 (
27185 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027186## ----------------------------------- ##
27187## Report this to llvmbugs@cs.uiuc.edu ##
27188## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027189_ASBOX
27190 ) |
27191 sed "s/^/$as_me: WARNING: /" >&2
27192 ;;
27193esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027194echo "$as_me:$LINENO: checking for $ac_header" >&5
27195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27196if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027199 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027200fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027203
27204fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027205if test `eval echo '${'$as_ac_Header'}'` = yes; then
27206 cat >>confdefs.h <<_ACEOF
27207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027208_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027209
27210fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027211
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027212done
27213
John Criswell7ed43ad2004-07-19 16:12:29 +000027214
Reid Spencercdb08a32006-06-05 16:11:07 +000027215
27216for ac_header in sys/types.h malloc/malloc.h
Chris Lattner0b142592005-11-14 06:57:34 +000027217do
27218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27219if eval "test \"\${$as_ac_Header+set}\" = set"; then
27220 echo "$as_me:$LINENO: checking for $ac_header" >&5
27221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27222if eval "test \"\${$as_ac_Header+set}\" = set"; then
27223 echo $ECHO_N "(cached) $ECHO_C" >&6
27224fi
27225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27227else
27228 # Is the header compilable?
27229echo "$as_me:$LINENO: checking $ac_header usability" >&5
27230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27231cat >conftest.$ac_ext <<_ACEOF
27232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
27237$ac_includes_default
27238#include <$ac_header>
27239_ACEOF
27240rm -f conftest.$ac_objext
27241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27242 (eval $ac_compile) 2>conftest.er1
27243 ac_status=$?
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27253 ac_status=$?
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest.$ac_objext'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 ac_header_compiler=yes
27263else
27264 echo "$as_me: failed program was:" >&5
27265sed 's/^/| /' conftest.$ac_ext >&5
27266
27267ac_header_compiler=no
27268fi
27269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27270echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27271echo "${ECHO_T}$ac_header_compiler" >&6
27272
27273# Is the header present?
27274echo "$as_me:$LINENO: checking $ac_header presence" >&5
27275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27276cat >conftest.$ac_ext <<_ACEOF
27277/* confdefs.h. */
27278_ACEOF
27279cat confdefs.h >>conftest.$ac_ext
27280cat >>conftest.$ac_ext <<_ACEOF
27281/* end confdefs.h. */
27282#include <$ac_header>
27283_ACEOF
27284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27286 ac_status=$?
27287 grep -v '^ *+' conftest.er1 >conftest.err
27288 rm -f conftest.er1
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } >/dev/null; then
27292 if test -s conftest.err; then
27293 ac_cpp_err=$ac_c_preproc_warn_flag
27294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27295 else
27296 ac_cpp_err=
27297 fi
27298else
27299 ac_cpp_err=yes
27300fi
27301if test -z "$ac_cpp_err"; then
27302 ac_header_preproc=yes
27303else
27304 echo "$as_me: failed program was:" >&5
27305sed 's/^/| /' conftest.$ac_ext >&5
27306
27307 ac_header_preproc=no
27308fi
27309rm -f conftest.err conftest.$ac_ext
27310echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27311echo "${ECHO_T}$ac_header_preproc" >&6
27312
27313# So? What about this header?
27314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27315 yes:no: )
27316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27320 ac_header_preproc=yes
27321 ;;
27322 no:yes:* )
27323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27335 (
27336 cat <<\_ASBOX
27337## ----------------------------------- ##
27338## Report this to llvmbugs@cs.uiuc.edu ##
27339## ----------------------------------- ##
27340_ASBOX
27341 ) |
27342 sed "s/^/$as_me: WARNING: /" >&2
27343 ;;
27344esac
27345echo "$as_me:$LINENO: checking for $ac_header" >&5
27346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27347if eval "test \"\${$as_ac_Header+set}\" = set"; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27349else
27350 eval "$as_ac_Header=\$ac_header_preproc"
27351fi
27352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27354
27355fi
27356if test `eval echo '${'$as_ac_Header'}'` = yes; then
27357 cat >>confdefs.h <<_ACEOF
27358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27359_ACEOF
27360
27361fi
27362
27363done
27364
Reid Spencer0a262ba2005-08-24 10:07:20 +000027365if test "$ENABLE_THREADS" -eq 1 ; then
27366
27367for ac_header in pthread.h
27368do
27369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27370if eval "test \"\${$as_ac_Header+set}\" = set"; then
27371 echo "$as_me:$LINENO: checking for $ac_header" >&5
27372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27373if eval "test \"\${$as_ac_Header+set}\" = set"; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27375fi
27376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27378else
27379 # Is the header compilable?
27380echo "$as_me:$LINENO: checking $ac_header usability" >&5
27381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27382cat >conftest.$ac_ext <<_ACEOF
27383/* confdefs.h. */
27384_ACEOF
27385cat confdefs.h >>conftest.$ac_ext
27386cat >>conftest.$ac_ext <<_ACEOF
27387/* end confdefs.h. */
27388$ac_includes_default
27389#include <$ac_header>
27390_ACEOF
27391rm -f conftest.$ac_objext
27392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27393 (eval $ac_compile) 2>conftest.er1
27394 ac_status=$?
27395 grep -v '^ *+' conftest.er1 >conftest.err
27396 rm -f conftest.er1
27397 cat conftest.err >&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } &&
27400 { ac_try='test -z "$ac_c_werror_flag"
27401 || test ! -s conftest.err'
27402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403 (eval $ac_try) 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; } &&
27407 { ac_try='test -s conftest.$ac_objext'
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; }; then
27413 ac_header_compiler=yes
27414else
27415 echo "$as_me: failed program was:" >&5
27416sed 's/^/| /' conftest.$ac_ext >&5
27417
27418ac_header_compiler=no
27419fi
27420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27422echo "${ECHO_T}$ac_header_compiler" >&6
27423
27424# Is the header present?
27425echo "$as_me:$LINENO: checking $ac_header presence" >&5
27426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27427cat >conftest.$ac_ext <<_ACEOF
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
27433#include <$ac_header>
27434_ACEOF
27435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27437 ac_status=$?
27438 grep -v '^ *+' conftest.er1 >conftest.err
27439 rm -f conftest.er1
27440 cat conftest.err >&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); } >/dev/null; then
27443 if test -s conftest.err; then
27444 ac_cpp_err=$ac_c_preproc_warn_flag
27445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27446 else
27447 ac_cpp_err=
27448 fi
27449else
27450 ac_cpp_err=yes
27451fi
27452if test -z "$ac_cpp_err"; then
27453 ac_header_preproc=yes
27454else
27455 echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
27458 ac_header_preproc=no
27459fi
27460rm -f conftest.err conftest.$ac_ext
27461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27462echo "${ECHO_T}$ac_header_preproc" >&6
27463
27464# So? What about this header?
27465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27466 yes:no: )
27467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27471 ac_header_preproc=yes
27472 ;;
27473 no:yes:* )
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27486 (
27487 cat <<\_ASBOX
27488## ----------------------------------- ##
27489## Report this to llvmbugs@cs.uiuc.edu ##
27490## ----------------------------------- ##
27491_ASBOX
27492 ) |
27493 sed "s/^/$as_me: WARNING: /" >&2
27494 ;;
27495esac
27496echo "$as_me:$LINENO: checking for $ac_header" >&5
27497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27498if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27500else
27501 eval "$as_ac_Header=\$ac_header_preproc"
27502fi
27503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27505
27506fi
27507if test `eval echo '${'$as_ac_Header'}'` = yes; then
27508 cat >>confdefs.h <<_ACEOF
27509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27510_ACEOF
27511
27512fi
27513
27514done
27515
27516fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027517
27518
John Criswell7a73b802003-06-30 21:59:07 +000027519echo "$as_me:$LINENO: checking for pid_t" >&5
27520echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27521if test "${ac_cv_type_pid_t+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27523else
27524 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027525/* confdefs.h. */
27526_ACEOF
27527cat confdefs.h >>conftest.$ac_ext
27528cat >>conftest.$ac_ext <<_ACEOF
27529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027530$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027531int
27532main ()
27533{
27534if ((pid_t *) 0)
27535 return 0;
27536if (sizeof (pid_t))
27537 return 0;
27538 ;
27539 return 0;
27540}
27541_ACEOF
27542rm -f conftest.$ac_objext
27543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027544 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027546 grep -v '^ *+' conftest.er1 >conftest.err
27547 rm -f conftest.er1
27548 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027551 { ac_try='test -z "$ac_c_werror_flag"
27552 || test ! -s conftest.err'
27553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554 (eval $ac_try) 2>&5
27555 ac_status=$?
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); }; } &&
27558 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560 (eval $ac_try) 2>&5
27561 ac_status=$?
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; }; then
27564 ac_cv_type_pid_t=yes
27565else
27566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027567sed 's/^/| /' conftest.$ac_ext >&5
27568
John Criswell7a73b802003-06-30 21:59:07 +000027569ac_cv_type_pid_t=no
27570fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027572fi
27573echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27574echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27575if test $ac_cv_type_pid_t = yes; then
27576 :
27577else
27578
27579cat >>confdefs.h <<_ACEOF
27580#define pid_t int
27581_ACEOF
27582
27583fi
27584
27585echo "$as_me:$LINENO: checking for size_t" >&5
27586echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27587if test "${ac_cv_type_size_t+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27589else
27590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027591/* confdefs.h. */
27592_ACEOF
27593cat confdefs.h >>conftest.$ac_ext
27594cat >>conftest.$ac_ext <<_ACEOF
27595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027596$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027597int
27598main ()
27599{
27600if ((size_t *) 0)
27601 return 0;
27602if (sizeof (size_t))
27603 return 0;
27604 ;
27605 return 0;
27606}
27607_ACEOF
27608rm -f conftest.$ac_objext
27609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027610 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027612 grep -v '^ *+' conftest.er1 >conftest.err
27613 rm -f conftest.er1
27614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027617 { ac_try='test -z "$ac_c_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_cv_type_size_t=yes
27631else
27632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027633sed 's/^/| /' conftest.$ac_ext >&5
27634
John Criswell7a73b802003-06-30 21:59:07 +000027635ac_cv_type_size_t=no
27636fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027638fi
27639echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27640echo "${ECHO_T}$ac_cv_type_size_t" >&6
27641if test $ac_cv_type_size_t = yes; then
27642 :
27643else
27644
27645cat >>confdefs.h <<_ACEOF
27646#define size_t unsigned
27647_ACEOF
27648
27649fi
27650
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027651echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27652echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27653if test "${ac_cv_type_signal+set}" = set; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27655else
27656 cat >conftest.$ac_ext <<_ACEOF
27657/* confdefs.h. */
27658_ACEOF
27659cat confdefs.h >>conftest.$ac_ext
27660cat >>conftest.$ac_ext <<_ACEOF
27661/* end confdefs.h. */
27662#include <sys/types.h>
27663#include <signal.h>
27664#ifdef signal
27665# undef signal
27666#endif
27667#ifdef __cplusplus
27668extern "C" void (*signal (int, void (*)(int)))(int);
27669#else
27670void (*signal ()) ();
27671#endif
27672
27673int
27674main ()
27675{
27676int i;
27677 ;
27678 return 0;
27679}
27680_ACEOF
27681rm -f conftest.$ac_objext
27682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683 (eval $ac_compile) 2>conftest.er1
27684 ac_status=$?
27685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag"
27691 || test ! -s conftest.err'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest.$ac_objext'
27698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); }; }; then
27703 ac_cv_type_signal=void
27704else
27705 echo "$as_me: failed program was:" >&5
27706sed 's/^/| /' conftest.$ac_ext >&5
27707
27708ac_cv_type_signal=int
27709fi
27710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27711fi
27712echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27713echo "${ECHO_T}$ac_cv_type_signal" >&6
27714
27715cat >>confdefs.h <<_ACEOF
27716#define RETSIGTYPE $ac_cv_type_signal
27717_ACEOF
27718
27719
27720echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27721echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27722if test "${ac_cv_struct_tm+set}" = set; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27724else
27725 cat >conftest.$ac_ext <<_ACEOF
27726/* confdefs.h. */
27727_ACEOF
27728cat confdefs.h >>conftest.$ac_ext
27729cat >>conftest.$ac_ext <<_ACEOF
27730/* end confdefs.h. */
27731#include <sys/types.h>
27732#include <time.h>
27733
27734int
27735main ()
27736{
27737struct tm *tp; tp->tm_sec;
27738 ;
27739 return 0;
27740}
27741_ACEOF
27742rm -f conftest.$ac_objext
27743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27744 (eval $ac_compile) 2>conftest.er1
27745 ac_status=$?
27746 grep -v '^ *+' conftest.er1 >conftest.err
27747 rm -f conftest.er1
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try='test -z "$ac_c_werror_flag"
27752 || test ! -s conftest.err'
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27755 ac_status=$?
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; } &&
27758 { ac_try='test -s conftest.$ac_objext'
27759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760 (eval $ac_try) 2>&5
27761 ac_status=$?
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
27764 ac_cv_struct_tm=time.h
27765else
27766 echo "$as_me: failed program was:" >&5
27767sed 's/^/| /' conftest.$ac_ext >&5
27768
27769ac_cv_struct_tm=sys/time.h
27770fi
27771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27772fi
27773echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27774echo "${ECHO_T}$ac_cv_struct_tm" >&6
27775if test $ac_cv_struct_tm = sys/time.h; then
27776
27777cat >>confdefs.h <<\_ACEOF
27778#define TM_IN_SYS_TIME 1
27779_ACEOF
27780
27781fi
27782
John Criswell7a73b802003-06-30 21:59:07 +000027783echo "$as_me:$LINENO: checking for int64_t" >&5
27784echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27785if test "${ac_cv_type_int64_t+set}" = set; then
27786 echo $ECHO_N "(cached) $ECHO_C" >&6
27787else
27788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027789/* confdefs.h. */
27790_ACEOF
27791cat confdefs.h >>conftest.$ac_ext
27792cat >>conftest.$ac_ext <<_ACEOF
27793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027794$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027795int
27796main ()
27797{
27798if ((int64_t *) 0)
27799 return 0;
27800if (sizeof (int64_t))
27801 return 0;
27802 ;
27803 return 0;
27804}
27805_ACEOF
27806rm -f conftest.$ac_objext
27807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027808 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027810 grep -v '^ *+' conftest.er1 >conftest.err
27811 rm -f conftest.er1
27812 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027815 { ac_try='test -z "$ac_c_werror_flag"
27816 || test ! -s conftest.err'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27825 ac_status=$?
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; }; then
27828 ac_cv_type_int64_t=yes
27829else
27830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027831sed 's/^/| /' conftest.$ac_ext >&5
27832
John Criswell7a73b802003-06-30 21:59:07 +000027833ac_cv_type_int64_t=no
27834fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027836fi
27837echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27838echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27839if test $ac_cv_type_int64_t = yes; then
27840
27841cat >>confdefs.h <<_ACEOF
27842#define HAVE_INT64_T 1
27843_ACEOF
27844
27845
27846else
27847 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27848echo "$as_me: error: Type int64_t required but not found" >&2;}
27849 { (exit 1); exit 1; }; }
27850fi
27851
27852echo "$as_me:$LINENO: checking for uint64_t" >&5
27853echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27854if test "${ac_cv_type_uint64_t+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27856else
27857 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027858/* confdefs.h. */
27859_ACEOF
27860cat confdefs.h >>conftest.$ac_ext
27861cat >>conftest.$ac_ext <<_ACEOF
27862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027863$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027864int
27865main ()
27866{
27867if ((uint64_t *) 0)
27868 return 0;
27869if (sizeof (uint64_t))
27870 return 0;
27871 ;
27872 return 0;
27873}
27874_ACEOF
27875rm -f conftest.$ac_objext
27876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027877 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027884 { ac_try='test -z "$ac_c_werror_flag"
27885 || test ! -s conftest.err'
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27888 ac_status=$?
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
27891 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 ac_cv_type_uint64_t=yes
27898else
27899 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027900sed 's/^/| /' conftest.$ac_ext >&5
27901
John Criswell7a73b802003-06-30 21:59:07 +000027902ac_cv_type_uint64_t=no
27903fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027905fi
27906echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27907echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27908if test $ac_cv_type_uint64_t = yes; then
27909
27910cat >>confdefs.h <<_ACEOF
27911#define HAVE_UINT64_T 1
27912_ACEOF
27913
27914
27915else
Misha Brukmanceca9042004-09-02 23:02:30 +000027916 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027917echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27918if test "${ac_cv_type_u_int64_t+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27920else
27921 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027922/* confdefs.h. */
27923_ACEOF
27924cat confdefs.h >>conftest.$ac_ext
27925cat >>conftest.$ac_ext <<_ACEOF
27926/* end confdefs.h. */
27927$ac_includes_default
27928int
27929main ()
27930{
27931if ((u_int64_t *) 0)
27932 return 0;
27933if (sizeof (u_int64_t))
27934 return 0;
27935 ;
27936 return 0;
27937}
27938_ACEOF
27939rm -f conftest.$ac_objext
27940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027941 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027943 grep -v '^ *+' conftest.er1 >conftest.err
27944 rm -f conftest.er1
27945 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027948 { ac_try='test -z "$ac_c_werror_flag"
27949 || test ! -s conftest.err'
27950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951 (eval $ac_try) 2>&5
27952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; } &&
27955 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27958 ac_status=$?
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; }; then
27961 ac_cv_type_u_int64_t=yes
27962else
27963 echo "$as_me: failed program was:" >&5
27964sed 's/^/| /' conftest.$ac_ext >&5
27965
27966ac_cv_type_u_int64_t=no
27967fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027969fi
27970echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27971echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27972if test $ac_cv_type_u_int64_t = yes; then
27973
27974cat >>confdefs.h <<_ACEOF
27975#define HAVE_U_INT64_T 1
27976_ACEOF
27977
27978
Misha Brukmanceca9042004-09-02 23:02:30 +000027979else
27980 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27981echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27982 { (exit 1); exit 1; }; }
27983fi
27984
John Criswell679ff312004-09-02 18:44:44 +000027985fi
27986
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027987
27988
27989
27990
27991
27992
27993
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027994
27995
Reid Spencerdf3be822006-01-23 08:15:53 +000027996for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027997do
27998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27999echo "$as_me:$LINENO: checking for $ac_func" >&5
28000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28001if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028002 echo $ECHO_N "(cached) $ECHO_C" >&6
28003else
28004 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028005/* confdefs.h. */
28006_ACEOF
28007cat confdefs.h >>conftest.$ac_ext
28008cat >>conftest.$ac_ext <<_ACEOF
28009/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28012#define $ac_func innocuous_$ac_func
28013
28014/* System header to define __stub macros and hopefully few prototypes,
28015 which can conflict with char $ac_func (); below.
28016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28017 <limits.h> exists even on freestanding compilers. */
28018
28019#ifdef __STDC__
28020# include <limits.h>
28021#else
28022# include <assert.h>
28023#endif
28024
28025#undef $ac_func
28026
28027/* Override any gcc2 internal prototype to avoid an error. */
28028#ifdef __cplusplus
28029extern "C"
28030{
28031#endif
28032/* We use char because int might match the return type of a gcc2
28033 builtin and then its argument prototype would still apply. */
28034char $ac_func ();
28035/* The GNU C library defines this for functions which it implements
28036 to always fail with ENOSYS. Some functions are actually named
28037 something starting with __ and the normal name is an alias. */
28038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28039choke me
28040#else
28041char (*f) () = $ac_func;
28042#endif
28043#ifdef __cplusplus
28044}
28045#endif
John Criswell7a73b802003-06-30 21:59:07 +000028046
John Criswell7a73b802003-06-30 21:59:07 +000028047int
28048main ()
28049{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028050return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028051 ;
28052 return 0;
28053}
28054_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028055rm -f conftest.$ac_objext conftest$ac_exeext
28056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028058 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028064 { ac_try='test -z "$ac_c_werror_flag"
28065 || test ! -s conftest.err'
28066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028071 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028077 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028078else
28079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028080sed 's/^/| /' conftest.$ac_ext >&5
28081
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028082eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028083fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028084rm -f conftest.err conftest.$ac_objext \
28085 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028086fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28088echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28089if test `eval echo '${'$as_ac_var'}'` = yes; then
28090 cat >>confdefs.h <<_ACEOF
28091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028092_ACEOF
28093
28094fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028095done
John Criswell7a73b802003-06-30 21:59:07 +000028096
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028097
28098
28099
Reid Spencer6af3d262004-12-15 04:01:48 +000028100
28101
Reid Spencer59473af2004-12-25 07:31:29 +000028102
Reid Spencerdf3be822006-01-23 08:15:53 +000028103for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28104do
28105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28106echo "$as_me:$LINENO: checking for $ac_func" >&5
28107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28108if eval "test \"\${$as_ac_var+set}\" = set"; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
28110else
28111 cat >conftest.$ac_ext <<_ACEOF
28112/* confdefs.h. */
28113_ACEOF
28114cat confdefs.h >>conftest.$ac_ext
28115cat >>conftest.$ac_ext <<_ACEOF
28116/* end confdefs.h. */
28117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28119#define $ac_func innocuous_$ac_func
28120
28121/* System header to define __stub macros and hopefully few prototypes,
28122 which can conflict with char $ac_func (); below.
28123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28124 <limits.h> exists even on freestanding compilers. */
28125
28126#ifdef __STDC__
28127# include <limits.h>
28128#else
28129# include <assert.h>
28130#endif
28131
28132#undef $ac_func
28133
28134/* Override any gcc2 internal prototype to avoid an error. */
28135#ifdef __cplusplus
28136extern "C"
28137{
28138#endif
28139/* We use char because int might match the return type of a gcc2
28140 builtin and then its argument prototype would still apply. */
28141char $ac_func ();
28142/* The GNU C library defines this for functions which it implements
28143 to always fail with ENOSYS. Some functions are actually named
28144 something starting with __ and the normal name is an alias. */
28145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28146choke me
28147#else
28148char (*f) () = $ac_func;
28149#endif
28150#ifdef __cplusplus
28151}
28152#endif
28153
28154int
28155main ()
28156{
28157return f != $ac_func;
28158 ;
28159 return 0;
28160}
28161_ACEOF
28162rm -f conftest.$ac_objext conftest$ac_exeext
28163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28164 (eval $ac_link) 2>conftest.er1
28165 ac_status=$?
28166 grep -v '^ *+' conftest.er1 >conftest.err
28167 rm -f conftest.er1
28168 cat conftest.err >&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } &&
28171 { ac_try='test -z "$ac_c_werror_flag"
28172 || test ! -s conftest.err'
28173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174 (eval $ac_try) 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; } &&
28178 { ac_try='test -s conftest$ac_exeext'
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 eval "$as_ac_var=yes"
28185else
28186 echo "$as_me: failed program was:" >&5
28187sed 's/^/| /' conftest.$ac_ext >&5
28188
28189eval "$as_ac_var=no"
28190fi
28191rm -f conftest.err conftest.$ac_objext \
28192 conftest$ac_exeext conftest.$ac_ext
28193fi
28194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28195echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28196if test `eval echo '${'$as_ac_var'}'` = yes; then
28197 cat >>confdefs.h <<_ACEOF
28198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28199_ACEOF
28200
28201fi
28202done
28203
28204
28205
28206
28207
28208
28209
28210
28211for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000028212do
28213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28214echo "$as_me:$LINENO: checking for $ac_func" >&5
28215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28216if eval "test \"\${$as_ac_var+set}\" = set"; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28218else
28219 cat >conftest.$ac_ext <<_ACEOF
28220/* confdefs.h. */
28221_ACEOF
28222cat confdefs.h >>conftest.$ac_ext
28223cat >>conftest.$ac_ext <<_ACEOF
28224/* end confdefs.h. */
28225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28227#define $ac_func innocuous_$ac_func
28228
28229/* System header to define __stub macros and hopefully few prototypes,
28230 which can conflict with char $ac_func (); below.
28231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28232 <limits.h> exists even on freestanding compilers. */
28233
28234#ifdef __STDC__
28235# include <limits.h>
28236#else
28237# include <assert.h>
28238#endif
28239
28240#undef $ac_func
28241
28242/* Override any gcc2 internal prototype to avoid an error. */
28243#ifdef __cplusplus
28244extern "C"
28245{
28246#endif
28247/* We use char because int might match the return type of a gcc2
28248 builtin and then its argument prototype would still apply. */
28249char $ac_func ();
28250/* The GNU C library defines this for functions which it implements
28251 to always fail with ENOSYS. Some functions are actually named
28252 something starting with __ and the normal name is an alias. */
28253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28254choke me
28255#else
28256char (*f) () = $ac_func;
28257#endif
28258#ifdef __cplusplus
28259}
28260#endif
28261
28262int
28263main ()
28264{
28265return f != $ac_func;
28266 ;
28267 return 0;
28268}
28269_ACEOF
28270rm -f conftest.$ac_objext conftest$ac_exeext
28271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28272 (eval $ac_link) 2>conftest.er1
28273 ac_status=$?
28274 grep -v '^ *+' conftest.er1 >conftest.err
28275 rm -f conftest.er1
28276 cat conftest.err >&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } &&
28279 { ac_try='test -z "$ac_c_werror_flag"
28280 || test ! -s conftest.err'
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; } &&
28286 { ac_try='test -s conftest$ac_exeext'
28287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28288 (eval $ac_try) 2>&5
28289 ac_status=$?
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28292 eval "$as_ac_var=yes"
28293else
28294 echo "$as_me: failed program was:" >&5
28295sed 's/^/| /' conftest.$ac_ext >&5
28296
28297eval "$as_ac_var=no"
28298fi
28299rm -f conftest.err conftest.$ac_objext \
28300 conftest$ac_exeext conftest.$ac_ext
28301fi
28302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28304if test `eval echo '${'$as_ac_var'}'` = yes; then
28305 cat >>confdefs.h <<_ACEOF
28306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28307_ACEOF
28308
28309fi
28310done
28311
28312
Reid Spencerba46ca32004-12-31 05:49:15 +000028313
28314
Chris Lattner0b142592005-11-14 06:57:34 +000028315
Chris Lattner511f11d2005-11-14 07:25:50 +000028316for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028317do
28318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28319echo "$as_me:$LINENO: checking for $ac_func" >&5
28320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28321if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028322 echo $ECHO_N "(cached) $ECHO_C" >&6
28323else
28324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028325/* confdefs.h. */
28326_ACEOF
28327cat confdefs.h >>conftest.$ac_ext
28328cat >>conftest.$ac_ext <<_ACEOF
28329/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28332#define $ac_func innocuous_$ac_func
28333
28334/* System header to define __stub macros and hopefully few prototypes,
28335 which can conflict with char $ac_func (); below.
28336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28337 <limits.h> exists even on freestanding compilers. */
28338
28339#ifdef __STDC__
28340# include <limits.h>
28341#else
28342# include <assert.h>
28343#endif
28344
28345#undef $ac_func
28346
28347/* Override any gcc2 internal prototype to avoid an error. */
28348#ifdef __cplusplus
28349extern "C"
28350{
28351#endif
28352/* We use char because int might match the return type of a gcc2
28353 builtin and then its argument prototype would still apply. */
28354char $ac_func ();
28355/* The GNU C library defines this for functions which it implements
28356 to always fail with ENOSYS. Some functions are actually named
28357 something starting with __ and the normal name is an alias. */
28358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28359choke me
28360#else
28361char (*f) () = $ac_func;
28362#endif
28363#ifdef __cplusplus
28364}
28365#endif
John Criswell7a73b802003-06-30 21:59:07 +000028366
John Criswell7a73b802003-06-30 21:59:07 +000028367int
28368main ()
28369{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028370return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028371 ;
28372 return 0;
28373}
28374_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028375rm -f conftest.$ac_objext conftest$ac_exeext
28376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028384 { ac_try='test -z "$ac_c_werror_flag"
28385 || test ! -s conftest.err'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028391 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028397 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028398else
28399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028400sed 's/^/| /' conftest.$ac_ext >&5
28401
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028402eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028403fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028404rm -f conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028406fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28409if test `eval echo '${'$as_ac_var'}'` = yes; then
28410 cat >>confdefs.h <<_ACEOF
28411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028412_ACEOF
28413
28414fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028415done
John Criswell7a73b802003-06-30 21:59:07 +000028416
Reid Spencercdb08a32006-06-05 16:11:07 +000028417
28418
28419
28420
28421
28422
28423for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28424do
28425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28426echo "$as_me:$LINENO: checking for $ac_func" >&5
28427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28428if eval "test \"\${$as_ac_var+set}\" = set"; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28430else
28431 cat >conftest.$ac_ext <<_ACEOF
28432/* confdefs.h. */
28433_ACEOF
28434cat confdefs.h >>conftest.$ac_ext
28435cat >>conftest.$ac_ext <<_ACEOF
28436/* end confdefs.h. */
28437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28439#define $ac_func innocuous_$ac_func
28440
28441/* System header to define __stub macros and hopefully few prototypes,
28442 which can conflict with char $ac_func (); below.
28443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28444 <limits.h> exists even on freestanding compilers. */
28445
28446#ifdef __STDC__
28447# include <limits.h>
28448#else
28449# include <assert.h>
28450#endif
28451
28452#undef $ac_func
28453
28454/* Override any gcc2 internal prototype to avoid an error. */
28455#ifdef __cplusplus
28456extern "C"
28457{
28458#endif
28459/* We use char because int might match the return type of a gcc2
28460 builtin and then its argument prototype would still apply. */
28461char $ac_func ();
28462/* The GNU C library defines this for functions which it implements
28463 to always fail with ENOSYS. Some functions are actually named
28464 something starting with __ and the normal name is an alias. */
28465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28466choke me
28467#else
28468char (*f) () = $ac_func;
28469#endif
28470#ifdef __cplusplus
28471}
28472#endif
28473
28474int
28475main ()
28476{
28477return f != $ac_func;
28478 ;
28479 return 0;
28480}
28481_ACEOF
28482rm -f conftest.$ac_objext conftest$ac_exeext
28483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484 (eval $ac_link) 2>conftest.er1
28485 ac_status=$?
28486 grep -v '^ *+' conftest.er1 >conftest.err
28487 rm -f conftest.er1
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag"
28492 || test ! -s conftest.err'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; } &&
28498 { ac_try='test -s conftest$ac_exeext'
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 eval "$as_ac_var=yes"
28505else
28506 echo "$as_me: failed program was:" >&5
28507sed 's/^/| /' conftest.$ac_ext >&5
28508
28509eval "$as_ac_var=no"
28510fi
28511rm -f conftest.err conftest.$ac_objext \
28512 conftest$ac_exeext conftest.$ac_ext
28513fi
28514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28516if test `eval echo '${'$as_ac_var'}'` = yes; then
28517 cat >>confdefs.h <<_ACEOF
28518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28519_ACEOF
28520
28521fi
28522done
28523
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028524echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28525echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028526if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028529 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028530ac_cpp='$CPP $CPPFLAGS'
28531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28533ac_compiler_gnu=$ac_cv_c_compiler_gnu
28534
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028535 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028536 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028537else
28538 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028540 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028541_ACEOF
28542cat confdefs.h >>conftest.$ac_ext
28543cat >>conftest.$ac_ext <<_ACEOF
28544/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028545
John Criswella0137d32003-10-13 16:22:01 +000028546#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028547#include <stdlib.h>
28548
John Criswella0137d32003-10-13 16:22:01 +000028549int
28550main ()
28551{
28552
Reid Spencer2706f8c2004-09-19 23:53:36 +000028553volatile double A, B;
28554char Buffer[100];
28555A = 1;
28556A /= 10.0;
28557sprintf(Buffer, "%a", A);
28558B = atof(Buffer);
28559if (A != B)
28560 return (1);
28561if (A != 0x1.999999999999ap-4)
28562 return (1);
28563return (0);
John Criswella0137d32003-10-13 16:22:01 +000028564 ;
28565 return 0;
28566}
28567_ACEOF
28568rm -f conftest$ac_exeext
28569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570 (eval $ac_link) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028579 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028580else
28581 echo "$as_me: program exited with status $ac_status" >&5
28582echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028586llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028588rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028589fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028590 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028591ac_cpp='$CPP $CPPFLAGS'
28592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28594ac_compiler_gnu=$ac_cv_c_compiler_gnu
28595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028596fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028597echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28598echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28599 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028600
28601cat >>confdefs.h <<\_ACEOF
28602#define HAVE_PRINTF_A 1
28603_ACEOF
28604
Reid Spencer2706f8c2004-09-19 23:53:36 +000028605 fi
John Criswella0137d32003-10-13 16:22:01 +000028606
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028607# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28608# for constant arguments. Useless!
28609echo "$as_me:$LINENO: checking for working alloca.h" >&5
28610echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28611if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028612 echo $ECHO_N "(cached) $ECHO_C" >&6
28613else
John Criswell0021c312004-02-13 21:57:29 +000028614 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028615/* confdefs.h. */
28616_ACEOF
28617cat confdefs.h >>conftest.$ac_ext
28618cat >>conftest.$ac_ext <<_ACEOF
28619/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028620#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028621int
28622main ()
28623{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028624char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028625 ;
28626 return 0;
28627}
28628_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028629rm -f conftest.$ac_objext conftest$ac_exeext
28630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28631 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028632 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028633 grep -v '^ *+' conftest.er1 >conftest.err
28634 rm -f conftest.er1
28635 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028638 { ac_try='test -z "$ac_c_werror_flag"
28639 || test ! -s conftest.err'
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028645 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028651 ac_cv_working_alloca_h=yes
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028658rm -f conftest.err conftest.$ac_objext \
28659 conftest$ac_exeext conftest.$ac_ext
28660fi
28661echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28662echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28663if test $ac_cv_working_alloca_h = yes; then
28664
28665cat >>confdefs.h <<\_ACEOF
28666#define HAVE_ALLOCA_H 1
28667_ACEOF
28668
28669fi
28670
28671echo "$as_me:$LINENO: checking for alloca" >&5
28672echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28673if test "${ac_cv_func_alloca_works+set}" = set; then
28674 echo $ECHO_N "(cached) $ECHO_C" >&6
28675else
28676 cat >conftest.$ac_ext <<_ACEOF
28677/* confdefs.h. */
28678_ACEOF
28679cat confdefs.h >>conftest.$ac_ext
28680cat >>conftest.$ac_ext <<_ACEOF
28681/* end confdefs.h. */
28682#ifdef __GNUC__
28683# define alloca __builtin_alloca
28684#else
28685# ifdef _MSC_VER
28686# include <malloc.h>
28687# define alloca _alloca
28688# else
28689# if HAVE_ALLOCA_H
28690# include <alloca.h>
28691# else
28692# ifdef _AIX
28693 #pragma alloca
28694# else
28695# ifndef alloca /* predefined by HP cc +Olibcalls */
28696char *alloca ();
28697# endif
28698# endif
28699# endif
28700# endif
28701#endif
28702
28703int
28704main ()
28705{
28706char *p = (char *) alloca (1);
28707 ;
28708 return 0;
28709}
28710_ACEOF
28711rm -f conftest.$ac_objext conftest$ac_exeext
28712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28713 (eval $ac_link) 2>conftest.er1
28714 ac_status=$?
28715 grep -v '^ *+' conftest.er1 >conftest.err
28716 rm -f conftest.er1
28717 cat conftest.err >&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } &&
28720 { ac_try='test -z "$ac_c_werror_flag"
28721 || test ! -s conftest.err'
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest$ac_exeext'
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 ac_cv_func_alloca_works=yes
28734else
28735 echo "$as_me: failed program was:" >&5
28736sed 's/^/| /' conftest.$ac_ext >&5
28737
28738ac_cv_func_alloca_works=no
28739fi
28740rm -f conftest.err conftest.$ac_objext \
28741 conftest$ac_exeext conftest.$ac_ext
28742fi
28743echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28744echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28745
28746if test $ac_cv_func_alloca_works = yes; then
28747
28748cat >>confdefs.h <<\_ACEOF
28749#define HAVE_ALLOCA 1
28750_ACEOF
28751
28752else
28753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28754# that cause trouble. Some versions do not even contain alloca or
28755# contain a buggy version. If you still want to use their alloca,
28756# use ar to extract alloca.o from them instead of compiling alloca.c.
28757
28758ALLOCA=alloca.$ac_objext
28759
28760cat >>confdefs.h <<\_ACEOF
28761#define C_ALLOCA 1
28762_ACEOF
28763
28764
28765echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28766echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28767if test "${ac_cv_os_cray+set}" = set; then
28768 echo $ECHO_N "(cached) $ECHO_C" >&6
28769else
28770 cat >conftest.$ac_ext <<_ACEOF
28771/* confdefs.h. */
28772_ACEOF
28773cat confdefs.h >>conftest.$ac_ext
28774cat >>conftest.$ac_ext <<_ACEOF
28775/* end confdefs.h. */
28776#if defined(CRAY) && ! defined(CRAY2)
28777webecray
28778#else
28779wenotbecray
28780#endif
28781
28782_ACEOF
28783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28784 $EGREP "webecray" >/dev/null 2>&1; then
28785 ac_cv_os_cray=yes
28786else
28787 ac_cv_os_cray=no
28788fi
28789rm -f conftest*
28790
28791fi
28792echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28793echo "${ECHO_T}$ac_cv_os_cray" >&6
28794if test $ac_cv_os_cray = yes; then
28795 for ac_func in _getb67 GETB67 getb67; do
28796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28797echo "$as_me:$LINENO: checking for $ac_func" >&5
28798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28799if eval "test \"\${$as_ac_var+set}\" = set"; then
28800 echo $ECHO_N "(cached) $ECHO_C" >&6
28801else
28802 cat >conftest.$ac_ext <<_ACEOF
28803/* confdefs.h. */
28804_ACEOF
28805cat confdefs.h >>conftest.$ac_ext
28806cat >>conftest.$ac_ext <<_ACEOF
28807/* end confdefs.h. */
28808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28810#define $ac_func innocuous_$ac_func
28811
28812/* System header to define __stub macros and hopefully few prototypes,
28813 which can conflict with char $ac_func (); below.
28814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28815 <limits.h> exists even on freestanding compilers. */
28816
28817#ifdef __STDC__
28818# include <limits.h>
28819#else
28820# include <assert.h>
28821#endif
28822
28823#undef $ac_func
28824
28825/* Override any gcc2 internal prototype to avoid an error. */
28826#ifdef __cplusplus
28827extern "C"
28828{
28829#endif
28830/* We use char because int might match the return type of a gcc2
28831 builtin and then its argument prototype would still apply. */
28832char $ac_func ();
28833/* The GNU C library defines this for functions which it implements
28834 to always fail with ENOSYS. Some functions are actually named
28835 something starting with __ and the normal name is an alias. */
28836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28837choke me
28838#else
28839char (*f) () = $ac_func;
28840#endif
28841#ifdef __cplusplus
28842}
28843#endif
28844
28845int
28846main ()
28847{
28848return f != $ac_func;
28849 ;
28850 return 0;
28851}
28852_ACEOF
28853rm -f conftest.$ac_objext conftest$ac_exeext
28854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855 (eval $ac_link) 2>conftest.er1
28856 ac_status=$?
28857 grep -v '^ *+' conftest.er1 >conftest.err
28858 rm -f conftest.er1
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_c_werror_flag"
28863 || test ! -s conftest.err'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest$ac_exeext'
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 eval "$as_ac_var=yes"
28876else
28877 echo "$as_me: failed program was:" >&5
28878sed 's/^/| /' conftest.$ac_ext >&5
28879
28880eval "$as_ac_var=no"
28881fi
28882rm -f conftest.err conftest.$ac_objext \
28883 conftest$ac_exeext conftest.$ac_ext
28884fi
28885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28887if test `eval echo '${'$as_ac_var'}'` = yes; then
28888
28889cat >>confdefs.h <<_ACEOF
28890#define CRAY_STACKSEG_END $ac_func
28891_ACEOF
28892
28893 break
28894fi
28895
28896 done
28897fi
28898
28899echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28900echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28901if test "${ac_cv_c_stack_direction+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28903else
28904 if test "$cross_compiling" = yes; then
28905 ac_cv_c_stack_direction=0
28906else
28907 cat >conftest.$ac_ext <<_ACEOF
28908/* confdefs.h. */
28909_ACEOF
28910cat confdefs.h >>conftest.$ac_ext
28911cat >>conftest.$ac_ext <<_ACEOF
28912/* end confdefs.h. */
28913int
28914find_stack_direction ()
28915{
28916 static char *addr = 0;
28917 auto char dummy;
28918 if (addr == 0)
28919 {
28920 addr = &dummy;
28921 return find_stack_direction ();
28922 }
John Criswell0021c312004-02-13 21:57:29 +000028923 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028924 return (&dummy > addr) ? 1 : -1;
28925}
John Criswell0021c312004-02-13 21:57:29 +000028926
John Criswell0021c312004-02-13 21:57:29 +000028927int
28928main ()
28929{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028930 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028931}
28932_ACEOF
28933rm -f conftest$ac_exeext
28934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28935 (eval $ac_link) 2>&5
28936 ac_status=$?
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028944 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028945else
28946 echo "$as_me: program exited with status $ac_status" >&5
28947echo "$as_me: failed program was:" >&5
28948sed 's/^/| /' conftest.$ac_ext >&5
28949
28950( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028951ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028952fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028954fi
28955fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028956echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28957echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28958
28959cat >>confdefs.h <<_ACEOF
28960#define STACK_DIRECTION $ac_cv_c_stack_direction
28961_ACEOF
28962
28963
John Criswell0021c312004-02-13 21:57:29 +000028964fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028965
28966
28967echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28968echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28969if test "${ac_cv_func_rand48+set}" = set; then
28970 echo $ECHO_N "(cached) $ECHO_C" >&6
28971else
28972 ac_ext=cc
28973ac_cpp='$CXXCPP $CPPFLAGS'
28974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28977
28978 cat >conftest.$ac_ext <<_ACEOF
28979/* confdefs.h. */
28980_ACEOF
28981cat confdefs.h >>conftest.$ac_ext
28982cat >>conftest.$ac_ext <<_ACEOF
28983/* end confdefs.h. */
28984#include <stdlib.h>
28985int
28986main ()
28987{
28988srand48(0);lrand48();drand48();
28989 ;
28990 return 0;
28991}
28992_ACEOF
28993rm -f conftest.$ac_objext
28994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28995 (eval $ac_compile) 2>conftest.er1
28996 ac_status=$?
28997 grep -v '^ *+' conftest.er1 >conftest.err
28998 rm -f conftest.er1
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
29002 { ac_try='test -z "$ac_cxx_werror_flag"
29003 || test ! -s conftest.err'
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest.$ac_objext'
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_cv_func_rand48=yes
29016else
29017 echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
29020ac_cv_func_rand48=no
29021fi
29022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29023 ac_ext=c
29024ac_cpp='$CPP $CPPFLAGS'
29025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29027ac_compiler_gnu=$ac_cv_c_compiler_gnu
29028
29029fi
29030echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29031echo "${ECHO_T}$ac_cv_func_rand48" >&6
29032
29033if test "$ac_cv_func_rand48" = "yes" ; then
29034
29035cat >>confdefs.h <<\_ACEOF
29036#define HAVE_RAND48 1
29037_ACEOF
29038
29039fi
John Criswell0021c312004-02-13 21:57:29 +000029040
29041
John Criswell7a73b802003-06-30 21:59:07 +000029042echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29043echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29044if test "${ac_cv_cxx_namespaces+set}" = set; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29046else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029047 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000029048ac_cpp='$CXXCPP $CPPFLAGS'
29049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29052
29053 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029059namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000029060int
29061main ()
29062{
29063using namespace Outer::Inner; return i;
29064 ;
29065 return 0;
29066}
29067_ACEOF
29068rm -f conftest.$ac_objext
29069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029070 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029072 grep -v '^ *+' conftest.er1 >conftest.err
29073 rm -f conftest.er1
29074 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029077 { ac_try='test -z "$ac_cxx_werror_flag"
29078 || test ! -s conftest.err'
29079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080 (eval $ac_try) 2>&5
29081 ac_status=$?
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; } &&
29084 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29086 (eval $ac_try) 2>&5
29087 ac_status=$?
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); }; }; then
29090 ac_cv_cxx_namespaces=yes
29091else
29092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029093sed 's/^/| /' conftest.$ac_ext >&5
29094
John Criswell7a73b802003-06-30 21:59:07 +000029095ac_cv_cxx_namespaces=no
29096fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029098 ac_ext=c
29099ac_cpp='$CPP $CPPFLAGS'
29100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102ac_compiler_gnu=$ac_cv_c_compiler_gnu
29103
29104
29105fi
29106echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29107echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29108if test "$ac_cv_cxx_namespaces" = yes; then
29109
29110cat >>confdefs.h <<\_ACEOF
29111#define HAVE_NAMESPACES
29112_ACEOF
29113
29114fi
29115
Brian Gaeke90583492003-11-10 03:06:28 +000029116echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29117echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29118if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029119 echo $ECHO_N "(cached) $ECHO_C" >&6
29120else
29121
John Criswell7a73b802003-06-30 21:59:07 +000029122 ac_ext=cc
29123ac_cpp='$CXXCPP $CPPFLAGS'
29124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29127
29128 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029129/* confdefs.h. */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029134#include <ext/hash_map>
29135#ifdef HAVE_NAMESPACES
29136using namespace std;
29137#endif
John Criswell7a73b802003-06-30 21:59:07 +000029138int
29139main ()
29140{
Brian Gaeke90583492003-11-10 03:06:28 +000029141hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029142 ;
29143 return 0;
29144}
29145_ACEOF
29146rm -f conftest.$ac_objext
29147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029148 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029150 grep -v '^ *+' conftest.er1 >conftest.err
29151 rm -f conftest.er1
29152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029155 { ac_try='test -z "$ac_cxx_werror_flag"
29156 || test ! -s conftest.err'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; } &&
29162 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029168 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029169else
29170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029171sed 's/^/| /' conftest.$ac_ext >&5
29172
Brian Gaeke90583492003-11-10 03:06:28 +000029173ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029176 ac_ext=c
29177ac_cpp='$CPP $CPPFLAGS'
29178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180ac_compiler_gnu=$ac_cv_c_compiler_gnu
29181
John Criswell7a73b802003-06-30 21:59:07 +000029182fi
Brian Gaeke90583492003-11-10 03:06:28 +000029183echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29184echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029185 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29186 then
John Criswell9f011862004-09-24 18:28:00 +000029187
29188cat >>confdefs.h <<\_ACEOF
29189#define HAVE_STD_EXT_HASH_MAP 1
29190_ACEOF
29191
29192 else
29193
29194cat >>confdefs.h <<\_ACEOF
29195#define HAVE_STD_EXT_HASH_MAP 0
29196_ACEOF
29197
Brian Gaeke90583492003-11-10 03:06:28 +000029198 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029199
Brian Gaeke90583492003-11-10 03:06:28 +000029200 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29201echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29202if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29204else
29205
Brian Gaeke90583492003-11-10 03:06:28 +000029206 ac_ext=cc
29207ac_cpp='$CXXCPP $CPPFLAGS'
29208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29211
29212 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029213/* confdefs.h. */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h. */
29218#include <ext/hash_map>
29219#ifdef HAVE_NAMESPACES
29220using namespace __gnu_cxx;
29221#endif
29222int
29223main ()
29224{
29225hash_map<int,int> t;
29226 ;
29227 return 0;
29228}
29229_ACEOF
29230rm -f conftest.$ac_objext
29231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029232 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029239 { ac_try='test -z "$ac_cxx_werror_flag"
29240 || test ! -s conftest.err'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29249 ac_status=$?
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 ac_cv_cxx_have_gnu_ext_hash_map=yes
29253else
29254 echo "$as_me: failed program was:" >&5
29255sed 's/^/| /' conftest.$ac_ext >&5
29256
29257ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029258fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029260 ac_ext=c
29261ac_cpp='$CPP $CPPFLAGS'
29262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29264ac_compiler_gnu=$ac_cv_c_compiler_gnu
29265
29266fi
29267echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29268echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029269 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29270 then
John Criswell9f011862004-09-24 18:28:00 +000029271
29272cat >>confdefs.h <<\_ACEOF
29273#define HAVE_GNU_EXT_HASH_MAP 1
29274_ACEOF
29275
29276 else
29277
29278cat >>confdefs.h <<\_ACEOF
29279#define HAVE_GNU_EXT_HASH_MAP 0
29280_ACEOF
29281
Brian Gaeke90583492003-11-10 03:06:28 +000029282 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029283
Brian Gaeke90583492003-11-10 03:06:28 +000029284 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29285echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29286if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29288else
John Criswell7a73b802003-06-30 21:59:07 +000029289
Brian Gaeke90583492003-11-10 03:06:28 +000029290 ac_ext=cc
29291ac_cpp='$CXXCPP $CPPFLAGS'
29292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29295
29296 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029297/* confdefs.h. */
29298_ACEOF
29299cat confdefs.h >>conftest.$ac_ext
29300cat >>conftest.$ac_ext <<_ACEOF
29301/* end confdefs.h. */
29302#include <hash_map>
29303int
29304main ()
29305{
29306hash_map<int,int> t;
29307 ;
29308 return 0;
29309}
29310_ACEOF
29311rm -f conftest.$ac_objext
29312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029313 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029314 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029320 { ac_try='test -z "$ac_cxx_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29324 ac_status=$?
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_cv_cxx_have_global_hash_map=yes
29334else
29335 echo "$as_me: failed program was:" >&5
29336sed 's/^/| /' conftest.$ac_ext >&5
29337
29338ac_cv_cxx_have_global_hash_map=no
29339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029341 ac_ext=c
29342ac_cpp='$CPP $CPPFLAGS'
29343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29345ac_compiler_gnu=$ac_cv_c_compiler_gnu
29346
29347fi
29348echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29349echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029350 if test "$ac_cv_cxx_have_global_hash_map" = yes
29351 then
John Criswell9f011862004-09-24 18:28:00 +000029352
29353cat >>confdefs.h <<\_ACEOF
29354#define HAVE_GLOBAL_HASH_MAP 1
29355_ACEOF
29356
29357 else
29358
29359cat >>confdefs.h <<\_ACEOF
29360#define HAVE_GLOBAL_HASH_MAP 0
29361_ACEOF
29362
Brian Gaeke90583492003-11-10 03:06:28 +000029363 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029364
Brian Gaeke90583492003-11-10 03:06:28 +000029365echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29366echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29367if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369else
29370
John Criswell7a73b802003-06-30 21:59:07 +000029371 ac_ext=cc
29372ac_cpp='$CXXCPP $CPPFLAGS'
29373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29376
29377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029383#include <ext/hash_set>
29384#ifdef HAVE_NAMESPACES
29385using namespace std;
29386#endif
John Criswell7a73b802003-06-30 21:59:07 +000029387int
29388main ()
29389{
Brian Gaeke90583492003-11-10 03:06:28 +000029390hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029397 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029404 { ac_try='test -z "$ac_cxx_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29414 ac_status=$?
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029417 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029418else
29419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029420sed 's/^/| /' conftest.$ac_ext >&5
29421
Brian Gaeke90583492003-11-10 03:06:28 +000029422ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029425 ac_ext=c
29426ac_cpp='$CPP $CPPFLAGS'
29427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429ac_compiler_gnu=$ac_cv_c_compiler_gnu
29430
29431fi
29432echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29433echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029434 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29435 then
John Criswell9f011862004-09-24 18:28:00 +000029436
29437cat >>confdefs.h <<\_ACEOF
29438#define HAVE_STD_EXT_HASH_SET 1
29439_ACEOF
29440
29441 else
29442
29443cat >>confdefs.h <<\_ACEOF
29444#define HAVE_STD_EXT_HASH_SET 0
29445_ACEOF
29446
Brian Gaeke90583492003-11-10 03:06:28 +000029447 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029448
Brian Gaeke90583492003-11-10 03:06:28 +000029449 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29450echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29451if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29453else
29454
Brian Gaeke90583492003-11-10 03:06:28 +000029455 ac_ext=cc
29456ac_cpp='$CXXCPP $CPPFLAGS'
29457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29460
John Criswell7a73b802003-06-30 21:59:07 +000029461 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029467#include <ext/hash_set>
29468#ifdef HAVE_NAMESPACES
29469using namespace __gnu_cxx;
29470#endif
John Criswell7a73b802003-06-30 21:59:07 +000029471int
29472main ()
29473{
Brian Gaeke90583492003-11-10 03:06:28 +000029474hash_set<int> t;
29475 ;
29476 return 0;
29477}
29478_ACEOF
29479rm -f conftest.$ac_objext
29480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029481 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029488 { ac_try='test -z "$ac_cxx_werror_flag"
29489 || test ! -s conftest.err'
29490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491 (eval $ac_try) 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; } &&
29495 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_cv_cxx_have_gnu_ext_hash_set=yes
29502else
29503 echo "$as_me: failed program was:" >&5
29504sed 's/^/| /' conftest.$ac_ext >&5
29505
29506ac_cv_cxx_have_gnu_ext_hash_set=no
29507fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029509 ac_ext=c
29510ac_cpp='$CPP $CPPFLAGS'
29511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29513ac_compiler_gnu=$ac_cv_c_compiler_gnu
29514
29515fi
29516echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29517echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029518 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29519 then
John Criswell9f011862004-09-24 18:28:00 +000029520
29521cat >>confdefs.h <<\_ACEOF
29522#define HAVE_GNU_EXT_HASH_SET 1
29523_ACEOF
29524
29525 else
29526
29527cat >>confdefs.h <<\_ACEOF
29528#define HAVE_GNU_EXT_HASH_SET 0
29529_ACEOF
29530
Brian Gaeke90583492003-11-10 03:06:28 +000029531 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029532
Brian Gaeke90583492003-11-10 03:06:28 +000029533 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29534echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29535if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29536 echo $ECHO_N "(cached) $ECHO_C" >&6
29537else
29538
Brian Gaeke90583492003-11-10 03:06:28 +000029539 ac_ext=cc
29540ac_cpp='$CXXCPP $CPPFLAGS'
29541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29544
29545 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
29551#include <hash_set>
29552int
29553main ()
29554{
John Criswell7a73b802003-06-30 21:59:07 +000029555hash_set<int> t; return 0;
29556 ;
29557 return 0;
29558}
29559_ACEOF
29560rm -f conftest.$ac_objext
29561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029562 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029569 { ac_try='test -z "$ac_cxx_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029582 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029583else
29584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029585sed 's/^/| /' conftest.$ac_ext >&5
29586
Brian Gaeke90583492003-11-10 03:06:28 +000029587ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029590 ac_ext=c
29591ac_cpp='$CPP $CPPFLAGS'
29592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594ac_compiler_gnu=$ac_cv_c_compiler_gnu
29595
John Criswell7a73b802003-06-30 21:59:07 +000029596fi
Brian Gaeke90583492003-11-10 03:06:28 +000029597echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29598echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029599 if test "$ac_cv_cxx_have_global_hash_set" = yes
29600 then
John Criswell9f011862004-09-24 18:28:00 +000029601
29602cat >>confdefs.h <<\_ACEOF
29603#define HAVE_GLOBAL_HASH_SET 1
29604_ACEOF
29605
29606 else
29607
29608cat >>confdefs.h <<\_ACEOF
29609#define HAVE_GLOBAL_HASH_SET 0
29610_ACEOF
29611
Brian Gaeke90583492003-11-10 03:06:28 +000029612 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029613
John Criswell7a73b802003-06-30 21:59:07 +000029614echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29615echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29616if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29617 echo $ECHO_N "(cached) $ECHO_C" >&6
29618else
29619
John Criswell7a73b802003-06-30 21:59:07 +000029620 ac_ext=cc
29621ac_cpp='$CXXCPP $CPPFLAGS'
29622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29625
29626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029627/* confdefs.h. */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029632#include <iterator>
29633#ifdef HAVE_NAMESPACES
29634using namespace std;
29635#endif
John Criswell7a73b802003-06-30 21:59:07 +000029636int
29637main ()
29638{
29639iterator<int,int,int> t; return 0;
29640 ;
29641 return 0;
29642}
29643_ACEOF
29644rm -f conftest.$ac_objext
29645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029646 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029648 grep -v '^ *+' conftest.er1 >conftest.err
29649 rm -f conftest.er1
29650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029653 { ac_try='test -z "$ac_cxx_werror_flag"
29654 || test ! -s conftest.err'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29663 ac_status=$?
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29666 ac_cv_cxx_have_std_iterator=yes
29667else
29668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029669sed 's/^/| /' conftest.$ac_ext >&5
29670
John Criswell7a73b802003-06-30 21:59:07 +000029671ac_cv_cxx_have_std_iterator=no
29672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029674 ac_ext=c
29675ac_cpp='$CPP $CPPFLAGS'
29676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678ac_compiler_gnu=$ac_cv_c_compiler_gnu
29679
29680
29681fi
29682echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29683echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029684if test "$ac_cv_cxx_have_std_iterator" = yes
29685then
John Criswell40468462004-09-24 21:19:06 +000029686
29687cat >>confdefs.h <<\_ACEOF
29688#define HAVE_STD_ITERATOR 1
29689_ACEOF
29690
29691else
29692
29693cat >>confdefs.h <<\_ACEOF
29694#define HAVE_STD_ITERATOR 0
29695_ACEOF
29696
John Criswell7a73b802003-06-30 21:59:07 +000029697fi
29698
29699echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29700echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29701if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29702 echo $ECHO_N "(cached) $ECHO_C" >&6
29703else
29704
John Criswell7a73b802003-06-30 21:59:07 +000029705 ac_ext=cc
29706ac_cpp='$CXXCPP $CPPFLAGS'
29707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29710
29711 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029712/* confdefs.h. */
29713_ACEOF
29714cat confdefs.h >>conftest.$ac_ext
29715cat >>conftest.$ac_ext <<_ACEOF
29716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029717#include <iterator>
29718#ifdef HAVE_NAMESPACES
29719using namespace std;
29720#endif
John Criswell7a73b802003-06-30 21:59:07 +000029721int
29722main ()
29723{
John Criswellc78022e2003-07-29 19:11:58 +000029724bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029725 ;
29726 return 0;
29727}
29728_ACEOF
29729rm -f conftest.$ac_objext
29730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029731 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029732 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029733 grep -v '^ *+' conftest.er1 >conftest.err
29734 rm -f conftest.er1
29735 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029738 { ac_try='test -z "$ac_cxx_werror_flag"
29739 || test ! -s conftest.err'
29740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; } &&
29745 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
29751 ac_cv_cxx_have_bi_iterator=yes
29752else
29753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029754sed 's/^/| /' conftest.$ac_ext >&5
29755
John Criswell7a73b802003-06-30 21:59:07 +000029756ac_cv_cxx_have_bi_iterator=no
29757fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029759 ac_ext=c
29760ac_cpp='$CPP $CPPFLAGS'
29761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29763ac_compiler_gnu=$ac_cv_c_compiler_gnu
29764
29765
29766fi
29767echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29768echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029769if test "$ac_cv_cxx_have_bi_iterator" = yes
29770then
John Criswell40468462004-09-24 21:19:06 +000029771
29772cat >>confdefs.h <<\_ACEOF
29773#define HAVE_BI_ITERATOR 1
29774_ACEOF
29775
29776else
29777
29778cat >>confdefs.h <<\_ACEOF
29779#define HAVE_BI_ITERATOR 0
29780_ACEOF
29781
John Criswell7a73b802003-06-30 21:59:07 +000029782fi
29783
29784echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29785echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29786if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29788else
29789
John Criswell7a73b802003-06-30 21:59:07 +000029790 ac_ext=cc
29791ac_cpp='$CXXCPP $CPPFLAGS'
29792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29795
29796 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029797/* confdefs.h. */
29798_ACEOF
29799cat confdefs.h >>conftest.$ac_ext
29800cat >>conftest.$ac_ext <<_ACEOF
29801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029802#include <iterator>
29803#ifdef HAVE_NAMESPACES
29804using namespace std;
29805#endif
John Criswell7a73b802003-06-30 21:59:07 +000029806int
29807main ()
29808{
John Criswellc78022e2003-07-29 19:11:58 +000029809forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029810 ;
29811 return 0;
29812}
29813_ACEOF
29814rm -f conftest.$ac_objext
29815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029816 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029823 { ac_try='test -z "$ac_cxx_werror_flag"
29824 || test ! -s conftest.err'
29825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826 (eval $ac_try) 2>&5
29827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 ac_cv_cxx_have_fwd_iterator=yes
29837else
29838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029839sed 's/^/| /' conftest.$ac_ext >&5
29840
John Criswell7a73b802003-06-30 21:59:07 +000029841ac_cv_cxx_have_fwd_iterator=no
29842fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029844 ac_ext=c
29845ac_cpp='$CPP $CPPFLAGS'
29846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848ac_compiler_gnu=$ac_cv_c_compiler_gnu
29849
29850
29851fi
29852echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29853echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029854if test "$ac_cv_cxx_have_fwd_iterator" = yes
29855then
John Criswell40468462004-09-24 21:19:06 +000029856
29857cat >>confdefs.h <<\_ACEOF
29858#define HAVE_FWD_ITERATOR 1
29859_ACEOF
29860
29861else
29862
29863cat >>confdefs.h <<\_ACEOF
29864#define HAVE_FWD_ITERATOR 0
29865_ACEOF
29866
John Criswell7a73b802003-06-30 21:59:07 +000029867fi
29868
29869
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029870echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29871echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29872if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29873 echo $ECHO_N "(cached) $ECHO_C" >&6
29874else
29875 ac_ext=cc
29876ac_cpp='$CXXCPP $CPPFLAGS'
29877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29880
Reid Spencerabec8f92004-10-27 23:03:44 +000029881 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029882/* confdefs.h. */
29883_ACEOF
29884cat confdefs.h >>conftest.$ac_ext
29885cat >>conftest.$ac_ext <<_ACEOF
29886/* end confdefs.h. */
29887#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029888int
29889main ()
29890{
29891float f; isnan(f);
29892 ;
29893 return 0;
29894}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029895_ACEOF
29896rm -f conftest.$ac_objext
29897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029898 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029899 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029900 grep -v '^ *+' conftest.er1 >conftest.err
29901 rm -f conftest.er1
29902 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029905 { ac_try='test -z "$ac_cxx_werror_flag"
29906 || test ! -s conftest.err'
29907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 (eval $ac_try) 2>&5
29909 ac_status=$?
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); }; } &&
29912 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; }; then
29918 ac_cv_func_isnan_in_math_h=yes
29919else
29920 echo "$as_me: failed program was:" >&5
29921sed 's/^/| /' conftest.$ac_ext >&5
29922
29923ac_cv_func_isnan_in_math_h=no
29924fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029926 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029927ac_cpp='$CPP $CPPFLAGS'
29928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29930ac_compiler_gnu=$ac_cv_c_compiler_gnu
29931
29932fi
29933echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29934echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029935
29936
29937if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029938
29939cat >>confdefs.h <<\_ACEOF
29940#define HAVE_ISNAN_IN_MATH_H 1
29941_ACEOF
29942
Reid Spencerabec8f92004-10-27 23:03:44 +000029943fi
29944
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029945echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29946echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29947if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29949else
29950 ac_ext=cc
29951ac_cpp='$CXXCPP $CPPFLAGS'
29952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29955
Reid Spencerabec8f92004-10-27 23:03:44 +000029956 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029957/* confdefs.h. */
29958_ACEOF
29959cat confdefs.h >>conftest.$ac_ext
29960cat >>conftest.$ac_ext <<_ACEOF
29961/* end confdefs.h. */
29962#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029963int
29964main ()
29965{
29966float f; isnan(f);
29967 ;
29968 return 0;
29969}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029970_ACEOF
29971rm -f conftest.$ac_objext
29972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029973 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029975 grep -v '^ *+' conftest.er1 >conftest.err
29976 rm -f conftest.er1
29977 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029980 { ac_try='test -z "$ac_cxx_werror_flag"
29981 || test ! -s conftest.err'
29982 { (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); }; } &&
29987 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29993 ac_cv_func_isnan_in_cmath=yes
29994else
29995 echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
29998ac_cv_func_isnan_in_cmath=no
29999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030001 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030002ac_cpp='$CPP $CPPFLAGS'
30003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005ac_compiler_gnu=$ac_cv_c_compiler_gnu
30006
30007fi
30008echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30009echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030010
30011if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030012
30013cat >>confdefs.h <<\_ACEOF
30014#define HAVE_ISNAN_IN_CMATH 1
30015_ACEOF
30016
Reid Spencerabec8f92004-10-27 23:03:44 +000030017fi
30018
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030019echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30020echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30021if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30023else
30024 ac_ext=cc
30025ac_cpp='$CXXCPP $CPPFLAGS'
30026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30029
Reid Spencerabec8f92004-10-27 23:03:44 +000030030 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030031/* confdefs.h. */
30032_ACEOF
30033cat confdefs.h >>conftest.$ac_ext
30034cat >>conftest.$ac_ext <<_ACEOF
30035/* end confdefs.h. */
30036#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030037int
30038main ()
30039{
30040float f; std::isnan(f);
30041 ;
30042 return 0;
30043}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030044_ACEOF
30045rm -f conftest.$ac_objext
30046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030047 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030049 grep -v '^ *+' conftest.er1 >conftest.err
30050 rm -f conftest.er1
30051 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030054 { ac_try='test -z "$ac_cxx_werror_flag"
30055 || test ! -s conftest.err'
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; } &&
30061 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063 (eval $ac_try) 2>&5
30064 ac_status=$?
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; }; then
30067 ac_cv_func_std_isnan_in_cmath=yes
30068else
30069 echo "$as_me: failed program was:" >&5
30070sed 's/^/| /' conftest.$ac_ext >&5
30071
30072ac_cv_func_std_isnan_in_cmath=no
30073fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030075 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030076ac_cpp='$CPP $CPPFLAGS'
30077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30079ac_compiler_gnu=$ac_cv_c_compiler_gnu
30080
30081fi
30082echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30083echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030084
30085if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030086
30087cat >>confdefs.h <<\_ACEOF
30088#define HAVE_STD_ISNAN_IN_CMATH 1
30089_ACEOF
30090
Reid Spencerabec8f92004-10-27 23:03:44 +000030091fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000030092
30093
Brian Gaeke52a551d2004-07-21 03:14:12 +000030094echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30095echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30096if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30097 echo $ECHO_N "(cached) $ECHO_C" >&6
30098else
30099 ac_ext=cc
30100ac_cpp='$CXXCPP $CPPFLAGS'
30101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30104
Reid Spencerabec8f92004-10-27 23:03:44 +000030105 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030106/* confdefs.h. */
30107_ACEOF
30108cat confdefs.h >>conftest.$ac_ext
30109cat >>conftest.$ac_ext <<_ACEOF
30110/* end confdefs.h. */
30111#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030112int
30113main ()
30114{
30115float f; isinf(f);
30116 ;
30117 return 0;
30118}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030119_ACEOF
30120rm -f conftest.$ac_objext
30121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030122 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030123 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030124 grep -v '^ *+' conftest.er1 >conftest.err
30125 rm -f conftest.er1
30126 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030129 { ac_try='test -z "$ac_cxx_werror_flag"
30130 || test ! -s conftest.err'
30131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132 (eval $ac_try) 2>&5
30133 ac_status=$?
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); }; } &&
30136 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138 (eval $ac_try) 2>&5
30139 ac_status=$?
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); }; }; then
30142 ac_cv_func_isinf_in_math_h=yes
30143else
30144 echo "$as_me: failed program was:" >&5
30145sed 's/^/| /' conftest.$ac_ext >&5
30146
30147ac_cv_func_isinf_in_math_h=no
30148fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030150 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030151ac_cpp='$CPP $CPPFLAGS'
30152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30154ac_compiler_gnu=$ac_cv_c_compiler_gnu
30155
30156fi
30157echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30158echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030159
30160if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030161
30162cat >>confdefs.h <<\_ACEOF
30163#define HAVE_ISINF_IN_MATH_H 1
30164_ACEOF
30165
Reid Spencerabec8f92004-10-27 23:03:44 +000030166fi
30167
Brian Gaeke52a551d2004-07-21 03:14:12 +000030168echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30169echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30170if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30172else
30173 ac_ext=cc
30174ac_cpp='$CXXCPP $CPPFLAGS'
30175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30178
Reid Spencerabec8f92004-10-27 23:03:44 +000030179 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030180/* confdefs.h. */
30181_ACEOF
30182cat confdefs.h >>conftest.$ac_ext
30183cat >>conftest.$ac_ext <<_ACEOF
30184/* end confdefs.h. */
30185#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030186int
30187main ()
30188{
30189float f; isinf(f);
30190 ;
30191 return 0;
30192}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030193_ACEOF
30194rm -f conftest.$ac_objext
30195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030196 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030197 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030198 grep -v '^ *+' conftest.er1 >conftest.err
30199 rm -f conftest.er1
30200 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030203 { ac_try='test -z "$ac_cxx_werror_flag"
30204 || test ! -s conftest.err'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30207 ac_status=$?
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; } &&
30210 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 ac_cv_func_isinf_in_cmath=yes
30217else
30218 echo "$as_me: failed program was:" >&5
30219sed 's/^/| /' conftest.$ac_ext >&5
30220
30221ac_cv_func_isinf_in_cmath=no
30222fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030224 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030225ac_cpp='$CPP $CPPFLAGS'
30226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228ac_compiler_gnu=$ac_cv_c_compiler_gnu
30229
30230fi
30231echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30232echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030233
30234if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030235
30236cat >>confdefs.h <<\_ACEOF
30237#define HAVE_ISINF_IN_CMATH 1
30238_ACEOF
30239
Reid Spencerabec8f92004-10-27 23:03:44 +000030240fi
30241
Brian Gaeke52a551d2004-07-21 03:14:12 +000030242echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30243echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30244if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30246else
30247 ac_ext=cc
30248ac_cpp='$CXXCPP $CPPFLAGS'
30249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30252
Reid Spencerabec8f92004-10-27 23:03:44 +000030253 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030254/* confdefs.h. */
30255_ACEOF
30256cat confdefs.h >>conftest.$ac_ext
30257cat >>conftest.$ac_ext <<_ACEOF
30258/* end confdefs.h. */
30259#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030260int
30261main ()
30262{
30263float f; std::isinf(f)}
30264 ;
30265 return 0;
30266}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030267_ACEOF
30268rm -f conftest.$ac_objext
30269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030270 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030272 grep -v '^ *+' conftest.er1 >conftest.err
30273 rm -f conftest.er1
30274 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030277 { ac_try='test -z "$ac_cxx_werror_flag"
30278 || test ! -s conftest.err'
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286 (eval $ac_try) 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; }; then
30290 ac_cv_func_std_isinf_in_cmath=yes
30291else
30292 echo "$as_me: failed program was:" >&5
30293sed 's/^/| /' conftest.$ac_ext >&5
30294
30295ac_cv_func_std_isinf_in_cmath=no
30296fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030298 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030299ac_cpp='$CPP $CPPFLAGS'
30300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30302ac_compiler_gnu=$ac_cv_c_compiler_gnu
30303
30304fi
30305echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30306echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030307
30308if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030309
30310cat >>confdefs.h <<\_ACEOF
30311#define HAVE_STD_ISINF_IN_CMATH 1
30312_ACEOF
30313
Reid Spencerabec8f92004-10-27 23:03:44 +000030314fi
30315
Brian Gaeked59a6472004-07-21 03:33:58 +000030316echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30317echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30318if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30319 echo $ECHO_N "(cached) $ECHO_C" >&6
30320else
30321 ac_ext=cc
30322ac_cpp='$CXXCPP $CPPFLAGS'
30323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30326
Reid Spencerabec8f92004-10-27 23:03:44 +000030327 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000030328/* confdefs.h. */
30329_ACEOF
30330cat confdefs.h >>conftest.$ac_ext
30331cat >>conftest.$ac_ext <<_ACEOF
30332/* end confdefs.h. */
30333#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030334int
30335main ()
30336{
30337float f; finite(f);
30338 ;
30339 return 0;
30340}
Brian Gaeked59a6472004-07-21 03:33:58 +000030341_ACEOF
30342rm -f conftest.$ac_objext
30343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030344 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030346 grep -v '^ *+' conftest.er1 >conftest.err
30347 rm -f conftest.er1
30348 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030351 { ac_try='test -z "$ac_cxx_werror_flag"
30352 || test ! -s conftest.err'
30353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354 (eval $ac_try) 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360 (eval $ac_try) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; }; then
30364 ac_cv_func_finite_in_ieeefp_h=yes
30365else
30366 echo "$as_me: failed program was:" >&5
30367sed 's/^/| /' conftest.$ac_ext >&5
30368
30369ac_cv_func_finite_in_ieeefp_h=no
30370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030372 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030373ac_cpp='$CPP $CPPFLAGS'
30374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30376ac_compiler_gnu=$ac_cv_c_compiler_gnu
30377
30378fi
30379echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30380echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030381
Brian Gaeke6802b552004-10-28 05:06:45 +000030382if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030383
30384cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030385#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030386_ACEOF
30387
Reid Spencerabec8f92004-10-27 23:03:44 +000030388fi
30389
30390
30391
John Criswell7a73b802003-06-30 21:59:07 +000030392
30393
30394for ac_header in stdlib.h unistd.h
30395do
30396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30397if eval "test \"\${$as_ac_Header+set}\" = set"; then
30398 echo "$as_me:$LINENO: checking for $ac_header" >&5
30399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30400if eval "test \"\${$as_ac_Header+set}\" = set"; then
30401 echo $ECHO_N "(cached) $ECHO_C" >&6
30402fi
30403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30405else
30406 # Is the header compilable?
30407echo "$as_me:$LINENO: checking $ac_header usability" >&5
30408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30409cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030410/* confdefs.h. */
30411_ACEOF
30412cat confdefs.h >>conftest.$ac_ext
30413cat >>conftest.$ac_ext <<_ACEOF
30414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030415$ac_includes_default
30416#include <$ac_header>
30417_ACEOF
30418rm -f conftest.$ac_objext
30419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030420 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030422 grep -v '^ *+' conftest.er1 >conftest.err
30423 rm -f conftest.er1
30424 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030427 { ac_try='test -z "$ac_c_werror_flag"
30428 || test ! -s conftest.err'
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30431 ac_status=$?
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; } &&
30434 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_header_compiler=yes
30441else
30442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030443sed 's/^/| /' conftest.$ac_ext >&5
30444
John Criswell7a73b802003-06-30 21:59:07 +000030445ac_header_compiler=no
30446fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30449echo "${ECHO_T}$ac_header_compiler" >&6
30450
30451# Is the header present?
30452echo "$as_me:$LINENO: checking $ac_header presence" >&5
30453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30454cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030455/* confdefs.h. */
30456_ACEOF
30457cat confdefs.h >>conftest.$ac_ext
30458cat >>conftest.$ac_ext <<_ACEOF
30459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030460#include <$ac_header>
30461_ACEOF
30462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30464 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030465 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030466 rm -f conftest.er1
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } >/dev/null; then
30470 if test -s conftest.err; then
30471 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030473 else
30474 ac_cpp_err=
30475 fi
30476else
30477 ac_cpp_err=yes
30478fi
30479if test -z "$ac_cpp_err"; then
30480 ac_header_preproc=yes
30481else
30482 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030483sed 's/^/| /' conftest.$ac_ext >&5
30484
John Criswell7a73b802003-06-30 21:59:07 +000030485 ac_header_preproc=no
30486fi
30487rm -f conftest.err conftest.$ac_ext
30488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30489echo "${ECHO_T}$ac_header_preproc" >&6
30490
30491# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30493 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30498 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030499 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030500 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030513 (
30514 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030515## ----------------------------------- ##
30516## Report this to llvmbugs@cs.uiuc.edu ##
30517## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030518_ASBOX
30519 ) |
30520 sed "s/^/$as_me: WARNING: /" >&2
30521 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030522esac
30523echo "$as_me:$LINENO: checking for $ac_header" >&5
30524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30525if eval "test \"\${$as_ac_Header+set}\" = set"; then
30526 echo $ECHO_N "(cached) $ECHO_C" >&6
30527else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030528 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030529fi
30530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30532
30533fi
30534if test `eval echo '${'$as_ac_Header'}'` = yes; then
30535 cat >>confdefs.h <<_ACEOF
30536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30537_ACEOF
30538
30539fi
30540
30541done
30542
30543
30544for ac_func in getpagesize
30545do
30546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547echo "$as_me:$LINENO: checking for $ac_func" >&5
30548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549if eval "test \"\${$as_ac_var+set}\" = set"; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30551else
30552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030553/* confdefs.h. */
30554_ACEOF
30555cat confdefs.h >>conftest.$ac_ext
30556cat >>conftest.$ac_ext <<_ACEOF
30557/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30560#define $ac_func innocuous_$ac_func
30561
John Criswell7a73b802003-06-30 21:59:07 +000030562/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030563 which can conflict with char $ac_func (); below.
30564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30565 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030566
John Criswell0c38eaf2003-09-10 15:17:25 +000030567#ifdef __STDC__
30568# include <limits.h>
30569#else
30570# include <assert.h>
30571#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030572
30573#undef $ac_func
30574
John Criswell7a73b802003-06-30 21:59:07 +000030575/* Override any gcc2 internal prototype to avoid an error. */
30576#ifdef __cplusplus
30577extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030578{
John Criswell7a73b802003-06-30 21:59:07 +000030579#endif
30580/* We use char because int might match the return type of a gcc2
30581 builtin and then its argument prototype would still apply. */
30582char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030583/* The GNU C library defines this for functions which it implements
30584 to always fail with ENOSYS. Some functions are actually named
30585 something starting with __ and the normal name is an alias. */
30586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30587choke me
30588#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030589char (*f) () = $ac_func;
30590#endif
30591#ifdef __cplusplus
30592}
John Criswell7a73b802003-06-30 21:59:07 +000030593#endif
30594
John Criswell0c38eaf2003-09-10 15:17:25 +000030595int
30596main ()
30597{
30598return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030599 ;
30600 return 0;
30601}
30602_ACEOF
30603rm -f conftest.$ac_objext conftest$ac_exeext
30604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030605 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030606 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030607 grep -v '^ *+' conftest.er1 >conftest.err
30608 rm -f conftest.er1
30609 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030612 { ac_try='test -z "$ac_c_werror_flag"
30613 || test ! -s conftest.err'
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; } &&
30619 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621 (eval $ac_try) 2>&5
30622 ac_status=$?
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; }; then
30625 eval "$as_ac_var=yes"
30626else
30627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030628sed 's/^/| /' conftest.$ac_ext >&5
30629
John Criswell7a73b802003-06-30 21:59:07 +000030630eval "$as_ac_var=no"
30631fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030632rm -f conftest.err conftest.$ac_objext \
30633 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030634fi
30635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30637if test `eval echo '${'$as_ac_var'}'` = yes; then
30638 cat >>confdefs.h <<_ACEOF
30639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30640_ACEOF
30641
30642fi
30643done
30644
30645echo "$as_me:$LINENO: checking for working mmap" >&5
30646echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30647if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30648 echo $ECHO_N "(cached) $ECHO_C" >&6
30649else
30650 if test "$cross_compiling" = yes; then
30651 ac_cv_func_mmap_fixed_mapped=no
30652else
30653 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030654/* confdefs.h. */
30655_ACEOF
30656cat confdefs.h >>conftest.$ac_ext
30657cat >>conftest.$ac_ext <<_ACEOF
30658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030659$ac_includes_default
30660/* malloc might have been renamed as rpl_malloc. */
30661#undef malloc
30662
30663/* Thanks to Mike Haertel and Jim Avera for this test.
30664 Here is a matrix of mmap possibilities:
30665 mmap private not fixed
30666 mmap private fixed at somewhere currently unmapped
30667 mmap private fixed at somewhere already mapped
30668 mmap shared not fixed
30669 mmap shared fixed at somewhere currently unmapped
30670 mmap shared fixed at somewhere already mapped
30671 For private mappings, we should verify that changes cannot be read()
30672 back from the file, nor mmap's back from the file at a different
30673 address. (There have been systems where private was not correctly
30674 implemented like the infamous i386 svr4.0, and systems where the
30675 VM page cache was not coherent with the file system buffer cache
30676 like early versions of FreeBSD and possibly contemporary NetBSD.)
30677 For shared mappings, we should conversely verify that changes get
30678 propagated back to all the places they're supposed to be.
30679
30680 Grep wants private fixed already mapped.
30681 The main things grep needs to know about mmap are:
30682 * does it exist and is it safe to write into the mmap'd area
30683 * how to use it (BSD variants) */
30684
30685#include <fcntl.h>
30686#include <sys/mman.h>
30687
30688#if !STDC_HEADERS && !HAVE_STDLIB_H
30689char *malloc ();
30690#endif
30691
30692/* This mess was copied from the GNU getpagesize.h. */
30693#if !HAVE_GETPAGESIZE
30694/* Assume that all systems that can run configure have sys/param.h. */
30695# if !HAVE_SYS_PARAM_H
30696# define HAVE_SYS_PARAM_H 1
30697# endif
30698
30699# ifdef _SC_PAGESIZE
30700# define getpagesize() sysconf(_SC_PAGESIZE)
30701# else /* no _SC_PAGESIZE */
30702# if HAVE_SYS_PARAM_H
30703# include <sys/param.h>
30704# ifdef EXEC_PAGESIZE
30705# define getpagesize() EXEC_PAGESIZE
30706# else /* no EXEC_PAGESIZE */
30707# ifdef NBPG
30708# define getpagesize() NBPG * CLSIZE
30709# ifndef CLSIZE
30710# define CLSIZE 1
30711# endif /* no CLSIZE */
30712# else /* no NBPG */
30713# ifdef NBPC
30714# define getpagesize() NBPC
30715# else /* no NBPC */
30716# ifdef PAGESIZE
30717# define getpagesize() PAGESIZE
30718# endif /* PAGESIZE */
30719# endif /* no NBPC */
30720# endif /* no NBPG */
30721# endif /* no EXEC_PAGESIZE */
30722# else /* no HAVE_SYS_PARAM_H */
30723# define getpagesize() 8192 /* punt totally */
30724# endif /* no HAVE_SYS_PARAM_H */
30725# endif /* no _SC_PAGESIZE */
30726
30727#endif /* no HAVE_GETPAGESIZE */
30728
30729int
30730main ()
30731{
30732 char *data, *data2, *data3;
30733 int i, pagesize;
30734 int fd;
30735
30736 pagesize = getpagesize ();
30737
30738 /* First, make a file with some known garbage in it. */
30739 data = (char *) malloc (pagesize);
30740 if (!data)
30741 exit (1);
30742 for (i = 0; i < pagesize; ++i)
30743 *(data + i) = rand ();
30744 umask (0);
30745 fd = creat ("conftest.mmap", 0600);
30746 if (fd < 0)
30747 exit (1);
30748 if (write (fd, data, pagesize) != pagesize)
30749 exit (1);
30750 close (fd);
30751
30752 /* Next, try to mmap the file at a fixed address which already has
30753 something else allocated at it. If we can, also make sure that
30754 we see the same garbage. */
30755 fd = open ("conftest.mmap", O_RDWR);
30756 if (fd < 0)
30757 exit (1);
30758 data2 = (char *) malloc (2 * pagesize);
30759 if (!data2)
30760 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030761 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030762 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030763 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030764 exit (1);
30765 for (i = 0; i < pagesize; ++i)
30766 if (*(data + i) != *(data2 + i))
30767 exit (1);
30768
30769 /* Finally, make sure that changes to the mapped area do not
30770 percolate back to the file as seen by read(). (This is a bug on
30771 some variants of i386 svr4.0.) */
30772 for (i = 0; i < pagesize; ++i)
30773 *(data2 + i) = *(data2 + i) + 1;
30774 data3 = (char *) malloc (pagesize);
30775 if (!data3)
30776 exit (1);
30777 if (read (fd, data3, pagesize) != pagesize)
30778 exit (1);
30779 for (i = 0; i < pagesize; ++i)
30780 if (*(data + i) != *(data3 + i))
30781 exit (1);
30782 close (fd);
30783 exit (0);
30784}
30785_ACEOF
30786rm -f conftest$ac_exeext
30787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30788 (eval $ac_link) 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
30797 ac_cv_func_mmap_fixed_mapped=yes
30798else
30799 echo "$as_me: program exited with status $ac_status" >&5
30800echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030801sed 's/^/| /' conftest.$ac_ext >&5
30802
John Criswell7a73b802003-06-30 21:59:07 +000030803( exit $ac_status )
30804ac_cv_func_mmap_fixed_mapped=no
30805fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030807fi
30808fi
30809echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30810echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30811if test $ac_cv_func_mmap_fixed_mapped = yes; then
30812
30813cat >>confdefs.h <<\_ACEOF
30814#define HAVE_MMAP 1
30815_ACEOF
30816
30817fi
30818rm -f conftest.mmap
30819
30820echo "$as_me:$LINENO: checking for mmap of files" >&5
30821echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30822if test "${ac_cv_func_mmap_file+set}" = set; then
30823 echo $ECHO_N "(cached) $ECHO_C" >&6
30824else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030825 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030826ac_cpp='$CPP $CPPFLAGS'
30827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30829ac_compiler_gnu=$ac_cv_c_compiler_gnu
30830
30831 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030832 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030833else
30834 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030835
Reid Spencer777ce172004-09-20 04:09:56 +000030836 /* confdefs.h. */
30837_ACEOF
30838cat confdefs.h >>conftest.$ac_ext
30839cat >>conftest.$ac_ext <<_ACEOF
30840/* end confdefs.h. */
30841
John Criswell7a73b802003-06-30 21:59:07 +000030842#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030843#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030844#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030845
30846int
30847main ()
30848{
John Criswell7a73b802003-06-30 21:59:07 +000030849
30850 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030851 fd = creat ("foo",0777);
30852 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30853 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030854 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030855 ;
30856 return 0;
30857}
John Criswell7a73b802003-06-30 21:59:07 +000030858_ACEOF
30859rm -f conftest$ac_exeext
30860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30861 (eval $ac_link) 2>&5
30862 ac_status=$?
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30870 ac_cv_func_mmap_file=yes
30871else
30872 echo "$as_me: program exited with status $ac_status" >&5
30873echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030874sed 's/^/| /' conftest.$ac_ext >&5
30875
John Criswell7a73b802003-06-30 21:59:07 +000030876( exit $ac_status )
30877ac_cv_func_mmap_file=no
30878fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030880fi
30881 ac_ext=c
30882ac_cpp='$CPP $CPPFLAGS'
30883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30885ac_compiler_gnu=$ac_cv_c_compiler_gnu
30886
30887
30888fi
30889echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30890echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30891if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030892
30893cat >>confdefs.h <<\_ACEOF
30894#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030895_ACEOF
30896
30897 MMAP_FILE=yes
30898
30899fi
30900
Reid Spencer7931a782004-12-27 06:15:02 +000030901echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30902echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30903if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30905else
Reid Spencer582a23c2004-12-29 07:07:57 +000030906 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030907 ac_cv_need_dev_zero_for_mmap=yes
30908 else
30909 ac_cv_need_dev_zero_for_mmap=no
30910 fi
30911
30912fi
30913echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30914echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30915if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30916
30917cat >>confdefs.h <<\_ACEOF
30918#define NEED_DEV_ZERO_FOR_MMAP 1
30919_ACEOF
30920
30921fi
John Criswell7a73b802003-06-30 21:59:07 +000030922echo "$as_me:$LINENO: checking for mprotect" >&5
30923echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30924if test "${ac_cv_func_mprotect+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30926else
30927 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030928/* confdefs.h. */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030933/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30935#define mprotect innocuous_mprotect
30936
John Criswell7a73b802003-06-30 21:59:07 +000030937/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030938 which can conflict with char mprotect (); below.
30939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30940 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030941
John Criswell0c38eaf2003-09-10 15:17:25 +000030942#ifdef __STDC__
30943# include <limits.h>
30944#else
30945# include <assert.h>
30946#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030947
30948#undef mprotect
30949
John Criswell7a73b802003-06-30 21:59:07 +000030950/* Override any gcc2 internal prototype to avoid an error. */
30951#ifdef __cplusplus
30952extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030953{
John Criswell7a73b802003-06-30 21:59:07 +000030954#endif
30955/* We use char because int might match the return type of a gcc2
30956 builtin and then its argument prototype would still apply. */
30957char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030958/* The GNU C library defines this for functions which it implements
30959 to always fail with ENOSYS. Some functions are actually named
30960 something starting with __ and the normal name is an alias. */
30961#if defined (__stub_mprotect) || defined (__stub___mprotect)
30962choke me
30963#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030964char (*f) () = mprotect;
30965#endif
30966#ifdef __cplusplus
30967}
John Criswell7a73b802003-06-30 21:59:07 +000030968#endif
30969
John Criswell0c38eaf2003-09-10 15:17:25 +000030970int
30971main ()
30972{
30973return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030974 ;
30975 return 0;
30976}
30977_ACEOF
30978rm -f conftest.$ac_objext conftest$ac_exeext
30979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030980 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030982 grep -v '^ *+' conftest.er1 >conftest.err
30983 rm -f conftest.er1
30984 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030987 { ac_try='test -z "$ac_c_werror_flag"
30988 || test ! -s conftest.err'
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; } &&
30994 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; }; then
31000 ac_cv_func_mprotect=yes
31001else
31002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031003sed 's/^/| /' conftest.$ac_ext >&5
31004
John Criswell7a73b802003-06-30 21:59:07 +000031005ac_cv_func_mprotect=no
31006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031007rm -f conftest.err conftest.$ac_objext \
31008 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031009fi
31010echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31011echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31012if test $ac_cv_func_mprotect = yes; then
31013 :
31014else
31015 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31016echo "$as_me: error: Function mprotect() required but not found" >&2;}
31017 { (exit 1); exit 1; }; }
31018fi
31019
31020
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031021if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031022then
Reid Spencer582a23c2004-12-29 07:07:57 +000031023 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31024echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031025fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031026if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000031027then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031028 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31029echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000031030fi
John Criswell7a73b802003-06-30 21:59:07 +000031031
31032
Brian Gaekef3b24102003-11-16 18:38:14 +000031033echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31034echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031035if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000031039if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031040 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000031041 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031042 if test $? -eq 0 ; then
31043 llvm_cv_llvmgcc_sanity="yes"
31044 fi
31045 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000031046fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031047fi
31048echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31049echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31050
31051if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000031052 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031053 LLVMCC1=$llvmcc1path
31054
Reid Spencer502935f2004-12-22 05:56:56 +000031055 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031056 LLVMCC1PLUS=$llvmcc1pluspath
31057
Reid Spencer502935f2004-12-22 05:56:56 +000031058 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31059 LLVMGCCDIR=$llvmgccdir
31060
Reid Spencerb5d75b82006-05-09 00:31:01 +000031061 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000031062 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31063 LLVMGCC_VERSION=$llvmgccversion
31064
31065 LLVMGCC_MAJVERS=$llvmgccmajvers
31066
Brian Gaekef3b24102003-11-16 18:38:14 +000031067fi
31068
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031069SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000031070
31071
Reid Spencere9de0912004-08-20 09:03:57 +000031072# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031073# information into substitutions that will end up in Makefile.config.in
31074# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000031075if test "${prefix}" == "NONE" ; then
31076 prefix="/usr/local"
31077fi
Reid Spencere9de0912004-08-20 09:03:57 +000031078eval LLVM_PREFIX="${prefix}";
31079eval LLVM_BINDIR="${prefix}/bin";
31080eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000031081eval LLVM_DATADIR="${prefix}/share/llvm";
31082eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31083eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000031084eval LLVM_INCLUDEDIR="${prefix}/include";
31085eval LLVM_INFODIR="${prefix}/info";
31086eval LLVM_MANDIR="${prefix}/man";
31087LLVM_CONFIGTIME=`date`
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031099# Place the various directores into the config.h file as #defines so that we
31100# can know about the installation paths within LLVM.
31101
Reid Spencere9de0912004-08-20 09:03:57 +000031102cat >>confdefs.h <<_ACEOF
31103#define LLVM_PREFIX "$LLVM_PREFIX"
31104_ACEOF
31105
31106
31107cat >>confdefs.h <<_ACEOF
31108#define LLVM_BINDIR "$LLVM_BINDIR"
31109_ACEOF
31110
31111
31112cat >>confdefs.h <<_ACEOF
31113#define LLVM_LIBDIR "$LLVM_LIBDIR"
31114_ACEOF
31115
31116
31117cat >>confdefs.h <<_ACEOF
31118#define LLVM_DATADIR "$LLVM_DATADIR"
31119_ACEOF
31120
31121
31122cat >>confdefs.h <<_ACEOF
31123#define LLVM_DATADIR "$LLVM_DOCSDIR"
31124_ACEOF
31125
31126
31127cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000031128#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000031129_ACEOF
31130
31131
31132cat >>confdefs.h <<_ACEOF
31133#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31134_ACEOF
31135
31136
31137cat >>confdefs.h <<_ACEOF
31138#define LLVM_INFODIR "$LLVM_INFODIR"
31139_ACEOF
31140
31141
31142cat >>confdefs.h <<_ACEOF
31143#define LLVM_MANDIR "$LLVM_MANDIR"
31144_ACEOF
31145
31146
31147cat >>confdefs.h <<_ACEOF
31148#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31149_ACEOF
31150
31151
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031152
31153 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31154
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031155 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31156
31157 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31158
31159 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31160
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031161 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31162
31163
31164 ac_config_files="$ac_config_files Makefile.config"
31165
31166
Reid Spencer1f319422004-11-29 04:56:35 +000031167 ac_config_files="$ac_config_files docs/doxygen.cfg"
31168
31169
Reid Spencere198afc2006-04-20 22:15:30 +000031170 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000031171
31172
Reid Spencerc0682832005-02-24 19:05:19 +000031173 ac_config_commands="$ac_config_commands setup"
31174
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031175 ac_config_commands="$ac_config_commands Makefile"
31176
31177
31178 ac_config_commands="$ac_config_commands Makefile.common"
31179
31180
31181 ac_config_commands="$ac_config_commands examples/Makefile"
31182
31183
31184 ac_config_commands="$ac_config_commands lib/Makefile"
31185
31186
31187 ac_config_commands="$ac_config_commands runtime/Makefile"
31188
31189
31190 ac_config_commands="$ac_config_commands test/Makefile"
31191
31192
31193 ac_config_commands="$ac_config_commands test/Makefile.tests"
31194
31195
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031196 ac_config_commands="$ac_config_commands tools/Makefile"
31197
31198
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031199 ac_config_commands="$ac_config_commands utils/Makefile"
31200
31201
31202 ac_config_commands="$ac_config_commands projects/Makefile"
31203
31204
31205
John Criswell7a73b802003-06-30 21:59:07 +000031206cat >confcache <<\_ACEOF
31207# This file is a shell script that caches the results of configure
31208# tests run on this system so they can be shared between configure
31209# scripts and configure runs, see configure's option --config-cache.
31210# It is not useful on other systems. If it contains results you don't
31211# want to keep, you may remove or edit it.
31212#
31213# config.status only pays attention to the cache file if you give it
31214# the --recheck option to rerun configure.
31215#
John Criswell0c38eaf2003-09-10 15:17:25 +000031216# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000031217# loading this file, other *unset* `ac_cv_foo' will be assigned the
31218# following values.
31219
31220_ACEOF
31221
31222# The following way of writing the cache mishandles newlines in values,
31223# but we know of no workaround that is simple, portable, and efficient.
31224# So, don't put newlines in cache variables' values.
31225# Ultrix sh set writes to stderr and can't be redirected directly,
31226# and sets the high bit in the cache file unless we assign to the vars.
31227{
31228 (set) 2>&1 |
31229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31230 *ac_space=\ *)
31231 # `set' does not quote correctly, so add quotes (double-quote
31232 # substitution turns \\\\ into \\, and sed turns \\ into \).
31233 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031234 "s/'/'\\\\''/g;
31235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000031236 ;;
31237 *)
31238 # `set' quotes correctly as required by POSIX, so do not add quotes.
31239 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031240 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000031241 ;;
31242 esac;
31243} |
31244 sed '
31245 t clear
31246 : clear
31247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31248 t end
31249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31250 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000031251if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000031252 if test -w $cache_file; then
31253 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31254 cat confcache >$cache_file
31255 else
31256 echo "not updating unwritable cache $cache_file"
31257 fi
31258fi
31259rm -f confcache
31260
31261test "x$prefix" = xNONE && prefix=$ac_default_prefix
31262# Let make expand exec_prefix.
31263test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31264
31265# VPATH may cause trouble with some makes, so we remove $(srcdir),
31266# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31267# trailing colons and then remove the whole line if VPATH becomes empty
31268# (actually we leave an empty line to preserve line numbers).
31269if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000031271s/:*\$(srcdir):*/:/;
31272s/:*\${srcdir}:*/:/;
31273s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031274s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000031275s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031276s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000031277}'
31278fi
31279
31280DEFS=-DHAVE_CONFIG_H
31281
John Criswell0c38eaf2003-09-10 15:17:25 +000031282ac_libobjs=
31283ac_ltlibobjs=
31284for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31285 # 1. Remove the extension, and $U if already installed.
31286 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031287 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031288 # 2. Add them.
31289 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31290 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31291done
31292LIBOBJS=$ac_libobjs
31293
31294LTLIBOBJS=$ac_ltlibobjs
31295
31296
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031297if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31298 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31299Usually this means the macro was only invoked conditionally." >&5
31300echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31301Usually this means the macro was only invoked conditionally." >&2;}
31302 { (exit 1); exit 1; }; }
31303fi
31304if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31305 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31306Usually this means the macro was only invoked conditionally." >&5
31307echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31308Usually this means the macro was only invoked conditionally." >&2;}
31309 { (exit 1); exit 1; }; }
31310fi
John Criswell7a73b802003-06-30 21:59:07 +000031311
31312: ${CONFIG_STATUS=./config.status}
31313ac_clean_files_save=$ac_clean_files
31314ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31315{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31316echo "$as_me: creating $CONFIG_STATUS" >&6;}
31317cat >$CONFIG_STATUS <<_ACEOF
31318#! $SHELL
31319# Generated by $as_me.
31320# Run this file to recreate the current configuration.
31321# Compiler output produced by configure, useful for debugging
31322# configure, is in config.log if it exists.
31323
31324debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000031325ac_cs_recheck=false
31326ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000031327SHELL=\${CONFIG_SHELL-$SHELL}
31328_ACEOF
31329
31330cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031331## --------------------- ##
31332## M4sh Initialization. ##
31333## --------------------- ##
31334
31335# Be Bourne compatible
31336if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31337 emulate sh
31338 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31340 # is contrary to our usage. Disable this feature.
31341 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031342elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31343 set -o posix
31344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031345DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031346
John Criswell7a73b802003-06-30 21:59:07 +000031347# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031348if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031349 as_unset=unset
31350else
31351 as_unset=false
31352fi
31353
John Criswell0c38eaf2003-09-10 15:17:25 +000031354
31355# Work around bugs in pre-3.0 UWIN ksh.
31356$as_unset ENV MAIL MAILPATH
31357PS1='$ '
31358PS2='> '
31359PS4='+ '
31360
31361# NLS nuisances.
31362for as_var in \
31363 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31364 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31365 LC_TELEPHONE LC_TIME
31366do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031367 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031368 eval $as_var=C; export $as_var
31369 else
31370 $as_unset $as_var
31371 fi
31372done
31373
31374# Required to use basename.
31375if expr a : '\(a\)' >/dev/null 2>&1; then
31376 as_expr=expr
31377else
31378 as_expr=false
31379fi
31380
31381if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31382 as_basename=basename
31383else
31384 as_basename=false
31385fi
John Criswell7a73b802003-06-30 21:59:07 +000031386
31387
31388# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031389as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031390$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31391 X"$0" : 'X\(//\)$' \| \
31392 X"$0" : 'X\(/\)$' \| \
31393 . : '\(.\)' 2>/dev/null ||
31394echo X/"$0" |
31395 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31396 /^X\/\(\/\/\)$/{ s//\1/; q; }
31397 /^X\/\(\/\).*/{ s//\1/; q; }
31398 s/.*/./; q'`
31399
John Criswell0c38eaf2003-09-10 15:17:25 +000031400
John Criswell7a73b802003-06-30 21:59:07 +000031401# PATH needs CR, and LINENO needs CR and PATH.
31402# Avoid depending upon Character Ranges.
31403as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31404as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31405as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31406as_cr_digits='0123456789'
31407as_cr_alnum=$as_cr_Letters$as_cr_digits
31408
31409# The user is always right.
31410if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031411 echo "#! /bin/sh" >conf$$.sh
31412 echo "exit 0" >>conf$$.sh
31413 chmod +x conf$$.sh
31414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031415 PATH_SEPARATOR=';'
31416 else
31417 PATH_SEPARATOR=:
31418 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031419 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031420fi
31421
31422
31423 as_lineno_1=$LINENO
31424 as_lineno_2=$LINENO
31425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31426 test "x$as_lineno_1" != "x$as_lineno_2" &&
31427 test "x$as_lineno_3" = "x$as_lineno_2" || {
31428 # Find who we are. Look in the path if we contain no path at all
31429 # relative or not.
31430 case $0 in
31431 *[\\/]* ) as_myself=$0 ;;
31432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433for as_dir in $PATH
31434do
31435 IFS=$as_save_IFS
31436 test -z "$as_dir" && as_dir=.
31437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31438done
31439
31440 ;;
31441 esac
31442 # We did not find ourselves, most probably we were run as `sh COMMAND'
31443 # in which case we are not to be found in the path.
31444 if test "x$as_myself" = x; then
31445 as_myself=$0
31446 fi
31447 if test ! -f "$as_myself"; then
31448 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31449echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31450 { (exit 1); exit 1; }; }
31451 fi
31452 case $CONFIG_SHELL in
31453 '')
31454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31455for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31456do
31457 IFS=$as_save_IFS
31458 test -z "$as_dir" && as_dir=.
31459 for as_base in sh bash ksh sh5; do
31460 case $as_dir in
31461 /*)
31462 if ("$as_dir/$as_base" -c '
31463 as_lineno_1=$LINENO
31464 as_lineno_2=$LINENO
31465 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31466 test "x$as_lineno_1" != "x$as_lineno_2" &&
31467 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031468 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31469 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031470 CONFIG_SHELL=$as_dir/$as_base
31471 export CONFIG_SHELL
31472 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31473 fi;;
31474 esac
31475 done
31476done
31477;;
31478 esac
31479
31480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31481 # uniformly replaced by the line number. The first 'sed' inserts a
31482 # line-number line before each line; the second 'sed' does the real
31483 # work. The second script uses 'N' to pair each line-number line
31484 # with the numbered line, and appends trailing '-' during
31485 # substitution so that $LINENO is not a special case at line end.
31486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31487 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31488 sed '=' <$as_myself |
31489 sed '
31490 N
31491 s,$,-,
31492 : loop
31493 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31494 t loop
31495 s,-$,,
31496 s,^['$as_cr_digits']*\n,,
31497 ' >$as_me.lineno &&
31498 chmod +x $as_me.lineno ||
31499 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31500echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31501 { (exit 1); exit 1; }; }
31502
31503 # Don't try to exec as it changes $[0], causing all sort of problems
31504 # (the dirname of $[0] is not the place where we might find the
31505 # original and so on. Autoconf is especially sensible to this).
31506 . ./$as_me.lineno
31507 # Exit status is that of the last command.
31508 exit
31509}
31510
31511
31512case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31513 *c*,-n*) ECHO_N= ECHO_C='
31514' ECHO_T=' ' ;;
31515 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31516 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31517esac
31518
31519if expr a : '\(a\)' >/dev/null 2>&1; then
31520 as_expr=expr
31521else
31522 as_expr=false
31523fi
31524
31525rm -f conf$$ conf$$.exe conf$$.file
31526echo >conf$$.file
31527if ln -s conf$$.file conf$$ 2>/dev/null; then
31528 # We could just check for DJGPP; but this test a) works b) is more generic
31529 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31530 if test -f conf$$.exe; then
31531 # Don't use ln at all; we don't have any links
31532 as_ln_s='cp -p'
31533 else
31534 as_ln_s='ln -s'
31535 fi
31536elif ln conf$$.file conf$$ 2>/dev/null; then
31537 as_ln_s=ln
31538else
31539 as_ln_s='cp -p'
31540fi
31541rm -f conf$$ conf$$.exe conf$$.file
31542
John Criswell0c38eaf2003-09-10 15:17:25 +000031543if mkdir -p . 2>/dev/null; then
31544 as_mkdir_p=:
31545else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031546 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031547 as_mkdir_p=false
31548fi
31549
John Criswell7a73b802003-06-30 21:59:07 +000031550as_executable_p="test -f"
31551
31552# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031554
31555# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031557
31558
31559# IFS
31560# We need space, tab and new line, in precisely that order.
31561as_nl='
31562'
31563IFS=" $as_nl"
31564
31565# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031566$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031567
31568exec 6>&1
31569
31570# Open the log real soon, to keep \$[0] and so on meaningful, and to
31571# report actual input values of CONFIG_FILES etc. instead of their
31572# values after options handling. Logging --version etc. is OK.
31573exec 5>>config.log
31574{
31575 echo
31576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31577## Running $as_me. ##
31578_ASBOX
31579} >&5
31580cat >&5 <<_CSEOF
31581
Reid Spencer57d37252006-04-14 03:01:27 +000031582This file was extended by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031583generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031584
31585 CONFIG_FILES = $CONFIG_FILES
31586 CONFIG_HEADERS = $CONFIG_HEADERS
31587 CONFIG_LINKS = $CONFIG_LINKS
31588 CONFIG_COMMANDS = $CONFIG_COMMANDS
31589 $ $0 $@
31590
31591_CSEOF
31592echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31593echo >&5
31594_ACEOF
31595
31596# Files that config.status was made for.
31597if test -n "$ac_config_files"; then
31598 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31599fi
31600
31601if test -n "$ac_config_headers"; then
31602 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31603fi
31604
31605if test -n "$ac_config_links"; then
31606 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31607fi
31608
31609if test -n "$ac_config_commands"; then
31610 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31611fi
31612
31613cat >>$CONFIG_STATUS <<\_ACEOF
31614
31615ac_cs_usage="\
31616\`$as_me' instantiates files from templates according to the
31617current configuration.
31618
31619Usage: $0 [OPTIONS] [FILE]...
31620
31621 -h, --help print this help, then exit
31622 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031623 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031624 -d, --debug don't remove temporary files
31625 --recheck update $as_me by reconfiguring in the same conditions
31626 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031627 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031628 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031629 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031630
31631Configuration files:
31632$config_files
31633
31634Configuration headers:
31635$config_headers
31636
John Criswellc764fbc2003-09-06 15:17:13 +000031637Configuration commands:
31638$config_commands
31639
John Criswell7a73b802003-06-30 21:59:07 +000031640Report bugs to <bug-autoconf@gnu.org>."
31641_ACEOF
31642
31643cat >>$CONFIG_STATUS <<_ACEOF
31644ac_cs_version="\\
Reid Spencer57d37252006-04-14 03:01:27 +000031645llvm config.status 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031646configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031647 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31648
Reid Spencer2706f8c2004-09-19 23:53:36 +000031649Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031650This config.status script is free software; the Free Software Foundation
31651gives unlimited permission to copy, distribute and modify it."
31652srcdir=$srcdir
31653INSTALL="$INSTALL"
31654_ACEOF
31655
31656cat >>$CONFIG_STATUS <<\_ACEOF
31657# If no file are specified by the user, then we need to provide default
31658# value. By we need to know if files were specified by the user.
31659ac_need_defaults=:
31660while test $# != 0
31661do
31662 case $1 in
31663 --*=*)
31664 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31665 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031666 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031667 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031668 -*)
31669 ac_option=$1
31670 ac_optarg=$2
31671 ac_shift=shift
31672 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031673 *) # This is not an option, so the user has probably given explicit
31674 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031675 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031676 ac_need_defaults=false;;
31677 esac
31678
John Criswell0c38eaf2003-09-10 15:17:25 +000031679 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031680 # Handling of the options.
31681_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031682cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31684 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031685 --version | --vers* | -V )
31686 echo "$ac_cs_version"; exit 0 ;;
31687 --he | --h)
31688 # Conflict between --help and --header
31689 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31690Try \`$0 --help' for more information." >&5
31691echo "$as_me: error: ambiguous option: $1
31692Try \`$0 --help' for more information." >&2;}
31693 { (exit 1); exit 1; }; };;
31694 --help | --hel | -h )
31695 echo "$ac_cs_usage"; exit 0 ;;
31696 --debug | --d* | -d )
31697 debug=: ;;
31698 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031699 $ac_shift
31700 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031701 ac_need_defaults=false;;
31702 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031703 $ac_shift
31704 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031705 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31708 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031709
31710 # This is an error.
31711 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31712Try \`$0 --help' for more information." >&5
31713echo "$as_me: error: unrecognized option: $1
31714Try \`$0 --help' for more information." >&2;}
31715 { (exit 1); exit 1; }; } ;;
31716
31717 *) ac_config_targets="$ac_config_targets $1" ;;
31718
31719 esac
31720 shift
31721done
31722
John Criswell0c38eaf2003-09-10 15:17:25 +000031723ac_configure_extra_args=
31724
31725if $ac_cs_silent; then
31726 exec 6>/dev/null
31727 ac_configure_extra_args="$ac_configure_extra_args --silent"
31728fi
31729
31730_ACEOF
31731cat >>$CONFIG_STATUS <<_ACEOF
31732if \$ac_cs_recheck; then
31733 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31734 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31735fi
31736
John Criswell7a73b802003-06-30 21:59:07 +000031737_ACEOF
31738
John Criswellc764fbc2003-09-06 15:17:13 +000031739cat >>$CONFIG_STATUS <<_ACEOF
31740#
31741# INIT-COMMANDS section.
31742#
John Criswell7a73b802003-06-30 21:59:07 +000031743
Reid Spencerc0682832005-02-24 19:05:19 +000031744llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031745
31746_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031747
31748
31749
31750cat >>$CONFIG_STATUS <<\_ACEOF
31751for ac_config_target in $ac_config_targets
31752do
31753 case "$ac_config_target" in
31754 # Handling of arguments.
31755 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031756 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencere198afc2006-04-20 22:15:30 +000031757 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031758 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031759 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31760 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031761 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031762 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031763 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031764 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31765 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031766 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031767 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031768 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031769 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031770 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031771 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31772 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031773 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31775echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31776 { (exit 1); exit 1; }; };;
31777 esac
31778done
31779
31780# If the user did not use the arguments to specify the items to instantiate,
31781# then the envvar interface is used. Set only those that are not.
31782# We use the long form for the default assignment because of an extremely
31783# bizarre bug on SunOS 4.1.3.
31784if $ac_need_defaults; then
31785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031788fi
31789
John Criswell0c38eaf2003-09-10 15:17:25 +000031790# Have a temporary directory for convenience. Make it in the build tree
31791# simply because there is no reason to put it here, and in addition,
31792# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031793# Create a temporary directory, and hook for its removal unless debugging.
31794$debug ||
31795{
31796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31797 trap '{ (exit 1); exit 1; }' 1 2 13 15
31798}
31799
31800# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031801
John Criswell7a73b802003-06-30 21:59:07 +000031802{
John Criswell0c38eaf2003-09-10 15:17:25 +000031803 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031804 test -n "$tmp" && test -d "$tmp"
31805} ||
31806{
John Criswell0c38eaf2003-09-10 15:17:25 +000031807 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031808 (umask 077 && mkdir $tmp)
31809} ||
31810{
John Criswell0c38eaf2003-09-10 15:17:25 +000031811 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031812 { (exit 1); exit 1; }
31813}
31814
31815_ACEOF
31816
31817cat >>$CONFIG_STATUS <<_ACEOF
31818
31819#
31820# CONFIG_FILES section.
31821#
31822
31823# No need to generate the scripts if there are no CONFIG_FILES.
31824# This happens for instance when ./config.status config.h
31825if test -n "\$CONFIG_FILES"; then
31826 # Protect against being on the right side of a sed subst in config.status.
31827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31829s,@SHELL@,$SHELL,;t t
31830s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31831s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31832s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31833s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31834s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31835s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31836s,@exec_prefix@,$exec_prefix,;t t
31837s,@prefix@,$prefix,;t t
31838s,@program_transform_name@,$program_transform_name,;t t
31839s,@bindir@,$bindir,;t t
31840s,@sbindir@,$sbindir,;t t
31841s,@libexecdir@,$libexecdir,;t t
31842s,@datadir@,$datadir,;t t
31843s,@sysconfdir@,$sysconfdir,;t t
31844s,@sharedstatedir@,$sharedstatedir,;t t
31845s,@localstatedir@,$localstatedir,;t t
31846s,@libdir@,$libdir,;t t
31847s,@includedir@,$includedir,;t t
31848s,@oldincludedir@,$oldincludedir,;t t
31849s,@infodir@,$infodir,;t t
31850s,@mandir@,$mandir,;t t
31851s,@build_alias@,$build_alias,;t t
31852s,@host_alias@,$host_alias,;t t
31853s,@target_alias@,$target_alias,;t t
31854s,@DEFS@,$DEFS,;t t
31855s,@ECHO_C@,$ECHO_C,;t t
31856s,@ECHO_N@,$ECHO_N,;t t
31857s,@ECHO_T@,$ECHO_T,;t t
31858s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031859s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031860s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031861s,@build@,$build,;t t
31862s,@build_cpu@,$build_cpu,;t t
31863s,@build_vendor@,$build_vendor,;t t
31864s,@build_os@,$build_os,;t t
31865s,@host@,$host,;t t
31866s,@host_cpu@,$host_cpu,;t t
31867s,@host_vendor@,$host_vendor,;t t
31868s,@host_os@,$host_os,;t t
31869s,@target@,$target,;t t
31870s,@target_cpu@,$target_cpu,;t t
31871s,@target_vendor@,$target_vendor,;t t
31872s,@target_os@,$target_os,;t t
31873s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031874s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31875s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031876s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031877s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031878s,@CC@,$CC,;t t
31879s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031880s,@LDFLAGS@,$LDFLAGS,;t t
31881s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031882s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031883s,@EXEEXT@,$EXEEXT,;t t
31884s,@OBJEXT@,$OBJEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031885s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031886s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000031887s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031888s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031889s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031890s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031891s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031892s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031893s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031894s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031895s,@CXX@,$CXX,;t t
31896s,@CXXFLAGS@,$CXXFLAGS,;t t
31897s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031898s,@LEX@,$LEX,;t t
31899s,@LEXLIB@,$LEXLIB,;t t
31900s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031901s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031902s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031903s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031905s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031906s,@CMP@,$CMP,;t t
31907s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031908s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031909s,@FIND@,$FIND,;t t
31910s,@GREP@,$GREP,;t t
31911s,@MKDIR@,$MKDIR,;t t
31912s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031913s,@RANLIB@,$RANLIB,;t t
31914s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031915s,@RM@,$RM,;t t
31916s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031917s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031918s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencercaf0ece2006-06-05 15:54:38 +000031919s,@DOT@,$DOT,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031920s,@GV@,$GV,;t t
Reid Spencerecbd2422006-06-02 23:13:18 +000031921s,@DOTTY@,$DOTTY,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031922s,@PERL@,$PERL,;t t
31923s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031924s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31925s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31926s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031927s,@BZIP2@,$BZIP2,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031928s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031929s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031930s,@GROFF@,$GROFF,;t t
31931s,@GZIP@,$GZIP,;t t
31932s,@POD2HTML@,$POD2HTML,;t t
31933s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031934s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031935s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031936s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031937s,@EGREP@,$EGREP,;t t
31938s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31939s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31940s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31941s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31942s,@LIBADD_DL@,$LIBADD_DL,;t t
31943s,@ECHO@,$ECHO,;t t
31944s,@AR@,$AR,;t t
31945s,@ac_ct_AR@,$ac_ct_AR,;t t
31946s,@STRIP@,$STRIP,;t t
31947s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31948s,@CXXCPP@,$CXXCPP,;t t
31949s,@F77@,$F77,;t t
31950s,@FFLAGS@,$FFLAGS,;t t
31951s,@ac_ct_F77@,$ac_ct_F77,;t t
31952s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031953s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031954s,@LLVMGCC@,$LLVMGCC,;t t
31955s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031956s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031957s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031958s,@LLVMCC1@,$LLVMCC1,;t t
31959s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031960s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031961s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31962s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031963s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031964s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31965s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31966s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31967s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31968s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31969s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31970s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31971s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31972s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31973s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031974s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031975s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031976CEOF
31977
31978_ACEOF
31979
31980 cat >>$CONFIG_STATUS <<\_ACEOF
31981 # Split the substitutions into bite-sized pieces for seds with
31982 # small command number limits, like on Digital OSF/1 and HP-UX.
31983 ac_max_sed_lines=48
31984 ac_sed_frag=1 # Number of current file.
31985 ac_beg=1 # First line for current file.
31986 ac_end=$ac_max_sed_lines # Line after last line for current file.
31987 ac_more_lines=:
31988 ac_sed_cmds=
31989 while $ac_more_lines; do
31990 if test $ac_beg -gt 1; then
31991 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31992 else
31993 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31994 fi
31995 if test ! -s $tmp/subs.frag; then
31996 ac_more_lines=false
31997 else
31998 # The purpose of the label and of the branching condition is to
31999 # speed up the sed processing (if there are no `@' at all, there
32000 # is no need to browse any of the substitutions).
32001 # These are the two extra sed commands mentioned above.
32002 (echo ':t
32003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32004 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000032005 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032006 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032007 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000032008 fi
32009 ac_sed_frag=`expr $ac_sed_frag + 1`
32010 ac_beg=$ac_end
32011 ac_end=`expr $ac_end + $ac_max_sed_lines`
32012 fi
32013 done
32014 if test -z "$ac_sed_cmds"; then
32015 ac_sed_cmds=cat
32016 fi
32017fi # test -n "$CONFIG_FILES"
32018
32019_ACEOF
32020cat >>$CONFIG_STATUS <<\_ACEOF
32021for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32023 case $ac_file in
32024 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032025 cat >$tmp/stdin
32026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032030 * ) ac_file_in=$ac_file.in ;;
32031 esac
32032
32033 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32034 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32035$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032036 X"$ac_file" : 'X\(//\)[^/]' \| \
32037 X"$ac_file" : 'X\(//\)$' \| \
32038 X"$ac_file" : 'X\(/\)' \| \
32039 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032040echo X"$ac_file" |
32041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32043 /^X\(\/\/\)$/{ s//\1/; q; }
32044 /^X\(\/\).*/{ s//\1/; q; }
32045 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032046 { if $as_mkdir_p; then
32047 mkdir -p "$ac_dir"
32048 else
32049 as_dir="$ac_dir"
32050 as_dirs=
32051 while test ! -d "$as_dir"; do
32052 as_dirs="$as_dir $as_dirs"
32053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32054$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032055 X"$as_dir" : 'X\(//\)[^/]' \| \
32056 X"$as_dir" : 'X\(//\)$' \| \
32057 X"$as_dir" : 'X\(/\)' \| \
32058 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032059echo X"$as_dir" |
32060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32062 /^X\(\/\/\)$/{ s//\1/; q; }
32063 /^X\(\/\).*/{ s//\1/; q; }
32064 s/.*/./; q'`
32065 done
32066 test ! -n "$as_dirs" || mkdir $as_dirs
32067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32068echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32069 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032070
32071 ac_builddir=.
32072
32073if test "$ac_dir" != .; then
32074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32075 # A "../" for each directory in $ac_dir_suffix.
32076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32077else
32078 ac_dir_suffix= ac_top_builddir=
32079fi
32080
32081case $srcdir in
32082 .) # No --srcdir option. We are building in place.
32083 ac_srcdir=.
32084 if test -z "$ac_top_builddir"; then
32085 ac_top_srcdir=.
32086 else
32087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32088 fi ;;
32089 [\\/]* | ?:[\\/]* ) # Absolute path.
32090 ac_srcdir=$srcdir$ac_dir_suffix;
32091 ac_top_srcdir=$srcdir ;;
32092 *) # Relative path.
32093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32095esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032096
32097# Do not use `cd foo && pwd` to compute absolute paths, because
32098# the directories may not exist.
32099case `pwd` in
32100.) ac_abs_builddir="$ac_dir";;
32101*)
32102 case "$ac_dir" in
32103 .) ac_abs_builddir=`pwd`;;
32104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32106 esac;;
32107esac
32108case $ac_abs_builddir in
32109.) ac_abs_top_builddir=${ac_top_builddir}.;;
32110*)
32111 case ${ac_top_builddir}. in
32112 .) ac_abs_top_builddir=$ac_abs_builddir;;
32113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32115 esac;;
32116esac
32117case $ac_abs_builddir in
32118.) ac_abs_srcdir=$ac_srcdir;;
32119*)
32120 case $ac_srcdir in
32121 .) ac_abs_srcdir=$ac_abs_builddir;;
32122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32124 esac;;
32125esac
32126case $ac_abs_builddir in
32127.) ac_abs_top_srcdir=$ac_top_srcdir;;
32128*)
32129 case $ac_top_srcdir in
32130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32133 esac;;
32134esac
John Criswell7a73b802003-06-30 21:59:07 +000032135
32136
32137 case $INSTALL in
32138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32139 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32140 esac
32141
32142 if test x"$ac_file" != x-; then
32143 { echo "$as_me:$LINENO: creating $ac_file" >&5
32144echo "$as_me: creating $ac_file" >&6;}
32145 rm -f "$ac_file"
32146 fi
32147 # Let's still pretend it is `configure' which instantiates (i.e., don't
32148 # use $as_me), people would be surprised to read:
32149 # /* config.h. Generated by config.status. */
32150 if test x"$ac_file" = x-; then
32151 configure_input=
32152 else
32153 configure_input="$ac_file. "
32154 fi
32155 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000032156 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000032157
32158 # First look for the input files in the build tree, otherwise in the
32159 # src tree.
32160 ac_file_inputs=`IFS=:
32161 for f in $ac_file_in; do
32162 case $f in
32163 -) echo $tmp/stdin ;;
32164 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032165 # Absolute (can't be DOS-style, as IFS=:)
32166 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032167echo "$as_me: error: cannot find input file: $f" >&2;}
32168 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032169 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032170 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032171 if test -f "$f"; then
32172 # Build tree
32173 echo "$f"
32174 elif test -f "$srcdir/$f"; then
32175 # Source tree
32176 echo "$srcdir/$f"
32177 else
32178 # /dev/null tree
32179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032180echo "$as_me: error: cannot find input file: $f" >&2;}
32181 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032182 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032183 esac
32184 done` || { (exit 1); exit 1; }
32185_ACEOF
32186cat >>$CONFIG_STATUS <<_ACEOF
32187 sed "$ac_vpsub
32188$extrasub
32189_ACEOF
32190cat >>$CONFIG_STATUS <<\_ACEOF
32191:t
32192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32193s,@configure_input@,$configure_input,;t t
32194s,@srcdir@,$ac_srcdir,;t t
32195s,@abs_srcdir@,$ac_abs_srcdir,;t t
32196s,@top_srcdir@,$ac_top_srcdir,;t t
32197s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32198s,@builddir@,$ac_builddir,;t t
32199s,@abs_builddir@,$ac_abs_builddir,;t t
32200s,@top_builddir@,$ac_top_builddir,;t t
32201s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32202s,@INSTALL@,$ac_INSTALL,;t t
32203" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32204 rm -f $tmp/stdin
32205 if test x"$ac_file" != x-; then
32206 mv $tmp/out $ac_file
32207 else
32208 cat $tmp/out
32209 rm -f $tmp/out
32210 fi
32211
32212done
32213_ACEOF
32214cat >>$CONFIG_STATUS <<\_ACEOF
32215
32216#
32217# CONFIG_HEADER section.
32218#
32219
32220# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32221# NAME is the cpp macro being defined and VALUE is the value it is being given.
32222#
32223# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032224ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32225ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000032226ac_dC=' '
32227ac_dD=',;t'
32228# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000032229ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000032230ac_uB='$,\1#\2define\3'
32231ac_uC=' '
32232ac_uD=',;t'
32233
32234for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32235 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32236 case $ac_file in
32237 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032238 cat >$tmp/stdin
32239 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032241 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032243 * ) ac_file_in=$ac_file.in ;;
32244 esac
32245
32246 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32247echo "$as_me: creating $ac_file" >&6;}
32248
32249 # First look for the input files in the build tree, otherwise in the
32250 # src tree.
32251 ac_file_inputs=`IFS=:
32252 for f in $ac_file_in; do
32253 case $f in
32254 -) echo $tmp/stdin ;;
32255 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032256 # Absolute (can't be DOS-style, as IFS=:)
32257 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032258echo "$as_me: error: cannot find input file: $f" >&2;}
32259 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032260 # Do quote $f, to prevent DOS paths from being IFS'd.
32261 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032262 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032263 if test -f "$f"; then
32264 # Build tree
32265 echo "$f"
32266 elif test -f "$srcdir/$f"; then
32267 # Source tree
32268 echo "$srcdir/$f"
32269 else
32270 # /dev/null tree
32271 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032272echo "$as_me: error: cannot find input file: $f" >&2;}
32273 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032274 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032275 esac
32276 done` || { (exit 1); exit 1; }
32277 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032278 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000032279
32280_ACEOF
32281
32282# Transform confdefs.h into two sed scripts, `conftest.defines' and
32283# `conftest.undefs', that substitutes the proper values into
32284# config.h.in to produce config.h. The first handles `#define'
32285# templates, and the second `#undef' templates.
32286# And first: Protect against being on the right side of a sed subst in
32287# config.status. Protect against being in an unquoted here document
32288# in config.status.
32289rm -f conftest.defines conftest.undefs
32290# Using a here document instead of a string reduces the quoting nightmare.
32291# Putting comments in sed scripts is not portable.
32292#
32293# `end' is used to avoid that the second main sed command (meant for
32294# 0-ary CPP macros) applies to n-ary macro definitions.
32295# See the Autoconf documentation for `clear'.
32296cat >confdef2sed.sed <<\_ACEOF
32297s/[\\&,]/\\&/g
32298s,[\\$`],\\&,g
32299t clear
32300: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000032301s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032302t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000032303s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032304: end
32305_ACEOF
32306# If some macros were called several times there might be several times
32307# the same #defines, which is useless. Nevertheless, we may not want to
32308# sort them, since we want the *last* AC-DEFINE to be honored.
32309uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32310sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32311rm -f confdef2sed.sed
32312
32313# This sed command replaces #undef with comments. This is necessary, for
32314# example, in the case of _POSIX_SOURCE, which is predefined and required
32315# on some systems where configure will not decide to define it.
32316cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032317s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000032318_ACEOF
32319
32320# Break up conftest.defines because some shells have a limit on the size
32321# of here documents, and old seds have small limits too (100 cmds).
32322echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000032323echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032324echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32325echo ' :' >>$CONFIG_STATUS
32326rm -f conftest.tail
32327while grep . conftest.defines >/dev/null
32328do
32329 # Write a limited-size here document to $tmp/defines.sed.
32330 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32331 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032332 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032333 # Work around the forget-to-reset-the-flag bug.
32334 echo 't clr' >>$CONFIG_STATUS
32335 echo ': clr' >>$CONFIG_STATUS
32336 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32337 echo 'CEOF
32338 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32339 rm -f $tmp/in
32340 mv $tmp/out $tmp/in
32341' >>$CONFIG_STATUS
32342 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32343 rm -f conftest.defines
32344 mv conftest.tail conftest.defines
32345done
32346rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032347echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032348echo >>$CONFIG_STATUS
32349
32350# Break up conftest.undefs because some shells have a limit on the size
32351# of here documents, and old seds have small limits too (100 cmds).
32352echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32353rm -f conftest.tail
32354while grep . conftest.undefs >/dev/null
32355do
32356 # Write a limited-size here document to $tmp/undefs.sed.
32357 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32358 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032359 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032360 # Work around the forget-to-reset-the-flag bug.
32361 echo 't clr' >>$CONFIG_STATUS
32362 echo ': clr' >>$CONFIG_STATUS
32363 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32364 echo 'CEOF
32365 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32366 rm -f $tmp/in
32367 mv $tmp/out $tmp/in
32368' >>$CONFIG_STATUS
32369 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32370 rm -f conftest.undefs
32371 mv conftest.tail conftest.undefs
32372done
32373rm -f conftest.undefs
32374
32375cat >>$CONFIG_STATUS <<\_ACEOF
32376 # Let's still pretend it is `configure' which instantiates (i.e., don't
32377 # use $as_me), people would be surprised to read:
32378 # /* config.h. Generated by config.status. */
32379 if test x"$ac_file" = x-; then
32380 echo "/* Generated by configure. */" >$tmp/config.h
32381 else
32382 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32383 fi
32384 cat $tmp/in >>$tmp/config.h
32385 rm -f $tmp/in
32386 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032387 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32389echo "$as_me: $ac_file is unchanged" >&6;}
32390 else
32391 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32392$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032393 X"$ac_file" : 'X\(//\)[^/]' \| \
32394 X"$ac_file" : 'X\(//\)$' \| \
32395 X"$ac_file" : 'X\(/\)' \| \
32396 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032397echo X"$ac_file" |
32398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32400 /^X\(\/\/\)$/{ s//\1/; q; }
32401 /^X\(\/\).*/{ s//\1/; q; }
32402 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032403 { if $as_mkdir_p; then
32404 mkdir -p "$ac_dir"
32405 else
32406 as_dir="$ac_dir"
32407 as_dirs=
32408 while test ! -d "$as_dir"; do
32409 as_dirs="$as_dir $as_dirs"
32410 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032412 X"$as_dir" : 'X\(//\)[^/]' \| \
32413 X"$as_dir" : 'X\(//\)$' \| \
32414 X"$as_dir" : 'X\(/\)' \| \
32415 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032416echo X"$as_dir" |
32417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32419 /^X\(\/\/\)$/{ s//\1/; q; }
32420 /^X\(\/\).*/{ s//\1/; q; }
32421 s/.*/./; q'`
32422 done
32423 test ! -n "$as_dirs" || mkdir $as_dirs
32424 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32425echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32426 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032427
32428 rm -f $ac_file
32429 mv $tmp/config.h $ac_file
32430 fi
32431 else
32432 cat $tmp/config.h
32433 rm -f $tmp/config.h
32434 fi
32435done
32436_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032437cat >>$CONFIG_STATUS <<\_ACEOF
32438
32439#
32440# CONFIG_COMMANDS section.
32441#
32442for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32443 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32444 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32445 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32446$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032447 X"$ac_dest" : 'X\(//\)[^/]' \| \
32448 X"$ac_dest" : 'X\(//\)$' \| \
32449 X"$ac_dest" : 'X\(/\)' \| \
32450 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032451echo X"$ac_dest" |
32452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32454 /^X\(\/\/\)$/{ s//\1/; q; }
32455 /^X\(\/\).*/{ s//\1/; q; }
32456 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032457 { if $as_mkdir_p; then
32458 mkdir -p "$ac_dir"
32459 else
32460 as_dir="$ac_dir"
32461 as_dirs=
32462 while test ! -d "$as_dir"; do
32463 as_dirs="$as_dir $as_dirs"
32464 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32466 X"$as_dir" : 'X\(//\)[^/]' \| \
32467 X"$as_dir" : 'X\(//\)$' \| \
32468 X"$as_dir" : 'X\(/\)' \| \
32469 . : '\(.\)' 2>/dev/null ||
32470echo X"$as_dir" |
32471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32473 /^X\(\/\/\)$/{ s//\1/; q; }
32474 /^X\(\/\).*/{ s//\1/; q; }
32475 s/.*/./; q'`
32476 done
32477 test ! -n "$as_dirs" || mkdir $as_dirs
32478 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32479echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32480 { (exit 1); exit 1; }; }; }
32481
John Criswellc764fbc2003-09-06 15:17:13 +000032482 ac_builddir=.
32483
32484if test "$ac_dir" != .; then
32485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32486 # A "../" for each directory in $ac_dir_suffix.
32487 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32488else
32489 ac_dir_suffix= ac_top_builddir=
32490fi
32491
32492case $srcdir in
32493 .) # No --srcdir option. We are building in place.
32494 ac_srcdir=.
32495 if test -z "$ac_top_builddir"; then
32496 ac_top_srcdir=.
32497 else
32498 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32499 fi ;;
32500 [\\/]* | ?:[\\/]* ) # Absolute path.
32501 ac_srcdir=$srcdir$ac_dir_suffix;
32502 ac_top_srcdir=$srcdir ;;
32503 *) # Relative path.
32504 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32505 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32506esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032507
32508# Do not use `cd foo && pwd` to compute absolute paths, because
32509# the directories may not exist.
32510case `pwd` in
32511.) ac_abs_builddir="$ac_dir";;
32512*)
32513 case "$ac_dir" in
32514 .) ac_abs_builddir=`pwd`;;
32515 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32516 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32517 esac;;
32518esac
32519case $ac_abs_builddir in
32520.) ac_abs_top_builddir=${ac_top_builddir}.;;
32521*)
32522 case ${ac_top_builddir}. in
32523 .) ac_abs_top_builddir=$ac_abs_builddir;;
32524 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32525 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32526 esac;;
32527esac
32528case $ac_abs_builddir in
32529.) ac_abs_srcdir=$ac_srcdir;;
32530*)
32531 case $ac_srcdir in
32532 .) ac_abs_srcdir=$ac_abs_builddir;;
32533 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32534 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32535 esac;;
32536esac
32537case $ac_abs_builddir in
32538.) ac_abs_top_srcdir=$ac_top_srcdir;;
32539*)
32540 case $ac_top_srcdir in
32541 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32542 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32543 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32544 esac;;
32545esac
John Criswellc764fbc2003-09-06 15:17:13 +000032546
32547
32548 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32549echo "$as_me: executing $ac_dest commands" >&6;}
32550 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032551 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32552 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32553 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32554 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32555 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32556 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32557 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32558 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32559 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32560 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32561 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32562 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32563 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32564 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32565 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32566 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32567 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32568 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32569 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032571 esac
32572done
32573_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032574
32575cat >>$CONFIG_STATUS <<\_ACEOF
32576
32577{ (exit 0); exit 0; }
32578_ACEOF
32579chmod +x $CONFIG_STATUS
32580ac_clean_files=$ac_clean_files_save
32581
32582
32583# configure is writing to config.log, and then calls config.status.
32584# config.status does its own redirection, appending to config.log.
32585# Unfortunately, on DOS this fails, as config.log is still kept open
32586# by configure, so config.status won't be able to write to it; its
32587# output is simply discarded. So we exec the FD to /dev/null,
32588# effectively closing config.log, so it can be properly (re)opened and
32589# appended to by config.status. When coming back to configure, we
32590# need to make the FD available again.
32591if test "$no_create" != yes; then
32592 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032593 ac_config_status_args=
32594 test "$silent" = yes &&
32595 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032596 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032598 exec 5>>config.log
32599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32600 # would make configure fail if this is the last instruction.
32601 $ac_cs_success || { (exit 1); exit 1; }
32602fi
32603
John Criswell12399a12003-09-30 15:55:44 +000032604#
32605# CONFIG_SUBDIRS section.
32606#
32607if test "$no_recursion" != yes; then
32608
32609 # Remove --cache-file and --srcdir arguments so they do not pile up.
32610 ac_sub_configure_args=
32611 ac_prev=
32612 for ac_arg in $ac_configure_args; do
32613 if test -n "$ac_prev"; then
32614 ac_prev=
32615 continue
32616 fi
32617 case $ac_arg in
32618 -cache-file | --cache-file | --cache-fil | --cache-fi \
32619 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32620 ac_prev=cache_file ;;
32621 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32622 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32623 | --c=*)
32624 ;;
32625 --config-cache | -C)
32626 ;;
32627 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32628 ac_prev=srcdir ;;
32629 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32630 ;;
32631 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32632 ac_prev=prefix ;;
32633 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32634 ;;
32635 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32636 esac
32637 done
32638
32639 # Always prepend --prefix to ensure using the same prefix
32640 # in subdir configurations.
32641 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32642
32643 ac_popdir=`pwd`
32644 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32645
32646 # Do not complain, so a configure script can configure whichever
32647 # parts of a large source tree are present.
32648 test -d $srcdir/$ac_dir || continue
32649
32650 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32651echo "$as_me: configuring in $ac_dir" >&6;}
32652 { if $as_mkdir_p; then
32653 mkdir -p "$ac_dir"
32654 else
32655 as_dir="$ac_dir"
32656 as_dirs=
32657 while test ! -d "$as_dir"; do
32658 as_dirs="$as_dir $as_dirs"
32659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032661 X"$as_dir" : 'X\(//\)[^/]' \| \
32662 X"$as_dir" : 'X\(//\)$' \| \
32663 X"$as_dir" : 'X\(/\)' \| \
32664 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032665echo X"$as_dir" |
32666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32668 /^X\(\/\/\)$/{ s//\1/; q; }
32669 /^X\(\/\).*/{ s//\1/; q; }
32670 s/.*/./; q'`
32671 done
32672 test ! -n "$as_dirs" || mkdir $as_dirs
32673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32674echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32675 { (exit 1); exit 1; }; }; }
32676
32677 ac_builddir=.
32678
32679if test "$ac_dir" != .; then
32680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32681 # A "../" for each directory in $ac_dir_suffix.
32682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32683else
32684 ac_dir_suffix= ac_top_builddir=
32685fi
32686
32687case $srcdir in
32688 .) # No --srcdir option. We are building in place.
32689 ac_srcdir=.
32690 if test -z "$ac_top_builddir"; then
32691 ac_top_srcdir=.
32692 else
32693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32694 fi ;;
32695 [\\/]* | ?:[\\/]* ) # Absolute path.
32696 ac_srcdir=$srcdir$ac_dir_suffix;
32697 ac_top_srcdir=$srcdir ;;
32698 *) # Relative path.
32699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32701esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032702
32703# Do not use `cd foo && pwd` to compute absolute paths, because
32704# the directories may not exist.
32705case `pwd` in
32706.) ac_abs_builddir="$ac_dir";;
32707*)
32708 case "$ac_dir" in
32709 .) ac_abs_builddir=`pwd`;;
32710 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32711 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32712 esac;;
32713esac
32714case $ac_abs_builddir in
32715.) ac_abs_top_builddir=${ac_top_builddir}.;;
32716*)
32717 case ${ac_top_builddir}. in
32718 .) ac_abs_top_builddir=$ac_abs_builddir;;
32719 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32720 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32721 esac;;
32722esac
32723case $ac_abs_builddir in
32724.) ac_abs_srcdir=$ac_srcdir;;
32725*)
32726 case $ac_srcdir in
32727 .) ac_abs_srcdir=$ac_abs_builddir;;
32728 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32729 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32730 esac;;
32731esac
32732case $ac_abs_builddir in
32733.) ac_abs_top_srcdir=$ac_top_srcdir;;
32734*)
32735 case $ac_top_srcdir in
32736 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32737 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32738 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32739 esac;;
32740esac
John Criswell12399a12003-09-30 15:55:44 +000032741
32742
32743 cd $ac_dir
32744
32745 # Check for guested configure; otherwise get Cygnus style configure.
32746 if test -f $ac_srcdir/configure.gnu; then
32747 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32748 elif test -f $ac_srcdir/configure; then
32749 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32750 elif test -f $ac_srcdir/configure.in; then
32751 ac_sub_configure=$ac_configure
32752 else
32753 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32754echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32755 ac_sub_configure=
32756 fi
32757
32758 # The recursion is here.
32759 if test -n "$ac_sub_configure"; then
32760 # Make the cache file name correct relative to the subdirectory.
32761 case $cache_file in
32762 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32763 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032764 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032765 esac
32766
32767 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32768echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32769 # The eval makes quoting arguments work.
32770 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032771 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32772 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032773echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32774 { (exit 1); exit 1; }; }
32775 fi
32776
32777 cd $ac_popdir
32778 done
32779fi
32780
Brian Gaekef3b24102003-11-16 18:38:14 +000032781
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032782if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032783 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32784echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032785 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32786echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32787 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32788echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32789 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32790echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32791 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32792echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032793fi