blob: e40eb306b04d4463f7913733888c1f7016ba3dc6 [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"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencerecbd2422006-06-02 23:13:18 +0000479ac_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 GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +0000968\`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencer57d37252006-04-14 03:01:27 +00001030 short | recursive ) echo "Configuration of llvm 1.8cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001038 --enable-assertions
Reid Spencer6e96d812005-12-21 03:31:53 +00001039 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001041 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001042 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001043 --enable-target Build specific host targets:
1044 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001045 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-static[=PKGS]
1049 build static libraries [default=yes]
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001052 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001057 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1058 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001059 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1062 both]
1063 --with-tags[=TAGS]
1064 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001067 CC C compiler command
1068 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001073 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080Use these variables to override the choices made by `configure' or to help
1081it to find libraries and programs with nonstandard names/locations.
1082
1083Report bugs to <llvmbugs@cs.uiuc.edu>.
1084_ACEOF
1085fi
1086
1087if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1089 ac_popdir=`pwd`
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1092 ac_builddir=.
1093
1094if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098else
1099 ac_dir_suffix= ac_top_builddir=
1100fi
1101
1102case $srcdir in
1103 .) # No --srcdir option. We are building in place.
1104 ac_srcdir=.
1105 if test -z "$ac_top_builddir"; then
1106 ac_top_srcdir=.
1107 else
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109 fi ;;
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1113 *) # Relative path.
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001117
1118# Do not use `cd foo && pwd` to compute absolute paths, because
1119# the directories may not exist.
1120case `pwd` in
1121.) ac_abs_builddir="$ac_dir";;
1122*)
1123 case "$ac_dir" in
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127 esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131*)
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_srcdir=$ac_srcdir;;
1140*)
1141 case $ac_srcdir in
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149*)
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 esac;;
1155esac
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 cd $ac_dir
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1160 echo
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1163 echo
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001166 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001167 echo
1168 $ac_configure --help
1169 else
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 fi
1172 cd $ac_popdir
1173 done
1174fi
1175
1176test -n "$ac_init_help" && exit 0
1177if $ac_init_version; then
1178 cat <<\_ACEOF
Reid Spencer57d37252006-04-14 03:01:27 +00001179llvm configure 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001180generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001181
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001183This configure script is free software; the Free Software Foundation
1184gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001185
John Criswellc0c186d2005-11-08 21:11:33 +00001186Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001187_ACEOF
1188 exit 0
1189fi
1190exec 5>config.log
1191cat >&5 <<_ACEOF
1192This file contains any messages produced by compilers while
1193running configure, to aid debugging if configure makes a mistake.
1194
Reid Spencer57d37252006-04-14 03:01:27 +00001195It was created by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001196generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001197
1198 $ $0 $@
1199
1200_ACEOF
1201{
1202cat <<_ASUNAME
1203## --------- ##
1204## Platform. ##
1205## --------- ##
1206
1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224_ASUNAME
1225
1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227for as_dir in $PATH
1228do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232done
1233
1234} >&5
1235
1236cat >&5 <<_ACEOF
1237
1238
1239## ----------- ##
1240## Core tests. ##
1241## ----------- ##
1242
1243_ACEOF
1244
1245
1246# Keep a trace of the command line.
1247# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001248# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001249# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001250# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001251ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001252ac_configure_args0=
1253ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001254ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001255ac_must_keep_next=false
1256for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001257do
John Criswell0c38eaf2003-09-10 15:17:25 +00001258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001273 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001274 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
John Criswell7a73b802003-06-30 21:59:07 +00001293done
John Criswell0c38eaf2003-09-10 15:17:25 +00001294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295$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 +00001296
1297# When interrupted or exit'd, cleanup temporary files, and complete
1298# config.log. We remove comments because anyway the quotes in there
1299# would cause problems or look ugly.
1300# WARNING: Be sure not to use single quotes in there, as some shells,
1301# such as our DU 5.0 friend, will then `close' the trap.
1302trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001306
John Criswell7a73b802003-06-30 21:59:07 +00001307 cat <<\_ASBOX
1308## ---------------- ##
1309## Cache variables. ##
1310## ---------------- ##
1311_ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314{
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 *)
1323 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001325 ;;
1326 esac;
1327}
1328 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001329
1330 cat <<\_ASBOX
1331## ----------------- ##
1332## Output variables. ##
1333## ----------------- ##
1334_ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345## ------------- ##
1346## Output files. ##
1347## ------------- ##
1348_ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001353 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001354 done | sort
1355 echo
1356 fi
1357
John Criswell7a73b802003-06-30 21:59:07 +00001358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360## ----------- ##
1361## confdefs.h. ##
1362## ----------- ##
1363_ASBOX
1364 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001365 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001372 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378done
1379ac_signal=0
1380
1381# confdefs.h avoids OS command line length limits that DEFS can exceed.
1382rm -rf conftest* confdefs.h
1383# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384echo >confdefs.h
1385
1386# Predefined preprocessor variables.
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_NAME "$PACKAGE_NAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_VERSION "$PACKAGE_VERSION"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_STRING "$PACKAGE_STRING"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410_ACEOF
1411
1412
1413# Let the site file select an alternate cache file if it wants to.
1414# Prefer explicitly selected file to automatically selected ones.
1415if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421fi
1422for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429done
1430
1431if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446fi
1447
1448# Check that the precious variables saved in the cache have kept the same
1449# value.
1450ac_cache_corrupted=false
1451for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001472echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001474echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490done
1491if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497fi
1498
1499ac_ext=c
1500ac_cpp='$CPP $CPPFLAGS'
1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001531
Misha Brukman19098e52005-05-12 22:15:34 +00001532LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533
1534
1535
1536
1537
1538
1539
John Criswell7a73b802003-06-30 21:59:07 +00001540ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001541for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
John Criswell392aaa32003-07-22 19:18:09 +00001565
Reid Spencer2706f8c2004-09-19 23:53:36 +00001566if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001569echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001571 fi
John Criswell93e1c722003-09-15 17:04:06 +00001572fi
1573
John Criswell33a911a2003-11-25 20:36:46 +00001574for i in `ls ${srcdir}/projects`
1575do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576 if test -d ${srcdir}/projects/${i} ; then
1577 case ${i} in
1578 "CVS") ;;
1579 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/sample"
1582 ;;
1583 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/Stacker"
1586 ;;
1587 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001588
Reid Spencer4d68ba22004-09-07 16:35:45 +00001589subdirs="$subdirs projects/llvm-test"
1590 ;;
1591 "llvm-reopt")
1592
1593subdirs="$subdirs projects/llvm-reopt"
1594;;
1595 "llvm-gcc")
1596
1597subdirs="$subdirs projects/llvm-gcc"
1598 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001599 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001600
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001601subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001602 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001603 "llvm-tv")
1604
1605subdirs="$subdirs projects/llvm-tv"
1606 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001607 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001608
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001609subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001610 ;;
John Criswell241116f2005-12-19 20:27:24 +00001611 "llvm-kernel")
1612
1613subdirs="$subdirs projects/llvm-kernel"
1614 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001615 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001618 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001619 esac
John Criswell33a911a2003-11-25 20:36:46 +00001620 fi
1621done
John Criswell559a6c12003-09-30 16:31:48 +00001622
John Criswell7a73b802003-06-30 21:59:07 +00001623
1624# Make sure we can run config.sub.
1625$ac_config_sub sun4 >/dev/null 2>&1 ||
1626 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628 { (exit 1); exit 1; }; }
1629
1630echo "$as_me:$LINENO: checking build system type" >&5
1631echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632if test "${ac_cv_build+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_build_alias=$build_alias
1636test -z "$ac_cv_build_alias" &&
1637 ac_cv_build_alias=`$ac_config_guess`
1638test -z "$ac_cv_build_alias" &&
1639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641 { (exit 1); exit 1; }; }
1642ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649echo "${ECHO_T}$ac_cv_build" >&6
1650build=$ac_cv_build
1651build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656echo "$as_me:$LINENO: checking host system type" >&5
1657echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658if test "${ac_cv_host+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661 ac_cv_host_alias=$host_alias
1662test -z "$ac_cv_host_alias" &&
1663 ac_cv_host_alias=$ac_cv_build_alias
1664ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667 { (exit 1); exit 1; }; }
1668
1669fi
1670echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671echo "${ECHO_T}$ac_cv_host" >&6
1672host=$ac_cv_host
1673host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678echo "$as_me:$LINENO: checking target system type" >&5
1679echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680if test "${ac_cv_target+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683 ac_cv_target_alias=$target_alias
1684test "x$ac_cv_target_alias" = "x" &&
1685 ac_cv_target_alias=$ac_cv_host_alias
1686ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689 { (exit 1); exit 1; }; }
1690
1691fi
1692echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693echo "${ECHO_T}$ac_cv_target" >&6
1694target=$ac_cv_target
1695target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700# The aliases save the names the user supplied, while $host etc.
1701# will get canonicalized.
1702test -n "$target_alias" &&
1703 test "$program_prefix$program_suffix$program_transform_name" = \
1704 NONENONEs,x,x, &&
1705 program_prefix=${target_alias}-
1706
Reid Spencer7b3e8512004-12-24 06:29:05 +00001707echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001713 *-*-aix*)
1714 llvm_cv_os_type="AIX"
1715 llvm_cv_platform_type="Unix" ;;
1716 *-*-cygwin*)
1717 llvm_cv_os_type="Cygwin"
1718 llvm_cv_platform_type="Unix" ;;
1719 *-*-darwin*)
1720 llvm_cv_os_type="Darwin"
1721 llvm_cv_platform_type="Unix" ;;
1722 *-*-freebsd*)
1723 llvm_cv_os_type="FreeBSD"
1724 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00001725 *-*-openbsd*)
1726 llvm_cv_os_type="OpenBSD"
1727 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001728 *-*-hpux*)
1729 llvm_cv_os_type="HP-UX"
1730 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001731 *-*-interix*)
1732 llvm_cv_os_type="Interix"
1733 llvm_cv_platform_type="Unix" ;;
1734 *-*-linux*)
1735 llvm_cv_os_type="Linux"
1736 llvm_cv_platform_type="Unix" ;;
1737 *-*-solaris*)
1738 llvm_cv_os_type="SunOS"
1739 llvm_cv_platform_type="Unix" ;;
1740 *-*-win32*)
1741 llvm_cv_os_type="Win32"
1742 llvm_cv_platform_type="Win32" ;;
1743 *-*-mingw*)
1744 llvm_cv_os_type="MingW"
1745 llvm_cv_platform_type="Win32" ;;
1746 *)
1747 llvm_cv_os_type="Unknown"
1748 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001749esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001751echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001753
Reid Spencer7b3e8512004-12-24 06:29:05 +00001754if test "$llvm_cv_os_type" = "Unknown" ; then
1755 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001757 { (exit 1); exit 1; }; }
1758fi
1759
Reid Spencer7b3e8512004-12-24 06:29:05 +00001760OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001761
1762
Reid Spencer7b3e8512004-12-24 06:29:05 +00001763case $llvm_cv_platform_type in
1764 Unix)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_UNIX 1
1768_ACEOF
1769
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001770 LLVM_ON_UNIX=1
1771
1772 LLVM_ON_WIN32=0
1773
Reid Spencer7b3e8512004-12-24 06:29:05 +00001774 ;;
1775 Win32)
1776
1777cat >>confdefs.h <<\_ACEOF
1778#define LLVM_ON_WIN32 1
1779_ACEOF
1780
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001781 LLVM_ON_UNIX=0
1782
1783 LLVM_ON_WIN32=1
1784
Reid Spencer7b3e8512004-12-24 06:29:05 +00001785 ;;
1786esac
1787
Reid Spencer73fb5482004-08-31 14:20:36 +00001788echo "$as_me:$LINENO: checking target architecture" >&5
1789echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001790if test "${llvm_cv_target_arch+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001794 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001795 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001796 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1797 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001798 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001799 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001800 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001801esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001802fi
1803echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001805
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001806if test "$llvm_cv_target_arch" = "Unknown" ; then
1807 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1809fi
John Criswell76595452003-07-01 22:07:39 +00001810
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001811ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001812
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001813
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001819if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843
1844fi
1845fi
1846CC=$ac_cv_prog_CC
1847if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849echo "${ECHO_T}$CC" >&6
1850else
1851 echo "$as_me:$LINENO: result: no" >&5
1852echo "${ECHO_T}no" >&6
1853fi
1854
1855fi
1856if test -z "$ac_cv_prog_CC"; then
1857 ac_ct_CC=$CC
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859set dummy gcc; ac_word=$2
1860echo "$as_me:$LINENO: checking for $ac_word" >&5
1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867else
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879done
1880done
1881
1882fi
1883fi
1884ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887echo "${ECHO_T}$ac_ct_CC" >&6
1888else
1889 echo "$as_me:$LINENO: result: no" >&5
1890echo "${ECHO_T}no" >&6
1891fi
1892
1893 CC=$ac_ct_CC
1894else
1895 CC="$ac_cv_prog_CC"
1896fi
1897
1898if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901set dummy ${ac_tool_prefix}cc; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1909else
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921done
1922done
1923
1924fi
1925fi
1926CC=$ac_cv_prog_CC
1927if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929echo "${ECHO_T}$CC" >&6
1930else
1931 echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935fi
1936if test -z "$ac_cv_prog_CC"; then
1937 ac_ct_CC=$CC
1938 # Extract the first word of "cc", so it can be a program name with args.
1939set dummy cc; ac_word=$2
1940echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947else
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 break 2
1958 fi
1959done
1960done
1961
1962fi
1963fi
1964ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967echo "${ECHO_T}$ac_ct_CC" >&6
1968else
1969 echo "$as_me:$LINENO: result: no" >&5
1970echo "${ECHO_T}no" >&6
1971fi
1972
1973 CC=$ac_ct_CC
1974else
1975 CC="$ac_cv_prog_CC"
1976fi
1977
1978fi
1979if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981set dummy cc; ac_word=$2
1982echo "$as_me:$LINENO: checking for $ac_word" >&5
1983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986else
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1989else
1990 ac_prog_rejected=no
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2000 continue
2001 fi
2002 ac_cv_prog_CC="cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
2009if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2012 shift
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2017 shift
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019 fi
2020fi
2021fi
2022fi
2023CC=$ac_cv_prog_CC
2024if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026echo "${ECHO_T}$CC" >&6
2027else
2028 echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032fi
2033if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2035 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002036 do
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058done
2059done
2060
2061fi
2062fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063CC=$ac_cv_prog_CC
2064if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002067else
2068 echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6
2070fi
2071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002073 done
2074fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075if test -z "$CC"; then
2076 ac_ct_CC=$CC
2077 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002078do
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080set dummy $ac_prog; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002096 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100done
2101done
2102
2103fi
2104fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002105ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002109else
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002114 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002115done
John Criswell7a73b802003-06-30 21:59:07 +00002116
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002117 CC=$ac_ct_CC
2118fi
2119
John Criswell7a73b802003-06-30 21:59:07 +00002120fi
2121
2122
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2128
John Criswell7a73b802003-06-30 21:59:07 +00002129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002131 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </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
2149cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002150/* confdefs.h. */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002155
John Criswell7a73b802003-06-30 21:59:07 +00002156int
2157main ()
2158{
2159
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002165ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002166# Try to create an executable without -o first, disregard a.out.
2167# It will help us diagnose broken compilers, and finding out an intuition
2168# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179# resort.
2180
2181# Be careful to initialize this variable, since it used to be cached.
2182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002184# b.out is created by i960 compilers.
2185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186do
2187 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002188 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 # This is the source file.
2193 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 # We found the default executable, but exeext='' is most
2196 # certainly right.
2197 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002198 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2203 export ac_cv_exeext
2204 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002205 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002206 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002207 esac
2208done
2209else
2210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002211sed 's/^/| /' conftest.$ac_ext >&5
2212
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002214See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002215echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002216See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002217 { (exit 77); exit 77; }; }
2218fi
2219
2220ac_exeext=$ac_cv_exeext
2221echo "$as_me:$LINENO: result: $ac_file" >&5
2222echo "${ECHO_T}$ac_file" >&6
2223
2224# Check the compiler produces executables we can run. If not, either
2225# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229# If not cross compiling, check that we can run a simple program.
2230if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 cross_compiling=no
2238 else
2239 if test "$cross_compiling" = maybe; then
2240 cross_compiling=yes
2241 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002245echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002248 { (exit 1); exit 1; }; }
2249 fi
2250 fi
2251fi
2252echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6
2254
John Criswell0c38eaf2003-09-10 15:17:25 +00002255rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002256ac_clean_files=$ac_clean_files_save
2257# Check the compiler produces executables we can run. If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6
2263
2264echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002275for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002277 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002280 export ac_cv_exeext
2281 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002282 * ) break;;
2283 esac
2284done
2285else
John Criswell0c38eaf2003-09-10 15:17:25 +00002286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002311
John Criswell7a73b802003-06-30 21:59:07 +00002312int
2313main ()
2314{
2315
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 break;;
2331 esac
2332done
2333else
2334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002341 { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002361
John Criswell7a73b802003-06-30 21:59:07 +00002362int
2363main ()
2364{
2365#ifndef __GNUC__
2366 choke me
2367#endif
2368
2369 ;
2370 return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002375 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 ac_compiler_gnu=yes
2396else
2397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002398sed 's/^/| /' conftest.$ac_ext >&5
2399
John Criswell7a73b802003-06-30 21:59:07 +00002400ac_compiler_gnu=no
2401fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002404
2405fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002418/* confdefs.h. */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002423
John Criswell7a73b802003-06-30 21:59:07 +00002424int
2425main ()
2426{
2427
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002434 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002455else
2456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002457sed 's/^/| /' conftest.$ac_ext >&5
2458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002462fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2469 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002470 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002472 fi
2473else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474 if test "$GCC" = yes; then
2475 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002476 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002478 fi
2479fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h. */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501 char **p;
2502 int i;
2503{
2504 return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508 char *s;
2509 va_list v;
2510 va_start (v,p);
2511 s = g (p, va_arg (v,int));
2512 va_end (v);
2513 return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2535 ;
2536 return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX -qlanglvl=ansi
2542# Ultrix and OSF/1 -std1
2543# HP-UX 10.20 and later -Ae
2544# HP-UX older versions -Aa -D_HPUX_SOURCE
2545# SVR4 -Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548 CC="$ac_save_CC $ac_arg"
2549 rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586 x|xno)
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589 *)
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C. Since we use `exit',
2596# in C++ we need to declare it. In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601 choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002627 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2632 'void exit (int);'
2633do
2634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002635/* confdefs.h. */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002640$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002641#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002642int
2643main ()
2644{
2645exit (42);
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002652 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002653 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 :
2673else
2674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002675sed 's/^/| /' conftest.$ac_ext >&5
2676
John Criswell7a73b802003-06-30 21:59:07 +00002677continue
2678fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002680 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002681/* confdefs.h. */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002686$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002687int
2688main ()
2689{
2690exit (42);
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002697 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 break
2718else
2719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002720sed 's/^/| /' conftest.$ac_ext >&5
2721
John Criswell7a73b802003-06-30 21:59:07 +00002722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2730fi
2731
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732else
2733 echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747if test "${ac_cv_c_bigendian+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749else
2750 # See if sys/param.h defines the BYTE_ORDER macro.
2751cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
2757#include <sys/types.h>
2758#include <sys/param.h>
2759
2760int
2761main ()
2762{
2763#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764 bogus endian macros
2765#endif
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 # It does; now see whether it defined to BIG_ENDIAN or not.
2794cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h. */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h. */
2800#include <sys/types.h>
2801#include <sys/param.h>
2802
2803int
2804main ()
2805{
2806#if BYTE_ORDER != BIG_ENDIAN
2807 not big endian
2808#endif
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 ac_cv_c_bigendian=yes
2837else
2838 echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841ac_cv_c_bigendian=no
2842fi
2843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844else
2845 echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848# It does not; compile a test program.
2849if test "$cross_compiling" = yes; then
2850 # try to guess the endianness by grepping values into an object file
2851 ac_cv_c_bigendian=unknown
2852 cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864int
2865main ()
2866{
2867 _ascii (); _ebcdic ();
2868 ;
2869 return 0;
2870}
2871_ACEOF
2872rm -f conftest.$ac_objext
2873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895 ac_cv_c_bigendian=yes
2896fi
2897if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898 if test "$ac_cv_c_bigendian" = unknown; then
2899 ac_cv_c_bigendian=no
2900 else
2901 # finding both strings is unlikely to happen, but who knows?
2902 ac_cv_c_bigendian=unknown
2903 fi
2904fi
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911else
2912 cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
2918int
2919main ()
2920{
2921 /* Are we little or big endian? From Harbison&Steele. */
2922 union
2923 {
2924 long l;
2925 char c[sizeof (long)];
2926 } u;
2927 u.l = 1;
2928 exit (u.c[sizeof (long) - 1] == 1);
2929}
2930_ACEOF
2931rm -f conftest$ac_exeext
2932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_c_bigendian=no
2943else
2944 echo "$as_me: program exited with status $ac_status" >&5
2945echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948( exit $ac_status )
2949ac_cv_c_bigendian=yes
2950fi
2951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952fi
2953fi
2954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955fi
2956echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958case $ac_cv_c_bigendian in
2959 yes)
2960 ENDIAN=big
2961 ;;
2962 no)
2963 ENDIAN=little
2964 ;;
2965 *)
2966 { { echo "$as_me:$LINENO: error: unknown endianness
2967presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968echo "$as_me: error: unknown endianness
2969presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970 { (exit 1); exit 1; }; } ;;
2971esac
2972
2973
Reid Spencer4ebf3312006-04-08 01:41:26 +00002974if test -d "CVS" -o -d "${srcdir}/CVS"; then
Reid Spencer54d14482006-04-07 16:01:51 +00002975 cvsbuild="yes"
2976 optimize="no"
Reid Spencer54d14482006-04-07 16:01:51 +00002977 CVSBUILD=CVSBUILD=1
2978
2979else
2980 cvsbuild="no"
2981 optimize="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00002982fi
2983
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002984
2985# Check whether --enable-optimized or --disable-optimized was given.
2986if test "${enable_optimized+set}" = set; then
2987 enableval="$enable_optimized"
2988
2989else
Reid Spencer54d14482006-04-07 16:01:51 +00002990 enableval=$optimize
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002991fi;
2992if test ${enableval} = "no" ; then
2993 ENABLE_OPTIMIZED=
2994
2995else
2996 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997
2998fi
2999
Reid Spencer54d14482006-04-07 16:01:51 +00003000# Check whether --enable-assertions or --disable-assertions was given.
3001if test "${enable_assertions+set}" = set; then
3002 enableval="$enable_assertions"
3003
3004else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003005 enableval="yes"
Reid Spencer54d14482006-04-07 16:01:51 +00003006fi;
Reid Spencerc28ccd82006-04-09 20:42:14 +00003007if test ${enableval} = "yes" ; then
3008 DISABLE_ASSERTIONS=
Reid Spencer54d14482006-04-07 16:01:51 +00003009
3010else
Reid Spencerc28ccd82006-04-09 20:42:14 +00003011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
Reid Spencer54d14482006-04-07 16:01:51 +00003012
3013fi
3014
Reid Spencer6e96d812005-12-21 03:31:53 +00003015# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016if test "${enable_debug_runtime+set}" = set; then
3017 enableval="$enable_debug_runtime"
3018
3019else
3020 enableval=no
3021fi;
3022if test ${enableval} = "no" ; then
3023 DEBUG_RUNTIME=
3024
3025else
3026 DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027
3028fi
3029
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003030# Check whether --enable-jit or --disable-jit was given.
3031if test "${enable_jit+set}" = set; then
3032 enableval="$enable_jit"
3033
3034else
3035 enableval=default
3036fi;
3037if test ${enableval} = "no"
3038then
3039 JIT=
3040
3041else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003042 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003043 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003044 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003045 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003046 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003047 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003048 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003049 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003050 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003051 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003052 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003053 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003054 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003055 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003056 ;;
3057 esac
3058fi
3059
Reid Spencer1f319422004-11-29 04:56:35 +00003060# Check whether --enable-doxygen or --disable-doxygen was given.
3061if test "${enable_doxygen+set}" = set; then
3062 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003063
Reid Spencer1f319422004-11-29 04:56:35 +00003064else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003065 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003066fi;
3067case "$enableval" in
3068 yes) ENABLE_DOXYGEN=1
3069 ;;
3070 no) ENABLE_DOXYGEN=0
3071 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003072 default) ENABLE_DOXYGEN=0
3073 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003074 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076 { (exit 1); exit 1; }; } ;;
3077esac
3078
Reid Spencer0a262ba2005-08-24 10:07:20 +00003079# Check whether --enable-threads or --disable-threads was given.
3080if test "${enable_threads+set}" = set; then
3081 enableval="$enable_threads"
3082
3083else
3084 enableval=yes
3085fi;
3086case "$enableval" in
3087 yes) ENABLE_THREADS=1
3088 ;;
3089 no) ENABLE_THREADS=0
3090 ;;
3091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093 { (exit 1); exit 1; }; } ;;
3094esac
3095
3096cat >>confdefs.h <<_ACEOF
3097#define ENABLE_THREADS $ENABLE_THREADS
3098_ACEOF
3099
3100
Reid Spencer945de9b2005-04-22 07:27:28 +00003101TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003102# Check whether --enable-targets or --disable-targets was given.
3103if test "${enable_targets+set}" = set; then
3104 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003105
3106else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003107 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003108fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003109case "$enableval" in
Rafael Espindola7bc59bc2006-05-14 22:18:28 +00003110 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003111 host-only)
3112 case "$llvm_cv_target_arch" in
3113 x86) TARGETS_TO_BUILD="X86" ;;
3114 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003115 Sparc) TARGETS_TO_BUILD="Sparc" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003116 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3118 IA64) TARGETS_TO_BUILD="IA64" ;;
3119 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003120echo "$as_me: error: Can not set target to build" >&2;}
3121 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003122 esac
3123 ;;
3124 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125 case "$a_target" in
3126 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner7df583e2006-04-20 17:01:19 +00003128 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003129 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003132 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134 { (exit 1); exit 1; }; } ;;
3135 esac
3136 done
3137 ;;
3138esac
Reid Spencer675f0922005-04-22 17:06:18 +00003139TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003140TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141
3142
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003143
Reid Spencer59473af2004-12-25 07:31:29 +00003144# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145if test "${with_llvmgccdir+set}" = set; then
3146 withval="$with_llvmgccdir"
3147
3148else
3149 withval=default
3150fi;
3151case "$withval" in
3152 default) WITH_LLVMGCCDIR=default ;;
Reid Spencer0fa145d2006-05-21 10:40:20 +00003153 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Reid Spencer59473af2004-12-25 07:31:29 +00003154 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156 { (exit 1); exit 1; }; } ;;
3157esac
3158
3159
Reid Spencer945de9b2005-04-22 07:27:28 +00003160
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003161ac_ext=c
3162ac_cpp='$CPP $CPPFLAGS'
3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168# On Suns, sometimes $CPP names a directory.
3169if test -n "$CPP" && test -d "$CPP"; then
3170 CPP=
3171fi
3172if test -z "$CPP"; then
3173 if test "${ac_cv_prog_CPP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 # Double quotes because CPP needs to be expanded
3177 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178 do
3179 ac_preproc_ok=false
3180for ac_c_preproc_warn_flag in '' yes
3181do
3182 # Use a header file that comes with gcc, so configuring glibc
3183 # with a fresh cross-compiler works.
3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185 # <limits.h> exists even on freestanding compilers.
3186 # On the NeXT, cc -E runs the code through the compiler's parser,
3187 # not just through cpp. "Syntax error" is here to catch this case.
3188 cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h. */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h. */
3194#ifdef __STDC__
3195# include <limits.h>
3196#else
3197# include <assert.h>
3198#endif
3199 Syntax error
3200_ACEOF
3201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212 else
3213 ac_cpp_err=
3214 fi
3215else
3216 ac_cpp_err=yes
3217fi
3218if test -z "$ac_cpp_err"; then
3219 :
3220else
3221 echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 # Broken: fails on valid input.
3225continue
3226fi
3227rm -f conftest.err conftest.$ac_ext
3228
3229 # OK, works on sane cases. Now check whether non-existent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h. */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h. */
3237#include <ac_nonexistent.h>
3238_ACEOF
3239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3252 fi
3253else
3254 ac_cpp_err=yes
3255fi
3256if test -z "$ac_cpp_err"; then
3257 # Broken: success on invalid input.
3258continue
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 # Passes both tests.
3264ac_preproc_ok=:
3265break
3266fi
3267rm -f conftest.err conftest.$ac_ext
3268
3269done
3270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271rm -f conftest.err conftest.$ac_ext
3272if $ac_preproc_ok; then
3273 break
3274fi
3275
3276 done
3277 ac_cv_prog_CPP=$CPP
3278
3279fi
3280 CPP=$ac_cv_prog_CPP
3281else
3282 ac_cv_prog_CPP=$CPP
3283fi
3284echo "$as_me:$LINENO: result: $CPP" >&5
3285echo "${ECHO_T}$CPP" >&6
3286ac_preproc_ok=false
3287for ac_c_preproc_warn_flag in '' yes
3288do
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#ifdef __STDC__
3302# include <limits.h>
3303#else
3304# include <assert.h>
3305#endif
3306 Syntax error
3307_ACEOF
3308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319 else
3320 ac_cpp_err=
3321 fi
3322else
3323 ac_cpp_err=yes
3324fi
3325if test -z "$ac_cpp_err"; then
3326 :
3327else
3328 echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 # Broken: fails on valid input.
3332continue
3333fi
3334rm -f conftest.err conftest.$ac_ext
3335
3336 # OK, works on sane cases. Now check whether non-existent headers
3337 # can be detected and how.
3338 cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h. */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h. */
3344#include <ac_nonexistent.h>
3345_ACEOF
3346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null; then
3354 if test -s conftest.err; then
3355 ac_cpp_err=$ac_c_preproc_warn_flag
3356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 else
3358 ac_cpp_err=
3359 fi
3360else
3361 ac_cpp_err=yes
3362fi
3363if test -z "$ac_cpp_err"; then
3364 # Broken: success on invalid input.
3365continue
3366else
3367 echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 # Passes both tests.
3371ac_preproc_ok=:
3372break
3373fi
3374rm -f conftest.err conftest.$ac_ext
3375
3376done
3377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378rm -f conftest.err conftest.$ac_ext
3379if $ac_preproc_ok; then
3380 :
3381else
3382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383See \`config.log' for more details." >&5
3384echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3387fi
3388
John Criswell7a73b802003-06-30 21:59:07 +00003389ac_ext=c
3390ac_cpp='$CPP $CPPFLAGS'
3391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400if test -n "$ac_tool_prefix"; then
3401 for ac_prog in gcc
3402 do
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405echo "$as_me:$LINENO: checking for $ac_word" >&5
3406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412else
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
3415do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424done
3425done
3426
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
3431 echo "$as_me:$LINENO: result: $CC" >&5
3432echo "${ECHO_T}$CC" >&6
3433else
3434 echo "$as_me:$LINENO: result: no" >&5
3435echo "${ECHO_T}no" >&6
3436fi
3437
3438 test -n "$CC" && break
3439 done
3440fi
3441if test -z "$CC"; then
3442 ac_ct_CC=$CC
3443 for ac_prog in gcc
3444do
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446set dummy $ac_prog; ac_word=$2
3447echo "$as_me:$LINENO: checking for $ac_word" >&5
3448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_CC="$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466done
3467done
3468
3469fi
3470fi
3471ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472if test -n "$ac_ct_CC"; then
3473 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474echo "${ECHO_T}$ac_ct_CC" >&6
3475else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478fi
3479
3480 test -n "$ac_ct_CC" && break
3481done
3482
3483 CC=$ac_ct_CC
3484fi
3485
3486
John Criswell0c38eaf2003-09-10 15:17:25 +00003487test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488See \`config.log' for more details." >&5
3489echo "$as_me: error: no acceptable C compiler found in \$PATH
3490See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003491 { (exit 1); exit 1; }; }
3492
3493# Provide some information about the compiler.
3494echo "$as_me:$LINENO:" \
3495 "checking for C compiler version" >&5
3496ac_compiler=`set X $ac_compile; echo $2`
3497{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498 (eval $ac_compiler --version </dev/null >&5) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }
3502{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503 (eval $ac_compiler -v </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
3513echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003524
John Criswell7a73b802003-06-30 21:59:07 +00003525int
3526main ()
3527{
3528#ifndef __GNUC__
3529 choke me
3530#endif
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003538 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003539 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_compiler_gnu=yes
3559else
3560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003561sed 's/^/| /' conftest.$ac_ext >&5
3562
John Criswell7a73b802003-06-30 21:59:07 +00003563ac_compiler_gnu=no
3564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003566ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568fi
3569echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571GCC=`test $ac_compiler_gnu = yes && echo yes`
3572ac_test_CFLAGS=${CFLAGS+set}
3573ac_save_CFLAGS=$CFLAGS
3574CFLAGS="-g"
3575echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577if test "${ac_cv_prog_cc_g+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003586
John Criswell7a73b802003-06-30 21:59:07 +00003587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003597 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_prog_cc_g=yes
3618else
3619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003620sed 's/^/| /' conftest.$ac_ext >&5
3621
John Criswell7a73b802003-06-30 21:59:07 +00003622ac_cv_prog_cc_g=no
3623fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003625fi
3626echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3632 CFLAGS="-g -O2"
3633 else
3634 CFLAGS="-g"
3635 fi
3636else
3637 if test "$GCC" = yes; then
3638 CFLAGS="-O2"
3639 else
3640 CFLAGS=
3641 fi
3642fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003643echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648 ac_cv_prog_cc_stdc=no
3649ac_save_CC=$CC
3650cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656#include <stdarg.h>
3657#include <stdio.h>
3658#include <sys/types.h>
3659#include <sys/stat.h>
3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661struct buf { int x; };
3662FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663static char *e (p, i)
3664 char **p;
3665 int i;
3666{
3667 return p[i];
3668}
3669static char *f (char * (*g) (char **, int), char **p, ...)
3670{
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3677}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003678
3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std1 is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std1. */
3686int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
John Criswell0c38eaf2003-09-10 15:17:25 +00003688int test (int i, double x);
3689struct s1 {int (*f) (int a);};
3690struct s2 {int (*f) (double a);};
3691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692int argc;
3693char **argv;
3694int
3695main ()
3696{
3697return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702# Don't try gcc -ansi; that turns off useful extensions and
3703# breaks some systems' header files.
3704# AIX -qlanglvl=ansi
3705# Ultrix and OSF/1 -std1
3706# HP-UX 10.20 and later -Ae
3707# HP-UX older versions -Aa -D_HPUX_SOURCE
3708# SVR4 -Xc -D__EXTENSIONS__
3709for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710do
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003714 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003715 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_cc_stdc=$ac_arg
3735break
3736else
3737 echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003741rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003742done
3743rm -f conftest.$ac_ext conftest.$ac_objext
3744CC=$ac_save_CC
3745
3746fi
3747
3748case "x$ac_cv_prog_cc_stdc" in
3749 x|xno)
3750 echo "$as_me:$LINENO: result: none needed" >&5
3751echo "${ECHO_T}none needed" >&6 ;;
3752 *)
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755 CC="$CC $ac_cv_prog_cc_stdc" ;;
3756esac
3757
John Criswell7a73b802003-06-30 21:59:07 +00003758# Some people use a C++ compiler to compile C. Since we use `exit',
3759# in C++ we need to declare it. In case someone uses the same compiler
3760# for both compiling C and C++ we need to have the C++ compiler decide
3761# the declaration of exit, since it's the most demanding environment.
3762cat >conftest.$ac_ext <<_ACEOF
3763#ifndef __cplusplus
3764 choke me
3765#endif
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003769 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003790 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003791 'extern "C" void std::exit (int) throw (); using std::exit;' \
3792 'extern "C" void std::exit (int); using std::exit;' \
3793 'extern "C" void exit (int) throw ();' \
3794 'extern "C" void exit (int);' \
3795 'void exit (int);'
3796do
3797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003803$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003804#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003805int
3806main ()
3807{
3808exit (42);
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext
3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003815 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003816 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 :
3836else
3837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003838sed 's/^/| /' conftest.$ac_ext >&5
3839
John Criswell7a73b802003-06-30 21:59:07 +00003840continue
3841fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003843 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003849$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003850int
3851main ()
3852{
3853exit (42);
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003860 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 break
3881else
3882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003883sed 's/^/| /' conftest.$ac_ext >&5
3884
John Criswell7a73b802003-06-30 21:59:07 +00003885fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003887done
3888rm -f conftest*
3889if test -n "$ac_declaration"; then
3890 echo '#ifdef __cplusplus' >>confdefs.h
3891 echo $ac_declaration >>confdefs.h
3892 echo '#endif' >>confdefs.h
3893fi
3894
3895else
3896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003897sed 's/^/| /' conftest.$ac_ext >&5
3898
John Criswell7a73b802003-06-30 21:59:07 +00003899fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003907ac_ext=cc
3908ac_cpp='$CXXCPP $CPPFLAGS'
3909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++
3914 do
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003927do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937done
3938
3939fi
3940fi
3941CXX=$ac_cv_prog_CXX
3942if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944echo "${ECHO_T}$CXX" >&6
3945else
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
3948fi
3949
3950 test -n "$CXX" && break
3951 done
3952fi
3953if test -z "$CXX"; then
3954 ac_ct_CXX=$CXX
3955 for ac_prog in $CCC g++
3956do
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958set dummy $ac_prog; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979done
3980
3981fi
3982fi
3983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986echo "${ECHO_T}$ac_ct_CXX" >&6
3987else
3988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990fi
3991
3992 test -n "$ac_ct_CXX" && break
3993done
3994test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996 CXX=$ac_ct_CXX
3997fi
3998
3999
4000# Provide some information about the compiler.
4001echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003ac_compiler=`set X $ac_compile; echo $2`
4004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </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
4020echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
John Criswell7a73b802003-06-30 21:59:07 +00004025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004031
4032int
4033main ()
4034{
4035#ifndef __GNUC__
4036 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004037#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004038
4039 ;
4040 return 0;
4041}
John Criswell7a73b802003-06-30 21:59:07 +00004042_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004046 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004047 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_compiler_gnu=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070ac_compiler_gnu=no
4071fi
4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075fi
4076echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078GXX=`test $ac_compiler_gnu = yes && echo yes`
4079ac_test_CXXFLAGS=${CXXFLAGS+set}
4080ac_save_CXXFLAGS=$CXXFLAGS
4081CXXFLAGS="-g"
4082echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_prog_cxx_g=no
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4139 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004140 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004141 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004142 fi
4143else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004144 if test "$GXX" = yes; then
4145 CXXFLAGS="-O2"
4146 else
4147 CXXFLAGS=
4148 fi
John Criswell7a73b802003-06-30 21:59:07 +00004149fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004150for ac_declaration in \
4151 '' \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4156 'void exit (int);'
4157do
4158 cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164$ac_declaration
4165#include <stdlib.h>
4166int
4167main ()
4168{
4169exit (42);
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004196 :
4197else
4198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004199sed 's/^/| /' conftest.$ac_ext >&5
4200
John Criswell7a73b802003-06-30 21:59:07 +00004201continue
4202fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004204 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004210$ac_declaration
4211int
4212main ()
4213{
4214exit (42);
4215 ;
4216 return 0;
4217}
John Criswell7a73b802003-06-30 21:59:07 +00004218_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004219rm -f conftest.$ac_objext
4220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004222 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004223 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004241 break
John Criswell7a73b802003-06-30 21:59:07 +00004242else
4243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004244sed 's/^/| /' conftest.$ac_ext >&5
4245
John Criswell7a73b802003-06-30 21:59:07 +00004246fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004248done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004249rm -f conftest*
4250if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004254fi
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
John Criswell7a73b802003-06-30 21:59:07 +00004262echo "$as_me:$LINENO: checking " >&5
4263echo $ECHO_N "checking ... $ECHO_C" >&6
4264if test "${ac_cv_has_flex+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 for ac_prog in flex lex
4268do
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270set dummy $ac_prog; ac_word=$2
4271echo "$as_me:$LINENO: checking for $ac_word" >&5
4272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273if test "${ac_cv_prog_LEX+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 if test -n "$LEX"; then
4277 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278else
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_LEX="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290done
4291done
4292
4293fi
4294fi
4295LEX=$ac_cv_prog_LEX
4296if test -n "$LEX"; then
4297 echo "$as_me:$LINENO: result: $LEX" >&5
4298echo "${ECHO_T}$LEX" >&6
4299else
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302fi
4303
4304 test -n "$LEX" && break
4305done
4306test -n "$LEX" || LEX=":"
4307
4308if test -z "$LEXLIB"
4309then
4310 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315 ac_check_lib_save_LIBS=$LIBS
4316LIBS="-lfl $LIBS"
4317cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004318/* confdefs.h. */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004323
4324/* Override any gcc2 internal prototype to avoid an error. */
4325#ifdef __cplusplus
4326extern "C"
4327#endif
4328/* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4330char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004331int
4332main ()
4333{
4334yywrap ();
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext conftest$ac_exeext
4340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004341 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_lib_fl_yywrap=yes
4362else
4363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004364sed 's/^/| /' conftest.$ac_ext >&5
4365
John Criswell7a73b802003-06-30 21:59:07 +00004366ac_cv_lib_fl_yywrap=no
4367fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004368rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004370LIBS=$ac_check_lib_save_LIBS
4371fi
4372echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374if test $ac_cv_lib_fl_yywrap = yes; then
4375 LEXLIB="-lfl"
4376else
4377 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 ac_check_lib_save_LIBS=$LIBS
4383LIBS="-ll $LIBS"
4384cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004385/* confdefs.h. */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004390
4391/* Override any gcc2 internal prototype to avoid an error. */
4392#ifdef __cplusplus
4393extern "C"
4394#endif
4395/* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004398int
4399main ()
4400{
4401yywrap ();
4402 ;
4403 return 0;
4404}
4405_ACEOF
4406rm -f conftest.$ac_objext conftest$ac_exeext
4407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004408 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_lib_l_yywrap=yes
4429else
4430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004431sed 's/^/| /' conftest.$ac_ext >&5
4432
John Criswell7a73b802003-06-30 21:59:07 +00004433ac_cv_lib_l_yywrap=no
4434fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004435rm -f conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004437LIBS=$ac_check_lib_save_LIBS
4438fi
4439echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441if test $ac_cv_lib_l_yywrap = yes; then
4442 LEXLIB="-ll"
4443fi
4444
4445fi
4446
4447fi
4448
4449if test "x$LEX" != "x:"; then
4450 echo "$as_me:$LINENO: checking lex output file root" >&5
4451echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452if test "${ac_cv_prog_lex_root+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455 # The minimal lex program is just a single line: %%. But some broken lexes
4456# (Solaris, I think it was) want two %% lines, so accommodate them.
4457cat >conftest.l <<_ACEOF
4458%%
4459%%
4460_ACEOF
4461{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462 (eval $LEX conftest.l) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }
4466if test -f lex.yy.c; then
4467 ac_cv_prog_lex_root=lex.yy
4468elif test -f lexyy.c; then
4469 ac_cv_prog_lex_root=lexyy
4470else
4471 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473 { (exit 1); exit 1; }; }
4474fi
4475fi
4476echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478rm -f conftest.l
4479LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480
4481echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 # POSIX says lex can declare yytext either as a pointer or an array; the
4487# default is implementation-dependent. Figure out which it is, since
4488# not all implementations provide the %pointer and %array declarations.
4489ac_cv_prog_lex_yytext_pointer=no
4490echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491ac_save_LIBS=$LIBS
4492LIBS="$LIBS $LEXLIB"
4493cat >conftest.$ac_ext <<_ACEOF
4494`cat $LEX_OUTPUT_ROOT.c`
4495_ACEOF
4496rm -f conftest.$ac_objext conftest$ac_exeext
4497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004498 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_prog_lex_yytext_pointer=yes
4519else
4520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004521sed 's/^/| /' conftest.$ac_ext >&5
4522
John Criswell7a73b802003-06-30 21:59:07 +00004523fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004524rm -f conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004526LIBS=$ac_save_LIBS
4527rm -f "${LEX_OUTPUT_ROOT}.c"
4528
4529fi
4530echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533
4534cat >>confdefs.h <<\_ACEOF
4535#define YYTEXT_POINTER 1
4536_ACEOF
4537
4538fi
4539
4540fi
4541
4542fi
4543echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544echo "${ECHO_T}$ac_cv_has_flex" >&6
4545if test "$LEX" != "flex"; then
4546 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547echo "$as_me: error: flex not found but required" >&2;}
4548 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004549else
4550 FLEX=flex
4551
John Criswell7a73b802003-06-30 21:59:07 +00004552fi
4553
4554echo "$as_me:$LINENO: checking " >&5
4555echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004556if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 for ac_prog in 'bison -y' byacc
4560do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
4563echo "$as_me:$LINENO: checking for $ac_word" >&5
4564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565if test "${ac_cv_prog_YACC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568 if test -n "$YACC"; then
4569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_YACC="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582done
4583done
4584
4585fi
4586fi
4587YACC=$ac_cv_prog_YACC
4588if test -n "$YACC"; then
4589 echo "$as_me:$LINENO: result: $YACC" >&5
4590echo "${ECHO_T}$YACC" >&6
4591else
4592 echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594fi
4595
4596 test -n "$YACC" && break
4597done
4598test -n "$YACC" || YACC="yacc"
4599
John Criswell7a73b802003-06-30 21:59:07 +00004600fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004601echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004603if test "$YACC" != "bison -y"; then
4604 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605echo "$as_me: error: bison not found but required" >&2;}
4606 { (exit 1); exit 1; }; }
4607else
Brian Gaeke12810632004-01-13 06:52:10 +00004608 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004609
4610fi
4611
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004612echo "$as_me:$LINENO: checking for GNU make" >&5
4613echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004617 llvm_cv_gnu_make_command=''
4618 for a in "$MAKE" make gmake gnumake ; do
4619 if test -z "$a" ; then continue ; fi ;
4620 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621 then
4622 llvm_cv_gnu_make_command=$a ;
4623 break;
John Criswell47fdd832003-07-14 16:52:07 +00004624 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004625 done
John Criswell7a73b802003-06-30 21:59:07 +00004626fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004627echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4630 ifGNUmake='' ;
4631 else
4632 ifGNUmake='#' ;
4633 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634echo "${ECHO_T}\"Not found\"" >&6;
4635 fi
John Criswell7a73b802003-06-30 21:59:07 +00004636
John Criswell7a73b802003-06-30 21:59:07 +00004637
4638echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640LN_S=$as_ln_s
4641if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
4644else
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646echo "${ECHO_T}no, using $LN_S" >&6
4647fi
4648
Reid Spencer8a2d4712004-12-16 17:48:14 +00004649# Extract the first word of "cmp", so it can be a program name with args.
4650set dummy cmp; ac_word=$2
4651echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653if test "${ac_cv_path_CMP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 case $CMP in
4657 [\\/]* | ?:[\\/]*)
4658 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673done
4674
4675 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4676 ;;
4677esac
4678fi
4679CMP=$ac_cv_path_CMP
4680
4681if test -n "$CMP"; then
4682 echo "$as_me:$LINENO: result: $CMP" >&5
4683echo "${ECHO_T}$CMP" >&6
4684else
4685 echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
4687fi
4688
4689# Extract the first word of "cp", so it can be a program name with args.
4690set dummy cp; ac_word=$2
4691echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693if test "${ac_cv_path_CP+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 case $CP in
4697 [\\/]* | ?:[\\/]*)
4698 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699 ;;
4700 *)
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714
4715 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4716 ;;
4717esac
4718fi
4719CP=$ac_cv_path_CP
4720
4721if test -n "$CP"; then
4722 echo "$as_me:$LINENO: result: $CP" >&5
4723echo "${ECHO_T}$CP" >&6
4724else
4725 echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
4727fi
4728
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004729# Extract the first word of "date", so it can be a program name with args.
4730set dummy date; ac_word=$2
4731echo "$as_me:$LINENO: checking for $ac_word" >&5
4732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004736 case $DATE in
4737 [\\/]* | ?:[\\/]*)
4738 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004739 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004740 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004751 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004752done
4753done
John Criswell7a73b802003-06-30 21:59:07 +00004754
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004755 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004756 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004757esac
John Criswell7a73b802003-06-30 21:59:07 +00004758fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004759DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004760
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004761if test -n "$DATE"; then
4762 echo "$as_me:$LINENO: result: $DATE" >&5
4763echo "${ECHO_T}$DATE" >&6
4764else
4765 echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
4767fi
John Criswell7a73b802003-06-30 21:59:07 +00004768
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004769# Extract the first word of "find", so it can be a program name with args.
4770set dummy find; ac_word=$2
4771echo "$as_me:$LINENO: checking for $ac_word" >&5
4772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004776 case $FIND in
4777 [\\/]* | ?:[\\/]*)
4778 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4779 ;;
4780 *)
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792done
4793done
4794
4795 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796 ;;
4797esac
4798fi
4799FIND=$ac_cv_path_FIND
4800
4801if test -n "$FIND"; then
4802 echo "$as_me:$LINENO: result: $FIND" >&5
4803echo "${ECHO_T}$FIND" >&6
4804else
4805 echo "$as_me:$LINENO: result: no" >&5
4806echo "${ECHO_T}no" >&6
4807fi
4808
4809# Extract the first word of "grep", so it can be a program name with args.
4810set dummy grep; ac_word=$2
4811echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813if test "${ac_cv_path_GREP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 case $GREP in
4817 [\\/]* | ?:[\\/]*)
4818 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4819 ;;
4820 *)
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
4833done
4834
4835 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836 ;;
4837esac
4838fi
4839GREP=$ac_cv_path_GREP
4840
4841if test -n "$GREP"; then
4842 echo "$as_me:$LINENO: result: $GREP" >&5
4843echo "${ECHO_T}$GREP" >&6
4844else
4845 echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6
4847fi
4848
4849# Extract the first word of "mkdir", so it can be a program name with args.
4850set dummy mkdir; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853if test "${ac_cv_path_MKDIR+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 case $MKDIR in
4857 [\\/]* | ?:[\\/]*)
4858 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4859 ;;
4860 *)
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872done
4873done
4874
4875 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876 ;;
4877esac
4878fi
4879MKDIR=$ac_cv_path_MKDIR
4880
4881if test -n "$MKDIR"; then
4882 echo "$as_me:$LINENO: result: $MKDIR" >&5
4883echo "${ECHO_T}$MKDIR" >&6
4884else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887fi
4888
4889# Extract the first word of "mv", so it can be a program name with args.
4890set dummy mv; ac_word=$2
4891echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893if test "${ac_cv_path_MV+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 case $MV in
4897 [\\/]* | ?:[\\/]*)
4898 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4899 ;;
4900 *)
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912done
4913done
4914
4915 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916 ;;
4917esac
4918fi
4919MV=$ac_cv_path_MV
4920
4921if test -n "$MV"; then
4922 echo "$as_me:$LINENO: result: $MV" >&5
4923echo "${ECHO_T}$MV" >&6
4924else
4925 echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
4927fi
4928
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004929if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932echo "$as_me:$LINENO: checking for $ac_word" >&5
4933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934if test "${ac_cv_prog_RANLIB+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951done
4952done
4953
4954fi
4955fi
4956RANLIB=$ac_cv_prog_RANLIB
4957if test -n "$RANLIB"; then
4958 echo "$as_me:$LINENO: result: $RANLIB" >&5
4959echo "${ECHO_T}$RANLIB" >&6
4960else
4961 echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963fi
4964
4965fi
4966if test -z "$ac_cv_prog_RANLIB"; then
4967 ac_ct_RANLIB=$RANLIB
4968 # Extract the first word of "ranlib", so it can be a program name with args.
4969set dummy ranlib; ac_word=$2
4970echo "$as_me:$LINENO: checking for $ac_word" >&5
4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 if test -n "$ac_ct_RANLIB"; then
4976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_RANLIB="ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989done
4990done
4991
4992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993fi
4994fi
4995ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996if test -n "$ac_ct_RANLIB"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002fi
5003
5004 RANLIB=$ac_ct_RANLIB
5005else
5006 RANLIB="$ac_cv_prog_RANLIB"
5007fi
5008
5009# Extract the first word of "rm", so it can be a program name with args.
5010set dummy rm; ac_word=$2
5011echo "$as_me:$LINENO: checking for $ac_word" >&5
5012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013if test "${ac_cv_path_RM+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016 case $RM in
5017 [\\/]* | ?:[\\/]*)
5018 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5019 ;;
5020 *)
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032done
5033done
5034
5035 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5036 ;;
5037esac
5038fi
5039RM=$ac_cv_path_RM
5040
5041if test -n "$RM"; then
5042 echo "$as_me:$LINENO: result: $RM" >&5
5043echo "${ECHO_T}$RM" >&6
5044else
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047fi
5048
5049# Extract the first word of "sed", so it can be a program name with args.
5050set dummy sed; ac_word=$2
5051echo "$as_me:$LINENO: checking for $ac_word" >&5
5052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053if test "${ac_cv_path_SED+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055else
5056 case $SED in
5057 [\\/]* | ?:[\\/]*)
5058 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5059 ;;
5060 *)
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072done
5073done
5074
5075 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076 ;;
5077esac
5078fi
5079SED=$ac_cv_path_SED
5080
5081if test -n "$SED"; then
5082 echo "$as_me:$LINENO: result: $SED" >&5
5083echo "${ECHO_T}$SED" >&6
5084else
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
5087fi
5088
5089# Extract the first word of "tar", so it can be a program name with args.
5090set dummy tar; ac_word=$2
5091echo "$as_me:$LINENO: checking for $ac_word" >&5
5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093if test "${ac_cv_path_TAR+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 case $TAR in
5097 [\\/]* | ?:[\\/]*)
5098 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5099 ;;
5100 *)
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112done
5113done
5114
5115 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5116 ;;
5117esac
5118fi
5119TAR=$ac_cv_path_TAR
5120
5121if test -n "$TAR"; then
5122 echo "$as_me:$LINENO: result: $TAR" >&5
5123echo "${ECHO_T}$TAR" >&6
5124else
5125 echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6
5127fi
5128
Reid Spencerecbd2422006-06-02 23:13:18 +00005129
Reid Spencer8a2246f2005-07-13 03:20:14 +00005130# Extract the first word of "Graphviz", so it can be a program name with args.
5131set dummy Graphviz; ac_word=$2
5132echo "$as_me:$LINENO: checking for $ac_word" >&5
5133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137 case $GRAPHVIZ in
5138 [\\/]* | ?:[\\/]*)
5139 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5140 ;;
5141 *)
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153done
5154done
5155
Reid Spencerc232a652005-07-14 02:25:12 +00005156 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005157 ;;
5158esac
5159fi
5160GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5161
5162if test -n "$GRAPHVIZ"; then
5163 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5164echo "${ECHO_T}$GRAPHVIZ" >&6
5165else
5166 echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168fi
5169
Reid Spencerc232a652005-07-14 02:25:12 +00005170if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005171
5172cat >>confdefs.h <<\_ACEOF
5173#define HAVE_GRAPHVIZ 1
5174_ACEOF
5175
Reid Spencerc232a652005-07-14 02:25:12 +00005176
Reid Spencerbe130282005-07-14 05:19:12 +00005177cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005178#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5179_ACEOF
5180
Reid Spencer8a2246f2005-07-13 03:20:14 +00005181fi
Reid Spencerbe130282005-07-14 05:19:12 +00005182# Extract the first word of "gv", so it can be a program name with args.
5183set dummy gv; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_path_GV+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 case $GV in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5192 ;;
5193 *)
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206done
5207
5208 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5209 ;;
5210esac
5211fi
5212GV=$ac_cv_path_GV
5213
5214if test -n "$GV"; then
5215 echo "$as_me:$LINENO: result: $GV" >&5
5216echo "${ECHO_T}$GV" >&6
5217else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
Misha Brukmanf83d4062005-11-01 21:00:49 +00005222if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005223
5224cat >>confdefs.h <<\_ACEOF
5225#define HAVE_GV 1
5226_ACEOF
5227
5228
5229cat >>confdefs.h <<_ACEOF
5230#define LLVM_PATH_GV "$GV"
5231_ACEOF
5232
5233fi
Reid Spencerecbd2422006-06-02 23:13:18 +00005234# Extract the first word of "dotty", so it can be a program name with args.
5235set dummy dotty; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_path_DOTTY+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 case $DOTTY in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5244 ;;
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257done
5258done
5259
5260 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5261 ;;
5262esac
5263fi
5264DOTTY=$ac_cv_path_DOTTY
5265
5266if test -n "$DOTTY"; then
5267 echo "$as_me:$LINENO: result: $DOTTY" >&5
5268echo "${ECHO_T}$DOTTY" >&6
5269else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272fi
5273
5274if test "$DOTTY" != "echo dotty" ; then
5275
5276cat >>confdefs.h <<\_ACEOF
5277#define HAVE_DOTTY 1
5278_ACEOF
5279
5280
5281cat >>confdefs.h <<_ACEOF
5282#define LLVM_PATH_DOTTY "$DOTTY"
5283_ACEOF
5284
5285fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005286
Reid Spencerb195d9d2006-03-23 23:21:29 +00005287
5288# Extract the first word of "perl", so it can be a program name with args.
5289set dummy perl; ac_word=$2
5290echo "$as_me:$LINENO: checking for $ac_word" >&5
5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292if test "${ac_cv_path_PERL+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295 case $PERL in
5296 [\\/]* | ?:[\\/]*)
5297 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5298 ;;
5299 *)
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311done
5312done
5313
5314 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5315 ;;
5316esac
5317fi
5318PERL=$ac_cv_path_PERL
5319
5320if test -n "$PERL"; then
5321 echo "$as_me:$LINENO: result: $PERL" >&5
5322echo "${ECHO_T}$PERL" >&6
5323else
5324 echo "$as_me:$LINENO: result: no" >&5
5325echo "${ECHO_T}no" >&6
5326fi
5327
5328if test "$PERL" != "none"; then
5329 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5330echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5331 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5332 echo "$as_me:$LINENO: result: yes" >&5
5333echo "${ECHO_T}yes" >&6
5334 else
5335 PERL=none
5336 echo "$as_me:$LINENO: result: not found" >&5
5337echo "${ECHO_T}not found" >&6
5338 fi
5339fi
5340
5341
5342if test x"$PERL" = xnone; then
5343 HAVE_PERL=0
5344
5345else
5346 HAVE_PERL=1
5347
5348fi
5349
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005350# Find a good install program. We prefer a C program (faster),
5351# so one script is as good as another. But avoid the broken or
5352# incompatible versions:
5353# SysV /etc/install, /usr/sbin/install
5354# SunOS /usr/etc/install
5355# IRIX /sbin/install
5356# AIX /bin/install
5357# AmigaOS /C/install, which installs bootblocks on floppy discs
5358# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5359# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5360# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5361# OS/2's system install, which has a completely different semantic
5362# ./install, which can be erroneously created by make from ./install.sh.
5363echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5364echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5365if test -z "$INSTALL"; then
5366if test "${ac_cv_path_install+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 # Account for people who put trailing slashes in PATH elements.
5375case $as_dir/ in
5376 ./ | .// | /cC/* | \
5377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5378 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5379 /usr/ucb/* ) ;;
5380 *)
5381 # OSF1 and SCO ODT 3.0 have their own names for install.
5382 # Don't use installbsd from OSF since it installs stuff as root
5383 # by default.
5384 for ac_prog in ginstall scoinst install; do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5387 if test $ac_prog = install &&
5388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5389 # AIX install. It has an incompatible calling convention.
5390 :
5391 elif test $ac_prog = install &&
5392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5393 # program-specific install script used by HP pwplus--don't use.
5394 :
5395 else
5396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5397 break 3
5398 fi
5399 fi
5400 done
5401 done
5402 ;;
5403esac
5404done
5405
5406
5407fi
5408 if test "${ac_cv_path_install+set}" = set; then
5409 INSTALL=$ac_cv_path_install
5410 else
5411 # As a last resort, use the slow shell script. We don't cache a
5412 # path for INSTALL within a source directory, because that will
5413 # break other packages using the cache if that directory is
5414 # removed, or if the path is relative.
5415 INSTALL=$ac_install_sh
5416 fi
5417fi
5418echo "$as_me:$LINENO: result: $INSTALL" >&5
5419echo "${ECHO_T}$INSTALL" >&6
5420
5421# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5422# It thinks the first close brace ends the variable substitution.
5423test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5424
5425test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5426
5427test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5428
5429
5430# Extract the first word of "bzip2", so it can be a program name with args.
5431set dummy bzip2; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_path_BZIP2+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 case $BZIP2 in
5438 [\\/]* | ?:[\\/]*)
5439 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5440 ;;
5441 *)
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454done
5455
Reid Spencerf9b458c2006-04-27 07:49:24 +00005456 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005457 ;;
5458esac
5459fi
5460BZIP2=$ac_cv_path_BZIP2
5461
5462if test -n "$BZIP2"; then
5463 echo "$as_me:$LINENO: result: $BZIP2" >&5
5464echo "${ECHO_T}$BZIP2" >&6
5465else
5466 echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6
5468fi
5469
5470# Extract the first word of "dot", so it can be a program name with args.
5471set dummy dot; ac_word=$2
5472echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474if test "${ac_cv_path_DOT+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477 case $DOT in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5480 ;;
5481 *)
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494done
5495
Reid Spencerf9b458c2006-04-27 07:49:24 +00005496 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005497 ;;
5498esac
5499fi
5500DOT=$ac_cv_path_DOT
5501
5502if test -n "$DOT"; then
5503 echo "$as_me:$LINENO: result: $DOT" >&5
5504echo "${ECHO_T}$DOT" >&6
5505else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508fi
5509
5510# Extract the first word of "doxygen", so it can be a program name with args.
5511set dummy doxygen; ac_word=$2
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514if test "${ac_cv_path_DOXYGEN+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517 case $DOXYGEN in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
Reid Spencerf9b458c2006-04-27 07:49:24 +00005536 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005537 ;;
5538esac
5539fi
5540DOXYGEN=$ac_cv_path_DOXYGEN
5541
5542if test -n "$DOXYGEN"; then
5543 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5544echo "${ECHO_T}$DOXYGEN" >&6
5545else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
5550# Extract the first word of "etags", so it can be a program name with args.
5551set dummy etags; ac_word=$2
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554if test "${ac_cv_path_ETAGS+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 case $ETAGS in
5558 [\\/]* | ?:[\\/]*)
5559 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5560 ;;
5561 *)
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574done
5575
Reid Spencerf9b458c2006-04-27 07:49:24 +00005576 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005577 ;;
5578esac
5579fi
5580ETAGS=$ac_cv_path_ETAGS
5581
5582if test -n "$ETAGS"; then
5583 echo "$as_me:$LINENO: result: $ETAGS" >&5
5584echo "${ECHO_T}$ETAGS" >&6
5585else
5586 echo "$as_me:$LINENO: result: no" >&5
5587echo "${ECHO_T}no" >&6
5588fi
5589
5590# Extract the first word of "groff", so it can be a program name with args.
5591set dummy groff; ac_word=$2
5592echo "$as_me:$LINENO: checking for $ac_word" >&5
5593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594if test "${ac_cv_path_GROFF+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 case $GROFF in
5598 [\\/]* | ?:[\\/]*)
5599 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5600 ;;
5601 *)
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614done
5615
Reid Spencerf9b458c2006-04-27 07:49:24 +00005616 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005617 ;;
5618esac
5619fi
5620GROFF=$ac_cv_path_GROFF
5621
5622if test -n "$GROFF"; then
5623 echo "$as_me:$LINENO: result: $GROFF" >&5
5624echo "${ECHO_T}$GROFF" >&6
5625else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628fi
5629
5630# Extract the first word of "gzip", so it can be a program name with args.
5631set dummy gzip; ac_word=$2
5632echo "$as_me:$LINENO: checking for $ac_word" >&5
5633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634if test "${ac_cv_path_GZIP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637 case $GZIP in
5638 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5640 ;;
5641 *)
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653done
5654done
5655
Reid Spencerf9b458c2006-04-27 07:49:24 +00005656 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005657 ;;
5658esac
5659fi
5660GZIP=$ac_cv_path_GZIP
5661
5662if test -n "$GZIP"; then
5663 echo "$as_me:$LINENO: result: $GZIP" >&5
5664echo "${ECHO_T}$GZIP" >&6
5665else
5666 echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6
5668fi
5669
5670# Extract the first word of "pod2html", so it can be a program name with args.
5671set dummy pod2html; ac_word=$2
5672echo "$as_me:$LINENO: checking for $ac_word" >&5
5673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5674if test "${ac_cv_path_POD2HTML+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 case $POD2HTML in
5678 [\\/]* | ?:[\\/]*)
5679 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5680 ;;
5681 *)
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694done
5695
Reid Spencerf9b458c2006-04-27 07:49:24 +00005696 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005697 ;;
5698esac
5699fi
5700POD2HTML=$ac_cv_path_POD2HTML
5701
5702if test -n "$POD2HTML"; then
5703 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5704echo "${ECHO_T}$POD2HTML" >&6
5705else
5706 echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6
5708fi
5709
5710# Extract the first word of "pod2man", so it can be a program name with args.
5711set dummy pod2man; ac_word=$2
5712echo "$as_me:$LINENO: checking for $ac_word" >&5
5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714if test "${ac_cv_path_POD2MAN+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 case $POD2MAN in
5718 [\\/]* | ?:[\\/]*)
5719 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5720 ;;
5721 *)
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734done
5735
Reid Spencerf9b458c2006-04-27 07:49:24 +00005736 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005737 ;;
5738esac
5739fi
5740POD2MAN=$ac_cv_path_POD2MAN
5741
5742if test -n "$POD2MAN"; then
5743 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5744echo "${ECHO_T}$POD2MAN" >&6
5745else
5746 echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005750# Extract the first word of "runtest", so it can be a program name with args.
5751set dummy runtest; ac_word=$2
5752echo "$as_me:$LINENO: checking for $ac_word" >&5
5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754if test "${ac_cv_path_RUNTEST+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 case $RUNTEST in
5758 [\\/]* | ?:[\\/]*)
5759 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5760 ;;
5761 *)
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774done
5775
Reid Spencerf9b458c2006-04-27 07:49:24 +00005776 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005777 ;;
5778esac
5779fi
5780RUNTEST=$ac_cv_path_RUNTEST
5781
5782if test -n "$RUNTEST"; then
5783 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5784echo "${ECHO_T}$RUNTEST" >&6
5785else
5786 echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
5788fi
5789
Reid Spencer0fcb9412004-11-30 08:11:54 +00005790
Reid Spencer0fcb9412004-11-30 08:11:54 +00005791no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005792echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5793echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005794
5795# Check whether --with-tclinclude or --without-tclinclude was given.
5796if test "${with_tclinclude+set}" = set; then
5797 withval="$with_tclinclude"
5798 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005799else
5800 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005801fi;
5802if test "${ac_cv_path_tclsh+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805
5806if test x"${with_tclinclude}" != x ; then
5807 if test -f ${with_tclinclude}/tclsh ; then
5808 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5809 elif test -f ${with_tclinclude}/src/tclsh ; then
5810 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5811 else
5812 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5813echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5814 { (exit 1); exit 1; }; }
5815 fi
5816fi
5817
Reid Spencer0fcb9412004-11-30 08:11:54 +00005818if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005819 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005820echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005821 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 +00005822do
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005825echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005827if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
Reid Spencercda35f82004-12-02 04:17:20 +00005830 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005831 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005832 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005833 ;;
5834 *)
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005842 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846done
5847done
5848
5849 ;;
5850esac
5851fi
Reid Spencercda35f82004-12-02 04:17:20 +00005852TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005853
Reid Spencercda35f82004-12-02 04:17:20 +00005854if test -n "$TCLSH"; then
5855 echo "$as_me:$LINENO: result: $TCLSH" >&5
5856echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005857else
5858 echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6
5860fi
5861
Reid Spencercda35f82004-12-02 04:17:20 +00005862 test -n "$TCLSH" && break
5863done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005864
Reid Spencercda35f82004-12-02 04:17:20 +00005865 if test x"${TCLSH}" = x ; then
5866 ac_cv_path_tclsh='';
5867 else
5868 ac_cv_path_tclsh="${TCLSH}";
5869 fi
5870else
5871 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5872echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5873 TCLSH="${ac_cv_path_tclsh}"
5874
5875fi
5876
5877fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005878
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005879# Extract the first word of "zip", so it can be a program name with args.
5880set dummy zip; ac_word=$2
5881echo "$as_me:$LINENO: checking for $ac_word" >&5
5882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5883if test "${ac_cv_path_ZIP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886 case $ZIP in
5887 [\\/]* | ?:[\\/]*)
5888 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5889 ;;
5890 *)
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902done
5903done
5904
Reid Spencerf9b458c2006-04-27 07:49:24 +00005905 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005906 ;;
5907esac
5908fi
5909ZIP=$ac_cv_path_ZIP
5910
5911if test -n "$ZIP"; then
5912 echo "$as_me:$LINENO: result: $ZIP" >&5
5913echo "${ECHO_T}$ZIP" >&6
5914else
5915 echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6
5917fi
5918
5919
5920echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5921echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5922if test "${llvm_cv_link_use_r+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005926ac_cpp='$CPP $CPPFLAGS'
5927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005931 oldcflags="$CFLAGS"
5932 CFLAGS="$CFLAGS -Wl,-R."
5933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005939
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005940int
5941main ()
5942{
5943int main() { return 0; }
5944 ;
5945 return 0;
5946}
John Criswell47fdd832003-07-14 16:52:07 +00005947_ACEOF
5948rm -f conftest.$ac_objext conftest$ac_exeext
5949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005950 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005951 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005956 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005957 { ac_try='test -z "$ac_c_werror_flag"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005970 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005971else
John Criswell47fdd832003-07-14 16:52:07 +00005972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005973sed 's/^/| /' conftest.$ac_ext >&5
5974
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005975llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005976fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005977rm -f conftest.err conftest.$ac_objext \
5978 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005979 CFLAGS="$oldcflags"
5980 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005981ac_cpp='$CPP $CPPFLAGS'
5982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005986
John Criswell7a73b802003-06-30 21:59:07 +00005987fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005988echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5989echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5990if test "$llvm_cv_link_use_r" = yes ; then
5991
5992cat >>confdefs.h <<\_ACEOF
5993#define HAVE_LINK_R 1
5994_ACEOF
5995
John Criswell47fdd832003-07-14 16:52:07 +00005996 fi
John Criswell47fdd832003-07-14 16:52:07 +00005997
John Criswell47fdd832003-07-14 16:52:07 +00005998
John Criswell47fdd832003-07-14 16:52:07 +00005999
John Criswell7a73b802003-06-30 21:59:07 +00006000
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006001echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6002echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6003if test "${ac_cv_c_const+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006 cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h. */
6012
6013int
6014main ()
6015{
6016/* FIXME: Include the comments suggested by Paul. */
6017#ifndef __cplusplus
6018 /* Ultrix mips cc rejects this. */
6019 typedef int charset[2];
6020 const charset x;
6021 /* SunOS 4.1.1 cc rejects this. */
6022 char const *const *ccp;
6023 char **p;
6024 /* NEC SVR4.0.2 mips cc rejects this. */
6025 struct point {int x, y;};
6026 static struct point const zero = {0,0};
6027 /* AIX XL C 1.02.0.0 rejects this.
6028 It does not let you subtract one const X* pointer from another in
6029 an arm of an if-expression whose if-part is not a constant
6030 expression */
6031 const char *g = "string";
6032 ccp = &g + (g ? g-g : 0);
6033 /* HPUX 7.0 cc rejects these. */
6034 ++ccp;
6035 p = (char**) ccp;
6036 ccp = (char const *const *) p;
6037 { /* SCO 3.2v4 cc rejects this. */
6038 char *t;
6039 char const *s = 0 ? (char *) 0 : (char const *) 0;
6040
6041 *t++ = 0;
6042 }
6043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6044 int x[] = {25, 17};
6045 const int *foo = &x[0];
6046 ++foo;
6047 }
6048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6049 typedef const int *iptr;
6050 iptr p = 0;
6051 ++p;
6052 }
6053 { /* AIX XL C 1.02.0.0 rejects this saying
6054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6055 struct s { int j; const int *ap[3]; };
6056 struct s *b; b->j = 5;
6057 }
6058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6059 const int foo = 10;
6060 }
6061#endif
6062
6063 ;
6064 return 0;
6065}
6066_ACEOF
6067rm -f conftest.$ac_objext
6068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag"
6077 || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_c_const=yes
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094ac_cv_c_const=no
6095fi
6096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6099echo "${ECHO_T}$ac_cv_c_const" >&6
6100if test $ac_cv_c_const = no; then
6101
6102cat >>confdefs.h <<\_ACEOF
6103#define const
6104_ACEOF
6105
6106fi
6107
6108
6109echo "$as_me:$LINENO: checking for egrep" >&5
6110echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6111if test "${ac_cv_prog_egrep+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6115 then ac_cv_prog_egrep='grep -E'
6116 else ac_cv_prog_egrep='egrep'
6117 fi
6118fi
6119echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6120echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6121 EGREP=$ac_cv_prog_egrep
6122
John Criswell7a73b802003-06-30 21:59:07 +00006123
6124echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6125echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6126if test "${ac_cv_header_stdc+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
6129 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006135#include <stdlib.h>
6136#include <stdarg.h>
6137#include <string.h>
6138#include <float.h>
6139
John Criswell0c38eaf2003-09-10 15:17:25 +00006140int
6141main ()
6142{
6143
6144 ;
6145 return 0;
6146}
John Criswell7a73b802003-06-30 21:59:07 +00006147_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006148rm -f conftest.$ac_objext
6149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006150 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006170 ac_cv_header_stdc=yes
6171else
6172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006178
6179if test $ac_cv_header_stdc = yes; then
6180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6181 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006187#include <string.h>
6188
6189_ACEOF
6190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006191 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006192 :
6193else
6194 ac_cv_header_stdc=no
6195fi
6196rm -f conftest*
6197
6198fi
6199
6200if test $ac_cv_header_stdc = yes; then
6201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6202 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006203/* confdefs.h. */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006208#include <stdlib.h>
6209
6210_ACEOF
6211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006212 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006213 :
6214else
6215 ac_cv_header_stdc=no
6216fi
6217rm -f conftest*
6218
6219fi
6220
6221if test $ac_cv_header_stdc = yes; then
6222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6223 if test "$cross_compiling" = yes; then
6224 :
6225else
6226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006227/* confdefs.h. */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006232#include <ctype.h>
6233#if ((' ' & 0x0FF) == 0x020)
6234# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6235# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6236#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006237# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006238 (('a' <= (c) && (c) <= 'i') \
6239 || ('j' <= (c) && (c) <= 'r') \
6240 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006241# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6242#endif
6243
6244#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6245int
6246main ()
6247{
6248 int i;
6249 for (i = 0; i < 256; i++)
6250 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006251 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006252 exit(2);
6253 exit (0);
6254}
6255_ACEOF
6256rm -f conftest$ac_exeext
6257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258 (eval $ac_link) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 :
6268else
6269 echo "$as_me: program exited with status $ac_status" >&5
6270echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006271sed 's/^/| /' conftest.$ac_ext >&5
6272
John Criswell7a73b802003-06-30 21:59:07 +00006273( exit $ac_status )
6274ac_cv_header_stdc=no
6275fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006277fi
6278fi
6279fi
6280echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6281echo "${ECHO_T}$ac_cv_header_stdc" >&6
6282if test $ac_cv_header_stdc = yes; then
6283
6284cat >>confdefs.h <<\_ACEOF
6285#define STDC_HEADERS 1
6286_ACEOF
6287
6288fi
6289
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006290
6291
6292
6293
6294
6295ac_header_dirent=no
6296for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6297 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6298echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6299echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6300if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 cat >conftest.$ac_ext <<_ACEOF
6304/* confdefs.h. */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h. */
6309#include <sys/types.h>
6310#include <$ac_hdr>
6311
6312int
6313main ()
6314{
6315if ((DIR *) 0)
6316return 0;
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321rm -f conftest.$ac_objext
6322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_c_werror_flag"
6331 || test ! -s conftest.err'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try='test -s conftest.$ac_objext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 eval "$as_ac_Header=yes"
6344else
6345 echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348eval "$as_ac_Header=no"
6349fi
6350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351fi
6352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6354if test `eval echo '${'$as_ac_Header'}'` = yes; then
6355 cat >>confdefs.h <<_ACEOF
6356#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6357_ACEOF
6358
6359ac_header_dirent=$ac_hdr; break
6360fi
6361
6362done
6363# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6364if test $ac_header_dirent = dirent.h; then
6365 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6366echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6367if test "${ac_cv_search_opendir+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 ac_func_search_save_LIBS=$LIBS
6371ac_cv_search_opendir=no
6372cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378
6379/* Override any gcc2 internal prototype to avoid an error. */
6380#ifdef __cplusplus
6381extern "C"
6382#endif
6383/* We use char because int might match the return type of a gcc2
6384 builtin and then its argument prototype would still apply. */
6385char opendir ();
6386int
6387main ()
6388{
6389opendir ();
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext conftest$ac_exeext
6395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6396 (eval $ac_link) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest$ac_exeext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_search_opendir="none required"
6417else
6418 echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421fi
6422rm -f conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424if test "$ac_cv_search_opendir" = no; then
6425 for ac_lib in dir; do
6426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6427 cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h. */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */
6433
6434/* Override any gcc2 internal prototype to avoid an error. */
6435#ifdef __cplusplus
6436extern "C"
6437#endif
6438/* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6440char opendir ();
6441int
6442main ()
6443{
6444opendir ();
6445 ;
6446 return 0;
6447}
6448_ACEOF
6449rm -f conftest.$ac_objext conftest$ac_exeext
6450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_search_opendir="-l$ac_lib"
6472break
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477fi
6478rm -f conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 done
6481fi
6482LIBS=$ac_func_search_save_LIBS
6483fi
6484echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6485echo "${ECHO_T}$ac_cv_search_opendir" >&6
6486if test "$ac_cv_search_opendir" != no; then
6487 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6488
6489fi
6490
6491else
6492 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6493echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6494if test "${ac_cv_search_opendir+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497 ac_func_search_save_LIBS=$LIBS
6498ac_cv_search_opendir=no
6499cat >conftest.$ac_ext <<_ACEOF
6500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
6505
6506/* Override any gcc2 internal prototype to avoid an error. */
6507#ifdef __cplusplus
6508extern "C"
6509#endif
6510/* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6512char opendir ();
6513int
6514main ()
6515{
6516opendir ();
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest.$ac_objext conftest$ac_exeext
6522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_search_opendir="none required"
6544else
6545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548fi
6549rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6551if test "$ac_cv_search_opendir" = no; then
6552 for ac_lib in x; do
6553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6554 cat >conftest.$ac_ext <<_ACEOF
6555/* confdefs.h. */
6556_ACEOF
6557cat confdefs.h >>conftest.$ac_ext
6558cat >>conftest.$ac_ext <<_ACEOF
6559/* end confdefs.h. */
6560
6561/* Override any gcc2 internal prototype to avoid an error. */
6562#ifdef __cplusplus
6563extern "C"
6564#endif
6565/* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6567char opendir ();
6568int
6569main ()
6570{
6571opendir ();
6572 ;
6573 return 0;
6574}
6575_ACEOF
6576rm -f conftest.$ac_objext conftest$ac_exeext
6577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_search_opendir="-l$ac_lib"
6599break
6600else
6601 echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604fi
6605rm -f conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607 done
6608fi
6609LIBS=$ac_func_search_save_LIBS
6610fi
6611echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6612echo "${ECHO_T}$ac_cv_search_opendir" >&6
6613if test "$ac_cv_search_opendir" != no; then
6614 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6615
6616fi
6617
6618fi
6619
John Criswell7a73b802003-06-30 21:59:07 +00006620# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006631 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006632do
6633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634echo "$as_me:$LINENO: checking for $ac_header" >&5
6635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
6639 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006640/* confdefs.h. */
6641_ACEOF
6642cat confdefs.h >>conftest.$ac_ext
6643cat >>conftest.$ac_ext <<_ACEOF
6644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006645$ac_includes_default
6646
6647#include <$ac_header>
6648_ACEOF
6649rm -f conftest.$ac_objext
6650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006651 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 eval "$as_ac_Header=yes"
6672else
6673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006674sed 's/^/| /' conftest.$ac_ext >&5
6675
John Criswell7a73b802003-06-30 21:59:07 +00006676eval "$as_ac_Header=no"
6677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006679fi
6680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6682if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683 cat >>confdefs.h <<_ACEOF
6684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685_ACEOF
6686
6687fi
6688
6689done
6690
6691
6692
6693for ac_header in dlfcn.h
6694do
6695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006696if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6699if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006701fi
6702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006704else
Brian Gaeke0a621332004-09-08 20:38:05 +00006705 # Is the header compilable?
6706echo "$as_me:$LINENO: checking $ac_header usability" >&5
6707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6708cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006709/* confdefs.h. */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006714$ac_includes_default
6715#include <$ac_header>
6716_ACEOF
6717rm -f conftest.$ac_objext
6718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006719 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006726 { ac_try='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006739 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006740else
6741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006742sed 's/^/| /' conftest.$ac_ext >&5
6743
Brian Gaeke0a621332004-09-08 20:38:05 +00006744ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006745fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6748echo "${ECHO_T}$ac_header_compiler" >&6
6749
6750# Is the header present?
6751echo "$as_me:$LINENO: checking $ac_header presence" >&5
6752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6753cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759#include <$ac_header>
6760_ACEOF
6761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } >/dev/null; then
6769 if test -s conftest.err; then
6770 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006772 else
6773 ac_cpp_err=
6774 fi
6775else
6776 ac_cpp_err=yes
6777fi
6778if test -z "$ac_cpp_err"; then
6779 ac_header_preproc=yes
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 ac_header_preproc=no
6785fi
6786rm -f conftest.err conftest.$ac_ext
6787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6788echo "${ECHO_T}$ac_header_preproc" >&6
6789
6790# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6792 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6797 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006798 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006799 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006812 (
6813 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006814## ----------------------------------- ##
6815## Report this to llvmbugs@cs.uiuc.edu ##
6816## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006817_ASBOX
6818 ) |
6819 sed "s/^/$as_me: WARNING: /" >&2
6820 ;;
6821esac
6822echo "$as_me:$LINENO: checking for $ac_header" >&5
6823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6824if eval "test \"\${$as_ac_Header+set}\" = set"; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006827 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006828fi
6829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006831
6832fi
John Criswell7a73b802003-06-30 21:59:07 +00006833if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834 cat >>confdefs.h <<_ACEOF
6835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836_ACEOF
6837
6838fi
6839
6840done
6841
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006842# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6843if test "${enable_ltdl_install+set}" = set; then
6844 enableval="$enable_ltdl_install"
6845
6846fi;
6847
6848
6849
6850if test x"${enable_ltdl_install-no}" != xno; then
6851 INSTALL_LTDL_TRUE=
6852 INSTALL_LTDL_FALSE='#'
6853else
6854 INSTALL_LTDL_TRUE='#'
6855 INSTALL_LTDL_FALSE=
6856fi
6857
6858
6859
6860if test x"${enable_ltdl_convenience-no}" != xno; then
6861 CONVENIENCE_LTDL_TRUE=
6862 CONVENIENCE_LTDL_FALSE='#'
6863else
6864 CONVENIENCE_LTDL_TRUE='#'
6865 CONVENIENCE_LTDL_FALSE=
6866fi
6867
6868
6869echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6870echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6871library_names_spec=
6872libname_spec='lib$name'
6873soname_spec=
6874shrext_cmds=".so"
6875postinstall_cmds=
6876postuninstall_cmds=
6877finish_cmds=
6878finish_eval=
6879shlibpath_var=
6880shlibpath_overrides_runpath=unknown
6881version_type=none
6882dynamic_linker="$host_os ld.so"
6883sys_lib_dlsearch_path_spec="/lib /usr/lib"
6884if test "$GCC" = yes; then
6885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6887 # if the path contains ";" then we assume it to be the separator
6888 # otherwise default to the standard path separator (i.e. ":") - it is
6889 # assumed that no part of a normal pathname contains ";" but that should
6890 # okay in the real world where ";" in dirpaths is itself problematic.
6891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6892 else
6893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6894 fi
6895else
6896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6897fi
6898need_lib_prefix=unknown
6899hardcode_into_libs=no
6900
6901# when you set need_version to no, make sure it does not cause -set_version
6902# flags to be left without arguments
6903need_version=unknown
6904
6905case $host_os in
6906aix3*)
6907 version_type=linux
6908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6909 shlibpath_var=LIBPATH
6910
6911 # AIX 3 has no versioning support, so we append a major version to the name.
6912 soname_spec='${libname}${release}${shared_ext}$major'
6913 ;;
6914
6915aix4* | aix5*)
6916 version_type=linux
6917 need_lib_prefix=no
6918 need_version=no
6919 hardcode_into_libs=yes
6920 if test "$host_cpu" = ia64; then
6921 # AIX 5 supports IA64
6922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6923 shlibpath_var=LD_LIBRARY_PATH
6924 else
6925 # With GCC up to 2.95.x, collect2 would create an import file
6926 # for dependence libraries. The import file would start with
6927 # the line `#! .'. This would cause the generated library to
6928 # depend on `.', always an invalid library. This was fixed in
6929 # development snapshots of GCC prior to 3.0.
6930 case $host_os in
6931 aix4 | aix4.[01] | aix4.[01].*)
6932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6933 echo ' yes '
6934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6935 :
6936 else
6937 can_build_shared=no
6938 fi
6939 ;;
6940 esac
6941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6942 # soname into executable. Probably we can add versioning support to
6943 # collect2, so additional links can be useful in future.
6944 if test "$aix_use_runtimelinking" = yes; then
6945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6946 # instead of lib<name>.a to let people know that these are not
6947 # typical AIX shared libraries.
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6949 else
6950 # We preserve .a as extension for shared libraries through AIX4.2
6951 # and later when we are not doing run time linking.
6952 library_names_spec='${libname}${release}.a $libname.a'
6953 soname_spec='${libname}${release}${shared_ext}$major'
6954 fi
6955 shlibpath_var=LIBPATH
6956 fi
6957 ;;
6958
6959amigaos*)
6960 library_names_spec='$libname.ixlibrary $libname.a'
6961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6962 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'
6963 ;;
6964
6965beos*)
6966 library_names_spec='${libname}${shared_ext}'
6967 dynamic_linker="$host_os ld.so"
6968 shlibpath_var=LIBRARY_PATH
6969 ;;
6970
6971bsdi[45]*)
6972 version_type=linux
6973 need_version=no
6974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6975 soname_spec='${libname}${release}${shared_ext}$major'
6976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6977 shlibpath_var=LD_LIBRARY_PATH
6978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6980 # the default ld.so.conf also contains /usr/contrib/lib and
6981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6982 # libtool to hard-code these into programs
6983 ;;
6984
6985cygwin* | mingw* | pw32*)
6986 version_type=windows
6987 shrext_cmds=".dll"
6988 need_version=no
6989 need_lib_prefix=no
6990
6991 case $GCC,$host_os in
6992 yes,cygwin* | yes,mingw* | yes,pw32*)
6993 library_names_spec='$libname.dll.a'
6994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6995 postinstall_cmds='base_file=`basename \${file}`~
6996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6997 dldir=$destdir/`dirname \$dlpath`~
6998 test -d \$dldir || mkdir -p \$dldir~
6999 $install_prog $dir/$dlname \$dldir/$dlname'
7000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7001 dlpath=$dir/\$dldll~
7002 $rm \$dlpath'
7003 shlibpath_overrides_runpath=yes
7004
7005 case $host_os in
7006 cygwin*)
7007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7010 ;;
7011 mingw*)
7012 # MinGW DLLs use traditional 'lib' prefix
7013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7016 # It is most probably a Windows format PATH printed by
7017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7018 # path with ; separators, and with drive letters. We can handle the
7019 # drive letters (cygwin fileutils understands them), so leave them,
7020 # especially as we might pass files found there to a mingw objdump,
7021 # which wouldn't understand a cygwinified path. Ahh.
7022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7023 else
7024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7025 fi
7026 ;;
7027 pw32*)
7028 # pw32 DLLs use 'pw' prefix rather than 'lib'
7029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7030 ;;
7031 esac
7032 ;;
7033
7034 *)
7035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7036 ;;
7037 esac
7038 dynamic_linker='Win32 ld.exe'
7039 # FIXME: first we should search . and the directory the executable is in
7040 shlibpath_var=PATH
7041 ;;
7042
7043darwin* | rhapsody*)
7044 dynamic_linker="$host_os dyld"
7045 version_type=darwin
7046 need_lib_prefix=no
7047 need_version=no
7048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7049 soname_spec='${libname}${release}${major}$shared_ext'
7050 shlibpath_overrides_runpath=yes
7051 shlibpath_var=DYLD_LIBRARY_PATH
7052 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7054 if test "$GCC" = yes; then
7055 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"`
7056 else
7057 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7058 fi
7059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7060 ;;
7061
7062dgux*)
7063 version_type=linux
7064 need_lib_prefix=no
7065 need_version=no
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LD_LIBRARY_PATH
7069 ;;
7070
7071freebsd1*)
7072 dynamic_linker=no
7073 ;;
7074
7075kfreebsd*-gnu)
7076 version_type=linux
7077 need_lib_prefix=no
7078 need_version=no
7079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7080 soname_spec='${libname}${release}${shared_ext}$major'
7081 shlibpath_var=LD_LIBRARY_PATH
7082 shlibpath_overrides_runpath=no
7083 hardcode_into_libs=yes
7084 dynamic_linker='GNU ld.so'
7085 ;;
7086
7087freebsd*)
7088 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7089 version_type=freebsd-$objformat
7090 case $version_type in
7091 freebsd-elf*)
7092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7093 need_version=no
7094 need_lib_prefix=no
7095 ;;
7096 freebsd-*)
7097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7098 need_version=yes
7099 ;;
7100 esac
7101 shlibpath_var=LD_LIBRARY_PATH
7102 case $host_os in
7103 freebsd2*)
7104 shlibpath_overrides_runpath=yes
7105 ;;
7106 freebsd3.01* | freebsdelf3.01*)
7107 shlibpath_overrides_runpath=yes
7108 hardcode_into_libs=yes
7109 ;;
7110 *) # from 3.2 on
7111 shlibpath_overrides_runpath=no
7112 hardcode_into_libs=yes
7113 ;;
7114 esac
7115 ;;
7116
7117gnu*)
7118 version_type=linux
7119 need_lib_prefix=no
7120 need_version=no
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 shlibpath_var=LD_LIBRARY_PATH
7124 hardcode_into_libs=yes
7125 ;;
7126
7127hpux9* | hpux10* | hpux11*)
7128 # Give a soname corresponding to the major version so that dld.sl refuses to
7129 # link against other versions.
7130 version_type=sunos
7131 need_lib_prefix=no
7132 need_version=no
7133 case "$host_cpu" in
7134 ia64*)
7135 shrext_cmds='.so'
7136 hardcode_into_libs=yes
7137 dynamic_linker="$host_os dld.so"
7138 shlibpath_var=LD_LIBRARY_PATH
7139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7141 soname_spec='${libname}${release}${shared_ext}$major'
7142 if test "X$HPUX_IA64_MODE" = X32; then
7143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7144 else
7145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7146 fi
7147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7148 ;;
7149 hppa*64*)
7150 shrext_cmds='.sl'
7151 hardcode_into_libs=yes
7152 dynamic_linker="$host_os dld.sl"
7153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7159 ;;
7160 *)
7161 shrext_cmds='.sl'
7162 dynamic_linker="$host_os dld.sl"
7163 shlibpath_var=SHLIB_PATH
7164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7166 soname_spec='${libname}${release}${shared_ext}$major'
7167 ;;
7168 esac
7169 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7170 postinstall_cmds='chmod 555 $lib'
7171 ;;
7172
7173irix5* | irix6* | nonstopux*)
7174 case $host_os in
7175 nonstopux*) version_type=nonstopux ;;
7176 *)
7177 if test "$lt_cv_prog_gnu_ld" = yes; then
7178 version_type=linux
7179 else
7180 version_type=irix
7181 fi ;;
7182 esac
7183 need_lib_prefix=no
7184 need_version=no
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7187 case $host_os in
7188 irix5* | nonstopux*)
7189 libsuff= shlibsuff=
7190 ;;
7191 *)
7192 case $LD in # libtool.m4 will add one of these switches to LD
7193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7194 libsuff= shlibsuff= libmagic=32-bit;;
7195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7196 libsuff=32 shlibsuff=N32 libmagic=N32;;
7197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7199 *) libsuff= shlibsuff= libmagic=never-match;;
7200 esac
7201 ;;
7202 esac
7203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7204 shlibpath_overrides_runpath=no
7205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7207 hardcode_into_libs=yes
7208 ;;
7209
7210# No shared lib support for Linux oldld, aout, or coff.
7211linux*oldld* | linux*aout* | linux*coff*)
7212 dynamic_linker=no
7213 ;;
7214
7215# This must be Linux ELF.
7216linux*)
7217 version_type=linux
7218 need_lib_prefix=no
7219 need_version=no
7220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7221 soname_spec='${libname}${release}${shared_ext}$major'
7222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7223 shlibpath_var=LD_LIBRARY_PATH
7224 shlibpath_overrides_runpath=no
7225 # This implies no fast_install, which is unacceptable.
7226 # Some rework will be needed to allow for fast_install
7227 # before this can be enabled.
7228 hardcode_into_libs=yes
7229
7230 # Append ld.so.conf contents to the search path
7231 if test -f /etc/ld.so.conf; then
7232 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7234 fi
7235
7236 # We used to test for /lib/ld.so.1 and disable shared libraries on
7237 # powerpc, because MkLinux only supported shared libraries with the
7238 # GNU dynamic linker. Since this was broken with cross compilers,
7239 # most powerpc-linux boxes support dynamic linking these days and
7240 # people can always --disable-shared, the test was removed, and we
7241 # assume the GNU/Linux dynamic linker is in use.
7242 dynamic_linker='GNU/Linux ld.so'
7243 ;;
7244
7245knetbsd*-gnu)
7246 version_type=linux
7247 need_lib_prefix=no
7248 need_version=no
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7250 soname_spec='${libname}${release}${shared_ext}$major'
7251 shlibpath_var=LD_LIBRARY_PATH
7252 shlibpath_overrides_runpath=no
7253 hardcode_into_libs=yes
7254 dynamic_linker='GNU ld.so'
7255 ;;
7256
7257netbsd*)
7258 version_type=sunos
7259 need_lib_prefix=no
7260 need_version=no
7261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7264 dynamic_linker='NetBSD (a.out) ld.so'
7265 else
7266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7267 soname_spec='${libname}${release}${shared_ext}$major'
7268 dynamic_linker='NetBSD ld.elf_so'
7269 fi
7270 shlibpath_var=LD_LIBRARY_PATH
7271 shlibpath_overrides_runpath=yes
7272 hardcode_into_libs=yes
7273 ;;
7274
7275newsos6)
7276 version_type=linux
7277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7278 shlibpath_var=LD_LIBRARY_PATH
7279 shlibpath_overrides_runpath=yes
7280 ;;
7281
7282nto-qnx*)
7283 version_type=linux
7284 need_lib_prefix=no
7285 need_version=no
7286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7287 soname_spec='${libname}${release}${shared_ext}$major'
7288 shlibpath_var=LD_LIBRARY_PATH
7289 shlibpath_overrides_runpath=yes
7290 ;;
7291
7292openbsd*)
7293 version_type=sunos
7294 need_lib_prefix=no
7295 need_version=no
7296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7298 shlibpath_var=LD_LIBRARY_PATH
7299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7300 case $host_os in
7301 openbsd2.[89] | openbsd2.[89].*)
7302 shlibpath_overrides_runpath=no
7303 ;;
7304 *)
7305 shlibpath_overrides_runpath=yes
7306 ;;
7307 esac
7308 else
7309 shlibpath_overrides_runpath=yes
7310 fi
7311 ;;
7312
7313os2*)
7314 libname_spec='$name'
7315 shrext_cmds=".dll"
7316 need_lib_prefix=no
7317 library_names_spec='$libname${shared_ext} $libname.a'
7318 dynamic_linker='OS/2 ld.exe'
7319 shlibpath_var=LIBPATH
7320 ;;
7321
7322osf3* | osf4* | osf5*)
7323 version_type=osf
7324 need_lib_prefix=no
7325 need_version=no
7326 soname_spec='${libname}${release}${shared_ext}$major'
7327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7328 shlibpath_var=LD_LIBRARY_PATH
7329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7331 ;;
7332
7333sco3.2v5*)
7334 version_type=osf
7335 soname_spec='${libname}${release}${shared_ext}$major'
7336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337 shlibpath_var=LD_LIBRARY_PATH
7338 ;;
7339
7340solaris*)
7341 version_type=linux
7342 need_lib_prefix=no
7343 need_version=no
7344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345 soname_spec='${libname}${release}${shared_ext}$major'
7346 shlibpath_var=LD_LIBRARY_PATH
7347 shlibpath_overrides_runpath=yes
7348 hardcode_into_libs=yes
7349 # ldd complains unless libraries are executable
7350 postinstall_cmds='chmod +x $lib'
7351 ;;
7352
7353sunos4*)
7354 version_type=sunos
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=yes
7359 if test "$with_gnu_ld" = yes; then
7360 need_lib_prefix=no
7361 fi
7362 need_version=yes
7363 ;;
7364
7365sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7366 version_type=linux
7367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7368 soname_spec='${libname}${release}${shared_ext}$major'
7369 shlibpath_var=LD_LIBRARY_PATH
7370 case $host_vendor in
7371 sni)
7372 shlibpath_overrides_runpath=no
7373 need_lib_prefix=no
7374 export_dynamic_flag_spec='${wl}-Blargedynsym'
7375 runpath_var=LD_RUN_PATH
7376 ;;
7377 siemens)
7378 need_lib_prefix=no
7379 ;;
7380 motorola)
7381 need_lib_prefix=no
7382 need_version=no
7383 shlibpath_overrides_runpath=no
7384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7385 ;;
7386 esac
7387 ;;
7388
7389sysv4*MP*)
7390 if test -d /usr/nec ;then
7391 version_type=linux
7392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7393 soname_spec='$libname${shared_ext}.$major'
7394 shlibpath_var=LD_LIBRARY_PATH
7395 fi
7396 ;;
7397
7398uts4*)
7399 version_type=linux
7400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7401 soname_spec='${libname}${release}${shared_ext}$major'
7402 shlibpath_var=LD_LIBRARY_PATH
7403 ;;
7404
7405*)
7406 dynamic_linker=no
7407 ;;
7408esac
7409echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7410echo "${ECHO_T}$dynamic_linker" >&6
7411test "$dynamic_linker" = no && can_build_shared=no
7412
7413
7414echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7415echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7416if test "${libltdl_cv_shlibext+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419
7420module=yes
7421eval libltdl_cv_shlibext=$shrext_cmds
7422
7423fi
7424echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7425echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7426if test -n "$libltdl_cv_shlibext"; then
7427
7428cat >>confdefs.h <<_ACEOF
7429#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7430_ACEOF
7431
7432fi
7433
7434
7435echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7436echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7437if test "${libltdl_cv_shlibpath_var+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 libltdl_cv_shlibpath_var="$shlibpath_var"
7441fi
7442echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7443echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7444if test -n "$libltdl_cv_shlibpath_var"; then
7445
7446cat >>confdefs.h <<_ACEOF
7447#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7448_ACEOF
7449
7450fi
7451
7452
7453echo "$as_me:$LINENO: checking for the default library search path" >&5
7454echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7455if test "${libltdl_cv_sys_search_path+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7459fi
7460echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7461echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7462if test -n "$libltdl_cv_sys_search_path"; then
7463 sys_search_path=
7464 for dir in $libltdl_cv_sys_search_path; do
7465 if test -z "$sys_search_path"; then
7466 sys_search_path="$dir"
7467 else
7468 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7469 fi
7470 done
7471
7472cat >>confdefs.h <<_ACEOF
7473#define LTDL_SYSSEARCHPATH "$sys_search_path"
7474_ACEOF
7475
7476fi
7477
7478echo "$as_me:$LINENO: checking for objdir" >&5
7479echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7480if test "${libltdl_cv_objdir+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 libltdl_cv_objdir="$objdir"
7484 if test -n "$objdir"; then
7485 :
7486 else
7487 rm -f .libs 2>/dev/null
7488 mkdir .libs 2>/dev/null
7489 if test -d .libs; then
7490 libltdl_cv_objdir=.libs
7491 else
7492 # MS-DOS does not allow filenames that begin with a dot.
7493 libltdl_cv_objdir=_libs
7494 fi
7495 rmdir .libs 2>/dev/null
7496 fi
7497
7498fi
7499echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7500echo "${ECHO_T}$libltdl_cv_objdir" >&6
7501
7502cat >>confdefs.h <<_ACEOF
7503#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7504_ACEOF
7505
7506
7507echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7508echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7509if test "${lt_cv_path_NM+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512 if test -n "$NM"; then
7513 # Let the user override the test.
7514 lt_cv_path_NM="$NM"
7515else
7516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7518 IFS="$lt_save_ifs"
7519 test -z "$ac_dir" && ac_dir=.
7520 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7522 # Check to see if the nm accepts a BSD-compat flag.
7523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7524 # nm: unknown option "B" ignored
7525 # Tru64's nm complains that /dev/null is an invalid object file
7526 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7527 */dev/null* | *'Invalid file or object type'*)
7528 lt_cv_path_NM="$tmp_nm -B"
7529 break
7530 ;;
7531 *)
7532 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7533 */dev/null*)
7534 lt_cv_path_NM="$tmp_nm -p"
7535 break
7536 ;;
7537 *)
7538 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7539 continue # so that we can try to find one that supports BSD flags
7540 ;;
7541 esac
7542 esac
7543 fi
7544 done
7545 IFS="$lt_save_ifs"
7546 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7547fi
7548fi
7549echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7550echo "${ECHO_T}$lt_cv_path_NM" >&6
7551NM="$lt_cv_path_NM"
7552
7553
7554
7555
7556
7557# Check for command to grab the raw symbol name followed by C symbol from nm.
7558echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7559echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7560if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563
7564# These are sane defaults that work on at least a few old systems.
7565# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7566
7567# Character class describing NM global symbol codes.
7568symcode='[BCDEGRST]'
7569
7570# Regexp to match symbols that can be accessed directly from C.
7571sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7572
7573# Transform the above into a raw symbol and a C symbol.
7574symxfrm='\1 \2\3 \3'
7575
7576# Transform an extracted symbol line into a proper C declaration
7577lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7578
7579# Transform an extracted symbol line into symbol name and symbol address
7580lt_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'"
7581
7582# Define system-specific variables.
7583case $host_os in
7584aix*)
7585 symcode='[BCDT]'
7586 ;;
7587cygwin* | mingw* | pw32*)
7588 symcode='[ABCDGISTW]'
7589 ;;
7590hpux*) # Its linker distinguishes data from code symbols
7591 if test "$host_cpu" = ia64; then
7592 symcode='[ABCDEGRST]'
7593 fi
7594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7595 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'"
7596 ;;
7597linux*)
7598 if test "$host_cpu" = ia64; then
7599 symcode='[ABCDGIRSTW]'
7600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7601 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'"
7602 fi
7603 ;;
7604irix* | nonstopux*)
7605 symcode='[BCDEGRST]'
7606 ;;
7607osf*)
7608 symcode='[BCDEGQRST]'
7609 ;;
7610solaris* | sysv5*)
7611 symcode='[BDRT]'
7612 ;;
7613sysv4)
7614 symcode='[DFNSTU]'
7615 ;;
7616esac
7617
7618# Handle CRLF in mingw tool chain
7619opt_cr=
7620case $build_os in
7621mingw*)
7622 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7623 ;;
7624esac
7625
7626# If we're using GNU nm, then use its standard symbol codes.
7627case `$NM -V 2>&1` in
7628*GNU* | *'with BFD'*)
7629 symcode='[ABCDGIRSTW]' ;;
7630esac
7631
7632# Try without a prefix undercore, then with it.
7633for ac_symprfx in "" "_"; do
7634
7635 # Write the raw and C identifiers.
7636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7637
7638 # Check to see that the pipe works correctly.
7639 pipe_works=no
7640
7641 rm -f conftest*
7642 cat > conftest.$ac_ext <<EOF
7643#ifdef __cplusplus
7644extern "C" {
7645#endif
7646char nm_test_var;
7647void nm_test_func(){}
7648#ifdef __cplusplus
7649}
7650#endif
7651int main(){nm_test_var='a';nm_test_func();return(0);}
7652EOF
7653
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; then
7659 # Now try to grab the symbols.
7660 nlist=conftest.nm
7661 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7662 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && test -s "$nlist"; then
7666 # Try sorting and uniquifying the output.
7667 if sort "$nlist" | uniq > "$nlist"T; then
7668 mv -f "$nlist"T "$nlist"
7669 else
7670 rm -f "$nlist"T
7671 fi
7672
7673 # Make sure that we snagged all the symbols we need.
7674 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7675 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7676 cat <<EOF > conftest.$ac_ext
7677#ifdef __cplusplus
7678extern "C" {
7679#endif
7680
7681EOF
7682 # Now generate the symbol file.
7683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7684
7685 cat <<EOF >> conftest.$ac_ext
7686#if defined (__STDC__) && __STDC__
7687# define lt_ptr_t void *
7688#else
7689# define lt_ptr_t char *
7690# define const
7691#endif
7692
7693/* The mapping between symbol names and symbols. */
7694const struct {
7695 const char *name;
7696 lt_ptr_t address;
7697}
7698lt_preloaded_symbols[] =
7699{
7700EOF
7701 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7702 cat <<\EOF >> conftest.$ac_ext
7703 {0, (lt_ptr_t) 0}
7704};
7705
7706#ifdef __cplusplus
7707}
7708#endif
7709EOF
7710 # Now try linking the two files.
7711 mv conftest.$ac_objext conftstm.$ac_objext
7712 lt_save_LIBS="$LIBS"
7713 lt_save_CFLAGS="$CFLAGS"
7714 LIBS="conftstm.$ac_objext"
7715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717 (eval $ac_link) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7721 pipe_works=yes
7722 fi
7723 LIBS="$lt_save_LIBS"
7724 CFLAGS="$lt_save_CFLAGS"
7725 else
7726 echo "cannot find nm_test_func in $nlist" >&5
7727 fi
7728 else
7729 echo "cannot find nm_test_var in $nlist" >&5
7730 fi
7731 else
7732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7733 fi
7734 else
7735 echo "$progname: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 fi
7738 rm -f conftest* conftst*
7739
7740 # Do not use the global_symbol_pipe unless it works.
7741 if test "$pipe_works" = yes; then
7742 break
7743 else
7744 lt_cv_sys_global_symbol_pipe=
7745 fi
7746done
7747
7748fi
7749
7750if test -z "$lt_cv_sys_global_symbol_pipe"; then
7751 lt_cv_sys_global_symbol_to_cdecl=
7752fi
7753if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7754 echo "$as_me:$LINENO: result: failed" >&5
7755echo "${ECHO_T}failed" >&6
7756else
7757 echo "$as_me:$LINENO: result: ok" >&5
7758echo "${ECHO_T}ok" >&6
7759fi
7760
7761
7762echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7763echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7764if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7768 libltdl_cv_preloaded_symbols=yes
7769 else
7770 libltdl_cv_preloaded_symbols=no
7771 fi
7772
7773fi
7774echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7775echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7776if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7777
7778cat >>confdefs.h <<\_ACEOF
7779#define HAVE_PRELOADED_SYMBOLS 1
7780_ACEOF
7781
7782fi
7783
7784LIBADD_DL=
7785
7786ac_ext=c
7787ac_cpp='$CPP $CPPFLAGS'
7788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791
7792
7793echo "$as_me:$LINENO: checking for shl_load" >&5
7794echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7795if test "${ac_cv_func_shl_load+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 cat >conftest.$ac_ext <<_ACEOF
7799/* confdefs.h. */
7800_ACEOF
7801cat confdefs.h >>conftest.$ac_ext
7802cat >>conftest.$ac_ext <<_ACEOF
7803/* end confdefs.h. */
7804/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7806#define shl_load innocuous_shl_load
7807
7808/* System header to define __stub macros and hopefully few prototypes,
7809 which can conflict with char shl_load (); below.
7810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811 <limits.h> exists even on freestanding compilers. */
7812
7813#ifdef __STDC__
7814# include <limits.h>
7815#else
7816# include <assert.h>
7817#endif
7818
7819#undef shl_load
7820
7821/* Override any gcc2 internal prototype to avoid an error. */
7822#ifdef __cplusplus
7823extern "C"
7824{
7825#endif
7826/* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828char shl_load ();
7829/* The GNU C library defines this for functions which it implements
7830 to always fail with ENOSYS. Some functions are actually named
7831 something starting with __ and the normal name is an alias. */
7832#if defined (__stub_shl_load) || defined (__stub___shl_load)
7833choke me
7834#else
7835char (*f) () = shl_load;
7836#endif
7837#ifdef __cplusplus
7838}
7839#endif
7840
7841int
7842main ()
7843{
7844return f != shl_load;
7845 ;
7846 return 0;
7847}
7848_ACEOF
7849rm -f conftest.$ac_objext conftest$ac_exeext
7850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>conftest.er1
7852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag"
7859 || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_func_shl_load=yes
7872else
7873 echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876ac_cv_func_shl_load=no
7877fi
7878rm -f conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880fi
7881echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7882echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7883if test $ac_cv_func_shl_load = yes; then
7884
7885cat >>confdefs.h <<\_ACEOF
7886#define HAVE_SHL_LOAD 1
7887_ACEOF
7888
7889else
7890 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7891echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7892if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 ac_check_lib_save_LIBS=$LIBS
7896LIBS="-ldld $LIBS"
7897cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7903
7904/* Override any gcc2 internal prototype to avoid an error. */
7905#ifdef __cplusplus
7906extern "C"
7907#endif
7908/* We use char because int might match the return type of a gcc2
7909 builtin and then its argument prototype would still apply. */
7910char shl_load ();
7911int
7912main ()
7913{
7914shl_load ();
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest.$ac_objext conftest$ac_exeext
7920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag"
7929 || test ! -s conftest.err'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 ac_cv_lib_dld_shl_load=yes
7942else
7943 echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946ac_cv_lib_dld_shl_load=no
7947fi
7948rm -f conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950LIBS=$ac_check_lib_save_LIBS
7951fi
7952echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7953echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7954if test $ac_cv_lib_dld_shl_load = yes; then
7955
7956cat >>confdefs.h <<\_ACEOF
7957#define HAVE_SHL_LOAD 1
7958_ACEOF
7959
7960 LIBADD_DL="$LIBADD_DL -ldld"
7961else
7962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967 ac_check_lib_save_LIBS=$LIBS
7968LIBS="-ldl $LIBS"
7969cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h. */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h. */
7975
7976/* Override any gcc2 internal prototype to avoid an error. */
7977#ifdef __cplusplus
7978extern "C"
7979#endif
7980/* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7982char dlopen ();
7983int
7984main ()
7985{
7986dlopen ();
7987 ;
7988 return 0;
7989}
7990_ACEOF
7991rm -f conftest.$ac_objext conftest$ac_exeext
7992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_lib_dl_dlopen=yes
8014else
8015 echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018ac_cv_lib_dl_dlopen=no
8019fi
8020rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022LIBS=$ac_check_lib_save_LIBS
8023fi
8024echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8025echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8026if test $ac_cv_lib_dl_dlopen = yes; then
8027
8028cat >>confdefs.h <<\_ACEOF
8029#define HAVE_LIBDL 1
8030_ACEOF
8031
8032 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8033else
8034 cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040#if HAVE_DLFCN_H
8041# include <dlfcn.h>
8042#endif
8043
8044int
8045main ()
8046{
8047dlopen(0, 0);
8048 ;
8049 return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext conftest$ac_exeext
8053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074
8075cat >>confdefs.h <<\_ACEOF
8076#define HAVE_LIBDL 1
8077_ACEOF
8078 libltdl_cv_func_dlopen="yes"
8079else
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8084echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8085if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 ac_check_lib_save_LIBS=$LIBS
8089LIBS="-lsvld $LIBS"
8090cat >conftest.$ac_ext <<_ACEOF
8091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
8096
8097/* Override any gcc2 internal prototype to avoid an error. */
8098#ifdef __cplusplus
8099extern "C"
8100#endif
8101/* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103char dlopen ();
8104int
8105main ()
8106{
8107dlopen ();
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext conftest$ac_exeext
8113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_lib_svld_dlopen=yes
8135else
8136 echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139ac_cv_lib_svld_dlopen=no
8140fi
8141rm -f conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143LIBS=$ac_check_lib_save_LIBS
8144fi
8145echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8146echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8147if test $ac_cv_lib_svld_dlopen = yes; then
8148
8149cat >>confdefs.h <<\_ACEOF
8150#define HAVE_LIBDL 1
8151_ACEOF
8152
8153 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8154else
8155 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8156echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8157if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160 ac_check_lib_save_LIBS=$LIBS
8161LIBS="-ldld $LIBS"
8162cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h. */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h. */
8168
8169/* Override any gcc2 internal prototype to avoid an error. */
8170#ifdef __cplusplus
8171extern "C"
8172#endif
8173/* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8175char dld_link ();
8176int
8177main ()
8178{
8179dld_link ();
8180 ;
8181 return 0;
8182}
8183_ACEOF
8184rm -f conftest.$ac_objext conftest$ac_exeext
8185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag"
8194 || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest$ac_exeext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_cv_lib_dld_dld_link=yes
8207else
8208 echo "$as_me: failed program was:" >&5
8209sed 's/^/| /' conftest.$ac_ext >&5
8210
8211ac_cv_lib_dld_dld_link=no
8212fi
8213rm -f conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8215LIBS=$ac_check_lib_save_LIBS
8216fi
8217echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219if test $ac_cv_lib_dld_dld_link = yes; then
8220
8221cat >>confdefs.h <<\_ACEOF
8222#define HAVE_DLD 1
8223_ACEOF
8224
8225 LIBADD_DL="$LIBADD_DL -ldld"
8226else
8227 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8228echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8229if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 cat >conftest.$ac_ext <<_ACEOF
8233/* confdefs.h. */
8234_ACEOF
8235cat confdefs.h >>conftest.$ac_ext
8236cat >>conftest.$ac_ext <<_ACEOF
8237/* end confdefs.h. */
8238/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8240#define _dyld_func_lookup innocuous__dyld_func_lookup
8241
8242/* System header to define __stub macros and hopefully few prototypes,
8243 which can conflict with char _dyld_func_lookup (); below.
8244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8245 <limits.h> exists even on freestanding compilers. */
8246
8247#ifdef __STDC__
8248# include <limits.h>
8249#else
8250# include <assert.h>
8251#endif
8252
8253#undef _dyld_func_lookup
8254
8255/* Override any gcc2 internal prototype to avoid an error. */
8256#ifdef __cplusplus
8257extern "C"
8258{
8259#endif
8260/* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8262char _dyld_func_lookup ();
8263/* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8267choke me
8268#else
8269char (*f) () = _dyld_func_lookup;
8270#endif
8271#ifdef __cplusplus
8272}
8273#endif
8274
8275int
8276main ()
8277{
8278return f != _dyld_func_lookup;
8279 ;
8280 return 0;
8281}
8282_ACEOF
8283rm -f conftest.$ac_objext conftest$ac_exeext
8284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_func__dyld_func_lookup=yes
8306else
8307 echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
8309
8310ac_cv_func__dyld_func_lookup=no
8311fi
8312rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314fi
8315echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8316echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8317if test $ac_cv_func__dyld_func_lookup = yes; then
8318
8319cat >>confdefs.h <<\_ACEOF
8320#define HAVE_DYLD 1
8321_ACEOF
8322
8323fi
8324
8325
8326fi
8327
8328
8329fi
8330
8331
8332fi
8333rm -f conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8335
8336fi
8337
8338
8339fi
8340
8341
8342fi
8343
8344
8345if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8346then
8347 lt_save_LIBS="$LIBS"
8348 LIBS="$LIBS $LIBADD_DL"
8349
8350for ac_func in dlerror
8351do
8352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8353echo "$as_me:$LINENO: checking for $ac_func" >&5
8354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8355if eval "test \"\${$as_ac_var+set}\" = set"; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8366#define $ac_func innocuous_$ac_func
8367
8368/* System header to define __stub macros and hopefully few prototypes,
8369 which can conflict with char $ac_func (); below.
8370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371 <limits.h> exists even on freestanding compilers. */
8372
8373#ifdef __STDC__
8374# include <limits.h>
8375#else
8376# include <assert.h>
8377#endif
8378
8379#undef $ac_func
8380
8381/* Override any gcc2 internal prototype to avoid an error. */
8382#ifdef __cplusplus
8383extern "C"
8384{
8385#endif
8386/* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8388char $ac_func ();
8389/* The GNU C library defines this for functions which it implements
8390 to always fail with ENOSYS. Some functions are actually named
8391 something starting with __ and the normal name is an alias. */
8392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8393choke me
8394#else
8395char (*f) () = $ac_func;
8396#endif
8397#ifdef __cplusplus
8398}
8399#endif
8400
8401int
8402main ()
8403{
8404return f != $ac_func;
8405 ;
8406 return 0;
8407}
8408_ACEOF
8409rm -f conftest.$ac_objext conftest$ac_exeext
8410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 eval "$as_ac_var=yes"
8432else
8433 echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
8436eval "$as_ac_var=no"
8437fi
8438rm -f conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440fi
8441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8442echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8443if test `eval echo '${'$as_ac_var'}'` = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446_ACEOF
8447
8448fi
8449done
8450
8451 LIBS="$lt_save_LIBS"
8452fi
8453ac_ext=c
8454ac_cpp='$CPP $CPPFLAGS'
8455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458
8459
8460
8461echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8462echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8463if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465else
8466 ac_cv_sys_symbol_underscore=no
8467 cat > conftest.$ac_ext <<EOF
8468void nm_test_func(){}
8469int main(){nm_test_func;return 0;}
8470EOF
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; then
8476 # Now try to grab the symbols.
8477 ac_nlist=conftest.nm
8478 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8479 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && test -s "$ac_nlist"; then
8483 # See whether the symbols have a leading underscore.
8484 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8485 ac_cv_sys_symbol_underscore=yes
8486 else
8487 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8488 :
8489 else
8490 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8491 fi
8492 fi
8493 else
8494 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8495 fi
8496 else
8497 echo "configure: failed program was:" >&5
8498 cat conftest.c >&5
8499 fi
8500 rm -rf conftest*
8501
8502fi
8503echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8504echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8505
8506
8507if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8508 if test x"$libltdl_cv_func_dlopen" = xyes ||
8509 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8510 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8511echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8512if test "${libltdl_cv_need_uscore+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515 libltdl_cv_need_uscore=unknown
8516 save_LIBS="$LIBS"
8517 LIBS="$LIBS $LIBADD_DL"
8518 if test "$cross_compiling" = yes; then :
8519 libltdl_cv_need_uscore=cross
8520else
8521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8522 lt_status=$lt_dlunknown
8523 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +00008524#line 8524 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008525#include "confdefs.h"
8526
8527#if HAVE_DLFCN_H
8528#include <dlfcn.h>
8529#endif
8530
8531#include <stdio.h>
8532
8533#ifdef RTLD_GLOBAL
8534# define LT_DLGLOBAL RTLD_GLOBAL
8535#else
8536# ifdef DL_GLOBAL
8537# define LT_DLGLOBAL DL_GLOBAL
8538# else
8539# define LT_DLGLOBAL 0
8540# endif
8541#endif
8542
8543/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8544 find out it does not work in some platform. */
8545#ifndef LT_DLLAZY_OR_NOW
8546# ifdef RTLD_LAZY
8547# define LT_DLLAZY_OR_NOW RTLD_LAZY
8548# else
8549# ifdef DL_LAZY
8550# define LT_DLLAZY_OR_NOW DL_LAZY
8551# else
8552# ifdef RTLD_NOW
8553# define LT_DLLAZY_OR_NOW RTLD_NOW
8554# else
8555# ifdef DL_NOW
8556# define LT_DLLAZY_OR_NOW DL_NOW
8557# else
8558# define LT_DLLAZY_OR_NOW 0
8559# endif
8560# endif
8561# endif
8562# endif
8563#endif
8564
8565#ifdef __cplusplus
8566extern "C" void exit (int);
8567#endif
8568
8569void fnord() { int i=42;}
8570int main ()
8571{
8572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8573 int status = $lt_dlunknown;
8574
8575 if (self)
8576 {
8577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8578 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8579 /* dlclose (self); */
8580 }
8581
8582 exit (status);
8583}
8584EOF
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8590 (./conftest; exit; ) 2>/dev/null
8591 lt_status=$?
8592 case x$lt_status in
8593 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8594 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8595 x$lt_unknown|x*) ;;
8596 esac
8597 else :
8598 # compilation failed
8599
8600 fi
8601fi
8602rm -fr conftest*
8603
8604 LIBS="$save_LIBS"
8605
8606fi
8607echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8608echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8609 fi
8610fi
8611
8612if test x"$libltdl_cv_need_uscore" = xyes; then
8613
8614cat >>confdefs.h <<\_ACEOF
8615#define NEED_USCORE 1
8616_ACEOF
8617
8618fi
8619
8620
8621echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8622echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8623if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625else
8626 # PORTME does your system automatically load deplibs for dlopen?
8627 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8628 # For now, we just catch OSes we know something about -- in the
8629 # future, we'll try test this programmatically.
8630 libltdl_cv_sys_dlopen_deplibs=unknown
8631 case "$host_os" in
8632 aix3*|aix4.1.*|aix4.2.*)
8633 # Unknown whether this is true for these versions of AIX, but
8634 # we want this `case' here to explicitly catch those versions.
8635 libltdl_cv_sys_dlopen_deplibs=unknown
8636 ;;
8637 aix[45]*)
8638 libltdl_cv_sys_dlopen_deplibs=yes
8639 ;;
8640 darwin*)
8641 # Assuming the user has installed a libdl from somewhere, this is true
8642 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8643 libltdl_cv_sys_dlopen_deplibs=yes
8644 ;;
8645 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8646 # GNU and its variants, using gnu ld.so (Glibc)
8647 libltdl_cv_sys_dlopen_deplibs=yes
8648 ;;
8649 hpux10*|hpux11*)
8650 libltdl_cv_sys_dlopen_deplibs=yes
8651 ;;
8652 irix[12345]*|irix6.[01]*)
8653 # Catch all versions of IRIX before 6.2, and indicate that we don't
8654 # know how it worked for any of those versions.
8655 libltdl_cv_sys_dlopen_deplibs=unknown
8656 ;;
8657 irix*)
8658 # The case above catches anything before 6.2, and it's known that
8659 # at 6.2 and later dlopen does load deplibs.
8660 libltdl_cv_sys_dlopen_deplibs=yes
8661 ;;
8662 netbsd*)
8663 libltdl_cv_sys_dlopen_deplibs=yes
8664 ;;
8665 openbsd*)
8666 libltdl_cv_sys_dlopen_deplibs=yes
8667 ;;
8668 osf[1234]*)
8669 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8670 # it did *not* use an RPATH in a shared library to find objects the
8671 # library depends on, so we explictly say `no'.
8672 libltdl_cv_sys_dlopen_deplibs=no
8673 ;;
8674 osf5.0|osf5.0a|osf5.1)
8675 # dlopen *does* load deplibs and with the right loader patch applied
8676 # it even uses RPATH in a shared library to search for shared objects
8677 # that the library depends on, but there's no easy way to know if that
8678 # patch is installed. Since this is the case, all we can really
8679 # say is unknown -- it depends on the patch being installed. If
8680 # it is, this changes to `yes'. Without it, it would be `no'.
8681 libltdl_cv_sys_dlopen_deplibs=unknown
8682 ;;
8683 osf*)
8684 # the two cases above should catch all versions of osf <= 5.1. Read
8685 # the comments above for what we know about them.
8686 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8687 # is used to find them so we can finally say `yes'.
8688 libltdl_cv_sys_dlopen_deplibs=yes
8689 ;;
8690 solaris*)
8691 libltdl_cv_sys_dlopen_deplibs=yes
8692 ;;
8693 esac
8694
8695fi
8696echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8697echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8698if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8699
8700cat >>confdefs.h <<\_ACEOF
8701#define LTDL_DLOPEN_DEPLIBS 1
8702_ACEOF
8703
8704fi
8705
8706
8707for ac_header in argz.h
8708do
8709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo "$as_me:$LINENO: checking for $ac_header" >&5
8712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8715fi
8716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718else
8719 # Is the header compilable?
8720echo "$as_me:$LINENO: checking $ac_header usability" >&5
8721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8722cat >conftest.$ac_ext <<_ACEOF
8723/* confdefs.h. */
8724_ACEOF
8725cat confdefs.h >>conftest.$ac_ext
8726cat >>conftest.$ac_ext <<_ACEOF
8727/* end confdefs.h. */
8728$ac_includes_default
8729#include <$ac_header>
8730_ACEOF
8731rm -f conftest.$ac_objext
8732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733 (eval $ac_compile) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest.$ac_objext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_header_compiler=yes
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758ac_header_compiler=no
8759fi
8760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8762echo "${ECHO_T}$ac_header_compiler" >&6
8763
8764# Is the header present?
8765echo "$as_me:$LINENO: checking $ac_header presence" >&5
8766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8767cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h. */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h. */
8773#include <$ac_header>
8774_ACEOF
8775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } >/dev/null; then
8783 if test -s conftest.err; then
8784 ac_cpp_err=$ac_c_preproc_warn_flag
8785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8786 else
8787 ac_cpp_err=
8788 fi
8789else
8790 ac_cpp_err=yes
8791fi
8792if test -z "$ac_cpp_err"; then
8793 ac_header_preproc=yes
8794else
8795 echo "$as_me: failed program was:" >&5
8796sed 's/^/| /' conftest.$ac_ext >&5
8797
8798 ac_header_preproc=no
8799fi
8800rm -f conftest.err conftest.$ac_ext
8801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802echo "${ECHO_T}$ac_header_preproc" >&6
8803
8804# So? What about this header?
8805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8806 yes:no: )
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8811 ac_header_preproc=yes
8812 ;;
8813 no:yes:* )
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8826 (
8827 cat <<\_ASBOX
8828## ----------------------------------- ##
8829## Report this to llvmbugs@cs.uiuc.edu ##
8830## ----------------------------------- ##
8831_ASBOX
8832 ) |
8833 sed "s/^/$as_me: WARNING: /" >&2
8834 ;;
8835esac
8836echo "$as_me:$LINENO: checking for $ac_header" >&5
8837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8838if eval "test \"\${$as_ac_Header+set}\" = set"; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840else
8841 eval "$as_ac_Header=\$ac_header_preproc"
8842fi
8843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8845
8846fi
8847if test `eval echo '${'$as_ac_Header'}'` = yes; then
8848 cat >>confdefs.h <<_ACEOF
8849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8850_ACEOF
8851
8852fi
8853
8854done
8855
8856
8857echo "$as_me:$LINENO: checking for error_t" >&5
8858echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8859if test "${ac_cv_type_error_t+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h. */
8868#if HAVE_ARGZ_H
8869# include <argz.h>
8870#endif
8871
8872int
8873main ()
8874{
8875if ((error_t *) 0)
8876 return 0;
8877if (sizeof (error_t))
8878 return 0;
8879 ;
8880 return 0;
8881}
8882_ACEOF
8883rm -f conftest.$ac_objext
8884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_type_error_t=yes
8906else
8907 echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910ac_cv_type_error_t=no
8911fi
8912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8913fi
8914echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8915echo "${ECHO_T}$ac_cv_type_error_t" >&6
8916if test $ac_cv_type_error_t = yes; then
8917
8918cat >>confdefs.h <<_ACEOF
8919#define HAVE_ERROR_T 1
8920_ACEOF
8921
8922
8923else
8924
8925cat >>confdefs.h <<\_ACEOF
8926#define error_t int
8927_ACEOF
8928
8929fi
8930
8931
8932
8933
8934
8935
8936
8937for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8938do
8939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940echo "$as_me:$LINENO: checking for $ac_func" >&5
8941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8942if eval "test \"\${$as_ac_var+set}\" = set"; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944else
8945 cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
8951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8953#define $ac_func innocuous_$ac_func
8954
8955/* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8959
8960#ifdef __STDC__
8961# include <limits.h>
8962#else
8963# include <assert.h>
8964#endif
8965
8966#undef $ac_func
8967
8968/* Override any gcc2 internal prototype to avoid an error. */
8969#ifdef __cplusplus
8970extern "C"
8971{
8972#endif
8973/* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975char $ac_func ();
8976/* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980choke me
8981#else
8982char (*f) () = $ac_func;
8983#endif
8984#ifdef __cplusplus
8985}
8986#endif
8987
8988int
8989main ()
8990{
8991return f != $ac_func;
8992 ;
8993 return 0;
8994}
8995_ACEOF
8996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 eval "$as_ac_var=yes"
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023eval "$as_ac_var=no"
9024fi
9025rm -f conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9027fi
9028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9030if test `eval echo '${'$as_ac_var'}'` = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9033_ACEOF
9034
9035fi
9036done
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9066 stdio.h unistd.h
9067do
9068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070 echo "$as_me:$LINENO: checking for $ac_header" >&5
9071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074fi
9075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077else
9078 # Is the header compilable?
9079echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h. */
9087$ac_includes_default
9088#include <$ac_header>
9089_ACEOF
9090rm -f conftest.$ac_objext
9091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_header_compiler=yes
9113else
9114 echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117ac_header_compiler=no
9118fi
9119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121echo "${ECHO_T}$ac_header_compiler" >&6
9122
9123# Is the header present?
9124echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
9132#include <$ac_header>
9133_ACEOF
9134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev/null; then
9142 if test -s conftest.err; then
9143 ac_cpp_err=$ac_c_preproc_warn_flag
9144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9145 else
9146 ac_cpp_err=
9147 fi
9148else
9149 ac_cpp_err=yes
9150fi
9151if test -z "$ac_cpp_err"; then
9152 ac_header_preproc=yes
9153else
9154 echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_header_preproc=no
9158fi
9159rm -f conftest.err conftest.$ac_ext
9160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161echo "${ECHO_T}$ac_header_preproc" >&6
9162
9163# So? What about this header?
9164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9165 yes:no: )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170 ac_header_preproc=yes
9171 ;;
9172 no:yes:* )
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9185 (
9186 cat <<\_ASBOX
9187## ----------------------------------- ##
9188## Report this to llvmbugs@cs.uiuc.edu ##
9189## ----------------------------------- ##
9190_ASBOX
9191 ) |
9192 sed "s/^/$as_me: WARNING: /" >&2
9193 ;;
9194esac
9195echo "$as_me:$LINENO: checking for $ac_header" >&5
9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200 eval "$as_ac_Header=\$ac_header_preproc"
9201fi
9202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204
9205fi
9206if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209_ACEOF
9210
9211fi
9212
9213done
9214
9215
9216
9217
9218
9219for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9220do
9221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223 echo "$as_me:$LINENO: checking for $ac_header" >&5
9224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227fi
9228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9230else
9231 # Is the header compilable?
9232echo "$as_me:$LINENO: checking $ac_header usability" >&5
9233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9234cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h. */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h. */
9240$ac_includes_default
9241#include <$ac_header>
9242_ACEOF
9243rm -f conftest.$ac_objext
9244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245 (eval $ac_compile) 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest.$ac_objext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler=yes
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270ac_header_compiler=no
9271fi
9272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9274echo "${ECHO_T}$ac_header_compiler" >&6
9275
9276# Is the header present?
9277echo "$as_me:$LINENO: checking $ac_header presence" >&5
9278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9279cat >conftest.$ac_ext <<_ACEOF
9280/* confdefs.h. */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h. */
9285#include <$ac_header>
9286_ACEOF
9287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null; then
9295 if test -s conftest.err; then
9296 ac_cpp_err=$ac_c_preproc_warn_flag
9297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9298 else
9299 ac_cpp_err=
9300 fi
9301else
9302 ac_cpp_err=yes
9303fi
9304if test -z "$ac_cpp_err"; then
9305 ac_header_preproc=yes
9306else
9307 echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 ac_header_preproc=no
9311fi
9312rm -f conftest.err conftest.$ac_ext
9313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314echo "${ECHO_T}$ac_header_preproc" >&6
9315
9316# So? What about this header?
9317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9318 yes:no: )
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9323 ac_header_preproc=yes
9324 ;;
9325 no:yes:* )
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9338 (
9339 cat <<\_ASBOX
9340## ----------------------------------- ##
9341## Report this to llvmbugs@cs.uiuc.edu ##
9342## ----------------------------------- ##
9343_ASBOX
9344 ) |
9345 sed "s/^/$as_me: WARNING: /" >&2
9346 ;;
9347esac
9348echo "$as_me:$LINENO: checking for $ac_header" >&5
9349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353 eval "$as_ac_Header=\$ac_header_preproc"
9354fi
9355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357
9358fi
9359if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9362_ACEOF
9363
9364fi
9365
9366done
9367
9368
9369
9370for ac_header in string.h strings.h
9371do
9372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9373if eval "test \"\${$as_ac_Header+set}\" = set"; then
9374 echo "$as_me:$LINENO: checking for $ac_header" >&5
9375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9376if eval "test \"\${$as_ac_Header+set}\" = set"; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378fi
9379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9381else
9382 # Is the header compilable?
9383echo "$as_me:$LINENO: checking $ac_header usability" >&5
9384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9385cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391$ac_includes_default
9392#include <$ac_header>
9393_ACEOF
9394rm -f conftest.$ac_objext
9395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_header_compiler=yes
9417else
9418 echo "$as_me: failed program was:" >&5
9419sed 's/^/| /' conftest.$ac_ext >&5
9420
9421ac_header_compiler=no
9422fi
9423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9425echo "${ECHO_T}$ac_header_compiler" >&6
9426
9427# Is the header present?
9428echo "$as_me:$LINENO: checking $ac_header presence" >&5
9429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9430cat >conftest.$ac_ext <<_ACEOF
9431/* confdefs.h. */
9432_ACEOF
9433cat confdefs.h >>conftest.$ac_ext
9434cat >>conftest.$ac_ext <<_ACEOF
9435/* end confdefs.h. */
9436#include <$ac_header>
9437_ACEOF
9438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } >/dev/null; then
9446 if test -s conftest.err; then
9447 ac_cpp_err=$ac_c_preproc_warn_flag
9448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9449 else
9450 ac_cpp_err=
9451 fi
9452else
9453 ac_cpp_err=yes
9454fi
9455if test -z "$ac_cpp_err"; then
9456 ac_header_preproc=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_header_preproc=no
9462fi
9463rm -f conftest.err conftest.$ac_ext
9464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465echo "${ECHO_T}$ac_header_preproc" >&6
9466
9467# So? What about this header?
9468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9469 yes:no: )
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9474 ac_header_preproc=yes
9475 ;;
9476 no:yes:* )
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9489 (
9490 cat <<\_ASBOX
9491## ----------------------------------- ##
9492## Report this to llvmbugs@cs.uiuc.edu ##
9493## ----------------------------------- ##
9494_ASBOX
9495 ) |
9496 sed "s/^/$as_me: WARNING: /" >&2
9497 ;;
9498esac
9499echo "$as_me:$LINENO: checking for $ac_header" >&5
9500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503else
9504 eval "$as_ac_Header=\$ac_header_preproc"
9505fi
9506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9508
9509fi
9510if test `eval echo '${'$as_ac_Header'}'` = yes; then
9511 cat >>confdefs.h <<_ACEOF
9512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513_ACEOF
9514 break
9515fi
9516
9517done
9518
9519
9520
9521
9522for ac_func in strchr index
9523do
9524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9525echo "$as_me:$LINENO: checking for $ac_func" >&5
9526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9527if eval "test \"\${$as_ac_var+set}\" = set"; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
9536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538#define $ac_func innocuous_$ac_func
9539
9540/* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char $ac_func (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9544
9545#ifdef __STDC__
9546# include <limits.h>
9547#else
9548# include <assert.h>
9549#endif
9550
9551#undef $ac_func
9552
9553/* Override any gcc2 internal prototype to avoid an error. */
9554#ifdef __cplusplus
9555extern "C"
9556{
9557#endif
9558/* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560char $ac_func ();
9561/* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9565choke me
9566#else
9567char (*f) () = $ac_func;
9568#endif
9569#ifdef __cplusplus
9570}
9571#endif
9572
9573int
9574main ()
9575{
9576return f != $ac_func;
9577 ;
9578 return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext conftest$ac_exeext
9582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 eval "$as_ac_var=yes"
9604else
9605 echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
9608eval "$as_ac_var=no"
9609fi
9610rm -f conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612fi
9613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9615if test `eval echo '${'$as_ac_var'}'` = yes; then
9616 cat >>confdefs.h <<_ACEOF
9617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9618_ACEOF
9619 break
9620fi
9621done
9622
9623
9624
9625for ac_func in strrchr rindex
9626do
9627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9628echo "$as_me:$LINENO: checking for $ac_func" >&5
9629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9630if eval "test \"\${$as_ac_var+set}\" = set"; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633 cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9641#define $ac_func innocuous_$ac_func
9642
9643/* System header to define __stub macros and hopefully few prototypes,
9644 which can conflict with char $ac_func (); below.
9645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9646 <limits.h> exists even on freestanding compilers. */
9647
9648#ifdef __STDC__
9649# include <limits.h>
9650#else
9651# include <assert.h>
9652#endif
9653
9654#undef $ac_func
9655
9656/* Override any gcc2 internal prototype to avoid an error. */
9657#ifdef __cplusplus
9658extern "C"
9659{
9660#endif
9661/* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9663char $ac_func ();
9664/* The GNU C library defines this for functions which it implements
9665 to always fail with ENOSYS. Some functions are actually named
9666 something starting with __ and the normal name is an alias. */
9667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9668choke me
9669#else
9670char (*f) () = $ac_func;
9671#endif
9672#ifdef __cplusplus
9673}
9674#endif
9675
9676int
9677main ()
9678{
9679return f != $ac_func;
9680 ;
9681 return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
9685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag"
9694 || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 eval "$as_ac_var=yes"
9707else
9708 echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711eval "$as_ac_var=no"
9712fi
9713rm -f conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715fi
9716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9718if test `eval echo '${'$as_ac_var'}'` = yes; then
9719 cat >>confdefs.h <<_ACEOF
9720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721_ACEOF
9722 break
9723fi
9724done
9725
9726
9727
9728for ac_func in memcpy bcopy
9729do
9730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9731echo "$as_me:$LINENO: checking for $ac_func" >&5
9732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9733if eval "test \"\${$as_ac_var+set}\" = set"; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735else
9736 cat >conftest.$ac_ext <<_ACEOF
9737/* confdefs.h. */
9738_ACEOF
9739cat confdefs.h >>conftest.$ac_ext
9740cat >>conftest.$ac_ext <<_ACEOF
9741/* end confdefs.h. */
9742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744#define $ac_func innocuous_$ac_func
9745
9746/* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char $ac_func (); below.
9748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749 <limits.h> exists even on freestanding compilers. */
9750
9751#ifdef __STDC__
9752# include <limits.h>
9753#else
9754# include <assert.h>
9755#endif
9756
9757#undef $ac_func
9758
9759/* Override any gcc2 internal prototype to avoid an error. */
9760#ifdef __cplusplus
9761extern "C"
9762{
9763#endif
9764/* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9766char $ac_func ();
9767/* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9771choke me
9772#else
9773char (*f) () = $ac_func;
9774#endif
9775#ifdef __cplusplus
9776}
9777#endif
9778
9779int
9780main ()
9781{
9782return f != $ac_func;
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 eval "$as_ac_var=yes"
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814eval "$as_ac_var=no"
9815fi
9816rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818fi
9819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9821if test `eval echo '${'$as_ac_var'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9824_ACEOF
9825 break
9826fi
9827done
9828
9829
9830
9831for ac_func in memmove strcmp
9832do
9833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9834echo "$as_me:$LINENO: checking for $ac_func" >&5
9835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9836if eval "test \"\${$as_ac_var+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839 cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h. */
9845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9847#define $ac_func innocuous_$ac_func
9848
9849/* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char $ac_func (); below.
9851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852 <limits.h> exists even on freestanding compilers. */
9853
9854#ifdef __STDC__
9855# include <limits.h>
9856#else
9857# include <assert.h>
9858#endif
9859
9860#undef $ac_func
9861
9862/* Override any gcc2 internal prototype to avoid an error. */
9863#ifdef __cplusplus
9864extern "C"
9865{
9866#endif
9867/* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9869char $ac_func ();
9870/* The GNU C library defines this for functions which it implements
9871 to always fail with ENOSYS. Some functions are actually named
9872 something starting with __ and the normal name is an alias. */
9873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9874choke me
9875#else
9876char (*f) () = $ac_func;
9877#endif
9878#ifdef __cplusplus
9879}
9880#endif
9881
9882int
9883main ()
9884{
9885return f != $ac_func;
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 eval "$as_ac_var=yes"
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917eval "$as_ac_var=no"
9918fi
9919rm -f conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921fi
9922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9924if test `eval echo '${'$as_ac_var'}'` = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927_ACEOF
9928
9929fi
9930done
9931
9932
9933
9934
9935for ac_func in closedir opendir readdir
9936do
9937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938echo "$as_me:$LINENO: checking for $ac_func" >&5
9939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940if eval "test \"\${$as_ac_var+set}\" = set"; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h. */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h. */
9949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9951#define $ac_func innocuous_$ac_func
9952
9953/* System header to define __stub macros and hopefully few prototypes,
9954 which can conflict with char $ac_func (); below.
9955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9956 <limits.h> exists even on freestanding compilers. */
9957
9958#ifdef __STDC__
9959# include <limits.h>
9960#else
9961# include <assert.h>
9962#endif
9963
9964#undef $ac_func
9965
9966/* Override any gcc2 internal prototype to avoid an error. */
9967#ifdef __cplusplus
9968extern "C"
9969{
9970#endif
9971/* We use char because int might match the return type of a gcc2
9972 builtin and then its argument prototype would still apply. */
9973char $ac_func ();
9974/* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9978choke me
9979#else
9980char (*f) () = $ac_func;
9981#endif
9982#ifdef __cplusplus
9983}
9984#endif
9985
9986int
9987main ()
9988{
9989return f != $ac_func;
9990 ;
9991 return 0;
9992}
9993_ACEOF
9994rm -f conftest.$ac_objext conftest$ac_exeext
9995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag"
10004 || test ! -s conftest.err'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; } &&
10010 { ac_try='test -s conftest$ac_exeext'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 eval "$as_ac_var=yes"
10017else
10018 echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021eval "$as_ac_var=no"
10022fi
10023rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025fi
10026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10028if test `eval echo '${'$as_ac_var'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031_ACEOF
10032
10033fi
10034done
10035
10036
10037# Check whether --enable-shared or --disable-shared was given.
10038if test "${enable_shared+set}" = set; then
10039 enableval="$enable_shared"
10040 p=${PACKAGE-default}
10041 case $enableval in
10042 yes) enable_shared=yes ;;
10043 no) enable_shared=no ;;
10044 *)
10045 enable_shared=no
10046 # Look at the argument we got. We use all the common list separators.
10047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10048 for pkg in $enableval; do
10049 IFS="$lt_save_ifs"
10050 if test "X$pkg" = "X$p"; then
10051 enable_shared=yes
10052 fi
10053 done
10054 IFS="$lt_save_ifs"
10055 ;;
10056 esac
10057else
10058 enable_shared=yes
10059fi;
10060
10061# Check whether --enable-static or --disable-static was given.
10062if test "${enable_static+set}" = set; then
10063 enableval="$enable_static"
10064 p=${PACKAGE-default}
10065 case $enableval in
10066 yes) enable_static=yes ;;
10067 no) enable_static=no ;;
10068 *)
10069 enable_static=no
10070 # Look at the argument we got. We use all the common list separators.
10071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10072 for pkg in $enableval; do
10073 IFS="$lt_save_ifs"
10074 if test "X$pkg" = "X$p"; then
10075 enable_static=yes
10076 fi
10077 done
10078 IFS="$lt_save_ifs"
10079 ;;
10080 esac
10081else
10082 enable_static=yes
10083fi;
10084
10085# Check whether --enable-fast-install or --disable-fast-install was given.
10086if test "${enable_fast_install+set}" = set; then
10087 enableval="$enable_fast_install"
10088 p=${PACKAGE-default}
10089 case $enableval in
10090 yes) enable_fast_install=yes ;;
10091 no) enable_fast_install=no ;;
10092 *)
10093 enable_fast_install=no
10094 # Look at the argument we got. We use all the common list separators.
10095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10096 for pkg in $enableval; do
10097 IFS="$lt_save_ifs"
10098 if test "X$pkg" = "X$p"; then
10099 enable_fast_install=yes
10100 fi
10101 done
10102 IFS="$lt_save_ifs"
10103 ;;
10104 esac
10105else
10106 enable_fast_install=yes
10107fi;
10108
10109echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10110echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10111if test "${lt_cv_path_SED+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 # Loop through the user's path and test for sed and gsed.
10115# Then use that list of sed's as ones to test for truncation.
10116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117for as_dir in $PATH
10118do
10119 IFS=$as_save_IFS
10120 test -z "$as_dir" && as_dir=.
10121 for lt_ac_prog in sed gsed; do
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10124 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10125 fi
10126 done
10127 done
10128done
10129lt_ac_max=0
10130lt_ac_count=0
10131# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10132# along with /bin/sed that truncates output.
10133for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10134 test ! -f $lt_ac_sed && break
10135 cat /dev/null > conftest.in
10136 lt_ac_count=0
10137 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10138 # Check for GNU sed and select it if it is found.
10139 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10140 lt_cv_path_SED=$lt_ac_sed
10141 break
10142 fi
10143 while true; do
10144 cat conftest.in conftest.in >conftest.tmp
10145 mv conftest.tmp conftest.in
10146 cp conftest.in conftest.nl
10147 echo >>conftest.nl
10148 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10149 cmp -s conftest.out conftest.nl || break
10150 # 10000 chars as input seems more than enough
10151 test $lt_ac_count -gt 10 && break
10152 lt_ac_count=`expr $lt_ac_count + 1`
10153 if test $lt_ac_count -gt $lt_ac_max; then
10154 lt_ac_max=$lt_ac_count
10155 lt_cv_path_SED=$lt_ac_sed
10156 fi
10157 done
10158done
10159
10160fi
10161
10162SED=$lt_cv_path_SED
10163echo "$as_me:$LINENO: result: $SED" >&5
10164echo "${ECHO_T}$SED" >&6
10165
10166
10167# Check whether --with-gnu-ld or --without-gnu-ld was given.
10168if test "${with_gnu_ld+set}" = set; then
10169 withval="$with_gnu_ld"
10170 test "$withval" = no || with_gnu_ld=yes
10171else
10172 with_gnu_ld=no
10173fi;
10174ac_prog=ld
10175if test "$GCC" = yes; then
10176 # Check if gcc -print-prog-name=ld gives a path.
10177 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10178echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10179 case $host in
10180 *-*-mingw*)
10181 # gcc leaves a trailing carriage return which upsets mingw
10182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10183 *)
10184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10185 esac
10186 case $ac_prog in
10187 # Accept absolute paths.
10188 [\\/]* | ?:[\\/]*)
10189 re_direlt='/[^/][^/]*/\.\./'
10190 # Canonicalize the pathname of ld
10191 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10193 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10194 done
10195 test -z "$LD" && LD="$ac_prog"
10196 ;;
10197 "")
10198 # If it fails, then pretend we aren't using GCC.
10199 ac_prog=ld
10200 ;;
10201 *)
10202 # If it is relative, then search for the first ld in PATH.
10203 with_gnu_ld=unknown
10204 ;;
10205 esac
10206elif test "$with_gnu_ld" = yes; then
10207 echo "$as_me:$LINENO: checking for GNU ld" >&5
10208echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10209else
10210 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10211echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10212fi
10213if test "${lt_cv_path_LD+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 if test -z "$LD"; then
10217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10218 for ac_dir in $PATH; do
10219 IFS="$lt_save_ifs"
10220 test -z "$ac_dir" && ac_dir=.
10221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10222 lt_cv_path_LD="$ac_dir/$ac_prog"
10223 # Check to see if the program is GNU ld. I'd rather use --version,
10224 # but apparently some GNU ld's only accept -v.
10225 # Break only if it was the GNU/non-GNU ld that we prefer.
10226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10227 *GNU* | *'with BFD'*)
10228 test "$with_gnu_ld" != no && break
10229 ;;
10230 *)
10231 test "$with_gnu_ld" != yes && break
10232 ;;
10233 esac
10234 fi
10235 done
10236 IFS="$lt_save_ifs"
10237else
10238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10239fi
10240fi
10241
10242LD="$lt_cv_path_LD"
10243if test -n "$LD"; then
10244 echo "$as_me:$LINENO: result: $LD" >&5
10245echo "${ECHO_T}$LD" >&6
10246else
10247 echo "$as_me:$LINENO: result: no" >&5
10248echo "${ECHO_T}no" >&6
10249fi
10250test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10251echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10252 { (exit 1); exit 1; }; }
10253echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10254echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10255if test "${lt_cv_prog_gnu_ld+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10259case `$LD -v 2>&1 </dev/null` in
10260*GNU* | *'with BFD'*)
10261 lt_cv_prog_gnu_ld=yes
10262 ;;
10263*)
10264 lt_cv_prog_gnu_ld=no
10265 ;;
10266esac
10267fi
10268echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10269echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10270with_gnu_ld=$lt_cv_prog_gnu_ld
10271
10272
10273echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10274echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10275if test "${lt_cv_ld_reload_flag+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277else
10278 lt_cv_ld_reload_flag='-r'
10279fi
10280echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10281echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10282reload_flag=$lt_cv_ld_reload_flag
10283case $reload_flag in
10284"" | " "*) ;;
10285*) reload_flag=" $reload_flag" ;;
10286esac
10287reload_cmds='$LD$reload_flag -o $output$reload_objs'
10288case $host_os in
10289 darwin*)
10290 if test "$GCC" = yes; then
Chris Lattnerb6f93412006-04-19 18:38:19 +000010291 reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292 else
10293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10294 fi
10295 ;;
10296esac
10297
10298echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10299echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10300if test "${lt_cv_deplibs_check_method+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 lt_cv_file_magic_cmd='$MAGIC_CMD'
10304lt_cv_file_magic_test_file=
10305lt_cv_deplibs_check_method='unknown'
10306# Need to set the preceding variable on all platforms that support
10307# interlibrary dependencies.
10308# 'none' -- dependencies not supported.
10309# `unknown' -- same as none, but documents that we really don't know.
10310# 'pass_all' -- all dependencies passed with no checks.
10311# 'test_compile' -- check by making test program.
10312# 'file_magic [[regex]]' -- check by looking for files in library path
10313# which responds to the $file_magic_cmd with a given extended regex.
10314# If you have `file' or equivalent on your system and you're not sure
10315# whether `pass_all' will *always* work, you probably want this one.
10316
10317case $host_os in
10318aix4* | aix5*)
10319 lt_cv_deplibs_check_method=pass_all
10320 ;;
10321
10322beos*)
10323 lt_cv_deplibs_check_method=pass_all
10324 ;;
10325
10326bsdi[45]*)
10327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10328 lt_cv_file_magic_cmd='/usr/bin/file -L'
10329 lt_cv_file_magic_test_file=/shlib/libc.so
10330 ;;
10331
10332cygwin*)
10333 # func_win32_libid is a shell function defined in ltmain.sh
10334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10335 lt_cv_file_magic_cmd='func_win32_libid'
10336 ;;
10337
10338mingw* | pw32*)
10339 # Base MSYS/MinGW do not provide the 'file' command needed by
10340 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10342 lt_cv_file_magic_cmd='$OBJDUMP -f'
10343 ;;
10344
10345darwin* | rhapsody*)
10346 lt_cv_deplibs_check_method=pass_all
10347 ;;
10348
10349freebsd* | kfreebsd*-gnu)
10350 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10351 case $host_cpu in
10352 i*86 )
10353 # Not sure whether the presence of OpenBSD here was a mistake.
10354 # Let's accept both of them until this is cleared up.
10355 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10356 lt_cv_file_magic_cmd=/usr/bin/file
10357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10358 ;;
10359 esac
10360 else
10361 lt_cv_deplibs_check_method=pass_all
10362 fi
10363 ;;
10364
10365gnu*)
10366 lt_cv_deplibs_check_method=pass_all
10367 ;;
10368
10369hpux10.20* | hpux11*)
10370 lt_cv_file_magic_cmd=/usr/bin/file
10371 case "$host_cpu" in
10372 ia64*)
10373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10374 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10375 ;;
10376 hppa*64*)
10377 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]'
10378 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10379 ;;
10380 *)
10381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10383 ;;
10384 esac
10385 ;;
10386
10387irix5* | irix6* | nonstopux*)
10388 case $LD in
10389 *-32|*"-32 ") libmagic=32-bit;;
10390 *-n32|*"-n32 ") libmagic=N32;;
10391 *-64|*"-64 ") libmagic=64-bit;;
10392 *) libmagic=never-match;;
10393 esac
10394 lt_cv_deplibs_check_method=pass_all
10395 ;;
10396
10397# This must be Linux ELF.
10398linux*)
10399 lt_cv_deplibs_check_method=pass_all
10400 ;;
10401
10402netbsd*)
10403 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10405 else
10406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10407 fi
10408 ;;
10409
10410newos6*)
10411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10412 lt_cv_file_magic_cmd=/usr/bin/file
10413 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10414 ;;
10415
10416nto-qnx*)
10417 lt_cv_deplibs_check_method=unknown
10418 ;;
10419
10420openbsd*)
10421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10423 else
10424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10425 fi
10426 ;;
10427
10428osf3* | osf4* | osf5*)
10429 lt_cv_deplibs_check_method=pass_all
10430 ;;
10431
10432sco3.2v5*)
10433 lt_cv_deplibs_check_method=pass_all
10434 ;;
10435
10436solaris*)
10437 lt_cv_deplibs_check_method=pass_all
10438 ;;
10439
10440sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10441 case $host_vendor in
10442 motorola)
10443 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]'
10444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10445 ;;
10446 ncr)
10447 lt_cv_deplibs_check_method=pass_all
10448 ;;
10449 sequent)
10450 lt_cv_file_magic_cmd='/bin/file'
10451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10452 ;;
10453 sni)
10454 lt_cv_file_magic_cmd='/bin/file'
10455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10456 lt_cv_file_magic_test_file=/lib/libc.so
10457 ;;
10458 siemens)
10459 lt_cv_deplibs_check_method=pass_all
10460 ;;
10461 esac
10462 ;;
10463
10464sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10465 lt_cv_deplibs_check_method=pass_all
10466 ;;
10467esac
10468
10469fi
10470echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10471echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10472file_magic_cmd=$lt_cv_file_magic_cmd
10473deplibs_check_method=$lt_cv_deplibs_check_method
10474test -z "$deplibs_check_method" && deplibs_check_method=unknown
10475
10476
10477
10478# If no C compiler was specified, use CC.
10479LTCC=${LTCC-"$CC"}
10480
10481# Allow CC to be a program name with arguments.
10482compiler=$CC
10483
10484# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10485if test "${enable_libtool_lock+set}" = set; then
10486 enableval="$enable_libtool_lock"
10487
10488fi;
10489test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10490
10491# Some flags need to be propagated to the compiler or linker for good
10492# libtool support.
10493case $host in
10494ia64-*-hpux*)
10495 # Find out which ABI we are using.
10496 echo 'int i;' > conftest.$ac_ext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
10502 case `/usr/bin/file conftest.$ac_objext` in
10503 *ELF-32*)
10504 HPUX_IA64_MODE="32"
10505 ;;
10506 *ELF-64*)
10507 HPUX_IA64_MODE="64"
10508 ;;
10509 esac
10510 fi
10511 rm -rf conftest*
10512 ;;
10513*-*-irix6*)
10514 # Find out which ABI we are using.
Reid Spencerecbd2422006-06-02 23:13:18 +000010515 echo '#line 10515 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; then
10521 if test "$lt_cv_prog_gnu_ld" = yes; then
10522 case `/usr/bin/file conftest.$ac_objext` in
10523 *32-bit*)
10524 LD="${LD-ld} -melf32bsmip"
10525 ;;
10526 *N32*)
10527 LD="${LD-ld} -melf32bmipn32"
10528 ;;
10529 *64-bit*)
10530 LD="${LD-ld} -melf64bmip"
10531 ;;
10532 esac
10533 else
10534 case `/usr/bin/file conftest.$ac_objext` in
10535 *32-bit*)
10536 LD="${LD-ld} -32"
10537 ;;
10538 *N32*)
10539 LD="${LD-ld} -n32"
10540 ;;
10541 *64-bit*)
10542 LD="${LD-ld} -64"
10543 ;;
10544 esac
10545 fi
10546 fi
10547 rm -rf conftest*
10548 ;;
10549
10550x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10551 # Find out which ABI we are using.
10552 echo 'int i;' > conftest.$ac_ext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; then
10558 case "`/usr/bin/file conftest.o`" in
10559 *32-bit*)
10560 case $host in
10561 x86_64-*linux*)
10562 LD="${LD-ld} -m elf_i386"
10563 ;;
10564 ppc64-*linux*|powerpc64-*linux*)
10565 LD="${LD-ld} -m elf32ppclinux"
10566 ;;
10567 s390x-*linux*)
10568 LD="${LD-ld} -m elf_s390"
10569 ;;
10570 sparc64-*linux*)
10571 LD="${LD-ld} -m elf32_sparc"
10572 ;;
10573 esac
10574 ;;
10575 *64-bit*)
10576 case $host in
10577 x86_64-*linux*)
10578 LD="${LD-ld} -m elf_x86_64"
10579 ;;
10580 ppc*-*linux*|powerpc*-*linux*)
10581 LD="${LD-ld} -m elf64ppc"
10582 ;;
10583 s390*-*linux*)
10584 LD="${LD-ld} -m elf64_s390"
10585 ;;
10586 sparc*-*linux*)
10587 LD="${LD-ld} -m elf64_sparc"
10588 ;;
10589 esac
10590 ;;
10591 esac
10592 fi
10593 rm -rf conftest*
10594 ;;
10595
10596*-*-sco3.2v5*)
10597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10598 SAVE_CFLAGS="$CFLAGS"
10599 CFLAGS="$CFLAGS -belf"
10600 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10601echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10602if test "${lt_cv_cc_needs_belf+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604else
10605 ac_ext=c
10606ac_cpp='$CPP $CPPFLAGS'
10607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610
10611 cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h. */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h. */
10617
10618_ACEOF
10619rm -f conftest.$ac_objext conftest$ac_exeext
10620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag"
10629 || test ! -s conftest.err'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 lt_cv_cc_needs_belf=yes
10642else
10643 echo "$as_me: failed program was:" >&5
10644sed 's/^/| /' conftest.$ac_ext >&5
10645
10646lt_cv_cc_needs_belf=no
10647fi
10648rm -f conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 ac_ext=c
10651ac_cpp='$CPP $CPPFLAGS'
10652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654ac_compiler_gnu=$ac_cv_c_compiler_gnu
10655
10656fi
10657echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10658echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10661 CFLAGS="$SAVE_CFLAGS"
10662 fi
10663 ;;
10664
10665esac
10666
10667need_locks="$enable_libtool_lock"
10668
10669
Reid Spencer2706f8c2004-09-19 23:53:36 +000010670
10671
10672if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10673 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10674 (test "X$CXX" != "Xg++"))) ; then
10675 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010676ac_cpp='$CXXCPP $CPPFLAGS'
10677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10680echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10681echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10682if test -z "$CXXCPP"; then
10683 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
John Criswell47fdd832003-07-14 16:52:07 +000010686 # Double quotes because CXXCPP needs to be expanded
10687 for CXXCPP in "$CXX -E" "/lib/cpp"
10688 do
10689 ac_preproc_ok=false
10690for ac_cxx_preproc_warn_flag in '' yes
10691do
10692 # Use a header file that comes with gcc, so configuring glibc
10693 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010696 # On the NeXT, cc -E runs the code through the compiler's parser,
10697 # not just through cpp. "Syntax error" is here to catch this case.
10698 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
10704#ifdef __STDC__
10705# include <limits.h>
10706#else
10707# include <assert.h>
10708#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010709 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010710_ACEOF
10711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010714 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null; then
10719 if test -s conftest.err; then
10720 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010722 else
John Criswell47fdd832003-07-14 16:52:07 +000010723 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010724 fi
John Criswell47fdd832003-07-14 16:52:07 +000010725else
10726 ac_cpp_err=yes
10727fi
10728if test -z "$ac_cpp_err"; then
10729 :
10730else
10731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010732sed 's/^/| /' conftest.$ac_ext >&5
10733
John Criswell47fdd832003-07-14 16:52:07 +000010734 # Broken: fails on valid input.
10735continue
10736fi
10737rm -f conftest.err conftest.$ac_ext
10738
10739 # OK, works on sane cases. Now check whether non-existent headers
10740 # can be detected and how.
10741 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010742/* confdefs.h. */
10743_ACEOF
10744cat confdefs.h >>conftest.$ac_ext
10745cat >>conftest.$ac_ext <<_ACEOF
10746/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010747#include <ac_nonexistent.h>
10748_ACEOF
10749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10751 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010752 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } >/dev/null; then
10757 if test -s conftest.err; then
10758 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010759 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010760 else
10761 ac_cpp_err=
10762 fi
10763else
10764 ac_cpp_err=yes
10765fi
10766if test -z "$ac_cpp_err"; then
10767 # Broken: success on invalid input.
10768continue
10769else
10770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010771sed 's/^/| /' conftest.$ac_ext >&5
10772
John Criswell47fdd832003-07-14 16:52:07 +000010773 # Passes both tests.
10774ac_preproc_ok=:
10775break
10776fi
10777rm -f conftest.err conftest.$ac_ext
10778
10779done
10780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10781rm -f conftest.err conftest.$ac_ext
10782if $ac_preproc_ok; then
10783 break
John Criswell7a73b802003-06-30 21:59:07 +000010784fi
10785
John Criswell47fdd832003-07-14 16:52:07 +000010786 done
10787 ac_cv_prog_CXXCPP=$CXXCPP
10788
10789fi
10790 CXXCPP=$ac_cv_prog_CXXCPP
10791else
10792 ac_cv_prog_CXXCPP=$CXXCPP
10793fi
10794echo "$as_me:$LINENO: result: $CXXCPP" >&5
10795echo "${ECHO_T}$CXXCPP" >&6
10796ac_preproc_ok=false
10797for ac_cxx_preproc_warn_flag in '' yes
10798do
10799 # Use a header file that comes with gcc, so configuring glibc
10800 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010803 # On the NeXT, cc -E runs the code through the compiler's parser,
10804 # not just through cpp. "Syntax error" is here to catch this case.
10805 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811#ifdef __STDC__
10812# include <limits.h>
10813#else
10814# include <assert.h>
10815#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010816 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010817_ACEOF
10818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10820 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010821 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } >/dev/null; then
10826 if test -s conftest.err; then
10827 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010828 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010829 else
10830 ac_cpp_err=
10831 fi
10832else
10833 ac_cpp_err=yes
10834fi
10835if test -z "$ac_cpp_err"; then
10836 :
10837else
10838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010839sed 's/^/| /' conftest.$ac_ext >&5
10840
John Criswell47fdd832003-07-14 16:52:07 +000010841 # Broken: fails on valid input.
10842continue
10843fi
10844rm -f conftest.err conftest.$ac_ext
10845
10846 # OK, works on sane cases. Now check whether non-existent headers
10847 # can be detected and how.
10848 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010854#include <ac_nonexistent.h>
10855_ACEOF
10856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10858 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010859 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } >/dev/null; then
10864 if test -s conftest.err; then
10865 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010866 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010867 else
10868 ac_cpp_err=
10869 fi
10870else
10871 ac_cpp_err=yes
10872fi
10873if test -z "$ac_cpp_err"; then
10874 # Broken: success on invalid input.
10875continue
10876else
10877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010878sed 's/^/| /' conftest.$ac_ext >&5
10879
John Criswell47fdd832003-07-14 16:52:07 +000010880 # Passes both tests.
10881ac_preproc_ok=:
10882break
10883fi
10884rm -f conftest.err conftest.$ac_ext
10885
10886done
10887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10888rm -f conftest.err conftest.$ac_ext
10889if $ac_preproc_ok; then
10890 :
10891else
John Criswell0c38eaf2003-09-10 15:17:25 +000010892 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10893See \`config.log' for more details." >&5
10894echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10895See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010896 { (exit 1); exit 1; }; }
10897fi
10898
10899ac_ext=cc
10900ac_cpp='$CXXCPP $CPPFLAGS'
10901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10904
Reid Spencer2706f8c2004-09-19 23:53:36 +000010905fi
10906
John Criswell47fdd832003-07-14 16:52:07 +000010907
10908ac_ext=f
10909ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10910ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10911ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10912if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010913 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 +000010914 do
10915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10917echo "$as_me:$LINENO: checking for $ac_word" >&5
10918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10919if test "${ac_cv_prog_F77+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921else
10922 if test -n "$F77"; then
10923 ac_cv_prog_F77="$F77" # Let the user override the test.
10924else
10925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926for as_dir in $PATH
10927do
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10935 fi
10936done
10937done
10938
10939fi
10940fi
10941F77=$ac_cv_prog_F77
10942if test -n "$F77"; then
10943 echo "$as_me:$LINENO: result: $F77" >&5
10944echo "${ECHO_T}$F77" >&6
10945else
10946 echo "$as_me:$LINENO: result: no" >&5
10947echo "${ECHO_T}no" >&6
10948fi
10949
10950 test -n "$F77" && break
10951 done
10952fi
10953if test -z "$F77"; then
10954 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010955 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 +000010956do
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958set dummy $ac_prog; ac_word=$2
10959echo "$as_me:$LINENO: checking for $ac_word" >&5
10960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 if test -n "$ac_ct_F77"; then
10965 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10966else
10967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968for as_dir in $PATH
10969do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_prog_ac_ct_F77="$ac_prog"
10975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978done
10979done
10980
10981fi
10982fi
10983ac_ct_F77=$ac_cv_prog_ac_ct_F77
10984if test -n "$ac_ct_F77"; then
10985 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10986echo "${ECHO_T}$ac_ct_F77" >&6
10987else
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
10990fi
10991
10992 test -n "$ac_ct_F77" && break
10993done
10994
10995 F77=$ac_ct_F77
10996fi
10997
10998
10999# Provide some information about the compiler.
Reid Spencerecbd2422006-06-02 23:13:18 +000011000echo "$as_me:11000:" \
John Criswell47fdd832003-07-14 16:52:07 +000011001 "checking for Fortran 77 compiler version" >&5
11002ac_compiler=`set X $ac_compile; echo $2`
11003{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11004 (eval $ac_compiler --version </dev/null >&5) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }
11008{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11009 (eval $ac_compiler -v </dev/null >&5) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }
11013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11014 (eval $ac_compiler -V </dev/null >&5) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000011018rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000011019
11020# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000011021# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000011022ac_save_ext=$ac_ext
11023ac_ext=F
11024echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11025echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11026if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 cat >conftest.$ac_ext <<_ACEOF
11030 program main
11031#ifndef __GNUC__
11032 choke me
11033#endif
11034
11035 end
11036_ACEOF
11037rm -f conftest.$ac_objext
11038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011039 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -f conftest.er1
11043 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011046 { ac_try='test -z "$ac_f77_werror_flag"
11047 || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_compiler_gnu=yes
11060else
11061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011062sed 's/^/| /' conftest.$ac_ext >&5
11063
John Criswell47fdd832003-07-14 16:52:07 +000011064ac_compiler_gnu=no
11065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011067ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11068
11069fi
11070echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11071echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11072ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000011073ac_test_FFLAGS=${FFLAGS+set}
11074ac_save_FFLAGS=$FFLAGS
11075FFLAGS=
11076echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11077echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11078if test "${ac_cv_prog_f77_g+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081 FFLAGS=-g
11082cat >conftest.$ac_ext <<_ACEOF
11083 program main
11084
11085 end
11086_ACEOF
11087rm -f conftest.$ac_objext
11088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011089 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011090 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011096 { ac_try='test -z "$ac_f77_werror_flag"
11097 || test ! -s conftest.err'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_prog_f77_g=yes
11110else
11111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011112sed 's/^/| /' conftest.$ac_ext >&5
11113
John Criswell47fdd832003-07-14 16:52:07 +000011114ac_cv_prog_f77_g=no
11115fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011117
11118fi
11119echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11120echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11121if test "$ac_test_FFLAGS" = set; then
11122 FFLAGS=$ac_save_FFLAGS
11123elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011124 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011125 FFLAGS="-g -O2"
11126 else
11127 FFLAGS="-g"
11128 fi
11129else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011130 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011131 FFLAGS="-O2"
11132 else
11133 FFLAGS=
11134 fi
11135fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011136
11137G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011138ac_ext=c
11139ac_cpp='$CPP $CPPFLAGS'
11140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142ac_compiler_gnu=$ac_cv_c_compiler_gnu
11143
11144
11145
11146# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11147
11148# find the maximum length of command line arguments
11149echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11150echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11151if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153else
11154 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011155 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011156
11157 case $build_os in
11158 msdosdjgpp*)
11159 # On DJGPP, this test can blow up pretty badly due to problems in libc
11160 # (any single argument exceeding 2000 bytes causes a buffer overrun
11161 # during glob expansion). Even if it were fixed, the result of this
11162 # check would be larger than it should be.
11163 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11164 ;;
11165
11166 gnu*)
11167 # Under GNU Hurd, this test is not required because there is
11168 # no limit to the length of command line arguments.
11169 # Libtool will interpret -1 as no limit whatsoever
11170 lt_cv_sys_max_cmd_len=-1;
11171 ;;
11172
11173 cygwin* | mingw*)
11174 # On Win9x/ME, this test blows up -- it succeeds, but takes
11175 # about 5 minutes as the teststring grows exponentially.
11176 # Worse, since 9x/ME are not pre-emptively multitasking,
11177 # you end up with a "frozen" computer, even though with patience
11178 # the test eventually succeeds (with a max line length of 256k).
11179 # Instead, let's just punt: use the minimum linelength reported by
11180 # all of the supported platforms: 8192 (on NT/2K/XP).
11181 lt_cv_sys_max_cmd_len=8192;
11182 ;;
11183
Reid Spencer2706f8c2004-09-19 23:53:36 +000011184 amigaos*)
11185 # On AmigaOS with pdksh, this test takes hours, literally.
11186 # So we just punt and use a minimum line length of 8192.
11187 lt_cv_sys_max_cmd_len=8192;
11188 ;;
11189
11190 netbsd* | freebsd* | openbsd* | darwin* )
11191 # This has been around since 386BSD, at least. Likely further.
11192 if test -x /sbin/sysctl; then
11193 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11194 elif test -x /usr/sbin/sysctl; then
11195 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11196 else
11197 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11198 fi
11199 # And add a safety zone
11200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11201 ;;
11202
John Criswell47fdd832003-07-14 16:52:07 +000011203 *)
11204 # If test is not a shell built-in, we'll probably end up computing a
11205 # maximum length that is only half of the actual maximum length, but
11206 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11208 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11209 = "XX$teststring") >/dev/null 2>&1 &&
11210 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011211 lt_cv_sys_max_cmd_len=$new_result &&
11212 test $i != 17 # 1/2 MB should be enough
11213 do
11214 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011215 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011216 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011217 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011218 # Add a significant safety factor because C++ compilers can tack on massive
11219 # amounts of additional arguments before passing them to the linker.
11220 # It appears as though 1/2 is a usable value.
11221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11222 ;;
11223 esac
11224
11225fi
11226
11227if test -n $lt_cv_sys_max_cmd_len ; then
11228 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11229echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11230else
11231 echo "$as_me:$LINENO: result: none" >&5
11232echo "${ECHO_T}none" >&6
11233fi
11234
11235
11236
11237
11238# Check for command to grab the raw symbol name followed by C symbol from nm.
11239echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11240echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11241if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244
11245# These are sane defaults that work on at least a few old systems.
11246# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11247
11248# Character class describing NM global symbol codes.
11249symcode='[BCDEGRST]'
11250
11251# Regexp to match symbols that can be accessed directly from C.
11252sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11253
11254# Transform the above into a raw symbol and a C symbol.
11255symxfrm='\1 \2\3 \3'
11256
11257# Transform an extracted symbol line into a proper C declaration
11258lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11259
11260# Transform an extracted symbol line into symbol name and symbol address
11261lt_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'"
11262
11263# Define system-specific variables.
11264case $host_os in
11265aix*)
11266 symcode='[BCDT]'
11267 ;;
11268cygwin* | mingw* | pw32*)
11269 symcode='[ABCDGISTW]'
11270 ;;
11271hpux*) # Its linker distinguishes data from code symbols
11272 if test "$host_cpu" = ia64; then
11273 symcode='[ABCDEGRST]'
11274 fi
11275 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11276 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'"
11277 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011278linux*)
11279 if test "$host_cpu" = ia64; then
11280 symcode='[ABCDGIRSTW]'
11281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11282 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'"
11283 fi
11284 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011285irix* | nonstopux*)
11286 symcode='[BCDEGRST]'
11287 ;;
11288osf*)
11289 symcode='[BCDEGQRST]'
11290 ;;
11291solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011292 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011293 ;;
11294sysv4)
11295 symcode='[DFNSTU]'
11296 ;;
11297esac
11298
11299# Handle CRLF in mingw tool chain
11300opt_cr=
11301case $build_os in
11302mingw*)
11303 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11304 ;;
11305esac
11306
11307# If we're using GNU nm, then use its standard symbol codes.
11308case `$NM -V 2>&1` in
11309*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011310 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011311esac
11312
11313# Try without a prefix undercore, then with it.
11314for ac_symprfx in "" "_"; do
11315
11316 # Write the raw and C identifiers.
11317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11318
11319 # Check to see that the pipe works correctly.
11320 pipe_works=no
11321
11322 rm -f conftest*
11323 cat > conftest.$ac_ext <<EOF
11324#ifdef __cplusplus
11325extern "C" {
11326#endif
11327char nm_test_var;
11328void nm_test_func(){}
11329#ifdef __cplusplus
11330}
11331#endif
11332int main(){nm_test_var='a';nm_test_func();return(0);}
11333EOF
11334
11335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336 (eval $ac_compile) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; then
11340 # Now try to grab the symbols.
11341 nlist=conftest.nm
11342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && test -s "$nlist"; then
11347 # Try sorting and uniquifying the output.
11348 if sort "$nlist" | uniq > "$nlist"T; then
11349 mv -f "$nlist"T "$nlist"
11350 else
11351 rm -f "$nlist"T
11352 fi
11353
11354 # Make sure that we snagged all the symbols we need.
11355 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11356 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11357 cat <<EOF > conftest.$ac_ext
11358#ifdef __cplusplus
11359extern "C" {
11360#endif
11361
11362EOF
11363 # Now generate the symbol file.
11364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11365
11366 cat <<EOF >> conftest.$ac_ext
11367#if defined (__STDC__) && __STDC__
11368# define lt_ptr_t void *
11369#else
11370# define lt_ptr_t char *
11371# define const
11372#endif
11373
11374/* The mapping between symbol names and symbols. */
11375const struct {
11376 const char *name;
11377 lt_ptr_t address;
11378}
11379lt_preloaded_symbols[] =
11380{
11381EOF
11382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11383 cat <<\EOF >> conftest.$ac_ext
11384 {0, (lt_ptr_t) 0}
11385};
11386
11387#ifdef __cplusplus
11388}
11389#endif
11390EOF
11391 # Now try linking the two files.
11392 mv conftest.$ac_objext conftstm.$ac_objext
11393 lt_save_LIBS="$LIBS"
11394 lt_save_CFLAGS="$CFLAGS"
11395 LIBS="conftstm.$ac_objext"
11396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398 (eval $ac_link) 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11402 pipe_works=yes
11403 fi
11404 LIBS="$lt_save_LIBS"
11405 CFLAGS="$lt_save_CFLAGS"
11406 else
11407 echo "cannot find nm_test_func in $nlist" >&5
11408 fi
11409 else
11410 echo "cannot find nm_test_var in $nlist" >&5
11411 fi
11412 else
11413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11414 fi
11415 else
11416 echo "$progname: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 fi
11419 rm -f conftest* conftst*
11420
11421 # Do not use the global_symbol_pipe unless it works.
11422 if test "$pipe_works" = yes; then
11423 break
11424 else
11425 lt_cv_sys_global_symbol_pipe=
11426 fi
11427done
11428
11429fi
11430
11431if test -z "$lt_cv_sys_global_symbol_pipe"; then
11432 lt_cv_sys_global_symbol_to_cdecl=
11433fi
11434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11435 echo "$as_me:$LINENO: result: failed" >&5
11436echo "${ECHO_T}failed" >&6
11437else
11438 echo "$as_me:$LINENO: result: ok" >&5
11439echo "${ECHO_T}ok" >&6
11440fi
11441
11442echo "$as_me:$LINENO: checking for objdir" >&5
11443echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11444if test "${lt_cv_objdir+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 rm -f .libs 2>/dev/null
11448mkdir .libs 2>/dev/null
11449if test -d .libs; then
11450 lt_cv_objdir=.libs
11451else
11452 # MS-DOS does not allow filenames that begin with a dot.
11453 lt_cv_objdir=_libs
11454fi
11455rmdir .libs 2>/dev/null
11456fi
11457echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11458echo "${ECHO_T}$lt_cv_objdir" >&6
11459objdir=$lt_cv_objdir
11460
11461
11462
11463
11464
11465case $host_os in
11466aix3*)
11467 # AIX sometimes has problems with the GCC collect2 program. For some
11468 # reason, if we set the COLLECT_NAMES environment variable, the problems
11469 # vanish in a puff of smoke.
11470 if test "X${COLLECT_NAMES+set}" != Xset; then
11471 COLLECT_NAMES=
11472 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011473 fi
11474 ;;
11475esac
11476
John Criswell47fdd832003-07-14 16:52:07 +000011477# Sed substitution that helps us do robust quoting. It backslashifies
11478# metacharacters that are still active within double-quoted strings.
11479Xsed='sed -e s/^X//'
11480sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11481
11482# Same as above, but do not quote variable references.
11483double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11484
11485# Sed substitution to delay expansion of an escaped shell variable in a
11486# double_quote_subst'ed string.
11487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11488
11489# Sed substitution to avoid accidental globbing in evaled expressions
11490no_glob_subst='s/\*/\\\*/g'
11491
11492# Constants:
11493rm="rm -f"
11494
11495# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011496default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011497can_build_shared=yes
11498
11499# All known linkers require a `.a' archive for static linking (except M$VC,
11500# which needs '.lib').
11501libext=a
11502ltmain="$ac_aux_dir/ltmain.sh"
11503ofile="$default_ofile"
11504with_gnu_ld="$lt_cv_prog_gnu_ld"
11505
11506if test -n "$ac_tool_prefix"; then
11507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11508set dummy ${ac_tool_prefix}ar; ac_word=$2
11509echo "$as_me:$LINENO: checking for $ac_word" >&5
11510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11511if test "${ac_cv_prog_AR+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514 if test -n "$AR"; then
11515 ac_cv_prog_AR="$AR" # Let the user override the test.
11516else
11517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520 IFS=$as_save_IFS
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524 ac_cv_prog_AR="${ac_tool_prefix}ar"
11525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11526 break 2
11527 fi
11528done
11529done
11530
11531fi
11532fi
11533AR=$ac_cv_prog_AR
11534if test -n "$AR"; then
11535 echo "$as_me:$LINENO: result: $AR" >&5
11536echo "${ECHO_T}$AR" >&6
11537else
11538 echo "$as_me:$LINENO: result: no" >&5
11539echo "${ECHO_T}no" >&6
11540fi
11541
11542fi
11543if test -z "$ac_cv_prog_AR"; then
11544 ac_ct_AR=$AR
11545 # Extract the first word of "ar", so it can be a program name with args.
11546set dummy ar; ac_word=$2
11547echo "$as_me:$LINENO: checking for $ac_word" >&5
11548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11549if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 if test -n "$ac_ct_AR"; then
11553 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11554else
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_ac_ct_AR="ar"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567done
11568
11569 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11570fi
11571fi
11572ac_ct_AR=$ac_cv_prog_ac_ct_AR
11573if test -n "$ac_ct_AR"; then
11574 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11575echo "${ECHO_T}$ac_ct_AR" >&6
11576else
11577 echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6
11579fi
11580
11581 AR=$ac_ct_AR
11582else
11583 AR="$ac_cv_prog_AR"
11584fi
11585
John Criswell7a73b802003-06-30 21:59:07 +000011586if test -n "$ac_tool_prefix"; then
11587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11588set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11589echo "$as_me:$LINENO: checking for $ac_word" >&5
11590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11591if test "${ac_cv_prog_RANLIB+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594 if test -n "$RANLIB"; then
11595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11596else
11597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598for as_dir in $PATH
11599do
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11607 fi
11608done
11609done
11610
11611fi
11612fi
11613RANLIB=$ac_cv_prog_RANLIB
11614if test -n "$RANLIB"; then
11615 echo "$as_me:$LINENO: result: $RANLIB" >&5
11616echo "${ECHO_T}$RANLIB" >&6
11617else
11618 echo "$as_me:$LINENO: result: no" >&5
11619echo "${ECHO_T}no" >&6
11620fi
11621
11622fi
11623if test -z "$ac_cv_prog_RANLIB"; then
11624 ac_ct_RANLIB=$RANLIB
11625 # Extract the first word of "ranlib", so it can be a program name with args.
11626set dummy ranlib; ac_word=$2
11627echo "$as_me:$LINENO: checking for $ac_word" >&5
11628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11629if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 if test -n "$ac_ct_RANLIB"; then
11633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11634else
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_ac_ct_RANLIB="ranlib"
11643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646done
11647done
11648
11649 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11650fi
11651fi
11652ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11653if test -n "$ac_ct_RANLIB"; then
11654 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11655echo "${ECHO_T}$ac_ct_RANLIB" >&6
11656else
11657 echo "$as_me:$LINENO: result: no" >&5
11658echo "${ECHO_T}no" >&6
11659fi
11660
11661 RANLIB=$ac_ct_RANLIB
11662else
11663 RANLIB="$ac_cv_prog_RANLIB"
11664fi
11665
11666if test -n "$ac_tool_prefix"; then
11667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11668set dummy ${ac_tool_prefix}strip; ac_word=$2
11669echo "$as_me:$LINENO: checking for $ac_word" >&5
11670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11671if test "${ac_cv_prog_STRIP+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674 if test -n "$STRIP"; then
11675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11676else
11677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678for as_dir in $PATH
11679do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 break 2
11687 fi
11688done
11689done
11690
11691fi
11692fi
11693STRIP=$ac_cv_prog_STRIP
11694if test -n "$STRIP"; then
11695 echo "$as_me:$LINENO: result: $STRIP" >&5
11696echo "${ECHO_T}$STRIP" >&6
11697else
11698 echo "$as_me:$LINENO: result: no" >&5
11699echo "${ECHO_T}no" >&6
11700fi
11701
11702fi
11703if test -z "$ac_cv_prog_STRIP"; then
11704 ac_ct_STRIP=$STRIP
11705 # Extract the first word of "strip", so it can be a program name with args.
11706set dummy strip; ac_word=$2
11707echo "$as_me:$LINENO: checking for $ac_word" >&5
11708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 if test -n "$ac_ct_STRIP"; then
11713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_ac_ct_STRIP="strip"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727done
11728
11729 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11730fi
11731fi
11732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11733if test -n "$ac_ct_STRIP"; then
11734 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11735echo "${ECHO_T}$ac_ct_STRIP" >&6
11736else
11737 echo "$as_me:$LINENO: result: no" >&5
11738echo "${ECHO_T}no" >&6
11739fi
11740
11741 STRIP=$ac_ct_STRIP
11742else
11743 STRIP="$ac_cv_prog_STRIP"
11744fi
11745
11746
John Criswell7a73b802003-06-30 21:59:07 +000011747old_CC="$CC"
11748old_CFLAGS="$CFLAGS"
11749
11750# Set sane defaults for various variables
11751test -z "$AR" && AR=ar
11752test -z "$AR_FLAGS" && AR_FLAGS=cru
11753test -z "$AS" && AS=as
11754test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011755test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011756test -z "$DLLTOOL" && DLLTOOL=dlltool
11757test -z "$LD" && LD=ld
11758test -z "$LN_S" && LN_S="ln -s"
11759test -z "$MAGIC_CMD" && MAGIC_CMD=file
11760test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011761test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011762test -z "$OBJDUMP" && OBJDUMP=objdump
11763test -z "$RANLIB" && RANLIB=:
11764test -z "$STRIP" && STRIP=:
11765test -z "$ac_objext" && ac_objext=o
11766
John Criswell7a73b802003-06-30 21:59:07 +000011767# Determine commands to create old-style static archives.
11768old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11769old_postinstall_cmds='chmod 644 $oldlib'
11770old_postuninstall_cmds=
11771
11772if test -n "$RANLIB"; then
11773 case $host_os in
11774 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011775 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011776 ;;
11777 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011778 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011779 ;;
11780 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011781 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011782fi
11783
Reid Spencer2706f8c2004-09-19 23:53:36 +000011784cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11785
John Criswell47fdd832003-07-14 16:52:07 +000011786# Only perform the check for file, if the check method requires it
11787case $deplibs_check_method in
11788file_magic*)
11789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11790 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11791echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11792if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011794else
John Criswell47fdd832003-07-14 16:52:07 +000011795 case $MAGIC_CMD in
11796[\\/*] | ?:[\\/]*)
11797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11798 ;;
11799*)
11800 lt_save_MAGIC_CMD="$MAGIC_CMD"
11801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11803 for ac_dir in $ac_dummy; do
11804 IFS="$lt_save_ifs"
11805 test -z "$ac_dir" && ac_dir=.
11806 if test -f $ac_dir/${ac_tool_prefix}file; then
11807 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11808 if test -n "$file_magic_test_file"; then
11809 case $deplibs_check_method in
11810 "file_magic "*)
11811 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11814 $EGREP "$file_magic_regex" > /dev/null; then
11815 :
11816 else
11817 cat <<EOF 1>&2
11818
11819*** Warning: the command libtool uses to detect shared libraries,
11820*** $file_magic_cmd, produces output that libtool cannot recognize.
11821*** The result is that libtool may fail to recognize shared libraries
11822*** as such. This will affect the creation of libtool libraries that
11823*** depend on shared libraries, but programs linked with such libtool
11824*** libraries will work regardless of this problem. Nevertheless, you
11825*** may want to report the problem to your system manager and/or to
11826*** bug-libtool@gnu.org
11827
11828EOF
11829 fi ;;
11830 esac
11831 fi
11832 break
11833 fi
11834 done
11835 IFS="$lt_save_ifs"
11836 MAGIC_CMD="$lt_save_MAGIC_CMD"
11837 ;;
11838esac
John Criswell7a73b802003-06-30 21:59:07 +000011839fi
John Criswell7a73b802003-06-30 21:59:07 +000011840
John Criswell47fdd832003-07-14 16:52:07 +000011841MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11842if test -n "$MAGIC_CMD"; then
11843 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11844echo "${ECHO_T}$MAGIC_CMD" >&6
11845else
11846 echo "$as_me:$LINENO: result: no" >&5
11847echo "${ECHO_T}no" >&6
11848fi
John Criswell7a73b802003-06-30 21:59:07 +000011849
John Criswell47fdd832003-07-14 16:52:07 +000011850if test -z "$lt_cv_path_MAGIC_CMD"; then
11851 if test -n "$ac_tool_prefix"; then
11852 echo "$as_me:$LINENO: checking for file" >&5
11853echo $ECHO_N "checking for file... $ECHO_C" >&6
11854if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 case $MAGIC_CMD in
11858[\\/*] | ?:[\\/]*)
11859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11860 ;;
11861*)
11862 lt_save_MAGIC_CMD="$MAGIC_CMD"
11863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11865 for ac_dir in $ac_dummy; do
11866 IFS="$lt_save_ifs"
11867 test -z "$ac_dir" && ac_dir=.
11868 if test -f $ac_dir/file; then
11869 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11870 if test -n "$file_magic_test_file"; then
11871 case $deplibs_check_method in
11872 "file_magic "*)
11873 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11876 $EGREP "$file_magic_regex" > /dev/null; then
11877 :
11878 else
11879 cat <<EOF 1>&2
11880
11881*** Warning: the command libtool uses to detect shared libraries,
11882*** $file_magic_cmd, produces output that libtool cannot recognize.
11883*** The result is that libtool may fail to recognize shared libraries
11884*** as such. This will affect the creation of libtool libraries that
11885*** depend on shared libraries, but programs linked with such libtool
11886*** libraries will work regardless of this problem. Nevertheless, you
11887*** may want to report the problem to your system manager and/or to
11888*** bug-libtool@gnu.org
11889
11890EOF
11891 fi ;;
11892 esac
11893 fi
11894 break
11895 fi
11896 done
11897 IFS="$lt_save_ifs"
11898 MAGIC_CMD="$lt_save_MAGIC_CMD"
11899 ;;
11900esac
11901fi
11902
11903MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11904if test -n "$MAGIC_CMD"; then
11905 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11906echo "${ECHO_T}$MAGIC_CMD" >&6
11907else
11908 echo "$as_me:$LINENO: result: no" >&5
11909echo "${ECHO_T}no" >&6
11910fi
11911
11912 else
11913 MAGIC_CMD=:
11914 fi
11915fi
11916
11917 fi
11918 ;;
11919esac
11920
Reid Spencer17795972004-11-18 09:47:37 +000011921enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011922enable_win32_dll=no
11923
11924# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11925if test "${enable_libtool_lock+set}" = set; then
11926 enableval="$enable_libtool_lock"
11927
11928fi;
11929test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11930
John Criswell7a73b802003-06-30 21:59:07 +000011931
11932# Check whether --with-pic or --without-pic was given.
11933if test "${with_pic+set}" = set; then
11934 withval="$with_pic"
11935 pic_mode="$withval"
11936else
11937 pic_mode=default
11938fi;
11939test -z "$pic_mode" && pic_mode=default
11940
John Criswell47fdd832003-07-14 16:52:07 +000011941# Use C for the default configuration in the libtool script
11942tagname=
11943lt_save_CC="$CC"
11944ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950
11951# Source file extension for C test sources.
11952ac_ext=c
11953
11954# Object file extension for compiled C test sources.
11955objext=o
11956objext=$objext
11957
11958# Code to be used in simple compile tests
11959lt_simple_compile_test_code="int some_variable = 0;\n"
11960
11961# Code to be used in simple link tests
11962lt_simple_link_test_code='int main(){return(0);}\n'
11963
11964
11965# If no C compiler was specified, use CC.
11966LTCC=${LTCC-"$CC"}
11967
11968# Allow CC to be a program name with arguments.
11969compiler=$CC
11970
11971
11972#
11973# Check for any special shared library compilation flags.
11974#
11975lt_prog_cc_shlib=
11976if test "$GCC" = no; then
11977 case $host_os in
11978 sco3.2v5*)
11979 lt_prog_cc_shlib='-belf'
11980 ;;
11981 esac
11982fi
11983if test -n "$lt_prog_cc_shlib"; then
11984 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11985echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11986 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11987 else
11988 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11989echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11990 lt_cv_prog_cc_can_build_shared=no
11991 fi
11992fi
11993
11994
11995#
11996# Check to make sure the static flag actually works.
11997#
11998echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11999echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12000if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
John Criswell47fdd832003-07-14 16:52:07 +000012003 lt_prog_compiler_static_works=no
12004 save_LDFLAGS="$LDFLAGS"
12005 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12006 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12008 # The compiler can only warn and ignore the option if not recognized
12009 # So say no if there are warnings
12010 if test -s conftest.err; then
12011 # Append any errors to the config.log.
12012 cat conftest.err 1>&5
12013 else
12014 lt_prog_compiler_static_works=yes
12015 fi
12016 fi
12017 $rm conftest*
12018 LDFLAGS="$save_LDFLAGS"
12019
12020fi
12021echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12022echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12023
12024if test x"$lt_prog_compiler_static_works" = xyes; then
12025 :
12026else
12027 lt_prog_compiler_static=
12028fi
12029
12030
12031
John Criswell47fdd832003-07-14 16:52:07 +000012032
12033lt_prog_compiler_no_builtin_flag=
12034
12035if test "$GCC" = yes; then
12036 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12037
Reid Spencer2706f8c2004-09-19 23:53:36 +000012038
12039echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012040echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12041if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043else
12044 lt_cv_prog_compiler_rtti_exceptions=no
12045 ac_outfile=conftest.$ac_objext
12046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12047 lt_compiler_flag="-fno-rtti -fno-exceptions"
12048 # Insert the option either (1) after the last *FLAGS variable, or
12049 # (2) before a word containing "conftest.", or (3) at the end.
12050 # Note that $ac_compile itself does not contain backslashes and begins
12051 # with a dollar sign (not a hyphen), so the echo should work correctly.
12052 # The option is referenced via a variable to avoid confusing sed.
12053 lt_compile=`echo "$ac_compile" | $SED \
12054 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000012057 (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012058 (eval "$lt_compile" 2>conftest.err)
12059 ac_status=$?
12060 cat conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000012061 echo "$as_me:12061: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012062 if (exit $ac_status) && test -s "$ac_outfile"; then
12063 # The compiler can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 if test ! -s conftest.err; then
12066 lt_cv_prog_compiler_rtti_exceptions=yes
12067 fi
12068 fi
12069 $rm conftest*
12070
12071fi
12072echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12073echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12074
12075if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12076 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12077else
12078 :
12079fi
12080
12081fi
12082
12083lt_prog_compiler_wl=
12084lt_prog_compiler_pic=
12085lt_prog_compiler_static=
12086
12087echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12088echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012089
12090 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012091 lt_prog_compiler_wl='-Wl,'
12092 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012093
12094 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012095 aix*)
12096 # All AIX code is PIC.
12097 if test "$host_cpu" = ia64; then
12098 # AIX 5 now supports IA64 processor
12099 lt_prog_compiler_static='-Bstatic'
12100 fi
John Criswell7a73b802003-06-30 21:59:07 +000012101 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012102
John Criswell7a73b802003-06-30 21:59:07 +000012103 amigaos*)
12104 # FIXME: we need at least 68020 code to build shared libraries, but
12105 # adding the `-m68020' flag to GCC prevents building anything better,
12106 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012107 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012109
12110 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012111 # PIC is the default for these OSes.
12112 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012113
12114 mingw* | pw32* | os2*)
12115 # This hack is so that the source file can tell whether it is being
12116 # built for inclusion in a dll (and should export symbols for example).
12117 lt_prog_compiler_pic='-DDLL_EXPORT'
12118 ;;
12119
John Criswell7a73b802003-06-30 21:59:07 +000012120 darwin* | rhapsody*)
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012123 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012125
12126 msdosdjgpp*)
12127 # Just because we use GCC doesn't mean we suddenly get shared libraries
12128 # on systems that don't support them.
12129 lt_prog_compiler_can_build_shared=no
12130 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012131 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012132
John Criswell7a73b802003-06-30 21:59:07 +000012133 sysv4*MP*)
12134 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012135 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012136 fi
12137 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012138
12139 hpux*)
12140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12141 # not for PA HP-UX.
12142 case "$host_cpu" in
12143 hppa*64*|ia64*)
12144 # +Z the default
12145 ;;
12146 *)
12147 lt_prog_compiler_pic='-fPIC'
12148 ;;
12149 esac
12150 ;;
12151
John Criswell7a73b802003-06-30 21:59:07 +000012152 *)
John Criswell47fdd832003-07-14 16:52:07 +000012153 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012154 ;;
12155 esac
12156 else
John Criswell47fdd832003-07-14 16:52:07 +000012157 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012158 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012159 aix*)
12160 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012161 if test "$host_cpu" = ia64; then
12162 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012163 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012164 else
John Criswell47fdd832003-07-14 16:52:07 +000012165 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012166 fi
12167 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012168 darwin*)
12169 # PIC is the default on this platform
12170 # Common symbols not allowed in MH_DYLIB files
12171 case "$cc_basename" in
12172 xlc*)
12173 lt_prog_compiler_pic='-qnocommon'
12174 lt_prog_compiler_wl='-Wl,'
12175 ;;
12176 esac
12177 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012178
John Criswell47fdd832003-07-14 16:52:07 +000012179 mingw* | pw32* | os2*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 lt_prog_compiler_pic='-DDLL_EXPORT'
12183 ;;
12184
John Criswell7a73b802003-06-30 21:59:07 +000012185 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012186 lt_prog_compiler_wl='-Wl,'
12187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12188 # not for PA HP-UX.
12189 case "$host_cpu" in
12190 hppa*64*|ia64*)
12191 # +Z the default
12192 ;;
12193 *)
12194 lt_prog_compiler_pic='+Z'
12195 ;;
12196 esac
12197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12198 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012199 ;;
12200
John Criswell47fdd832003-07-14 16:52:07 +000012201 irix5* | irix6* | nonstopux*)
12202 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012203 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012204 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012205 ;;
12206
12207 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012208 lt_prog_compiler_pic='-KPIC'
12209 lt_prog_compiler_static='-Bstatic'
12210 ;;
12211
12212 linux*)
12213 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012214 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012215 lt_prog_compiler_wl='-Wl,'
12216 lt_prog_compiler_pic='-KPIC'
12217 lt_prog_compiler_static='-static'
12218 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012219 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012220 lt_prog_compiler_wl='-Wl,'
12221 # All Alpha code is PIC.
12222 lt_prog_compiler_static='-non_shared'
12223 ;;
12224 esac
John Criswell7a73b802003-06-30 21:59:07 +000012225 ;;
12226
12227 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012228 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012229 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012230 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012231 ;;
12232
12233 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012234 lt_prog_compiler_pic='-Kpic'
12235 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012236 ;;
12237
12238 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012239 lt_prog_compiler_wl='-Wl,'
12240 lt_prog_compiler_pic='-KPIC'
12241 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012242 ;;
12243
12244 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012245 lt_prog_compiler_wl='-Qoption ld '
12246 lt_prog_compiler_pic='-PIC'
12247 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012248 ;;
12249
12250 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012251 lt_prog_compiler_wl='-Wl,'
12252 lt_prog_compiler_pic='-KPIC'
12253 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012254 ;;
12255
12256 sysv4*MP*)
12257 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012258 lt_prog_compiler_pic='-Kconform_pic'
12259 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012260 fi
12261 ;;
12262
John Criswell47fdd832003-07-14 16:52:07 +000012263 uts4*)
12264 lt_prog_compiler_pic='-pic'
12265 lt_prog_compiler_static='-Bstatic'
12266 ;;
12267
John Criswell7a73b802003-06-30 21:59:07 +000012268 *)
John Criswell47fdd832003-07-14 16:52:07 +000012269 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012270 ;;
12271 esac
12272 fi
12273
John Criswell47fdd832003-07-14 16:52:07 +000012274echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12275echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012276
John Criswell47fdd832003-07-14 16:52:07 +000012277#
12278# Check to make sure the PIC flag actually works.
12279#
12280if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012281
12282echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012283echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12284if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
John Criswell47fdd832003-07-14 16:52:07 +000012287 lt_prog_compiler_pic_works=no
12288 ac_outfile=conftest.$ac_objext
12289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12291 # Insert the option either (1) after the last *FLAGS variable, or
12292 # (2) before a word containing "conftest.", or (3) at the end.
12293 # Note that $ac_compile itself does not contain backslashes and begins
12294 # with a dollar sign (not a hyphen), so the echo should work correctly.
12295 # The option is referenced via a variable to avoid confusing sed.
12296 lt_compile=`echo "$ac_compile" | $SED \
12297 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000012300 (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012301 (eval "$lt_compile" 2>conftest.err)
12302 ac_status=$?
12303 cat conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000012304 echo "$as_me:12304: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012305 if (exit $ac_status) && test -s "$ac_outfile"; then
12306 # The compiler can only warn and ignore the option if not recognized
12307 # So say no if there are warnings
12308 if test ! -s conftest.err; then
12309 lt_prog_compiler_pic_works=yes
12310 fi
12311 fi
12312 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012313
John Criswell47fdd832003-07-14 16:52:07 +000012314fi
12315echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12316echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012317
John Criswell47fdd832003-07-14 16:52:07 +000012318if test x"$lt_prog_compiler_pic_works" = xyes; then
12319 case $lt_prog_compiler_pic in
12320 "" | " "*) ;;
12321 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12322 esac
John Criswell7a73b802003-06-30 21:59:07 +000012323else
John Criswell47fdd832003-07-14 16:52:07 +000012324 lt_prog_compiler_pic=
12325 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012326fi
12327
John Criswell7a73b802003-06-30 21:59:07 +000012328fi
John Criswell47fdd832003-07-14 16:52:07 +000012329case "$host_os" in
12330 # For platforms which do not support PIC, -DPIC is meaningless:
12331 *djgpp*)
12332 lt_prog_compiler_pic=
12333 ;;
12334 *)
12335 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12336 ;;
12337esac
John Criswell7a73b802003-06-30 21:59:07 +000012338
John Criswell7a73b802003-06-30 21:59:07 +000012339echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12340echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012341if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343else
John Criswell47fdd832003-07-14 16:52:07 +000012344 lt_cv_prog_compiler_c_o=no
12345 $rm -r conftest 2>/dev/null
12346 mkdir conftest
12347 cd conftest
12348 mkdir out
12349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012350
John Criswell47fdd832003-07-14 16:52:07 +000012351 lt_compiler_flag="-o out/conftest2.$ac_objext"
12352 # Insert the option either (1) after the last *FLAGS variable, or
12353 # (2) before a word containing "conftest.", or (3) at the end.
12354 # Note that $ac_compile itself does not contain backslashes and begins
12355 # with a dollar sign (not a hyphen), so the echo should work correctly.
12356 lt_compile=`echo "$ac_compile" | $SED \
12357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12359 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000012360 (eval echo "\"\$as_me:12360: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012361 (eval "$lt_compile" 2>out/conftest.err)
12362 ac_status=$?
12363 cat out/conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000012364 echo "$as_me:12364: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12366 then
12367 # The compiler can only warn and ignore the option if not recognized
12368 # So say no if there are warnings
12369 if test ! -s out/conftest.err; then
12370 lt_cv_prog_compiler_c_o=yes
12371 fi
12372 fi
12373 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012374 $rm conftest*
12375 # SGI C++ compiler will create directory out/ii_files/ for
12376 # template instantiation
12377 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12378 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012379 cd ..
12380 rmdir conftest
12381 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012382
12383fi
John Criswell47fdd832003-07-14 16:52:07 +000012384echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12385echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012386
John Criswell7a73b802003-06-30 21:59:07 +000012387
John Criswell7a73b802003-06-30 21:59:07 +000012388hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012389if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012390 # do not overwrite the value of need_locks provided by the user
12391 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12392echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12393 hard_links=yes
12394 $rm conftest*
12395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12396 touch conftest.a
12397 ln conftest.a conftest.b 2>&5 || hard_links=no
12398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12399 echo "$as_me:$LINENO: result: $hard_links" >&5
12400echo "${ECHO_T}$hard_links" >&6
12401 if test "$hard_links" = no; then
12402 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12403echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12404 need_locks=warn
12405 fi
12406else
12407 need_locks=no
12408fi
John Criswell7a73b802003-06-30 21:59:07 +000012409
John Criswell47fdd832003-07-14 16:52:07 +000012410echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12411echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12412
12413 runpath_var=
12414 allow_undefined_flag=
12415 enable_shared_with_static_runtimes=no
12416 archive_cmds=
12417 archive_expsym_cmds=
12418 old_archive_From_new_cmds=
12419 old_archive_from_expsyms_cmds=
12420 export_dynamic_flag_spec=
12421 whole_archive_flag_spec=
12422 thread_safe_flag_spec=
12423 hardcode_libdir_flag_spec=
12424 hardcode_libdir_flag_spec_ld=
12425 hardcode_libdir_separator=
12426 hardcode_direct=no
12427 hardcode_minus_L=no
12428 hardcode_shlibpath_var=unsupported
12429 link_all_deplibs=unknown
12430 hardcode_automatic=no
12431 module_cmds=
12432 module_expsym_cmds=
12433 always_export_symbols=no
12434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12435 # include_expsyms should be a list of space-separated symbols to be *always*
12436 # included in the symbol list
12437 include_expsyms=
12438 # exclude_expsyms can be an extended regexp of symbols to exclude
12439 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12440 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12441 # as well as any symbol that contains `d'.
12442 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12443 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12444 # platforms (ab)use it in PIC code, but their linkers get confused if
12445 # the symbol is explicitly referenced. Since portable code cannot
12446 # rely on this symbol name, it's probably fine to never include it in
12447 # preloaded symbol tables.
12448 extract_expsyms_cmds=
12449
12450 case $host_os in
12451 cygwin* | mingw* | pw32*)
12452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12453 # When not using gcc, we currently assume that we are using
12454 # Microsoft Visual C++.
12455 if test "$GCC" != yes; then
12456 with_gnu_ld=no
12457 fi
12458 ;;
12459 openbsd*)
12460 with_gnu_ld=no
12461 ;;
12462 esac
12463
12464 ld_shlibs=yes
12465 if test "$with_gnu_ld" = yes; then
12466 # If archive_cmds runs LD, not CC, wlarc should be empty
12467 wlarc='${wl}'
12468
12469 # See if GNU ld supports shared libraries.
12470 case $host_os in
12471 aix3* | aix4* | aix5*)
12472 # On AIX/PPC, the GNU linker is very broken
12473 if test "$host_cpu" != ia64; then
12474 ld_shlibs=no
12475 cat <<EOF 1>&2
12476
12477*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12478*** to be unable to reliably create shared libraries on AIX.
12479*** Therefore, libtool is disabling shared libraries support. If you
12480*** really care for shared libraries, you may want to modify your PATH
12481*** so that a non-GNU linker is found, and then restart.
12482
12483EOF
12484 fi
12485 ;;
12486
12487 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012488 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 +000012489 hardcode_libdir_flag_spec='-L$libdir'
12490 hardcode_minus_L=yes
12491
12492 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12493 # that the semantics of dynamic libraries on AmigaOS, at least up
12494 # to version 4, is to share data among multiple programs linked
12495 # with the same dynamic library. Since this doesn't match the
12496 # behavior of shared libraries on other platforms, we can't use
12497 # them.
12498 ld_shlibs=no
12499 ;;
12500
12501 beos*)
12502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12503 allow_undefined_flag=unsupported
12504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12505 # support --undefined. This deserves some investigation. FIXME
12506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507 else
12508 ld_shlibs=no
12509 fi
12510 ;;
12511
12512 cygwin* | mingw* | pw32*)
12513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12514 # as there is no search path for DLLs.
12515 hardcode_libdir_flag_spec='-L$libdir'
12516 allow_undefined_flag=unsupported
12517 always_export_symbols=no
12518 enable_shared_with_static_runtimes=yes
12519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12520
12521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12523 # If the export-symbols file already is a .def file (1st line
12524 # is EXPORTS), use it as is; otherwise, prepend...
12525 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12526 cp $export_symbols $output_objdir/$soname.def;
12527 else
12528 echo EXPORTS > $output_objdir/$soname.def;
12529 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012530 fi~
12531 $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 +000012532 else
12533 ld_shlibs=no
12534 fi
12535 ;;
12536
12537 netbsd*)
12538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12540 wlarc=
12541 else
12542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12544 fi
12545 ;;
12546
12547 solaris* | sysv5*)
12548 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12549 ld_shlibs=no
12550 cat <<EOF 1>&2
12551
12552*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12553*** create shared libraries on Solaris systems. Therefore, libtool
12554*** is disabling shared libraries support. We urge you to upgrade GNU
12555*** binutils to release 2.9.1 or newer. Another option is to modify
12556*** your PATH or compiler configuration so that the native linker is
12557*** used, and then restart.
12558
12559EOF
12560 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12563 else
12564 ld_shlibs=no
12565 fi
12566 ;;
12567
12568 sunos4*)
12569 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12570 wlarc=
12571 hardcode_direct=yes
12572 hardcode_shlibpath_var=no
12573 ;;
12574
Reid Spencer2706f8c2004-09-19 23:53:36 +000012575 linux*)
12576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12577 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 archive_cmds="$tmp_archive_cmds"
12579 supports_anon_versioning=no
12580 case `$LD -v 2>/dev/null` in
12581 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12584 *\ 2.11.*) ;; # other 2.11 versions
12585 *) supports_anon_versioning=yes ;;
12586 esac
12587 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012588 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12589cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12590$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012591 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12592 else
12593 archive_expsym_cmds="$tmp_archive_cmds"
12594 fi
12595 else
12596 ld_shlibs=no
12597 fi
12598 ;;
12599
John Criswell47fdd832003-07-14 16:52:07 +000012600 *)
12601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12604 else
12605 ld_shlibs=no
12606 fi
12607 ;;
12608 esac
12609
12610 if test "$ld_shlibs" = yes; then
12611 runpath_var=LD_RUN_PATH
12612 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12613 export_dynamic_flag_spec='${wl}--export-dynamic'
12614 # ancient GNU ld didn't support --whole-archive et. al.
12615 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12616 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12617 else
12618 whole_archive_flag_spec=
12619 fi
12620 fi
12621 else
12622 # PORTME fill in a description of your system's linker (not GNU ld)
12623 case $host_os in
12624 aix3*)
12625 allow_undefined_flag=unsupported
12626 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012627 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 +000012628 # Note: this linker hardcodes the directories in LIBPATH if there
12629 # are no directories specified by -L.
12630 hardcode_minus_L=yes
12631 if test "$GCC" = yes && test -z "$link_static_flag"; then
12632 # Neither direct hardcoding nor static linking is supported with a
12633 # broken collect2.
12634 hardcode_direct=unsupported
12635 fi
12636 ;;
12637
12638 aix4* | aix5*)
12639 if test "$host_cpu" = ia64; then
12640 # On IA64, the linker does run time linking by default, so we don't
12641 # have to do anything special.
12642 aix_use_runtimelinking=no
12643 exp_sym_flag='-Bexport'
12644 no_entry_flag=""
12645 else
12646 # If we're using GNU nm, then we don't want the "-C" option.
12647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12649 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'
12650 else
12651 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'
12652 fi
12653 aix_use_runtimelinking=no
12654
12655 # Test if we are trying to use run time linking or normal
12656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12657 # need to do runtime linking.
12658 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12659 for ld_flag in $LDFLAGS; do
12660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12661 aix_use_runtimelinking=yes
12662 break
12663 fi
12664 done
12665 esac
12666
12667 exp_sym_flag='-bexport'
12668 no_entry_flag='-bnoentry'
12669 fi
12670
12671 # When large executables or shared objects are built, AIX ld can
12672 # have problems creating the table of contents. If linking a library
12673 # or program results in "error TOC overflow" add -mminimal-toc to
12674 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12675 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12676
12677 archive_cmds=''
12678 hardcode_direct=yes
12679 hardcode_libdir_separator=':'
12680 link_all_deplibs=yes
12681
12682 if test "$GCC" = yes; then
12683 case $host_os in aix4.012|aix4.012.*)
12684 # We only want to do this on AIX 4.2 and lower, the check
12685 # below for broken collect2 doesn't work under 4.3+
12686 collect2name=`${CC} -print-prog-name=collect2`
12687 if test -f "$collect2name" && \
12688 strings "$collect2name" | grep resolve_lib_name >/dev/null
12689 then
12690 # We have reworked collect2
12691 hardcode_direct=yes
12692 else
12693 # We have old collect2
12694 hardcode_direct=unsupported
12695 # It fails to find uninstalled libraries when the uninstalled
12696 # path is not listed in the libpath. Setting hardcode_minus_L
12697 # to unsupported forces relinking
12698 hardcode_minus_L=yes
12699 hardcode_libdir_flag_spec='-L$libdir'
12700 hardcode_libdir_separator=
12701 fi
12702 esac
12703 shared_flag='-shared'
12704 else
12705 # not using gcc
12706 if test "$host_cpu" = ia64; then
12707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12708 # chokes on -Wl,-G. The following line is correct:
12709 shared_flag='-G'
12710 else
12711 if test "$aix_use_runtimelinking" = yes; then
12712 shared_flag='${wl}-G'
12713 else
12714 shared_flag='${wl}-bM:SRE'
12715 fi
12716 fi
12717 fi
12718
12719 # It seems that -bexpall does not export symbols beginning with
12720 # underscore (_), so it is better to generate a list of symbols to export.
12721 always_export_symbols=yes
12722 if test "$aix_use_runtimelinking" = yes; then
12723 # Warning - without using the other runtime loading flags (-brtl),
12724 # -berok will link without error, but may produce a broken library.
12725 allow_undefined_flag='-berok'
12726 # Determine the default libpath from the value encoded in an empty executable.
12727 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012733
John Criswell7a73b802003-06-30 21:59:07 +000012734int
12735main ()
12736{
John Criswell47fdd832003-07-14 16:52:07 +000012737
John Criswell7a73b802003-06-30 21:59:07 +000012738 ;
12739 return 0;
12740}
12741_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012742rm -f conftest.$ac_objext conftest$ac_exeext
12743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012744 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012764
John Criswell47fdd832003-07-14 16:52:07 +000012765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12766}'`
12767# Check for a 64-bit object if we didn't find anything.
12768if 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; }
12769}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012770else
12771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012772sed 's/^/| /' conftest.$ac_ext >&5
12773
John Criswell7a73b802003-06-30 21:59:07 +000012774fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012775rm -f conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012778
John Criswell47fdd832003-07-14 16:52:07 +000012779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12780 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"
12781 else
12782 if test "$host_cpu" = ia64; then
12783 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12784 allow_undefined_flag="-z nodefs"
12785 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"
12786 else
12787 # Determine the default libpath from the value encoded in an empty executable.
12788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012794
John Criswell47fdd832003-07-14 16:52:07 +000012795int
12796main ()
12797{
John Criswell7a73b802003-06-30 21:59:07 +000012798
John Criswell47fdd832003-07-14 16:52:07 +000012799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012805 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012806 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012825
John Criswell47fdd832003-07-14 16:52:07 +000012826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12827}'`
12828# Check for a 64-bit object if we didn't find anything.
12829if 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; }
12830}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012831else
John Criswell47fdd832003-07-14 16:52:07 +000012832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012833sed 's/^/| /' conftest.$ac_ext >&5
12834
John Criswell47fdd832003-07-14 16:52:07 +000012835fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012836rm -f conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012839
John Criswell47fdd832003-07-14 16:52:07 +000012840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12841 # Warning - without using the other run time loading flags,
12842 # -berok will link without error, but may produce a broken library.
12843 no_undefined_flag=' ${wl}-bernotok'
12844 allow_undefined_flag=' ${wl}-berok'
12845 # -bexpall does not export symbols beginning with underscore (_)
12846 always_export_symbols=yes
12847 # Exported symbols can be pulled into shared objects from archives
12848 whole_archive_flag_spec=' '
12849 archive_cmds_need_lc=yes
12850 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012851 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 +000012852 fi
12853 fi
John Criswell7a73b802003-06-30 21:59:07 +000012854 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012855
12856 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012857 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 +000012858 hardcode_libdir_flag_spec='-L$libdir'
12859 hardcode_minus_L=yes
12860 # see comment about different semantics on the GNU ld section
12861 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012862 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012863
Reid Spencer2706f8c2004-09-19 23:53:36 +000012864 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012865 export_dynamic_flag_spec=-rdynamic
12866 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012867
John Criswell47fdd832003-07-14 16:52:07 +000012868 cygwin* | mingw* | pw32*)
12869 # When not using gcc, we currently assume that we are using
12870 # Microsoft Visual C++.
12871 # hardcode_libdir_flag_spec is actually meaningless, as there is
12872 # no search path for DLLs.
12873 hardcode_libdir_flag_spec=' '
12874 allow_undefined_flag=unsupported
12875 # Tell ltmain to make .lib files, not .a files.
12876 libext=lib
12877 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012878 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012879 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012880 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012881 # The linker will automatically build a .lib file if we build a DLL.
12882 old_archive_From_new_cmds='true'
12883 # FIXME: Should let the user specify the lib program.
12884 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12885 fix_srcfile_path='`cygpath -w "$srcfile"`'
12886 enable_shared_with_static_runtimes=yes
12887 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012888
John Criswell47fdd832003-07-14 16:52:07 +000012889 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012890 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012891 rhapsody* | darwin1.[012])
12892 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12893 ;;
12894 *) # Darwin 1.3 on
12895 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12896 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12897 else
12898 case ${MACOSX_DEPLOYMENT_TARGET} in
12899 10.[012])
12900 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12901 ;;
12902 10.*)
12903 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12904 ;;
12905 esac
12906 fi
12907 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012908 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012909 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012910 hardcode_direct=no
12911 hardcode_automatic=yes
12912 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012913 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012914 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012915 if test "$GCC" = yes ; then
12916 output_verbose_link_cmd='echo'
12917 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12918 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12919 # 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 +000012920 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}'
12921 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 +000012922 else
12923 case "$cc_basename" in
12924 xlc*)
12925 output_verbose_link_cmd='echo'
12926 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12927 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12928 # 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 +000012929 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}'
12930 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 +000012931 ;;
12932 *)
12933 ld_shlibs=no
12934 ;;
12935 esac
John Criswell7a73b802003-06-30 21:59:07 +000012936 fi
John Criswell47fdd832003-07-14 16:52:07 +000012937 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012938
John Criswell47fdd832003-07-14 16:52:07 +000012939 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012941 hardcode_libdir_flag_spec='-L$libdir'
12942 hardcode_shlibpath_var=no
12943 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012944
John Criswell47fdd832003-07-14 16:52:07 +000012945 freebsd1*)
12946 ld_shlibs=no
12947 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012948
John Criswell47fdd832003-07-14 16:52:07 +000012949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12950 # support. Future versions do this automatically, but an explicit c++rt0.o
12951 # does not break anything, and helps significantly (at the cost of a little
12952 # extra space).
12953 freebsd2.2*)
12954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12955 hardcode_libdir_flag_spec='-R$libdir'
12956 hardcode_direct=yes
12957 hardcode_shlibpath_var=no
12958 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012959
John Criswell47fdd832003-07-14 16:52:07 +000012960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12961 freebsd2*)
12962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_direct=yes
12964 hardcode_minus_L=yes
12965 hardcode_shlibpath_var=no
12966 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012967
John Criswell47fdd832003-07-14 16:52:07 +000012968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012969 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12971 hardcode_libdir_flag_spec='-R$libdir'
12972 hardcode_direct=yes
12973 hardcode_shlibpath_var=no
12974 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012975
John Criswell47fdd832003-07-14 16:52:07 +000012976 hpux9*)
12977 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012978 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 +000012979 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012980 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 +000012981 fi
12982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12983 hardcode_libdir_separator=:
12984 hardcode_direct=yes
12985
12986 # hardcode_minus_L: Not really in the search PATH,
12987 # but as the default location of the library.
12988 hardcode_minus_L=yes
12989 export_dynamic_flag_spec='${wl}-E'
12990 ;;
12991
12992 hpux10* | hpux11*)
12993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12994 case "$host_cpu" in
12995 hppa*64*|ia64*)
12996 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 ;;
12998 *)
12999 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13000 ;;
13001 esac
13002 else
13003 case "$host_cpu" in
13004 hppa*64*|ia64*)
13005 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13006 ;;
13007 *)
13008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13009 ;;
13010 esac
13011 fi
13012 if test "$with_gnu_ld" = no; then
13013 case "$host_cpu" in
13014 hppa*64*)
13015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13016 hardcode_libdir_flag_spec_ld='+b $libdir'
13017 hardcode_libdir_separator=:
13018 hardcode_direct=no
13019 hardcode_shlibpath_var=no
13020 ;;
13021 ia64*)
13022 hardcode_libdir_flag_spec='-L$libdir'
13023 hardcode_direct=no
13024 hardcode_shlibpath_var=no
13025
13026 # hardcode_minus_L: Not really in the search PATH,
13027 # but as the default location of the library.
13028 hardcode_minus_L=yes
13029 ;;
13030 *)
13031 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13032 hardcode_libdir_separator=:
13033 hardcode_direct=yes
13034 export_dynamic_flag_spec='${wl}-E'
13035
13036 # hardcode_minus_L: Not really in the search PATH,
13037 # but as the default location of the library.
13038 hardcode_minus_L=yes
13039 ;;
13040 esac
13041 fi
13042 ;;
13043
13044 irix5* | irix6* | nonstopux*)
13045 if test "$GCC" = yes; then
13046 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'
13047 else
13048 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'
13049 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13050 fi
13051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13052 hardcode_libdir_separator=:
13053 link_all_deplibs=yes
13054 ;;
13055
13056 netbsd*)
13057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13059 else
13060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13061 fi
13062 hardcode_libdir_flag_spec='-R$libdir'
13063 hardcode_direct=yes
13064 hardcode_shlibpath_var=no
13065 ;;
13066
13067 newsos6)
13068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13069 hardcode_direct=yes
13070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13071 hardcode_libdir_separator=:
13072 hardcode_shlibpath_var=no
13073 ;;
13074
13075 openbsd*)
13076 hardcode_direct=yes
13077 hardcode_shlibpath_var=no
13078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013080 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 +000013081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13082 export_dynamic_flag_spec='${wl}-E'
13083 else
13084 case $host_os in
13085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13087 hardcode_libdir_flag_spec='-R$libdir'
13088 ;;
13089 *)
13090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13092 ;;
13093 esac
13094 fi
13095 ;;
13096
13097 os2*)
13098 hardcode_libdir_flag_spec='-L$libdir'
13099 hardcode_minus_L=yes
13100 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013101 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 +000013102 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13103 ;;
13104
13105 osf3*)
13106 if test "$GCC" = yes; then
13107 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13108 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'
13109 else
13110 allow_undefined_flag=' -expect_unresolved \*'
13111 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'
13112 fi
13113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13114 hardcode_libdir_separator=:
13115 ;;
13116
13117 osf4* | osf5*) # as osf3* with the addition of -msym flag
13118 if test "$GCC" = yes; then
13119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13120 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'
13121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13122 else
13123 allow_undefined_flag=' -expect_unresolved \*'
13124 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 +000013125 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13126 $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'
13127
John Criswell47fdd832003-07-14 16:52:07 +000013128 # Both c and cxx compiler support -rpath directly
13129 hardcode_libdir_flag_spec='-rpath $libdir'
13130 fi
13131 hardcode_libdir_separator=:
13132 ;;
13133
13134 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013137 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013138 runpath_var=LD_RUN_PATH
13139 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013140 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013141
John Criswell47fdd832003-07-14 16:52:07 +000013142 solaris*)
13143 no_undefined_flag=' -z text'
13144 if test "$GCC" = yes; then
13145 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13147 $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 +000013148 else
13149 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013150 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13151 $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 +000013152 fi
13153 hardcode_libdir_flag_spec='-R$libdir'
13154 hardcode_shlibpath_var=no
13155 case $host_os in
13156 solaris2.[0-5] | solaris2.[0-5].*) ;;
13157 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13158 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13159 esac
13160 link_all_deplibs=yes
13161 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013162
John Criswell47fdd832003-07-14 16:52:07 +000013163 sunos4*)
13164 if test "x$host_vendor" = xsequent; then
13165 # Use $CC to link under sequent, because it throws in some extra .o
13166 # files that make .init and .fini sections work.
13167 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13168 else
13169 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13170 fi
13171 hardcode_libdir_flag_spec='-L$libdir'
13172 hardcode_direct=yes
13173 hardcode_minus_L=yes
13174 hardcode_shlibpath_var=no
13175 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013176
John Criswell47fdd832003-07-14 16:52:07 +000013177 sysv4)
13178 case $host_vendor in
13179 sni)
13180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13181 hardcode_direct=yes # is this really true???
13182 ;;
13183 siemens)
13184 ## LD is ld it makes a PLAMLIB
13185 ## CC just makes a GrossModule.
13186 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13187 reload_cmds='$CC -r -o $output$reload_objs'
13188 hardcode_direct=no
13189 ;;
13190 motorola)
13191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13192 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13193 ;;
13194 esac
13195 runpath_var='LD_RUN_PATH'
13196 hardcode_shlibpath_var=no
13197 ;;
13198
13199 sysv4.3*)
13200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13201 hardcode_shlibpath_var=no
13202 export_dynamic_flag_spec='-Bexport'
13203 ;;
13204
13205 sysv4*MP*)
13206 if test -d /usr/nec; then
13207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13208 hardcode_shlibpath_var=no
13209 runpath_var=LD_RUN_PATH
13210 hardcode_runpath_var=yes
13211 ld_shlibs=yes
13212 fi
13213 ;;
13214
13215 sysv4.2uw2*)
13216 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13217 hardcode_direct=yes
13218 hardcode_minus_L=no
13219 hardcode_shlibpath_var=no
13220 hardcode_runpath_var=yes
13221 runpath_var=LD_RUN_PATH
13222 ;;
13223
13224 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13225 no_undefined_flag='${wl}-z ${wl}text'
13226 if test "$GCC" = yes; then
13227 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13228 else
13229 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13230 fi
13231 runpath_var='LD_RUN_PATH'
13232 hardcode_shlibpath_var=no
13233 ;;
13234
13235 sysv5*)
13236 no_undefined_flag=' -z text'
13237 # $CC -shared without GNU ld will not create a library from C++
13238 # object files and a static libstdc++, better avoid it by now
13239 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013240 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13241 $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 +000013242 hardcode_libdir_flag_spec=
13243 hardcode_shlibpath_var=no
13244 runpath_var='LD_RUN_PATH'
13245 ;;
13246
13247 uts4*)
13248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13249 hardcode_libdir_flag_spec='-L$libdir'
13250 hardcode_shlibpath_var=no
13251 ;;
13252
13253 *)
13254 ld_shlibs=no
13255 ;;
13256 esac
13257 fi
13258
John Criswell7a73b802003-06-30 21:59:07 +000013259echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13260echo "${ECHO_T}$ld_shlibs" >&6
13261test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013262
John Criswell47fdd832003-07-14 16:52:07 +000013263variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13264if test "$GCC" = yes; then
13265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13266fi
13267
13268#
13269# Do we need to explicitly link libc?
13270#
13271case "x$archive_cmds_need_lc" in
13272x|xyes)
13273 # Assume -lc should be added
13274 archive_cmds_need_lc=yes
13275
13276 if test "$enable_shared" = yes && test "$GCC" = yes; then
13277 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013278 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013279 # FIXME: we may have to deal with multi-command sequences.
13280 ;;
13281 '$CC '*)
13282 # Test whether the compiler implicitly links with -lc since on some
13283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13284 # to ld, don't add -lc before -lgcc.
13285 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13286echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13287 $rm conftest*
13288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13289
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } 2>conftest.err; then
13295 soname=conftest
13296 lib=conftest
13297 libobjs=conftest.$ac_objext
13298 deplibs=
13299 wl=$lt_prog_compiler_wl
13300 compiler_flags=-v
13301 linker_flags=-v
13302 verstring=
13303 output_objdir=.
13304 libname=conftest
13305 lt_save_allow_undefined_flag=$allow_undefined_flag
13306 allow_undefined_flag=
13307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13308 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }
13312 then
13313 archive_cmds_need_lc=no
13314 else
13315 archive_cmds_need_lc=yes
13316 fi
13317 allow_undefined_flag=$lt_save_allow_undefined_flag
13318 else
13319 cat conftest.err 1>&5
13320 fi
13321 $rm conftest*
13322 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13323echo "${ECHO_T}$archive_cmds_need_lc" >&6
13324 ;;
13325 esac
13326 fi
13327 ;;
13328esac
13329
John Criswell7a73b802003-06-30 21:59:07 +000013330echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13331echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13332library_names_spec=
13333libname_spec='lib$name'
13334soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013335shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013336postinstall_cmds=
13337postuninstall_cmds=
13338finish_cmds=
13339finish_eval=
13340shlibpath_var=
13341shlibpath_overrides_runpath=unknown
13342version_type=none
13343dynamic_linker="$host_os ld.so"
13344sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013345if test "$GCC" = yes; then
13346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13348 # if the path contains ";" then we assume it to be the separator
13349 # otherwise default to the standard path separator (i.e. ":") - it is
13350 # assumed that no part of a normal pathname contains ";" but that should
13351 # okay in the real world where ";" in dirpaths is itself problematic.
13352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13353 else
13354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13355 fi
13356else
13357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13358fi
13359need_lib_prefix=unknown
13360hardcode_into_libs=no
13361
13362# when you set need_version to no, make sure it does not cause -set_version
13363# flags to be left without arguments
13364need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013365
13366case $host_os in
13367aix3*)
13368 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013370 shlibpath_var=LIBPATH
13371
John Criswell47fdd832003-07-14 16:52:07 +000013372 # AIX 3 has no versioning support, so we append a major version to the name.
13373 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013374 ;;
13375
13376aix4* | aix5*)
13377 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013378 need_lib_prefix=no
13379 need_version=no
13380 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013381 if test "$host_cpu" = ia64; then
13382 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013384 shlibpath_var=LD_LIBRARY_PATH
13385 else
13386 # With GCC up to 2.95.x, collect2 would create an import file
13387 # for dependence libraries. The import file would start with
13388 # the line `#! .'. This would cause the generated library to
13389 # depend on `.', always an invalid library. This was fixed in
13390 # development snapshots of GCC prior to 3.0.
13391 case $host_os in
13392 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13394 echo ' yes '
13395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13396 :
13397 else
13398 can_build_shared=no
13399 fi
13400 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013401 esac
John Criswell47fdd832003-07-14 16:52:07 +000013402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13403 # soname into executable. Probably we can add versioning support to
13404 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013405 if test "$aix_use_runtimelinking" = yes; then
13406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13407 # instead of lib<name>.a to let people know that these are not
13408 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013410 else
13411 # We preserve .a as extension for shared libraries through AIX4.2
13412 # and later when we are not doing run time linking.
13413 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013414 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013415 fi
13416 shlibpath_var=LIBPATH
13417 fi
13418 ;;
13419
13420amigaos*)
13421 library_names_spec='$libname.ixlibrary $libname.a'
13422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013423 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 +000013424 ;;
13425
13426beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013427 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013428 dynamic_linker="$host_os ld.so"
13429 shlibpath_var=LIBRARY_PATH
13430 ;;
13431
Reid Spencer2706f8c2004-09-19 23:53:36 +000013432bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013433 version_type=linux
13434 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013441 # the default ld.so.conf also contains /usr/contrib/lib and
13442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13443 # libtool to hard-code these into programs
13444 ;;
13445
13446cygwin* | mingw* | pw32*)
13447 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013448 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013449 need_version=no
13450 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013451
John Criswell7a73b802003-06-30 21:59:07 +000013452 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013453 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013454 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013456 postinstall_cmds='base_file=`basename \${file}`~
13457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13458 dldir=$destdir/`dirname \$dlpath`~
13459 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013460 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13462 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013463 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013464 shlibpath_overrides_runpath=yes
13465
13466 case $host_os in
13467 cygwin*)
13468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13469 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 +000013470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013471 ;;
13472 mingw*)
13473 # MinGW DLLs use traditional 'lib' prefix
13474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13477 # It is most probably a Windows format PATH printed by
13478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13479 # path with ; separators, and with drive letters. We can handle the
13480 # drive letters (cygwin fileutils understands them), so leave them,
13481 # especially as we might pass files found there to a mingw objdump,
13482 # which wouldn't understand a cygwinified path. Ahh.
13483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13484 else
13485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13486 fi
13487 ;;
13488 pw32*)
13489 # pw32 DLLs use 'pw' prefix rather than 'lib'
13490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13491 ;;
13492 esac
John Criswell7a73b802003-06-30 21:59:07 +000013493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013494
John Criswell7a73b802003-06-30 21:59:07 +000013495 *)
John Criswell47fdd832003-07-14 16:52:07 +000013496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013497 ;;
13498 esac
13499 dynamic_linker='Win32 ld.exe'
13500 # FIXME: first we should search . and the directory the executable is in
13501 shlibpath_var=PATH
13502 ;;
13503
13504darwin* | rhapsody*)
13505 dynamic_linker="$host_os dyld"
13506 version_type=darwin
13507 need_lib_prefix=no
13508 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013510 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013511 shlibpath_overrides_runpath=yes
13512 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013513 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013515 if test "$GCC" = yes; then
13516 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"`
13517 else
13518 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013519 fi
13520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13521 ;;
13522
13523dgux*)
13524 version_type=linux
13525 need_lib_prefix=no
13526 need_version=no
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013530 ;;
13531
13532freebsd1*)
13533 dynamic_linker=no
13534 ;;
13535
Reid Spencer2706f8c2004-09-19 23:53:36 +000013536kfreebsd*-gnu)
13537 version_type=linux
13538 need_lib_prefix=no
13539 need_version=no
13540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541 soname_spec='${libname}${release}${shared_ext}$major'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 shlibpath_overrides_runpath=no
13544 hardcode_into_libs=yes
13545 dynamic_linker='GNU ld.so'
13546 ;;
13547
John Criswell7a73b802003-06-30 21:59:07 +000013548freebsd*)
13549 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13550 version_type=freebsd-$objformat
13551 case $version_type in
13552 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013554 need_version=no
13555 need_lib_prefix=no
13556 ;;
13557 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013559 need_version=yes
13560 ;;
13561 esac
13562 shlibpath_var=LD_LIBRARY_PATH
13563 case $host_os in
13564 freebsd2*)
13565 shlibpath_overrides_runpath=yes
13566 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013567 freebsd3.01* | freebsdelf3.01*)
13568 shlibpath_overrides_runpath=yes
13569 hardcode_into_libs=yes
13570 ;;
13571 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013572 shlibpath_overrides_runpath=no
13573 hardcode_into_libs=yes
13574 ;;
13575 esac
13576 ;;
13577
13578gnu*)
13579 version_type=linux
13580 need_lib_prefix=no
13581 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013584 shlibpath_var=LD_LIBRARY_PATH
13585 hardcode_into_libs=yes
13586 ;;
13587
13588hpux9* | hpux10* | hpux11*)
13589 # Give a soname corresponding to the major version so that dld.sl refuses to
13590 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013591 version_type=sunos
13592 need_lib_prefix=no
13593 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013594 case "$host_cpu" in
13595 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013596 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013597 hardcode_into_libs=yes
13598 dynamic_linker="$host_os dld.so"
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602 soname_spec='${libname}${release}${shared_ext}$major'
13603 if test "X$HPUX_IA64_MODE" = X32; then
13604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13605 else
13606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13607 fi
13608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13609 ;;
13610 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013611 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013612 hardcode_into_libs=yes
13613 dynamic_linker="$host_os dld.sl"
13614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13620 ;;
13621 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013622 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013623 dynamic_linker="$host_os dld.sl"
13624 shlibpath_var=SHLIB_PATH
13625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627 soname_spec='${libname}${release}${shared_ext}$major'
13628 ;;
13629 esac
John Criswell7a73b802003-06-30 21:59:07 +000013630 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13631 postinstall_cmds='chmod 555 $lib'
13632 ;;
13633
John Criswell47fdd832003-07-14 16:52:07 +000013634irix5* | irix6* | nonstopux*)
13635 case $host_os in
13636 nonstopux*) version_type=nonstopux ;;
13637 *)
13638 if test "$lt_cv_prog_gnu_ld" = yes; then
13639 version_type=linux
13640 else
13641 version_type=irix
13642 fi ;;
13643 esac
John Criswell7a73b802003-06-30 21:59:07 +000013644 need_lib_prefix=no
13645 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013646 soname_spec='${libname}${release}${shared_ext}$major'
13647 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 +000013648 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013649 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013650 libsuff= shlibsuff=
13651 ;;
13652 *)
13653 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13655 libsuff= shlibsuff= libmagic=32-bit;;
13656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13657 libsuff=32 shlibsuff=N32 libmagic=N32;;
13658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013660 *) libsuff= shlibsuff= libmagic=never-match;;
13661 esac
13662 ;;
13663 esac
13664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13665 shlibpath_overrides_runpath=no
13666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013668 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013669 ;;
13670
13671# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013672linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013673 dynamic_linker=no
13674 ;;
13675
13676# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013677linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013678 version_type=linux
13679 need_lib_prefix=no
13680 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13684 shlibpath_var=LD_LIBRARY_PATH
13685 shlibpath_overrides_runpath=no
13686 # This implies no fast_install, which is unacceptable.
13687 # Some rework will be needed to allow for fast_install
13688 # before this can be enabled.
13689 hardcode_into_libs=yes
13690
Reid Spencer2706f8c2004-09-19 23:53:36 +000013691 # Append ld.so.conf contents to the search path
13692 if test -f /etc/ld.so.conf; then
13693 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13695 fi
13696
John Criswell7a73b802003-06-30 21:59:07 +000013697 # We used to test for /lib/ld.so.1 and disable shared libraries on
13698 # powerpc, because MkLinux only supported shared libraries with the
13699 # GNU dynamic linker. Since this was broken with cross compilers,
13700 # most powerpc-linux boxes support dynamic linking these days and
13701 # people can always --disable-shared, the test was removed, and we
13702 # assume the GNU/Linux dynamic linker is in use.
13703 dynamic_linker='GNU/Linux ld.so'
13704 ;;
13705
Reid Spencer2706f8c2004-09-19 23:53:36 +000013706knetbsd*-gnu)
13707 version_type=linux
13708 need_lib_prefix=no
13709 need_version=no
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 shlibpath_overrides_runpath=no
13714 hardcode_into_libs=yes
13715 dynamic_linker='GNU ld.so'
13716 ;;
13717
John Criswell7a73b802003-06-30 21:59:07 +000013718netbsd*)
13719 version_type=sunos
13720 need_lib_prefix=no
13721 need_version=no
13722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13725 dynamic_linker='NetBSD (a.out) ld.so'
13726 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013728 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013729 dynamic_linker='NetBSD ld.elf_so'
13730 fi
13731 shlibpath_var=LD_LIBRARY_PATH
13732 shlibpath_overrides_runpath=yes
13733 hardcode_into_libs=yes
13734 ;;
13735
13736newsos6)
13737 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=yes
13741 ;;
13742
Reid Spencer2706f8c2004-09-19 23:53:36 +000013743nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013744 version_type=linux
13745 need_lib_prefix=no
13746 need_version=no
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013749 shlibpath_var=LD_LIBRARY_PATH
13750 shlibpath_overrides_runpath=yes
13751 ;;
13752
13753openbsd*)
13754 version_type=sunos
13755 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013756 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13759 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013760 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 +000013761 case $host_os in
13762 openbsd2.[89] | openbsd2.[89].*)
13763 shlibpath_overrides_runpath=no
13764 ;;
13765 *)
13766 shlibpath_overrides_runpath=yes
13767 ;;
13768 esac
John Criswell7a73b802003-06-30 21:59:07 +000013769 else
13770 shlibpath_overrides_runpath=yes
13771 fi
John Criswell7a73b802003-06-30 21:59:07 +000013772 ;;
13773
13774os2*)
13775 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013776 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013777 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013778 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013779 dynamic_linker='OS/2 ld.exe'
13780 shlibpath_var=LIBPATH
13781 ;;
13782
13783osf3* | osf4* | osf5*)
13784 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013785 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013786 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013787 soname_spec='${libname}${release}${shared_ext}$major'
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013789 shlibpath_var=LD_LIBRARY_PATH
13790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13791 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13792 ;;
13793
13794sco3.2v5*)
13795 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013796 soname_spec='${libname}${release}${shared_ext}$major'
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013798 shlibpath_var=LD_LIBRARY_PATH
13799 ;;
13800
13801solaris*)
13802 version_type=linux
13803 need_lib_prefix=no
13804 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013807 shlibpath_var=LD_LIBRARY_PATH
13808 shlibpath_overrides_runpath=yes
13809 hardcode_into_libs=yes
13810 # ldd complains unless libraries are executable
13811 postinstall_cmds='chmod +x $lib'
13812 ;;
13813
13814sunos4*)
13815 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=yes
13820 if test "$with_gnu_ld" = yes; then
13821 need_lib_prefix=no
13822 fi
13823 need_version=yes
13824 ;;
13825
13826sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13827 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013830 shlibpath_var=LD_LIBRARY_PATH
13831 case $host_vendor in
13832 sni)
13833 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013834 need_lib_prefix=no
13835 export_dynamic_flag_spec='${wl}-Blargedynsym'
13836 runpath_var=LD_RUN_PATH
13837 ;;
13838 siemens)
13839 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013840 ;;
13841 motorola)
13842 need_lib_prefix=no
13843 need_version=no
13844 shlibpath_overrides_runpath=no
13845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13846 ;;
13847 esac
13848 ;;
13849
John Criswell7a73b802003-06-30 21:59:07 +000013850sysv4*MP*)
13851 if test -d /usr/nec ;then
13852 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13854 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013855 shlibpath_var=LD_LIBRARY_PATH
13856 fi
13857 ;;
13858
John Criswell47fdd832003-07-14 16:52:07 +000013859uts4*)
13860 version_type=linux
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862 soname_spec='${libname}${release}${shared_ext}$major'
13863 shlibpath_var=LD_LIBRARY_PATH
13864 ;;
13865
John Criswell7a73b802003-06-30 21:59:07 +000013866*)
13867 dynamic_linker=no
13868 ;;
13869esac
13870echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13871echo "${ECHO_T}$dynamic_linker" >&6
13872test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013873
Reid Spencer2706f8c2004-09-19 23:53:36 +000013874echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13875echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13876hardcode_action=
13877if test -n "$hardcode_libdir_flag_spec" || \
13878 test -n "$runpath_var" || \
13879 test "X$hardcode_automatic" = "Xyes" ; then
13880
13881 # We can hardcode non-existant directories.
13882 if test "$hardcode_direct" != no &&
13883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13884 # have to relink, otherwise we might link with an installed library
13885 # when we should be linking with a yet-to-be-installed one
13886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13887 test "$hardcode_minus_L" != no; then
13888 # Linking always hardcodes the temporary library directory.
13889 hardcode_action=relink
13890 else
13891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13892 hardcode_action=immediate
13893 fi
13894else
13895 # We cannot hardcode anything, or else we can only hardcode existing
13896 # directories.
13897 hardcode_action=unsupported
13898fi
13899echo "$as_me:$LINENO: result: $hardcode_action" >&5
13900echo "${ECHO_T}$hardcode_action" >&6
13901
13902if test "$hardcode_action" = relink; then
13903 # Fast installation is not supported
13904 enable_fast_install=no
13905elif test "$shlibpath_overrides_runpath" = yes ||
13906 test "$enable_shared" = no; then
13907 # Fast installation is not necessary
13908 enable_fast_install=needless
13909fi
13910
13911striplib=
13912old_striplib=
13913echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13914echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13915if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13916 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13917 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13918 echo "$as_me:$LINENO: result: yes" >&5
13919echo "${ECHO_T}yes" >&6
13920else
13921# FIXME - insert some real tests, host_os isn't really good enough
13922 case $host_os in
13923 darwin*)
13924 if test -n "$STRIP" ; then
13925 striplib="$STRIP -x"
13926 echo "$as_me:$LINENO: result: yes" >&5
13927echo "${ECHO_T}yes" >&6
13928 else
13929 echo "$as_me:$LINENO: result: no" >&5
13930echo "${ECHO_T}no" >&6
13931fi
13932 ;;
13933 *)
13934 echo "$as_me:$LINENO: result: no" >&5
13935echo "${ECHO_T}no" >&6
13936 ;;
13937 esac
13938fi
13939
John Criswell7a73b802003-06-30 21:59:07 +000013940if test "x$enable_dlopen" != xyes; then
13941 enable_dlopen=unknown
13942 enable_dlopen_self=unknown
13943 enable_dlopen_self_static=unknown
13944else
13945 lt_cv_dlopen=no
13946 lt_cv_dlopen_libs=
13947
13948 case $host_os in
13949 beos*)
13950 lt_cv_dlopen="load_add_on"
13951 lt_cv_dlopen_libs=
13952 lt_cv_dlopen_self=yes
13953 ;;
13954
John Criswell47fdd832003-07-14 16:52:07 +000013955 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013956 lt_cv_dlopen="LoadLibrary"
13957 lt_cv_dlopen_libs=
13958 ;;
13959
John Criswell47fdd832003-07-14 16:52:07 +000013960 cygwin*)
13961 lt_cv_dlopen="dlopen"
13962 lt_cv_dlopen_libs=
13963 ;;
13964
13965 darwin*)
13966 # if libdl is installed we need to link against it
13967 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13968echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13969if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972 ac_check_lib_save_LIBS=$LIBS
13973LIBS="-ldl $LIBS"
13974cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013980
13981/* Override any gcc2 internal prototype to avoid an error. */
13982#ifdef __cplusplus
13983extern "C"
13984#endif
13985/* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13987char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013988int
13989main ()
13990{
13991dlopen ();
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996rm -f conftest.$ac_objext conftest$ac_exeext
13997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013998 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014005 { ac_try='test -z "$ac_c_werror_flag"
14006 || test ! -s conftest.err'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } &&
14012 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_lib_dl_dlopen=yes
14019else
14020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014021sed 's/^/| /' conftest.$ac_ext >&5
14022
John Criswell47fdd832003-07-14 16:52:07 +000014023ac_cv_lib_dl_dlopen=no
14024fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014025rm -f conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014027LIBS=$ac_check_lib_save_LIBS
14028fi
14029echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14030echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14031if test $ac_cv_lib_dl_dlopen = yes; then
14032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14033else
14034
14035 lt_cv_dlopen="dyld"
14036 lt_cv_dlopen_libs=
14037 lt_cv_dlopen_self=yes
14038
14039fi
14040
14041 ;;
14042
John Criswell7a73b802003-06-30 21:59:07 +000014043 *)
14044 echo "$as_me:$LINENO: checking for shl_load" >&5
14045echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14046if test "${ac_cv_func_shl_load+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014055/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057#define shl_load innocuous_shl_load
14058
John Criswell7a73b802003-06-30 21:59:07 +000014059/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014060 which can conflict with char shl_load (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014063
John Criswell0c38eaf2003-09-10 15:17:25 +000014064#ifdef __STDC__
14065# include <limits.h>
14066#else
14067# include <assert.h>
14068#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014069
14070#undef shl_load
14071
John Criswell7a73b802003-06-30 21:59:07 +000014072/* Override any gcc2 internal prototype to avoid an error. */
14073#ifdef __cplusplus
14074extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014075{
John Criswell7a73b802003-06-30 21:59:07 +000014076#endif
14077/* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014080/* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083#if defined (__stub_shl_load) || defined (__stub___shl_load)
14084choke me
14085#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014086char (*f) () = shl_load;
14087#endif
14088#ifdef __cplusplus
14089}
John Criswell7a73b802003-06-30 21:59:07 +000014090#endif
14091
John Criswell0c38eaf2003-09-10 15:17:25 +000014092int
14093main ()
14094{
14095return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014096 ;
14097 return 0;
14098}
14099_ACEOF
14100rm -f conftest.$ac_objext conftest$ac_exeext
14101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014102 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014109 { ac_try='test -z "$ac_c_werror_flag"
14110 || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_func_shl_load=yes
14123else
14124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014125sed 's/^/| /' conftest.$ac_ext >&5
14126
John Criswell7a73b802003-06-30 21:59:07 +000014127ac_cv_func_shl_load=no
14128fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014129rm -f conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014131fi
14132echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14133echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14134if test $ac_cv_func_shl_load = yes; then
14135 lt_cv_dlopen="shl_load"
14136else
14137 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14138echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14139if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142 ac_check_lib_save_LIBS=$LIBS
14143LIBS="-ldld $LIBS"
14144cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014150
14151/* Override any gcc2 internal prototype to avoid an error. */
14152#ifdef __cplusplus
14153extern "C"
14154#endif
14155/* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014158int
14159main ()
14160{
14161shl_load ();
14162 ;
14163 return 0;
14164}
14165_ACEOF
14166rm -f conftest.$ac_objext conftest$ac_exeext
14167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014168 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014169 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_lib_dld_shl_load=yes
14189else
14190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014191sed 's/^/| /' conftest.$ac_ext >&5
14192
John Criswell7a73b802003-06-30 21:59:07 +000014193ac_cv_lib_dld_shl_load=no
14194fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014195rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014197LIBS=$ac_check_lib_save_LIBS
14198fi
14199echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14200echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14201if test $ac_cv_lib_dld_shl_load = yes; then
14202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14203else
14204 echo "$as_me:$LINENO: checking for dlopen" >&5
14205echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14206if test "${ac_cv_func_dlopen+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014210/* confdefs.h. */
14211_ACEOF
14212cat confdefs.h >>conftest.$ac_ext
14213cat >>conftest.$ac_ext <<_ACEOF
14214/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014215/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14217#define dlopen innocuous_dlopen
14218
John Criswell7a73b802003-06-30 21:59:07 +000014219/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014220 which can conflict with char dlopen (); below.
14221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14222 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014223
John Criswell0c38eaf2003-09-10 15:17:25 +000014224#ifdef __STDC__
14225# include <limits.h>
14226#else
14227# include <assert.h>
14228#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014229
14230#undef dlopen
14231
John Criswell7a73b802003-06-30 21:59:07 +000014232/* Override any gcc2 internal prototype to avoid an error. */
14233#ifdef __cplusplus
14234extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014235{
John Criswell7a73b802003-06-30 21:59:07 +000014236#endif
14237/* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14239char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014240/* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243#if defined (__stub_dlopen) || defined (__stub___dlopen)
14244choke me
14245#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014246char (*f) () = dlopen;
14247#endif
14248#ifdef __cplusplus
14249}
John Criswell7a73b802003-06-30 21:59:07 +000014250#endif
14251
John Criswell0c38eaf2003-09-10 15:17:25 +000014252int
14253main ()
14254{
14255return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014256 ;
14257 return 0;
14258}
14259_ACEOF
14260rm -f conftest.$ac_objext conftest$ac_exeext
14261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014262 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014263 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014269 { ac_try='test -z "$ac_c_werror_flag"
14270 || test ! -s conftest.err'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_cv_func_dlopen=yes
14283else
14284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014285sed 's/^/| /' conftest.$ac_ext >&5
14286
John Criswell7a73b802003-06-30 21:59:07 +000014287ac_cv_func_dlopen=no
14288fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014289rm -f conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014291fi
14292echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14293echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14294if test $ac_cv_func_dlopen = yes; then
14295 lt_cv_dlopen="dlopen"
14296else
14297 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14298echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14299if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 ac_check_lib_save_LIBS=$LIBS
14303LIBS="-ldl $LIBS"
14304cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014305/* confdefs.h. */
14306_ACEOF
14307cat confdefs.h >>conftest.$ac_ext
14308cat >>conftest.$ac_ext <<_ACEOF
14309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014310
14311/* Override any gcc2 internal prototype to avoid an error. */
14312#ifdef __cplusplus
14313extern "C"
14314#endif
14315/* We use char because int might match the return type of a gcc2
14316 builtin and then its argument prototype would still apply. */
14317char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014318int
14319main ()
14320{
14321dlopen ();
14322 ;
14323 return 0;
14324}
14325_ACEOF
14326rm -f conftest.$ac_objext conftest$ac_exeext
14327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014328 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_lib_dl_dlopen=yes
14349else
14350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014351sed 's/^/| /' conftest.$ac_ext >&5
14352
John Criswell7a73b802003-06-30 21:59:07 +000014353ac_cv_lib_dl_dlopen=no
14354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014355rm -f conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014357LIBS=$ac_check_lib_save_LIBS
14358fi
14359echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14360echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14361if test $ac_cv_lib_dl_dlopen = yes; then
14362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14363else
14364 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14365echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14366if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368else
14369 ac_check_lib_save_LIBS=$LIBS
14370LIBS="-lsvld $LIBS"
14371cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014372/* confdefs.h. */
14373_ACEOF
14374cat confdefs.h >>conftest.$ac_ext
14375cat >>conftest.$ac_ext <<_ACEOF
14376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014377
14378/* Override any gcc2 internal prototype to avoid an error. */
14379#ifdef __cplusplus
14380extern "C"
14381#endif
14382/* We use char because int might match the return type of a gcc2
14383 builtin and then its argument prototype would still apply. */
14384char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014385int
14386main ()
14387{
14388dlopen ();
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393rm -f conftest.$ac_objext conftest$ac_exeext
14394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014395 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014402 { ac_try='test -z "$ac_c_werror_flag"
14403 || test ! -s conftest.err'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_cv_lib_svld_dlopen=yes
14416else
14417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014418sed 's/^/| /' conftest.$ac_ext >&5
14419
John Criswell7a73b802003-06-30 21:59:07 +000014420ac_cv_lib_svld_dlopen=no
14421fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014422rm -f conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014424LIBS=$ac_check_lib_save_LIBS
14425fi
14426echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14427echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14428if test $ac_cv_lib_svld_dlopen = yes; then
14429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14430else
14431 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14432echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14433if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435else
14436 ac_check_lib_save_LIBS=$LIBS
14437LIBS="-ldld $LIBS"
14438cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014439/* confdefs.h. */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014444
14445/* Override any gcc2 internal prototype to avoid an error. */
14446#ifdef __cplusplus
14447extern "C"
14448#endif
14449/* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14451char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014452int
14453main ()
14454{
14455dld_link ();
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext conftest$ac_exeext
14461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014462 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014463 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_lib_dld_dld_link=yes
14483else
14484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014485sed 's/^/| /' conftest.$ac_ext >&5
14486
John Criswell7a73b802003-06-30 21:59:07 +000014487ac_cv_lib_dld_dld_link=no
14488fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014489rm -f conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014491LIBS=$ac_check_lib_save_LIBS
14492fi
14493echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14494echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14495if test $ac_cv_lib_dld_dld_link = yes; then
14496 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14497fi
14498
14499
14500fi
14501
14502
14503fi
14504
14505
14506fi
14507
14508
14509fi
14510
14511
14512fi
14513
14514 ;;
14515 esac
14516
14517 if test "x$lt_cv_dlopen" != xno; then
14518 enable_dlopen=yes
14519 else
14520 enable_dlopen=no
14521 fi
14522
14523 case $lt_cv_dlopen in
14524 dlopen)
14525 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014526 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014527
14528 save_LDFLAGS="$LDFLAGS"
14529 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14530
14531 save_LIBS="$LIBS"
14532 LIBS="$lt_cv_dlopen_libs $LIBS"
14533
14534 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14535echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14536if test "${lt_cv_dlopen_self+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538else
14539 if test "$cross_compiling" = yes; then :
14540 lt_cv_dlopen_self=cross
14541else
John Criswell47fdd832003-07-14 16:52:07 +000014542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014543 lt_status=$lt_dlunknown
14544 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +000014545#line 14545 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014546#include "confdefs.h"
14547
14548#if HAVE_DLFCN_H
14549#include <dlfcn.h>
14550#endif
14551
14552#include <stdio.h>
14553
14554#ifdef RTLD_GLOBAL
14555# define LT_DLGLOBAL RTLD_GLOBAL
14556#else
14557# ifdef DL_GLOBAL
14558# define LT_DLGLOBAL DL_GLOBAL
14559# else
14560# define LT_DLGLOBAL 0
14561# endif
14562#endif
14563
14564/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14565 find out it does not work in some platform. */
14566#ifndef LT_DLLAZY_OR_NOW
14567# ifdef RTLD_LAZY
14568# define LT_DLLAZY_OR_NOW RTLD_LAZY
14569# else
14570# ifdef DL_LAZY
14571# define LT_DLLAZY_OR_NOW DL_LAZY
14572# else
14573# ifdef RTLD_NOW
14574# define LT_DLLAZY_OR_NOW RTLD_NOW
14575# else
14576# ifdef DL_NOW
14577# define LT_DLLAZY_OR_NOW DL_NOW
14578# else
14579# define LT_DLLAZY_OR_NOW 0
14580# endif
14581# endif
14582# endif
14583# endif
14584#endif
14585
14586#ifdef __cplusplus
14587extern "C" void exit (int);
14588#endif
14589
14590void fnord() { int i=42;}
14591int main ()
14592{
14593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14594 int status = $lt_dlunknown;
14595
14596 if (self)
14597 {
14598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14599 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14600 /* dlclose (self); */
14601 }
14602
14603 exit (status);
14604}
14605EOF
14606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14607 (eval $ac_link) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14611 (./conftest; exit; ) 2>/dev/null
14612 lt_status=$?
14613 case x$lt_status in
14614 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14615 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14616 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14617 esac
14618 else :
14619 # compilation failed
14620 lt_cv_dlopen_self=no
14621 fi
14622fi
14623rm -fr conftest*
14624
14625
14626fi
14627echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14628echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14629
14630 if test "x$lt_cv_dlopen_self" = xyes; then
14631 LDFLAGS="$LDFLAGS $link_static_flag"
14632 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14633echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14634if test "${lt_cv_dlopen_self_static+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636else
14637 if test "$cross_compiling" = yes; then :
14638 lt_cv_dlopen_self_static=cross
14639else
John Criswell47fdd832003-07-14 16:52:07 +000014640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014641 lt_status=$lt_dlunknown
14642 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +000014643#line 14643 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014644#include "confdefs.h"
14645
14646#if HAVE_DLFCN_H
14647#include <dlfcn.h>
14648#endif
14649
14650#include <stdio.h>
14651
14652#ifdef RTLD_GLOBAL
14653# define LT_DLGLOBAL RTLD_GLOBAL
14654#else
14655# ifdef DL_GLOBAL
14656# define LT_DLGLOBAL DL_GLOBAL
14657# else
14658# define LT_DLGLOBAL 0
14659# endif
14660#endif
14661
14662/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14663 find out it does not work in some platform. */
14664#ifndef LT_DLLAZY_OR_NOW
14665# ifdef RTLD_LAZY
14666# define LT_DLLAZY_OR_NOW RTLD_LAZY
14667# else
14668# ifdef DL_LAZY
14669# define LT_DLLAZY_OR_NOW DL_LAZY
14670# else
14671# ifdef RTLD_NOW
14672# define LT_DLLAZY_OR_NOW RTLD_NOW
14673# else
14674# ifdef DL_NOW
14675# define LT_DLLAZY_OR_NOW DL_NOW
14676# else
14677# define LT_DLLAZY_OR_NOW 0
14678# endif
14679# endif
14680# endif
14681# endif
14682#endif
14683
14684#ifdef __cplusplus
14685extern "C" void exit (int);
14686#endif
14687
14688void fnord() { int i=42;}
14689int main ()
14690{
14691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14692 int status = $lt_dlunknown;
14693
14694 if (self)
14695 {
14696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14698 /* dlclose (self); */
14699 }
14700
14701 exit (status);
14702}
14703EOF
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14709 (./conftest; exit; ) 2>/dev/null
14710 lt_status=$?
14711 case x$lt_status in
14712 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14713 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14714 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14715 esac
14716 else :
14717 # compilation failed
14718 lt_cv_dlopen_self_static=no
14719 fi
14720fi
14721rm -fr conftest*
14722
14723
14724fi
14725echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14726echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14727 fi
14728
14729 CPPFLAGS="$save_CPPFLAGS"
14730 LDFLAGS="$save_LDFLAGS"
14731 LIBS="$save_LIBS"
14732 ;;
14733 esac
14734
14735 case $lt_cv_dlopen_self in
14736 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14737 *) enable_dlopen_self=unknown ;;
14738 esac
14739
14740 case $lt_cv_dlopen_self_static in
14741 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14742 *) enable_dlopen_self_static=unknown ;;
14743 esac
14744fi
14745
14746
John Criswell47fdd832003-07-14 16:52:07 +000014747# Report which librarie types wil actually be built
14748echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14749echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14750echo "$as_me:$LINENO: result: $can_build_shared" >&5
14751echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014752
John Criswell47fdd832003-07-14 16:52:07 +000014753echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14754echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14755test "$can_build_shared" = "no" && enable_shared=no
14756
14757# On AIX, shared libraries and static libraries use the same namespace, and
14758# are all built from PIC.
14759case "$host_os" in
14760aix3*)
14761 test "$enable_shared" = yes && enable_static=no
14762 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014764 postinstall_cmds='$RANLIB $lib'
14765 fi
14766 ;;
14767
Reid Spencer2706f8c2004-09-19 23:53:36 +000014768aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014769 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14770 test "$enable_shared" = yes && enable_static=no
14771 fi
John Criswell7a73b802003-06-30 21:59:07 +000014772 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014773esac
14774echo "$as_me:$LINENO: result: $enable_shared" >&5
14775echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014776
John Criswell47fdd832003-07-14 16:52:07 +000014777echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14778echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14779# Make sure either enable_shared or enable_static is yes.
14780test "$enable_shared" = yes || enable_static=yes
14781echo "$as_me:$LINENO: result: $enable_static" >&5
14782echo "${ECHO_T}$enable_static" >&6
14783
14784# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014785# libtool distribution, otherwise you forgot to ship ltmain.sh
14786# with your package, and you will get complaints that there are
14787# no rules to generate ltmain.sh.
14788if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014789 # See if we are running on zsh, and set the options which allow our commands through
14790 # without removal of \ escapes.
14791 if test -n "${ZSH_VERSION+set}" ; then
14792 setopt NO_GLOB_SUBST
14793 fi
John Criswell7a73b802003-06-30 21:59:07 +000014794 # Now quote all the things that may contain metacharacters while being
14795 # careful not to overquote the AC_SUBSTed values. We take copies of the
14796 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14798 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14801 deplibs_check_method reload_flag reload_cmds need_locks \
14802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14803 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014805 old_postinstall_cmds old_postuninstall_cmds \
14806 compiler \
14807 CC \
14808 LD \
14809 lt_prog_compiler_wl \
14810 lt_prog_compiler_pic \
14811 lt_prog_compiler_static \
14812 lt_prog_compiler_no_builtin_flag \
14813 export_dynamic_flag_spec \
14814 thread_safe_flag_spec \
14815 whole_archive_flag_spec \
14816 enable_shared_with_static_runtimes \
14817 old_archive_cmds \
14818 old_archive_from_new_cmds \
14819 predep_objects \
14820 postdep_objects \
14821 predeps \
14822 postdeps \
14823 compiler_lib_search_path \
14824 archive_cmds \
14825 archive_expsym_cmds \
14826 postinstall_cmds \
14827 postuninstall_cmds \
14828 old_archive_from_expsyms_cmds \
14829 allow_undefined_flag \
14830 no_undefined_flag \
14831 export_symbols_cmds \
14832 hardcode_libdir_flag_spec \
14833 hardcode_libdir_flag_spec_ld \
14834 hardcode_libdir_separator \
14835 hardcode_automatic \
14836 module_cmds \
14837 module_expsym_cmds \
14838 lt_cv_prog_compiler_c_o \
14839 exclude_expsyms \
14840 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014841
14842 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014843 old_archive_cmds | \
14844 old_archive_from_new_cmds | \
14845 archive_cmds | \
14846 archive_expsym_cmds | \
14847 module_cmds | \
14848 module_expsym_cmds | \
14849 old_archive_from_expsyms_cmds | \
14850 export_symbols_cmds | \
14851 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014852 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014853 old_postinstall_cmds | old_postuninstall_cmds | \
14854 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014855 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014856 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 +000014857 ;;
14858 *)
14859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14860 ;;
14861 esac
14862 done
14863
John Criswell47fdd832003-07-14 16:52:07 +000014864 case $lt_echo in
14865 *'\$0 --fallback-echo"')
14866 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14867 ;;
14868 esac
14869
14870cfgfile="${ofile}T"
14871 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14872 $rm -f "$cfgfile"
14873 { echo "$as_me:$LINENO: creating $ofile" >&5
14874echo "$as_me: creating $ofile" >&6;}
14875
14876 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014877#! $SHELL
14878
John Criswell47fdd832003-07-14 16:52:07 +000014879# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014880# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14881# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14882#
John Criswell47fdd832003-07-14 16:52:07 +000014883# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14884# Free Software Foundation, Inc.
14885#
14886# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014887# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14888#
14889# This program is free software; you can redistribute it and/or modify
14890# it under the terms of the GNU General Public License as published by
14891# the Free Software Foundation; either version 2 of the License, or
14892# (at your option) any later version.
14893#
14894# This program is distributed in the hope that it will be useful, but
14895# WITHOUT ANY WARRANTY; without even the implied warranty of
14896# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14897# General Public License for more details.
14898#
14899# You should have received a copy of the GNU General Public License
14900# along with this program; if not, write to the Free Software
14901# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14902#
14903# As a special exception to the GNU General Public License, if you
14904# distribute this file as part of a program that contains a
14905# configuration script generated by Autoconf, you may include it under
14906# the same distribution terms that you use for the rest of that program.
14907
John Criswell47fdd832003-07-14 16:52:07 +000014908# A sed program that does not truncate output.
14909SED=$lt_SED
14910
John Criswell7a73b802003-06-30 21:59:07 +000014911# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014912Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014913
14914# The HP-UX ksh and POSIX shell print the target directory to stdout
14915# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014916(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014917
John Criswell47fdd832003-07-14 16:52:07 +000014918# The names of the tagged configurations supported by this script.
14919available_tags=
14920
John Criswell7a73b802003-06-30 21:59:07 +000014921# ### BEGIN LIBTOOL CONFIG
14922
14923# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14924
14925# Shell to use when invoking shell scripts.
14926SHELL=$lt_SHELL
14927
14928# Whether or not to build shared libraries.
14929build_libtool_libs=$enable_shared
14930
14931# Whether or not to build static libraries.
14932build_old_libs=$enable_static
14933
14934# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014935build_libtool_need_lc=$archive_cmds_need_lc
14936
14937# Whether or not to disallow shared libs when runtime libs are static
14938allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014939
14940# Whether or not to optimize for fast installation.
14941fast_install=$enable_fast_install
14942
14943# The host system.
14944host_alias=$host_alias
14945host=$host
14946
14947# An echo program that does not interpret backslashes.
14948echo=$lt_echo
14949
14950# The archiver.
14951AR=$lt_AR
14952AR_FLAGS=$lt_AR_FLAGS
14953
John Criswell47fdd832003-07-14 16:52:07 +000014954# A C compiler.
14955LTCC=$lt_LTCC
14956
14957# A language-specific compiler.
14958CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014959
14960# Is the compiler the GNU C compiler?
14961with_gcc=$GCC
14962
John Criswell47fdd832003-07-14 16:52:07 +000014963# An ERE matcher.
14964EGREP=$lt_EGREP
14965
John Criswell7a73b802003-06-30 21:59:07 +000014966# The linker used to build libraries.
14967LD=$lt_LD
14968
14969# Whether we need hard or soft links.
14970LN_S=$lt_LN_S
14971
14972# A BSD-compatible nm program.
14973NM=$lt_NM
14974
14975# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014976STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014977
14978# Used to examine libraries when file_magic_cmd begins "file"
14979MAGIC_CMD=$MAGIC_CMD
14980
14981# Used on cygwin: DLL creation program.
14982DLLTOOL="$DLLTOOL"
14983
14984# Used on cygwin: object dumper.
14985OBJDUMP="$OBJDUMP"
14986
14987# Used on cygwin: assembler.
14988AS="$AS"
14989
14990# The name of the directory that contains temporary libtool files.
14991objdir=$objdir
14992
14993# How to create reloadable object files.
14994reload_flag=$lt_reload_flag
14995reload_cmds=$lt_reload_cmds
14996
14997# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014998wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014999
15000# Object file suffix (normally "o").
15001objext="$ac_objext"
15002
15003# Old archive suffix (normally "a").
15004libext="$libext"
15005
John Criswell47fdd832003-07-14 16:52:07 +000015006# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015007shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015008
John Criswell7a73b802003-06-30 21:59:07 +000015009# Executable file suffix (normally "").
15010exeext="$exeext"
15011
15012# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000015013pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000015014pic_mode=$pic_mode
15015
John Criswell47fdd832003-07-14 16:52:07 +000015016# What is the maximum length of a command?
15017max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000015018
John Criswell47fdd832003-07-14 16:52:07 +000015019# Does compiler simultaneously support -c and -o options?
15020compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000015021
15022# Must we lock files when doing compilation ?
15023need_locks=$lt_need_locks
15024
15025# Do we need the lib prefix for modules?
15026need_lib_prefix=$need_lib_prefix
15027
15028# Do we need a version for libraries?
15029need_version=$need_version
15030
15031# Whether dlopen is supported.
15032dlopen_support=$enable_dlopen
15033
15034# Whether dlopen of programs is supported.
15035dlopen_self=$enable_dlopen_self
15036
15037# Whether dlopen of statically linked programs is supported.
15038dlopen_self_static=$enable_dlopen_self_static
15039
15040# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000015041link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000015042
15043# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000015044no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000015045
15046# Compiler flag to allow reflexive dlopens.
15047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15048
15049# Compiler flag to generate shared objects directly from archives.
15050whole_archive_flag_spec=$lt_whole_archive_flag_spec
15051
15052# Compiler flag to generate thread-safe objects.
15053thread_safe_flag_spec=$lt_thread_safe_flag_spec
15054
15055# Library versioning type.
15056version_type=$version_type
15057
15058# Format of library name prefix.
15059libname_spec=$lt_libname_spec
15060
15061# List of archive names. First name is the real one, the rest are links.
15062# The last name is the one that the linker finds with -lNAME.
15063library_names_spec=$lt_library_names_spec
15064
15065# The coded name of the library, if different from the real name.
15066soname_spec=$lt_soname_spec
15067
15068# Commands used to build and install an old-style archive.
15069RANLIB=$lt_RANLIB
15070old_archive_cmds=$lt_old_archive_cmds
15071old_postinstall_cmds=$lt_old_postinstall_cmds
15072old_postuninstall_cmds=$lt_old_postuninstall_cmds
15073
15074# Create an old-style archive from a shared archive.
15075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15076
15077# Create a temporary old-style archive to link instead of a shared archive.
15078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15079
15080# Commands used to build and install a shared archive.
15081archive_cmds=$lt_archive_cmds
15082archive_expsym_cmds=$lt_archive_expsym_cmds
15083postinstall_cmds=$lt_postinstall_cmds
15084postuninstall_cmds=$lt_postuninstall_cmds
15085
John Criswell47fdd832003-07-14 16:52:07 +000015086# Commands used to build a loadable module (assumed same as above if empty)
15087module_cmds=$lt_module_cmds
15088module_expsym_cmds=$lt_module_expsym_cmds
15089
John Criswell7a73b802003-06-30 21:59:07 +000015090# Commands to strip libraries.
15091old_striplib=$lt_old_striplib
15092striplib=$lt_striplib
15093
John Criswell47fdd832003-07-14 16:52:07 +000015094# Dependencies to place before the objects being linked to create a
15095# shared library.
15096predep_objects=$lt_predep_objects
15097
15098# Dependencies to place after the objects being linked to create a
15099# shared library.
15100postdep_objects=$lt_postdep_objects
15101
15102# Dependencies to place before the objects being linked to create a
15103# shared library.
15104predeps=$lt_predeps
15105
15106# Dependencies to place after the objects being linked to create a
15107# shared library.
15108postdeps=$lt_postdeps
15109
15110# The library search path used internally by the compiler when linking
15111# a shared library.
15112compiler_lib_search_path=$lt_compiler_lib_search_path
15113
John Criswell7a73b802003-06-30 21:59:07 +000015114# Method to check whether dependent libraries are shared objects.
15115deplibs_check_method=$lt_deplibs_check_method
15116
15117# Command to use when deplibs_check_method == file_magic.
15118file_magic_cmd=$lt_file_magic_cmd
15119
15120# Flag that allows shared libraries with undefined symbols to be built.
15121allow_undefined_flag=$lt_allow_undefined_flag
15122
15123# Flag that forces no undefined symbols.
15124no_undefined_flag=$lt_no_undefined_flag
15125
15126# Commands used to finish a libtool library installation in a directory.
15127finish_cmds=$lt_finish_cmds
15128
15129# Same as above, but a single script fragment to be evaled but not shown.
15130finish_eval=$lt_finish_eval
15131
15132# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015133global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015134
15135# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015136global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015137
15138# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015139global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015140
15141# This is the shared library runtime path variable.
15142runpath_var=$runpath_var
15143
15144# This is the shared library path variable.
15145shlibpath_var=$shlibpath_var
15146
15147# Is shlibpath searched before the hard-coded library search path?
15148shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15149
15150# How to hardcode a shared library path into an executable.
15151hardcode_action=$hardcode_action
15152
15153# Whether we should hardcode library paths into libraries.
15154hardcode_into_libs=$hardcode_into_libs
15155
15156# Flag to hardcode \$libdir into a binary during linking.
15157# This must work even if \$libdir does not exist.
15158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15159
John Criswell47fdd832003-07-14 16:52:07 +000015160# If ld is used when linking, flag to hardcode \$libdir into
15161# a binary during linking. This must work even if \$libdir does
15162# not exist.
15163hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15164
John Criswell7a73b802003-06-30 21:59:07 +000015165# Whether we need a single -rpath flag with a separated argument.
15166hardcode_libdir_separator=$lt_hardcode_libdir_separator
15167
John Criswell47fdd832003-07-14 16:52:07 +000015168# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015169# resulting binary.
15170hardcode_direct=$hardcode_direct
15171
15172# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15173# resulting binary.
15174hardcode_minus_L=$hardcode_minus_L
15175
15176# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15177# the resulting binary.
15178hardcode_shlibpath_var=$hardcode_shlibpath_var
15179
John Criswell47fdd832003-07-14 16:52:07 +000015180# Set to yes if building a shared library automatically hardcodes DIR into the library
15181# and all subsequent libraries and executables linked against it.
15182hardcode_automatic=$hardcode_automatic
15183
John Criswell7a73b802003-06-30 21:59:07 +000015184# Variables whose values should be saved in libtool wrapper scripts and
15185# restored at relink time.
15186variables_saved_for_relink="$variables_saved_for_relink"
15187
15188# Whether libtool must link a program against all its dependency libraries.
15189link_all_deplibs=$link_all_deplibs
15190
15191# Compile-time system search path for libraries
15192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15193
15194# Run-time system search path for libraries
15195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15196
15197# Fix the shell variable \$srcfile for the compiler.
15198fix_srcfile_path="$fix_srcfile_path"
15199
15200# Set to yes if exported symbols are required.
15201always_export_symbols=$always_export_symbols
15202
15203# The commands to list exported symbols.
15204export_symbols_cmds=$lt_export_symbols_cmds
15205
15206# The commands to extract the exported symbol list from a shared archive.
15207extract_expsyms_cmds=$lt_extract_expsyms_cmds
15208
15209# Symbols that should not be listed in the preloaded symbols.
15210exclude_expsyms=$lt_exclude_expsyms
15211
15212# Symbols that must always be exported.
15213include_expsyms=$lt_include_expsyms
15214
15215# ### END LIBTOOL CONFIG
15216
15217__EOF__
15218
John Criswell47fdd832003-07-14 16:52:07 +000015219
John Criswell7a73b802003-06-30 21:59:07 +000015220 case $host_os in
15221 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015222 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015223
15224# AIX sometimes has problems with the GCC collect2 program. For some
15225# reason, if we set the COLLECT_NAMES environment variable, the problems
15226# vanish in a puff of smoke.
15227if test "X${COLLECT_NAMES+set}" != Xset; then
15228 COLLECT_NAMES=
15229 export COLLECT_NAMES
15230fi
15231EOF
15232 ;;
15233 esac
15234
John Criswell7a73b802003-06-30 21:59:07 +000015235 # We use sed instead of cat because bash on DJGPP gets confused if
15236 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15237 # text mode, it properly converts lines to CR/LF. This bash problem
15238 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015239 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015240
John Criswell47fdd832003-07-14 16:52:07 +000015241 mv -f "$cfgfile" "$ofile" || \
15242 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015243 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015244
15245else
15246 # If there is no Makefile yet, we rely on a make rule to execute
15247 # `config.status --recheck' to rerun these tests and create the
15248 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015249 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15250 if test -f "$ltmain_in"; then
15251 test -f Makefile && make "$ltmain"
15252 fi
John Criswell7a73b802003-06-30 21:59:07 +000015253fi
John Criswell7a73b802003-06-30 21:59:07 +000015254
15255
John Criswell47fdd832003-07-14 16:52:07 +000015256ac_ext=c
15257ac_cpp='$CPP $CPPFLAGS'
15258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15260ac_compiler_gnu=$ac_cv_c_compiler_gnu
15261
15262CC="$lt_save_CC"
15263
15264
15265# Check whether --with-tags or --without-tags was given.
15266if test "${with_tags+set}" = set; then
15267 withval="$with_tags"
15268 tagnames="$withval"
15269fi;
15270
15271if test -f "$ltmain" && test -n "$tagnames"; then
15272 if test ! -f "${ofile}"; then
15273 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15274echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15275 fi
15276
15277 if test -z "$LTCC"; then
15278 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15279 if test -z "$LTCC"; then
15280 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15281echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15282 else
15283 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15284echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15285 fi
15286 fi
15287
15288 # Extract list of available tagged configurations in $ofile.
15289 # Note that this assumes the entire list is on one line.
15290 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15291
15292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15293 for tagname in $tagnames; do
15294 IFS="$lt_save_ifs"
15295 # Check whether tagname contains only valid characters
15296 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15297 "") ;;
15298 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15299echo "$as_me: error: invalid tag name: $tagname" >&2;}
15300 { (exit 1); exit 1; }; }
15301 ;;
15302 esac
15303
15304 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15305 then
15306 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15307echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15308 { (exit 1); exit 1; }; }
15309 fi
15310
15311 # Update the list of available tags.
15312 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015313 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015314
15315 case $tagname in
15316 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015317 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15318 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15319 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015320 ac_ext=cc
15321ac_cpp='$CXXCPP $CPPFLAGS'
15322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15325
15326
15327
15328
15329archive_cmds_need_lc_CXX=no
15330allow_undefined_flag_CXX=
15331always_export_symbols_CXX=no
15332archive_expsym_cmds_CXX=
15333export_dynamic_flag_spec_CXX=
15334hardcode_direct_CXX=no
15335hardcode_libdir_flag_spec_CXX=
15336hardcode_libdir_flag_spec_ld_CXX=
15337hardcode_libdir_separator_CXX=
15338hardcode_minus_L_CXX=no
15339hardcode_automatic_CXX=no
15340module_cmds_CXX=
15341module_expsym_cmds_CXX=
15342link_all_deplibs_CXX=unknown
15343old_archive_cmds_CXX=$old_archive_cmds
15344no_undefined_flag_CXX=
15345whole_archive_flag_spec_CXX=
15346enable_shared_with_static_runtimes_CXX=no
15347
15348# Dependencies to place before and after the object being linked:
15349predep_objects_CXX=
15350postdep_objects_CXX=
15351predeps_CXX=
15352postdeps_CXX=
15353compiler_lib_search_path_CXX=
15354
15355# Source file extension for C++ test sources.
15356ac_ext=cc
15357
15358# Object file extension for compiled C++ test sources.
15359objext=o
15360objext_CXX=$objext
15361
15362# Code to be used in simple compile tests
15363lt_simple_compile_test_code="int some_variable = 0;\n"
15364
15365# Code to be used in simple link tests
15366lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15367
15368# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15369
15370# If no C compiler was specified, use CC.
15371LTCC=${LTCC-"$CC"}
15372
15373# Allow CC to be a program name with arguments.
15374compiler=$CC
15375
15376
15377# Allow CC to be a program name with arguments.
15378lt_save_CC=$CC
15379lt_save_LD=$LD
15380lt_save_GCC=$GCC
15381GCC=$GXX
15382lt_save_with_gnu_ld=$with_gnu_ld
15383lt_save_path_LD=$lt_cv_path_LD
15384if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15385 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15386else
15387 unset lt_cv_prog_gnu_ld
15388fi
15389if test -n "${lt_cv_path_LDCXX+set}"; then
15390 lt_cv_path_LD=$lt_cv_path_LDCXX
15391else
15392 unset lt_cv_path_LD
15393fi
15394test -z "${LDCXX+set}" || LD=$LDCXX
15395CC=${CXX-"c++"}
15396compiler=$CC
15397compiler_CXX=$CC
15398cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15399
15400# We don't want -fno-exception wen compiling C++ code, so set the
15401# no_builtin_flag separately
15402if test "$GXX" = yes; then
15403 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15404else
15405 lt_prog_compiler_no_builtin_flag_CXX=
15406fi
15407
15408if test "$GXX" = yes; then
15409 # Set up default GNU C++ configuration
15410
15411
15412# Check whether --with-gnu-ld or --without-gnu-ld was given.
15413if test "${with_gnu_ld+set}" = set; then
15414 withval="$with_gnu_ld"
15415 test "$withval" = no || with_gnu_ld=yes
15416else
15417 with_gnu_ld=no
15418fi;
15419ac_prog=ld
15420if test "$GCC" = yes; then
15421 # Check if gcc -print-prog-name=ld gives a path.
15422 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15423echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15424 case $host in
15425 *-*-mingw*)
15426 # gcc leaves a trailing carriage return which upsets mingw
15427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15428 *)
15429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15430 esac
15431 case $ac_prog in
15432 # Accept absolute paths.
15433 [\\/]* | ?:[\\/]*)
15434 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015436 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15437 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15438 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15439 done
15440 test -z "$LD" && LD="$ac_prog"
15441 ;;
15442 "")
15443 # If it fails, then pretend we aren't using GCC.
15444 ac_prog=ld
15445 ;;
15446 *)
15447 # If it is relative, then search for the first ld in PATH.
15448 with_gnu_ld=unknown
15449 ;;
15450 esac
15451elif test "$with_gnu_ld" = yes; then
15452 echo "$as_me:$LINENO: checking for GNU ld" >&5
15453echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15454else
15455 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15456echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15457fi
15458if test "${lt_cv_path_LD+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460else
15461 if test -z "$LD"; then
15462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15463 for ac_dir in $PATH; do
15464 IFS="$lt_save_ifs"
15465 test -z "$ac_dir" && ac_dir=.
15466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15467 lt_cv_path_LD="$ac_dir/$ac_prog"
15468 # Check to see if the program is GNU ld. I'd rather use --version,
15469 # but apparently some GNU ld's only accept -v.
15470 # Break only if it was the GNU/non-GNU ld that we prefer.
15471 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15472 *GNU* | *'with BFD'*)
15473 test "$with_gnu_ld" != no && break
15474 ;;
15475 *)
15476 test "$with_gnu_ld" != yes && break
15477 ;;
15478 esac
15479 fi
15480 done
15481 IFS="$lt_save_ifs"
15482else
15483 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15484fi
15485fi
15486
15487LD="$lt_cv_path_LD"
15488if test -n "$LD"; then
15489 echo "$as_me:$LINENO: result: $LD" >&5
15490echo "${ECHO_T}$LD" >&6
15491else
15492 echo "$as_me:$LINENO: result: no" >&5
15493echo "${ECHO_T}no" >&6
15494fi
15495test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15496echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15497 { (exit 1); exit 1; }; }
15498echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15499echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15500if test "${lt_cv_prog_gnu_ld+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502else
15503 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015504case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015505*GNU* | *'with BFD'*)
15506 lt_cv_prog_gnu_ld=yes
15507 ;;
15508*)
15509 lt_cv_prog_gnu_ld=no
15510 ;;
15511esac
15512fi
15513echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15514echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15515with_gnu_ld=$lt_cv_prog_gnu_ld
15516
15517
15518
15519 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15520 # archiving commands below assume that GNU ld is being used.
15521 if test "$with_gnu_ld" = yes; then
15522 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 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'
15524
15525 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15527
15528 # If archive_cmds runs LD, not CC, wlarc should be empty
15529 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15530 # investigate it a little bit more. (MM)
15531 wlarc='${wl}'
15532
15533 # ancient GNU ld didn't support --whole-archive et. al.
15534 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15535 grep 'no-whole-archive' > /dev/null; then
15536 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15537 else
15538 whole_archive_flag_spec_CXX=
15539 fi
15540 else
15541 with_gnu_ld=no
15542 wlarc=
15543
15544 # A generic and very simple default shared library creation
15545 # command for GNU C++ for the case where it uses the native
15546 # linker, instead of GNU ld. If possible, this setting should
15547 # overridden to take advantage of the native linker features on
15548 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015549 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015550 fi
15551
15552 # Commands to make compiler produce verbose output that lists
15553 # what "hidden" libraries, object files and flags are used when
15554 # linking a shared library.
15555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15556
15557else
15558 GXX=no
15559 with_gnu_ld=no
15560 wlarc=
15561fi
15562
15563# PORTME: fill in a description of your system's C++ link characteristics
15564echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15565echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15566ld_shlibs_CXX=yes
15567case $host_os in
15568 aix3*)
15569 # FIXME: insert proper C++ library support
15570 ld_shlibs_CXX=no
15571 ;;
15572 aix4* | aix5*)
15573 if test "$host_cpu" = ia64; then
15574 # On IA64, the linker does run time linking by default, so we don't
15575 # have to do anything special.
15576 aix_use_runtimelinking=no
15577 exp_sym_flag='-Bexport'
15578 no_entry_flag=""
15579 else
15580 aix_use_runtimelinking=no
15581
15582 # Test if we are trying to use run time linking or normal
15583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15584 # need to do runtime linking.
15585 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15586 for ld_flag in $LDFLAGS; do
15587 case $ld_flag in
15588 *-brtl*)
15589 aix_use_runtimelinking=yes
15590 break
15591 ;;
15592 esac
15593 done
15594 esac
15595
15596 exp_sym_flag='-bexport'
15597 no_entry_flag='-bnoentry'
15598 fi
15599
15600 # When large executables or shared objects are built, AIX ld can
15601 # have problems creating the table of contents. If linking a library
15602 # or program results in "error TOC overflow" add -mminimal-toc to
15603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15605
15606 archive_cmds_CXX=''
15607 hardcode_direct_CXX=yes
15608 hardcode_libdir_separator_CXX=':'
15609 link_all_deplibs_CXX=yes
15610
15611 if test "$GXX" = yes; then
15612 case $host_os in aix4.012|aix4.012.*)
15613 # We only want to do this on AIX 4.2 and lower, the check
15614 # below for broken collect2 doesn't work under 4.3+
15615 collect2name=`${CC} -print-prog-name=collect2`
15616 if test -f "$collect2name" && \
15617 strings "$collect2name" | grep resolve_lib_name >/dev/null
15618 then
15619 # We have reworked collect2
15620 hardcode_direct_CXX=yes
15621 else
15622 # We have old collect2
15623 hardcode_direct_CXX=unsupported
15624 # It fails to find uninstalled libraries when the uninstalled
15625 # path is not listed in the libpath. Setting hardcode_minus_L
15626 # to unsupported forces relinking
15627 hardcode_minus_L_CXX=yes
15628 hardcode_libdir_flag_spec_CXX='-L$libdir'
15629 hardcode_libdir_separator_CXX=
15630 fi
15631 esac
15632 shared_flag='-shared'
15633 else
15634 # not using gcc
15635 if test "$host_cpu" = ia64; then
15636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15637 # chokes on -Wl,-G. The following line is correct:
15638 shared_flag='-G'
15639 else
15640 if test "$aix_use_runtimelinking" = yes; then
15641 shared_flag='${wl}-G'
15642 else
15643 shared_flag='${wl}-bM:SRE'
15644 fi
15645 fi
15646 fi
15647
15648 # It seems that -bexpall does not export symbols beginning with
15649 # underscore (_), so it is better to generate a list of symbols to export.
15650 always_export_symbols_CXX=yes
15651 if test "$aix_use_runtimelinking" = yes; then
15652 # Warning - without using the other runtime loading flags (-brtl),
15653 # -berok will link without error, but may produce a broken library.
15654 allow_undefined_flag_CXX='-berok'
15655 # Determine the default libpath from the value encoded in an empty executable.
15656 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015662
John Criswell47fdd832003-07-14 16:52:07 +000015663int
15664main ()
15665{
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest.$ac_objext conftest$ac_exeext
15672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015673 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015674 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015680 { ac_try='test -z "$ac_cxx_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693
15694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15695}'`
15696# Check for a 64-bit object if we didn't find anything.
15697if 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; }
15698}'`; fi
15699else
15700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015701sed 's/^/| /' conftest.$ac_ext >&5
15702
John Criswell47fdd832003-07-14 16:52:07 +000015703fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015704rm -f conftest.err conftest.$ac_objext \
15705 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015706if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15707
15708 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15709
15710 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"
15711 else
15712 if test "$host_cpu" = ia64; then
15713 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15714 allow_undefined_flag_CXX="-z nodefs"
15715 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"
15716 else
15717 # Determine the default libpath from the value encoded in an empty executable.
15718 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015724
John Criswell47fdd832003-07-14 16:52:07 +000015725int
15726main ()
15727{
15728
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext conftest$ac_exeext
15734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015735 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015742 { ac_try='test -z "$ac_cxx_werror_flag"
15743 || test ! -s conftest.err'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755
15756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15757}'`
15758# Check for a 64-bit object if we didn't find anything.
15759if 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; }
15760}'`; fi
15761else
15762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015763sed 's/^/| /' conftest.$ac_ext >&5
15764
John Criswell47fdd832003-07-14 16:52:07 +000015765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015766rm -f conftest.err conftest.$ac_objext \
15767 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15769
15770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15771 # Warning - without using the other run time loading flags,
15772 # -berok will link without error, but may produce a broken library.
15773 no_undefined_flag_CXX=' ${wl}-bernotok'
15774 allow_undefined_flag_CXX=' ${wl}-berok'
15775 # -bexpall does not export symbols beginning with underscore (_)
15776 always_export_symbols_CXX=yes
15777 # Exported symbols can be pulled into shared objects from archives
15778 whole_archive_flag_spec_CXX=' '
15779 archive_cmds_need_lc_CXX=yes
15780 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015781 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 +000015782 fi
15783 fi
15784 ;;
15785 chorus*)
15786 case $cc_basename in
15787 *)
15788 # FIXME: insert proper C++ library support
15789 ld_shlibs_CXX=no
15790 ;;
15791 esac
15792 ;;
15793
Reid Spencer2706f8c2004-09-19 23:53:36 +000015794
John Criswell47fdd832003-07-14 16:52:07 +000015795 cygwin* | mingw* | pw32*)
15796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15797 # as there is no search path for DLLs.
15798 hardcode_libdir_flag_spec_CXX='-L$libdir'
15799 allow_undefined_flag_CXX=unsupported
15800 always_export_symbols_CXX=no
15801 enable_shared_with_static_runtimes_CXX=yes
15802
15803 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15804 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'
15805 # If the export-symbols file already is a .def file (1st line
15806 # is EXPORTS), use it as is; otherwise, prepend...
15807 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15808 cp $export_symbols $output_objdir/$soname.def;
15809 else
15810 echo EXPORTS > $output_objdir/$soname.def;
15811 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015812 fi~
15813 $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 +000015814 else
15815 ld_shlibs_CXX=no
15816 fi
15817 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015818 darwin* | rhapsody*)
15819 case "$host_os" in
15820 rhapsody* | darwin1.[012])
15821 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15822 ;;
15823 *) # Darwin 1.3 on
15824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15825 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15826 else
15827 case ${MACOSX_DEPLOYMENT_TARGET} in
15828 10.[012])
15829 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15830 ;;
15831 10.*)
15832 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15833 ;;
15834 esac
15835 fi
15836 ;;
15837 esac
15838 archive_cmds_need_lc_CXX=no
15839 hardcode_direct_CXX=no
15840 hardcode_automatic_CXX=yes
15841 hardcode_shlibpath_var_CXX=unsupported
15842 whole_archive_flag_spec_CXX=''
15843 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015844
Reid Spencer2706f8c2004-09-19 23:53:36 +000015845 if test "$GXX" = yes ; then
15846 lt_int_apple_cc_single_mod=no
15847 output_verbose_link_cmd='echo'
15848 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15849 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015850 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015851 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015852 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 +000015853 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015854 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 +000015855 fi
15856 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15858 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015859 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 +000015860 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015861 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 +000015862 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015863 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 +000015864 else
15865 case "$cc_basename" in
15866 xlc*)
15867 output_verbose_link_cmd='echo'
15868 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'
15869 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15870 # 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 +000015871 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}'
15872 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 +000015873 ;;
15874 *)
15875 ld_shlibs_CXX=no
15876 ;;
15877 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015878 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015879 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015880
15881 dgux*)
15882 case $cc_basename in
15883 ec++)
15884 # FIXME: insert proper C++ library support
15885 ld_shlibs_CXX=no
15886 ;;
15887 ghcx)
15888 # Green Hills C++ Compiler
15889 # FIXME: insert proper C++ library support
15890 ld_shlibs_CXX=no
15891 ;;
15892 *)
15893 # FIXME: insert proper C++ library support
15894 ld_shlibs_CXX=no
15895 ;;
15896 esac
15897 ;;
15898 freebsd12*)
15899 # C++ shared libraries reported to be fairly broken before switch to ELF
15900 ld_shlibs_CXX=no
15901 ;;
15902 freebsd-elf*)
15903 archive_cmds_need_lc_CXX=no
15904 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015905 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015906 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15907 # conventions
15908 ld_shlibs_CXX=yes
15909 ;;
15910 gnu*)
15911 ;;
15912 hpux9*)
15913 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15914 hardcode_libdir_separator_CXX=:
15915 export_dynamic_flag_spec_CXX='${wl}-E'
15916 hardcode_direct_CXX=yes
15917 hardcode_minus_L_CXX=yes # Not in the search PATH,
15918 # but as the default
15919 # location of the library.
15920
15921 case $cc_basename in
15922 CC)
15923 # FIXME: insert proper C++ library support
15924 ld_shlibs_CXX=no
15925 ;;
15926 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015927 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 +000015928 # Commands to make compiler produce verbose output that lists
15929 # what "hidden" libraries, object files and flags are used when
15930 # linking a shared library.
15931 #
15932 # There doesn't appear to be a way to prevent this compiler from
15933 # explicitly linking system object files so we need to strip them
15934 # from the output so that they don't get included in the library
15935 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015936 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 +000015937 ;;
15938 *)
15939 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015940 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 +000015941 else
15942 # FIXME: insert proper C++ library support
15943 ld_shlibs_CXX=no
15944 fi
15945 ;;
15946 esac
15947 ;;
15948 hpux10*|hpux11*)
15949 if test $with_gnu_ld = no; then
15950 case "$host_cpu" in
15951 hppa*64*)
15952 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15953 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15954 hardcode_libdir_separator_CXX=:
15955 ;;
15956 ia64*)
15957 hardcode_libdir_flag_spec_CXX='-L$libdir'
15958 ;;
15959 *)
15960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15961 hardcode_libdir_separator_CXX=:
15962 export_dynamic_flag_spec_CXX='${wl}-E'
15963 ;;
15964 esac
15965 fi
15966 case "$host_cpu" in
15967 hppa*64*)
15968 hardcode_direct_CXX=no
15969 hardcode_shlibpath_var_CXX=no
15970 ;;
15971 ia64*)
15972 hardcode_direct_CXX=no
15973 hardcode_shlibpath_var_CXX=no
15974 hardcode_minus_L_CXX=yes # Not in the search PATH,
15975 # but as the default
15976 # location of the library.
15977 ;;
15978 *)
15979 hardcode_direct_CXX=yes
15980 hardcode_minus_L_CXX=yes # Not in the search PATH,
15981 # but as the default
15982 # location of the library.
15983 ;;
15984 esac
15985
15986 case $cc_basename in
15987 CC)
15988 # FIXME: insert proper C++ library support
15989 ld_shlibs_CXX=no
15990 ;;
15991 aCC)
15992 case "$host_cpu" in
15993 hppa*64*|ia64*)
15994 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15995 ;;
15996 *)
15997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15998 ;;
15999 esac
16000 # Commands to make compiler produce verbose output that lists
16001 # what "hidden" libraries, object files and flags are used when
16002 # linking a shared library.
16003 #
16004 # There doesn't appear to be a way to prevent this compiler from
16005 # explicitly linking system object files so we need to strip them
16006 # from the output so that they don't get included in the library
16007 # dependencies.
16008 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'
16009 ;;
16010 *)
16011 if test "$GXX" = yes; then
16012 if test $with_gnu_ld = no; then
16013 case "$host_cpu" in
16014 ia64*|hppa*64*)
16015 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16016 ;;
16017 *)
16018 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'
16019 ;;
16020 esac
16021 fi
16022 else
16023 # FIXME: insert proper C++ library support
16024 ld_shlibs_CXX=no
16025 fi
16026 ;;
16027 esac
16028 ;;
16029 irix5* | irix6*)
16030 case $cc_basename in
16031 CC)
16032 # SGI C++
16033 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'
16034
16035 # Archives containing C++ object files must be created using
16036 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16037 # necessary to make sure instantiated templates are included
16038 # in the archive.
16039 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16040 ;;
16041 *)
16042 if test "$GXX" = yes; then
16043 if test "$with_gnu_ld" = no; then
16044 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'
16045 else
16046 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'
16047 fi
16048 fi
16049 link_all_deplibs_CXX=yes
16050 ;;
16051 esac
16052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16053 hardcode_libdir_separator_CXX=:
16054 ;;
16055 linux*)
16056 case $cc_basename in
16057 KCC)
16058 # Kuck and Associates, Inc. (KAI) C++ Compiler
16059
16060 # KCC will only create a shared library if the output file
16061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16062 # to its proper name (with version) after linking.
16063 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'
16064 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'
16065 # Commands to make compiler produce verbose output that lists
16066 # what "hidden" libraries, object files and flags are used when
16067 # linking a shared library.
16068 #
16069 # There doesn't appear to be a way to prevent this compiler from
16070 # explicitly linking system object files so we need to strip them
16071 # from the output so that they don't get included in the library
16072 # dependencies.
16073 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'
16074
16075 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16077
16078 # Archives containing C++ object files must be created using
16079 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16080 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16081 ;;
16082 icpc)
16083 # Intel C++
16084 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016085 # version 8.0 and above of icpc choke on multiply defined symbols
16086 # if we add $predep_objects and $postdep_objects, however 7.1 and
16087 # earlier do not add the objects themselves.
16088 case `$CC -V 2>&1` in
16089 *"Version 7."*)
16090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 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'
16092 ;;
16093 *) # Version 8.0 or newer
16094 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16095 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16096 ;;
16097 esac
John Criswell47fdd832003-07-14 16:52:07 +000016098 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16101 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16102 ;;
16103 cxx)
16104 # Compaq C++
16105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106 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'
16107
16108 runpath_var=LD_RUN_PATH
16109 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16110 hardcode_libdir_separator_CXX=:
16111
16112 # Commands to make compiler produce verbose output that lists
16113 # what "hidden" libraries, object files and flags are used when
16114 # linking a shared library.
16115 #
16116 # There doesn't appear to be a way to prevent this compiler from
16117 # explicitly linking system object files so we need to strip them
16118 # from the output so that they don't get included in the library
16119 # dependencies.
16120 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'
16121 ;;
16122 esac
16123 ;;
16124 lynxos*)
16125 # FIXME: insert proper C++ library support
16126 ld_shlibs_CXX=no
16127 ;;
16128 m88k*)
16129 # FIXME: insert proper C++ library support
16130 ld_shlibs_CXX=no
16131 ;;
16132 mvs*)
16133 case $cc_basename in
16134 cxx)
16135 # FIXME: insert proper C++ library support
16136 ld_shlibs_CXX=no
16137 ;;
16138 *)
16139 # FIXME: insert proper C++ library support
16140 ld_shlibs_CXX=no
16141 ;;
16142 esac
16143 ;;
16144 netbsd*)
16145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16146 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16147 wlarc=
16148 hardcode_libdir_flag_spec_CXX='-R$libdir'
16149 hardcode_direct_CXX=yes
16150 hardcode_shlibpath_var_CXX=no
16151 fi
16152 # Workaround some broken pre-1.5 toolchains
16153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16154 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016155 openbsd2*)
16156 # C++ shared libraries are fairly broken
16157 ld_shlibs_CXX=no
16158 ;;
16159 openbsd*)
16160 hardcode_direct_CXX=yes
16161 hardcode_shlibpath_var_CXX=no
16162 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16165 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16166 export_dynamic_flag_spec_CXX='${wl}-E'
16167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16168 fi
16169 output_verbose_link_cmd='echo'
16170 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016171 osf3*)
16172 case $cc_basename in
16173 KCC)
16174 # Kuck and Associates, Inc. (KAI) C++ Compiler
16175
16176 # KCC will only create a shared library if the output file
16177 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16178 # to its proper name (with version) after linking.
16179 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'
16180
16181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16182 hardcode_libdir_separator_CXX=:
16183
16184 # Archives containing C++ object files must be created using
16185 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16186 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16187
16188 ;;
16189 RCC)
16190 # Rational C++ 2.4.1
16191 # FIXME: insert proper C++ library support
16192 ld_shlibs_CXX=no
16193 ;;
16194 cxx)
16195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16196 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'
16197
16198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16199 hardcode_libdir_separator_CXX=:
16200
16201 # Commands to make compiler produce verbose output that lists
16202 # what "hidden" libraries, object files and flags are used when
16203 # linking a shared library.
16204 #
16205 # There doesn't appear to be a way to prevent this compiler from
16206 # explicitly linking system object files so we need to strip them
16207 # from the output so that they don't get included in the library
16208 # dependencies.
16209 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'
16210 ;;
16211 *)
16212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16214 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'
16215
16216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16217 hardcode_libdir_separator_CXX=:
16218
16219 # Commands to make compiler produce verbose output that lists
16220 # what "hidden" libraries, object files and flags are used when
16221 # linking a shared library.
16222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16223
16224 else
16225 # FIXME: insert proper C++ library support
16226 ld_shlibs_CXX=no
16227 fi
16228 ;;
16229 esac
16230 ;;
16231 osf4* | osf5*)
16232 case $cc_basename in
16233 KCC)
16234 # Kuck and Associates, Inc. (KAI) C++ Compiler
16235
16236 # KCC will only create a shared library if the output file
16237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16238 # to its proper name (with version) after linking.
16239 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'
16240
16241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16242 hardcode_libdir_separator_CXX=:
16243
16244 # Archives containing C++ object files must be created using
16245 # the KAI C++ compiler.
16246 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16247 ;;
16248 RCC)
16249 # Rational C++ 2.4.1
16250 # FIXME: insert proper C++ library support
16251 ld_shlibs_CXX=no
16252 ;;
16253 cxx)
16254 allow_undefined_flag_CXX=' -expect_unresolved \*'
16255 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 +000016256 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16257 echo "-hidden">> $lib.exp~
16258 $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~
16259 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016260
16261 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16262 hardcode_libdir_separator_CXX=:
16263
16264 # Commands to make compiler produce verbose output that lists
16265 # what "hidden" libraries, object files and flags are used when
16266 # linking a shared library.
16267 #
16268 # There doesn't appear to be a way to prevent this compiler from
16269 # explicitly linking system object files so we need to strip them
16270 # from the output so that they don't get included in the library
16271 # dependencies.
16272 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'
16273 ;;
16274 *)
16275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16277 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'
16278
16279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16280 hardcode_libdir_separator_CXX=:
16281
16282 # Commands to make compiler produce verbose output that lists
16283 # what "hidden" libraries, object files and flags are used when
16284 # linking a shared library.
16285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16286
16287 else
16288 # FIXME: insert proper C++ library support
16289 ld_shlibs_CXX=no
16290 fi
16291 ;;
16292 esac
16293 ;;
16294 psos*)
16295 # FIXME: insert proper C++ library support
16296 ld_shlibs_CXX=no
16297 ;;
16298 sco*)
16299 archive_cmds_need_lc_CXX=no
16300 case $cc_basename in
16301 CC)
16302 # FIXME: insert proper C++ library support
16303 ld_shlibs_CXX=no
16304 ;;
16305 *)
16306 # FIXME: insert proper C++ library support
16307 ld_shlibs_CXX=no
16308 ;;
16309 esac
16310 ;;
16311 sunos4*)
16312 case $cc_basename in
16313 CC)
16314 # Sun C++ 4.x
16315 # FIXME: insert proper C++ library support
16316 ld_shlibs_CXX=no
16317 ;;
16318 lcc)
16319 # Lucid
16320 # FIXME: insert proper C++ library support
16321 ld_shlibs_CXX=no
16322 ;;
16323 *)
16324 # FIXME: insert proper C++ library support
16325 ld_shlibs_CXX=no
16326 ;;
16327 esac
16328 ;;
16329 solaris*)
16330 case $cc_basename in
16331 CC)
16332 # Sun C++ 4.2, 5.x and Centerline C++
16333 no_undefined_flag_CXX=' -zdefs'
16334 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 +000016335 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16336 $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 +000016337
16338 hardcode_libdir_flag_spec_CXX='-R$libdir'
16339 hardcode_shlibpath_var_CXX=no
16340 case $host_os in
16341 solaris2.0-5 | solaris2.0-5.*) ;;
16342 *)
16343 # The C++ compiler is used as linker so we must use $wl
16344 # flag to pass the commands to the underlying system
16345 # linker.
16346 # Supported since Solaris 2.6 (maybe 2.5.1?)
16347 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16348 ;;
16349 esac
16350 link_all_deplibs_CXX=yes
16351
16352 # Commands to make compiler produce verbose output that lists
16353 # what "hidden" libraries, object files and flags are used when
16354 # linking a shared library.
16355 #
16356 # There doesn't appear to be a way to prevent this compiler from
16357 # explicitly linking system object files so we need to strip them
16358 # from the output so that they don't get included in the library
16359 # dependencies.
16360 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'
16361
16362 # Archives containing C++ object files must be created using
16363 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16364 # necessary to make sure instantiated templates are included
16365 # in the archive.
16366 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16367 ;;
16368 gcx)
16369 # Green Hills C++ Compiler
16370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16371
16372 # The C++ compiler must be used to create the archive.
16373 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16374 ;;
16375 *)
16376 # GNU C++ compiler with Solaris linker
16377 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16378 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16379 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016380 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 +000016381 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16382 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16383
John Criswell47fdd832003-07-14 16:52:07 +000016384 # Commands to make compiler produce verbose output that lists
16385 # what "hidden" libraries, object files and flags are used when
16386 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016387 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016388 else
16389 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16390 # platform.
16391 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 +000016392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16393 $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 +000016394
16395 # Commands to make compiler produce verbose output that lists
16396 # what "hidden" libraries, object files and flags are used when
16397 # linking a shared library.
16398 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16399 fi
16400
16401 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16402 fi
16403 ;;
16404 esac
16405 ;;
16406 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16407 archive_cmds_need_lc_CXX=no
16408 ;;
16409 tandem*)
16410 case $cc_basename in
16411 NCC)
16412 # NonStop-UX NCC 3.20
16413 # FIXME: insert proper C++ library support
16414 ld_shlibs_CXX=no
16415 ;;
16416 *)
16417 # FIXME: insert proper C++ library support
16418 ld_shlibs_CXX=no
16419 ;;
16420 esac
16421 ;;
16422 vxworks*)
16423 # FIXME: insert proper C++ library support
16424 ld_shlibs_CXX=no
16425 ;;
16426 *)
16427 # FIXME: insert proper C++ library support
16428 ld_shlibs_CXX=no
16429 ;;
16430esac
16431echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16432echo "${ECHO_T}$ld_shlibs_CXX" >&6
16433test "$ld_shlibs_CXX" = no && can_build_shared=no
16434
16435GCC_CXX="$GXX"
16436LD_CXX="$LD"
16437
John Criswell47fdd832003-07-14 16:52:07 +000016438
16439cat > conftest.$ac_ext <<EOF
16440class Foo
16441{
16442public:
16443 Foo (void) { a = 0; }
16444private:
16445 int a;
16446};
16447EOF
16448
16449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16450 (eval $ac_compile) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; then
16454 # Parse the compiler output and extract the necessary
16455 # objects, libraries and library flags.
16456
16457 # Sentinel used to keep track of whether or not we are before
16458 # the conftest object file.
16459 pre_test_object_deps_done=no
16460
16461 # The `*' in the case matches for architectures that use `case' in
16462 # $output_verbose_cmd can trigger glob expansion during the loop
16463 # eval without this substitution.
16464 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16465
16466 for p in `eval $output_verbose_link_cmd`; do
16467 case $p in
16468
16469 -L* | -R* | -l*)
16470 # Some compilers place space between "-{L,R}" and the path.
16471 # Remove the space.
16472 if test $p = "-L" \
16473 || test $p = "-R"; then
16474 prev=$p
16475 continue
16476 else
16477 prev=
16478 fi
16479
16480 if test "$pre_test_object_deps_done" = no; then
16481 case $p in
16482 -L* | -R*)
16483 # Internal compiler library paths should come after those
16484 # provided the user. The postdeps already come after the
16485 # user supplied libs so there is no need to process them.
16486 if test -z "$compiler_lib_search_path_CXX"; then
16487 compiler_lib_search_path_CXX="${prev}${p}"
16488 else
16489 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16490 fi
16491 ;;
16492 # The "-l" case would never come before the object being
16493 # linked, so don't bother handling this case.
16494 esac
16495 else
16496 if test -z "$postdeps_CXX"; then
16497 postdeps_CXX="${prev}${p}"
16498 else
16499 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16500 fi
16501 fi
16502 ;;
16503
16504 *.$objext)
16505 # This assumes that the test object file only shows up
16506 # once in the compiler output.
16507 if test "$p" = "conftest.$objext"; then
16508 pre_test_object_deps_done=yes
16509 continue
16510 fi
16511
16512 if test "$pre_test_object_deps_done" = no; then
16513 if test -z "$predep_objects_CXX"; then
16514 predep_objects_CXX="$p"
16515 else
16516 predep_objects_CXX="$predep_objects_CXX $p"
16517 fi
16518 else
16519 if test -z "$postdep_objects_CXX"; then
16520 postdep_objects_CXX="$p"
16521 else
16522 postdep_objects_CXX="$postdep_objects_CXX $p"
16523 fi
16524 fi
16525 ;;
16526
16527 *) ;; # Ignore the rest.
16528
16529 esac
16530 done
16531
16532 # Clean up.
16533 rm -f a.out a.exe
16534else
16535 echo "libtool.m4: error: problem compiling CXX test program"
16536fi
16537
16538$rm -f confest.$objext
16539
16540case " $postdeps_CXX " in
16541*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16542esac
16543
16544lt_prog_compiler_wl_CXX=
16545lt_prog_compiler_pic_CXX=
16546lt_prog_compiler_static_CXX=
16547
16548echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16549echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16550
16551 # C++ specific cases for pic, static, wl, etc.
16552 if test "$GXX" = yes; then
16553 lt_prog_compiler_wl_CXX='-Wl,'
16554 lt_prog_compiler_static_CXX='-static'
16555
16556 case $host_os in
16557 aix*)
16558 # All AIX code is PIC.
16559 if test "$host_cpu" = ia64; then
16560 # AIX 5 now supports IA64 processor
16561 lt_prog_compiler_static_CXX='-Bstatic'
16562 fi
16563 ;;
16564 amigaos*)
16565 # FIXME: we need at least 68020 code to build shared libraries, but
16566 # adding the `-m68020' flag to GCC prevents building anything better,
16567 # like `-m68040'.
16568 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16569 ;;
16570 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16571 # PIC is the default for these OSes.
16572 ;;
16573 mingw* | os2* | pw32*)
16574 # This hack is so that the source file can tell whether it is being
16575 # built for inclusion in a dll (and should export symbols for example).
16576 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16577 ;;
16578 darwin* | rhapsody*)
16579 # PIC is the default on this platform
16580 # Common symbols not allowed in MH_DYLIB files
16581 lt_prog_compiler_pic_CXX='-fno-common'
16582 ;;
16583 *djgpp*)
16584 # DJGPP does not support shared libraries at all
16585 lt_prog_compiler_pic_CXX=
16586 ;;
16587 sysv4*MP*)
16588 if test -d /usr/nec; then
16589 lt_prog_compiler_pic_CXX=-Kconform_pic
16590 fi
16591 ;;
16592 hpux*)
16593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16594 # not for PA HP-UX.
16595 case "$host_cpu" in
16596 hppa*64*|ia64*)
16597 ;;
16598 *)
16599 lt_prog_compiler_pic_CXX='-fPIC'
16600 ;;
16601 esac
16602 ;;
16603 *)
16604 lt_prog_compiler_pic_CXX='-fPIC'
16605 ;;
16606 esac
16607 else
16608 case $host_os in
16609 aix4* | aix5*)
16610 # All AIX code is PIC.
16611 if test "$host_cpu" = ia64; then
16612 # AIX 5 now supports IA64 processor
16613 lt_prog_compiler_static_CXX='-Bstatic'
16614 else
16615 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16616 fi
16617 ;;
16618 chorus*)
16619 case $cc_basename in
16620 cxch68)
16621 # Green Hills C++ Compiler
16622 # _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"
16623 ;;
16624 esac
16625 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626 darwin*)
16627 # PIC is the default on this platform
16628 # Common symbols not allowed in MH_DYLIB files
16629 case "$cc_basename" in
16630 xlc*)
16631 lt_prog_compiler_pic_CXX='-qnocommon'
16632 lt_prog_compiler_wl_CXX='-Wl,'
16633 ;;
16634 esac
16635 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016636 dgux*)
16637 case $cc_basename in
16638 ec++)
16639 lt_prog_compiler_pic_CXX='-KPIC'
16640 ;;
16641 ghcx)
16642 # Green Hills C++ Compiler
16643 lt_prog_compiler_pic_CXX='-pic'
16644 ;;
16645 *)
16646 ;;
16647 esac
16648 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016649 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016650 # FreeBSD uses GNU C++
16651 ;;
16652 hpux9* | hpux10* | hpux11*)
16653 case $cc_basename in
16654 CC)
16655 lt_prog_compiler_wl_CXX='-Wl,'
16656 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16657 if test "$host_cpu" != ia64; then
16658 lt_prog_compiler_pic_CXX='+Z'
16659 fi
16660 ;;
16661 aCC)
16662 lt_prog_compiler_wl_CXX='-Wl,'
16663 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16664 case "$host_cpu" in
16665 hppa*64*|ia64*)
16666 # +Z the default
16667 ;;
16668 *)
16669 lt_prog_compiler_pic_CXX='+Z'
16670 ;;
16671 esac
16672 ;;
16673 *)
16674 ;;
16675 esac
16676 ;;
16677 irix5* | irix6* | nonstopux*)
16678 case $cc_basename in
16679 CC)
16680 lt_prog_compiler_wl_CXX='-Wl,'
16681 lt_prog_compiler_static_CXX='-non_shared'
16682 # CC pic flag -KPIC is the default.
16683 ;;
16684 *)
16685 ;;
16686 esac
16687 ;;
16688 linux*)
16689 case $cc_basename in
16690 KCC)
16691 # KAI C++ Compiler
16692 lt_prog_compiler_wl_CXX='--backend -Wl,'
16693 lt_prog_compiler_pic_CXX='-fPIC'
16694 ;;
16695 icpc)
16696 # Intel C++
16697 lt_prog_compiler_wl_CXX='-Wl,'
16698 lt_prog_compiler_pic_CXX='-KPIC'
16699 lt_prog_compiler_static_CXX='-static'
16700 ;;
16701 cxx)
16702 # Compaq C++
16703 # Make sure the PIC flag is empty. It appears that all Alpha
16704 # Linux and Compaq Tru64 Unix objects are PIC.
16705 lt_prog_compiler_pic_CXX=
16706 lt_prog_compiler_static_CXX='-non_shared'
16707 ;;
16708 *)
16709 ;;
16710 esac
16711 ;;
16712 lynxos*)
16713 ;;
16714 m88k*)
16715 ;;
16716 mvs*)
16717 case $cc_basename in
16718 cxx)
16719 lt_prog_compiler_pic_CXX='-W c,exportall'
16720 ;;
16721 *)
16722 ;;
16723 esac
16724 ;;
16725 netbsd*)
16726 ;;
16727 osf3* | osf4* | osf5*)
16728 case $cc_basename in
16729 KCC)
16730 lt_prog_compiler_wl_CXX='--backend -Wl,'
16731 ;;
16732 RCC)
16733 # Rational C++ 2.4.1
16734 lt_prog_compiler_pic_CXX='-pic'
16735 ;;
16736 cxx)
16737 # Digital/Compaq C++
16738 lt_prog_compiler_wl_CXX='-Wl,'
16739 # Make sure the PIC flag is empty. It appears that all Alpha
16740 # Linux and Compaq Tru64 Unix objects are PIC.
16741 lt_prog_compiler_pic_CXX=
16742 lt_prog_compiler_static_CXX='-non_shared'
16743 ;;
16744 *)
16745 ;;
16746 esac
16747 ;;
16748 psos*)
16749 ;;
16750 sco*)
16751 case $cc_basename in
16752 CC)
16753 lt_prog_compiler_pic_CXX='-fPIC'
16754 ;;
16755 *)
16756 ;;
16757 esac
16758 ;;
16759 solaris*)
16760 case $cc_basename in
16761 CC)
16762 # Sun C++ 4.2, 5.x and Centerline C++
16763 lt_prog_compiler_pic_CXX='-KPIC'
16764 lt_prog_compiler_static_CXX='-Bstatic'
16765 lt_prog_compiler_wl_CXX='-Qoption ld '
16766 ;;
16767 gcx)
16768 # Green Hills C++ Compiler
16769 lt_prog_compiler_pic_CXX='-PIC'
16770 ;;
16771 *)
16772 ;;
16773 esac
16774 ;;
16775 sunos4*)
16776 case $cc_basename in
16777 CC)
16778 # Sun C++ 4.x
16779 lt_prog_compiler_pic_CXX='-pic'
16780 lt_prog_compiler_static_CXX='-Bstatic'
16781 ;;
16782 lcc)
16783 # Lucid
16784 lt_prog_compiler_pic_CXX='-pic'
16785 ;;
16786 *)
16787 ;;
16788 esac
16789 ;;
16790 tandem*)
16791 case $cc_basename in
16792 NCC)
16793 # NonStop-UX NCC 3.20
16794 lt_prog_compiler_pic_CXX='-KPIC'
16795 ;;
16796 *)
16797 ;;
16798 esac
16799 ;;
16800 unixware*)
16801 ;;
16802 vxworks*)
16803 ;;
16804 *)
16805 lt_prog_compiler_can_build_shared_CXX=no
16806 ;;
16807 esac
16808 fi
16809
16810echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16811echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16812
16813#
16814# Check to make sure the PIC flag actually works.
16815#
16816if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016817
16818echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016819echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16820if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822else
16823 lt_prog_compiler_pic_works_CXX=no
16824 ac_outfile=conftest.$ac_objext
16825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16826 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16827 # Insert the option either (1) after the last *FLAGS variable, or
16828 # (2) before a word containing "conftest.", or (3) at the end.
16829 # Note that $ac_compile itself does not contain backslashes and begins
16830 # with a dollar sign (not a hyphen), so the echo should work correctly.
16831 # The option is referenced via a variable to avoid confusing sed.
16832 lt_compile=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000016836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016837 (eval "$lt_compile" 2>conftest.err)
16838 ac_status=$?
16839 cat conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000016840 echo "$as_me:16840: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016841 if (exit $ac_status) && test -s "$ac_outfile"; then
16842 # The compiler can only warn and ignore the option if not recognized
16843 # So say no if there are warnings
16844 if test ! -s conftest.err; then
16845 lt_prog_compiler_pic_works_CXX=yes
16846 fi
16847 fi
16848 $rm conftest*
16849
16850fi
16851echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16852echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16853
16854if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16855 case $lt_prog_compiler_pic_CXX in
16856 "" | " "*) ;;
16857 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16858 esac
16859else
16860 lt_prog_compiler_pic_CXX=
16861 lt_prog_compiler_can_build_shared_CXX=no
16862fi
16863
16864fi
16865case "$host_os" in
16866 # For platforms which do not support PIC, -DPIC is meaningless:
16867 *djgpp*)
16868 lt_prog_compiler_pic_CXX=
16869 ;;
16870 *)
16871 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16872 ;;
16873esac
16874
16875echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16876echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16877if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880 lt_cv_prog_compiler_c_o_CXX=no
16881 $rm -r conftest 2>/dev/null
16882 mkdir conftest
16883 cd conftest
16884 mkdir out
16885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16886
John Criswell47fdd832003-07-14 16:52:07 +000016887 lt_compiler_flag="-o out/conftest2.$ac_objext"
16888 # Insert the option either (1) after the last *FLAGS variable, or
16889 # (2) before a word containing "conftest.", or (3) at the end.
16890 # Note that $ac_compile itself does not contain backslashes and begins
16891 # with a dollar sign (not a hyphen), so the echo should work correctly.
16892 lt_compile=`echo "$ac_compile" | $SED \
16893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16895 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000016896 (eval echo "\"\$as_me:16896: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016897 (eval "$lt_compile" 2>out/conftest.err)
16898 ac_status=$?
16899 cat out/conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000016900 echo "$as_me:16900: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16902 then
16903 # The compiler can only warn and ignore the option if not recognized
16904 # So say no if there are warnings
16905 if test ! -s out/conftest.err; then
16906 lt_cv_prog_compiler_c_o_CXX=yes
16907 fi
16908 fi
16909 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016910 $rm conftest*
16911 # SGI C++ compiler will create directory out/ii_files/ for
16912 # template instantiation
16913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16914 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016915 cd ..
16916 rmdir conftest
16917 $rm conftest*
16918
16919fi
16920echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16921echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16922
16923
16924hard_links="nottested"
16925if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16926 # do not overwrite the value of need_locks provided by the user
16927 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16928echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16929 hard_links=yes
16930 $rm conftest*
16931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16932 touch conftest.a
16933 ln conftest.a conftest.b 2>&5 || hard_links=no
16934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16935 echo "$as_me:$LINENO: result: $hard_links" >&5
16936echo "${ECHO_T}$hard_links" >&6
16937 if test "$hard_links" = no; then
16938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16939echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16940 need_locks=warn
16941 fi
16942else
16943 need_locks=no
16944fi
16945
16946echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16947echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16948
16949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16950 case $host_os in
16951 aix4* | aix5*)
16952 # If we're using GNU nm, then we don't want the "-C" option.
16953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16954 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16955 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'
16956 else
16957 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'
16958 fi
16959 ;;
16960 pw32*)
16961 export_symbols_cmds_CXX="$ltdll_cmds"
16962 ;;
16963 cygwin* | mingw*)
16964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16965 ;;
16966 *)
16967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16968 ;;
16969 esac
16970
16971echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16972echo "${ECHO_T}$ld_shlibs_CXX" >&6
16973test "$ld_shlibs_CXX" = no && can_build_shared=no
16974
16975variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16976if test "$GCC" = yes; then
16977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16978fi
16979
16980#
16981# Do we need to explicitly link libc?
16982#
16983case "x$archive_cmds_need_lc_CXX" in
16984x|xyes)
16985 # Assume -lc should be added
16986 archive_cmds_need_lc_CXX=yes
16987
16988 if test "$enable_shared" = yes && test "$GCC" = yes; then
16989 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016991 # FIXME: we may have to deal with multi-command sequences.
16992 ;;
16993 '$CC '*)
16994 # Test whether the compiler implicitly links with -lc since on some
16995 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16996 # to ld, don't add -lc before -lgcc.
16997 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16998echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16999 $rm conftest*
17000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17001
17002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17003 (eval $ac_compile) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } 2>conftest.err; then
17007 soname=conftest
17008 lib=conftest
17009 libobjs=conftest.$ac_objext
17010 deplibs=
17011 wl=$lt_prog_compiler_wl_CXX
17012 compiler_flags=-v
17013 linker_flags=-v
17014 verstring=
17015 output_objdir=.
17016 libname=conftest
17017 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17018 allow_undefined_flag_CXX=
17019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17020 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }
17024 then
17025 archive_cmds_need_lc_CXX=no
17026 else
17027 archive_cmds_need_lc_CXX=yes
17028 fi
17029 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17030 else
17031 cat conftest.err 1>&5
17032 fi
17033 $rm conftest*
17034 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17035echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17036 ;;
17037 esac
17038 fi
17039 ;;
17040esac
17041
John Criswell47fdd832003-07-14 16:52:07 +000017042echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17044library_names_spec=
17045libname_spec='lib$name'
17046soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017047shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017048postinstall_cmds=
17049postuninstall_cmds=
17050finish_cmds=
17051finish_eval=
17052shlibpath_var=
17053shlibpath_overrides_runpath=unknown
17054version_type=none
17055dynamic_linker="$host_os ld.so"
17056sys_lib_dlsearch_path_spec="/lib /usr/lib"
17057if test "$GCC" = yes; then
17058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17060 # if the path contains ";" then we assume it to be the separator
17061 # otherwise default to the standard path separator (i.e. ":") - it is
17062 # assumed that no part of a normal pathname contains ";" but that should
17063 # okay in the real world where ";" in dirpaths is itself problematic.
17064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17065 else
17066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17067 fi
17068else
17069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17070fi
17071need_lib_prefix=unknown
17072hardcode_into_libs=no
17073
17074# when you set need_version to no, make sure it does not cause -set_version
17075# flags to be left without arguments
17076need_version=unknown
17077
17078case $host_os in
17079aix3*)
17080 version_type=linux
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17082 shlibpath_var=LIBPATH
17083
17084 # AIX 3 has no versioning support, so we append a major version to the name.
17085 soname_spec='${libname}${release}${shared_ext}$major'
17086 ;;
17087
17088aix4* | aix5*)
17089 version_type=linux
17090 need_lib_prefix=no
17091 need_version=no
17092 hardcode_into_libs=yes
17093 if test "$host_cpu" = ia64; then
17094 # AIX 5 supports IA64
17095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 else
17098 # With GCC up to 2.95.x, collect2 would create an import file
17099 # for dependence libraries. The import file would start with
17100 # the line `#! .'. This would cause the generated library to
17101 # depend on `.', always an invalid library. This was fixed in
17102 # development snapshots of GCC prior to 3.0.
17103 case $host_os in
17104 aix4 | aix4.[01] | aix4.[01].*)
17105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17106 echo ' yes '
17107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17108 :
17109 else
17110 can_build_shared=no
17111 fi
17112 ;;
17113 esac
17114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17115 # soname into executable. Probably we can add versioning support to
17116 # collect2, so additional links can be useful in future.
17117 if test "$aix_use_runtimelinking" = yes; then
17118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17119 # instead of lib<name>.a to let people know that these are not
17120 # typical AIX shared libraries.
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122 else
17123 # We preserve .a as extension for shared libraries through AIX4.2
17124 # and later when we are not doing run time linking.
17125 library_names_spec='${libname}${release}.a $libname.a'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 fi
17128 shlibpath_var=LIBPATH
17129 fi
17130 ;;
17131
17132amigaos*)
17133 library_names_spec='$libname.ixlibrary $libname.a'
17134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017135 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 +000017136 ;;
17137
17138beos*)
17139 library_names_spec='${libname}${shared_ext}'
17140 dynamic_linker="$host_os ld.so"
17141 shlibpath_var=LIBRARY_PATH
17142 ;;
17143
Reid Spencer2706f8c2004-09-19 23:53:36 +000017144bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017145 version_type=linux
17146 need_version=no
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17153 # the default ld.so.conf also contains /usr/contrib/lib and
17154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17155 # libtool to hard-code these into programs
17156 ;;
17157
17158cygwin* | mingw* | pw32*)
17159 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017160 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017161 need_version=no
17162 need_lib_prefix=no
17163
17164 case $GCC,$host_os in
17165 yes,cygwin* | yes,mingw* | yes,pw32*)
17166 library_names_spec='$libname.dll.a'
17167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017168 postinstall_cmds='base_file=`basename \${file}`~
17169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17170 dldir=$destdir/`dirname \$dlpath`~
17171 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017172 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17174 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017175 $rm \$dlpath'
17176 shlibpath_overrides_runpath=yes
17177
17178 case $host_os in
17179 cygwin*)
17180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17181 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 +000017182 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017183 ;;
17184 mingw*)
17185 # MinGW DLLs use traditional 'lib' prefix
17186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17189 # It is most probably a Windows format PATH printed by
17190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17191 # path with ; separators, and with drive letters. We can handle the
17192 # drive letters (cygwin fileutils understands them), so leave them,
17193 # especially as we might pass files found there to a mingw objdump,
17194 # which wouldn't understand a cygwinified path. Ahh.
17195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17196 else
17197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17198 fi
17199 ;;
17200 pw32*)
17201 # pw32 DLLs use 'pw' prefix rather than 'lib'
17202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17203 ;;
17204 esac
17205 ;;
17206
17207 *)
17208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17209 ;;
17210 esac
17211 dynamic_linker='Win32 ld.exe'
17212 # FIXME: first we should search . and the directory the executable is in
17213 shlibpath_var=PATH
17214 ;;
17215
17216darwin* | rhapsody*)
17217 dynamic_linker="$host_os dyld"
17218 version_type=darwin
17219 need_lib_prefix=no
17220 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017221 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017222 soname_spec='${libname}${release}${major}$shared_ext'
17223 shlibpath_overrides_runpath=yes
17224 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017225 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017226 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017227 if test "$GCC" = yes; then
17228 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"`
17229 else
17230 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017231 fi
17232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17233 ;;
17234
17235dgux*)
17236 version_type=linux
17237 need_lib_prefix=no
17238 need_version=no
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 ;;
17243
17244freebsd1*)
17245 dynamic_linker=no
17246 ;;
17247
Reid Spencer2706f8c2004-09-19 23:53:36 +000017248kfreebsd*-gnu)
17249 version_type=linux
17250 need_lib_prefix=no
17251 need_version=no
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=no
17256 hardcode_into_libs=yes
17257 dynamic_linker='GNU ld.so'
17258 ;;
17259
John Criswell47fdd832003-07-14 16:52:07 +000017260freebsd*)
17261 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17262 version_type=freebsd-$objformat
17263 case $version_type in
17264 freebsd-elf*)
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17266 need_version=no
17267 need_lib_prefix=no
17268 ;;
17269 freebsd-*)
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17271 need_version=yes
17272 ;;
17273 esac
17274 shlibpath_var=LD_LIBRARY_PATH
17275 case $host_os in
17276 freebsd2*)
17277 shlibpath_overrides_runpath=yes
17278 ;;
17279 freebsd3.01* | freebsdelf3.01*)
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17282 ;;
17283 *) # from 3.2 on
17284 shlibpath_overrides_runpath=no
17285 hardcode_into_libs=yes
17286 ;;
17287 esac
17288 ;;
17289
17290gnu*)
17291 version_type=linux
17292 need_lib_prefix=no
17293 need_version=no
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 hardcode_into_libs=yes
17298 ;;
17299
17300hpux9* | hpux10* | hpux11*)
17301 # Give a soname corresponding to the major version so that dld.sl refuses to
17302 # link against other versions.
17303 version_type=sunos
17304 need_lib_prefix=no
17305 need_version=no
17306 case "$host_cpu" in
17307 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017308 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017309 hardcode_into_libs=yes
17310 dynamic_linker="$host_os dld.so"
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 soname_spec='${libname}${release}${shared_ext}$major'
17315 if test "X$HPUX_IA64_MODE" = X32; then
17316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17317 else
17318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17319 fi
17320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17321 ;;
17322 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017323 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017324 hardcode_into_libs=yes
17325 dynamic_linker="$host_os dld.sl"
17326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17332 ;;
17333 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017334 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017335 dynamic_linker="$host_os dld.sl"
17336 shlibpath_var=SHLIB_PATH
17337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 ;;
17341 esac
17342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17343 postinstall_cmds='chmod 555 $lib'
17344 ;;
17345
17346irix5* | irix6* | nonstopux*)
17347 case $host_os in
17348 nonstopux*) version_type=nonstopux ;;
17349 *)
17350 if test "$lt_cv_prog_gnu_ld" = yes; then
17351 version_type=linux
17352 else
17353 version_type=irix
17354 fi ;;
17355 esac
17356 need_lib_prefix=no
17357 need_version=no
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17360 case $host_os in
17361 irix5* | nonstopux*)
17362 libsuff= shlibsuff=
17363 ;;
17364 *)
17365 case $LD in # libtool.m4 will add one of these switches to LD
17366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17367 libsuff= shlibsuff= libmagic=32-bit;;
17368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17369 libsuff=32 shlibsuff=N32 libmagic=N32;;
17370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17371 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17372 *) libsuff= shlibsuff= libmagic=never-match;;
17373 esac
17374 ;;
17375 esac
17376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17377 shlibpath_overrides_runpath=no
17378 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17379 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17380 hardcode_into_libs=yes
17381 ;;
17382
17383# No shared lib support for Linux oldld, aout, or coff.
17384linux*oldld* | linux*aout* | linux*coff*)
17385 dynamic_linker=no
17386 ;;
17387
17388# This must be Linux ELF.
17389linux*)
17390 version_type=linux
17391 need_lib_prefix=no
17392 need_version=no
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17396 shlibpath_var=LD_LIBRARY_PATH
17397 shlibpath_overrides_runpath=no
17398 # This implies no fast_install, which is unacceptable.
17399 # Some rework will be needed to allow for fast_install
17400 # before this can be enabled.
17401 hardcode_into_libs=yes
17402
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403 # Append ld.so.conf contents to the search path
17404 if test -f /etc/ld.so.conf; then
17405 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17406 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17407 fi
17408
John Criswell47fdd832003-07-14 16:52:07 +000017409 # We used to test for /lib/ld.so.1 and disable shared libraries on
17410 # powerpc, because MkLinux only supported shared libraries with the
17411 # GNU dynamic linker. Since this was broken with cross compilers,
17412 # most powerpc-linux boxes support dynamic linking these days and
17413 # people can always --disable-shared, the test was removed, and we
17414 # assume the GNU/Linux dynamic linker is in use.
17415 dynamic_linker='GNU/Linux ld.so'
17416 ;;
17417
Reid Spencer2706f8c2004-09-19 23:53:36 +000017418knetbsd*-gnu)
17419 version_type=linux
17420 need_lib_prefix=no
17421 need_version=no
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 shlibpath_overrides_runpath=no
17426 hardcode_into_libs=yes
17427 dynamic_linker='GNU ld.so'
17428 ;;
17429
John Criswell47fdd832003-07-14 16:52:07 +000017430netbsd*)
17431 version_type=sunos
17432 need_lib_prefix=no
17433 need_version=no
17434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17437 dynamic_linker='NetBSD (a.out) ld.so'
17438 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017440 soname_spec='${libname}${release}${shared_ext}$major'
17441 dynamic_linker='NetBSD ld.elf_so'
17442 fi
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=yes
17445 hardcode_into_libs=yes
17446 ;;
17447
17448newsos6)
17449 version_type=linux
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17453 ;;
17454
Reid Spencer2706f8c2004-09-19 23:53:36 +000017455nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017456 version_type=linux
17457 need_lib_prefix=no
17458 need_version=no
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 shlibpath_overrides_runpath=yes
17463 ;;
17464
17465openbsd*)
17466 version_type=sunos
17467 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017468 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17473 case $host_os in
17474 openbsd2.[89] | openbsd2.[89].*)
17475 shlibpath_overrides_runpath=no
17476 ;;
17477 *)
17478 shlibpath_overrides_runpath=yes
17479 ;;
17480 esac
17481 else
17482 shlibpath_overrides_runpath=yes
17483 fi
17484 ;;
17485
17486os2*)
17487 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017488 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017489 need_lib_prefix=no
17490 library_names_spec='$libname${shared_ext} $libname.a'
17491 dynamic_linker='OS/2 ld.exe'
17492 shlibpath_var=LIBPATH
17493 ;;
17494
17495osf3* | osf4* | osf5*)
17496 version_type=osf
17497 need_lib_prefix=no
17498 need_version=no
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17504 ;;
17505
17506sco3.2v5*)
17507 version_type=osf
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 ;;
17512
17513solaris*)
17514 version_type=linux
17515 need_lib_prefix=no
17516 need_version=no
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 shlibpath_var=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath=yes
17521 hardcode_into_libs=yes
17522 # ldd complains unless libraries are executable
17523 postinstall_cmds='chmod +x $lib'
17524 ;;
17525
17526sunos4*)
17527 version_type=sunos
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath=yes
17532 if test "$with_gnu_ld" = yes; then
17533 need_lib_prefix=no
17534 fi
17535 need_version=yes
17536 ;;
17537
17538sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17539 version_type=linux
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 shlibpath_var=LD_LIBRARY_PATH
17543 case $host_vendor in
17544 sni)
17545 shlibpath_overrides_runpath=no
17546 need_lib_prefix=no
17547 export_dynamic_flag_spec='${wl}-Blargedynsym'
17548 runpath_var=LD_RUN_PATH
17549 ;;
17550 siemens)
17551 need_lib_prefix=no
17552 ;;
17553 motorola)
17554 need_lib_prefix=no
17555 need_version=no
17556 shlibpath_overrides_runpath=no
17557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17558 ;;
17559 esac
17560 ;;
17561
17562sysv4*MP*)
17563 if test -d /usr/nec ;then
17564 version_type=linux
17565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17566 soname_spec='$libname${shared_ext}.$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 fi
17569 ;;
17570
17571uts4*)
17572 version_type=linux
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 shlibpath_var=LD_LIBRARY_PATH
17576 ;;
17577
17578*)
17579 dynamic_linker=no
17580 ;;
17581esac
17582echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17583echo "${ECHO_T}$dynamic_linker" >&6
17584test "$dynamic_linker" = no && can_build_shared=no
17585
Reid Spencer2706f8c2004-09-19 23:53:36 +000017586echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17587echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17588hardcode_action_CXX=
17589if test -n "$hardcode_libdir_flag_spec_CXX" || \
17590 test -n "$runpath_var_CXX" || \
17591 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17592
17593 # We can hardcode non-existant directories.
17594 if test "$hardcode_direct_CXX" != no &&
17595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596 # have to relink, otherwise we might link with an installed library
17597 # when we should be linking with a yet-to-be-installed one
17598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17599 test "$hardcode_minus_L_CXX" != no; then
17600 # Linking always hardcodes the temporary library directory.
17601 hardcode_action_CXX=relink
17602 else
17603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604 hardcode_action_CXX=immediate
17605 fi
17606else
17607 # We cannot hardcode anything, or else we can only hardcode existing
17608 # directories.
17609 hardcode_action_CXX=unsupported
17610fi
17611echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17612echo "${ECHO_T}$hardcode_action_CXX" >&6
17613
17614if test "$hardcode_action_CXX" = relink; then
17615 # Fast installation is not supported
17616 enable_fast_install=no
17617elif test "$shlibpath_overrides_runpath" = yes ||
17618 test "$enable_shared" = no; then
17619 # Fast installation is not necessary
17620 enable_fast_install=needless
17621fi
17622
17623striplib=
17624old_striplib=
17625echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17626echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17627if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17628 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17629 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17630 echo "$as_me:$LINENO: result: yes" >&5
17631echo "${ECHO_T}yes" >&6
17632else
17633# FIXME - insert some real tests, host_os isn't really good enough
17634 case $host_os in
17635 darwin*)
17636 if test -n "$STRIP" ; then
17637 striplib="$STRIP -x"
17638 echo "$as_me:$LINENO: result: yes" >&5
17639echo "${ECHO_T}yes" >&6
17640 else
17641 echo "$as_me:$LINENO: result: no" >&5
17642echo "${ECHO_T}no" >&6
17643fi
17644 ;;
17645 *)
17646 echo "$as_me:$LINENO: result: no" >&5
17647echo "${ECHO_T}no" >&6
17648 ;;
17649 esac
17650fi
17651
John Criswell47fdd832003-07-14 16:52:07 +000017652if test "x$enable_dlopen" != xyes; then
17653 enable_dlopen=unknown
17654 enable_dlopen_self=unknown
17655 enable_dlopen_self_static=unknown
17656else
17657 lt_cv_dlopen=no
17658 lt_cv_dlopen_libs=
17659
17660 case $host_os in
17661 beos*)
17662 lt_cv_dlopen="load_add_on"
17663 lt_cv_dlopen_libs=
17664 lt_cv_dlopen_self=yes
17665 ;;
17666
17667 mingw* | pw32*)
17668 lt_cv_dlopen="LoadLibrary"
17669 lt_cv_dlopen_libs=
17670 ;;
17671
17672 cygwin*)
17673 lt_cv_dlopen="dlopen"
17674 lt_cv_dlopen_libs=
17675 ;;
17676
17677 darwin*)
17678 # if libdl is installed we need to link against it
17679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17680echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17681if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683else
17684 ac_check_lib_save_LIBS=$LIBS
17685LIBS="-ldl $LIBS"
17686cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017687/* confdefs.h. */
17688_ACEOF
17689cat confdefs.h >>conftest.$ac_ext
17690cat >>conftest.$ac_ext <<_ACEOF
17691/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017692
17693/* Override any gcc2 internal prototype to avoid an error. */
17694#ifdef __cplusplus
17695extern "C"
17696#endif
17697/* We use char because int might match the return type of a gcc2
17698 builtin and then its argument prototype would still apply. */
17699char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017700int
17701main ()
17702{
17703dlopen ();
17704 ;
17705 return 0;
17706}
17707_ACEOF
17708rm -f conftest.$ac_objext conftest$ac_exeext
17709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017710 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017712 grep -v '^ *+' conftest.er1 >conftest.err
17713 rm -f conftest.er1
17714 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017717 { ac_try='test -z "$ac_cxx_werror_flag"
17718 || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_lib_dl_dlopen=yes
17731else
17732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017733sed 's/^/| /' conftest.$ac_ext >&5
17734
John Criswell47fdd832003-07-14 16:52:07 +000017735ac_cv_lib_dl_dlopen=no
17736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017737rm -f conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017739LIBS=$ac_check_lib_save_LIBS
17740fi
17741echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743if test $ac_cv_lib_dl_dlopen = yes; then
17744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17745else
17746
17747 lt_cv_dlopen="dyld"
17748 lt_cv_dlopen_libs=
17749 lt_cv_dlopen_self=yes
17750
17751fi
17752
17753 ;;
17754
17755 *)
17756 echo "$as_me:$LINENO: checking for shl_load" >&5
17757echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17758if test "${ac_cv_func_shl_load+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017767/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17769#define shl_load innocuous_shl_load
17770
John Criswell47fdd832003-07-14 16:52:07 +000017771/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017772 which can conflict with char shl_load (); below.
17773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775
John Criswell0c38eaf2003-09-10 15:17:25 +000017776#ifdef __STDC__
17777# include <limits.h>
17778#else
17779# include <assert.h>
17780#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017781
17782#undef shl_load
17783
John Criswell47fdd832003-07-14 16:52:07 +000017784/* Override any gcc2 internal prototype to avoid an error. */
17785#ifdef __cplusplus
17786extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017787{
John Criswell47fdd832003-07-14 16:52:07 +000017788#endif
17789/* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17791char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017792/* The GNU C library defines this for functions which it implements
17793 to always fail with ENOSYS. Some functions are actually named
17794 something starting with __ and the normal name is an alias. */
17795#if defined (__stub_shl_load) || defined (__stub___shl_load)
17796choke me
17797#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017798char (*f) () = shl_load;
17799#endif
17800#ifdef __cplusplus
17801}
John Criswell47fdd832003-07-14 16:52:07 +000017802#endif
17803
John Criswell0c38eaf2003-09-10 15:17:25 +000017804int
17805main ()
17806{
17807return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext conftest$ac_exeext
17813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017814 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017821 { ac_try='test -z "$ac_cxx_werror_flag"
17822 || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_func_shl_load=yes
17835else
17836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017837sed 's/^/| /' conftest.$ac_ext >&5
17838
John Criswell47fdd832003-07-14 16:52:07 +000017839ac_cv_func_shl_load=no
17840fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017841rm -f conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017843fi
17844echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17845echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17846if test $ac_cv_func_shl_load = yes; then
17847 lt_cv_dlopen="shl_load"
17848else
17849 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17850echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17851if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853else
17854 ac_check_lib_save_LIBS=$LIBS
17855LIBS="-ldld $LIBS"
17856cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017862
17863/* Override any gcc2 internal prototype to avoid an error. */
17864#ifdef __cplusplus
17865extern "C"
17866#endif
17867/* We use char because int might match the return type of a gcc2
17868 builtin and then its argument prototype would still apply. */
17869char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017870int
17871main ()
17872{
17873shl_load ();
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext conftest$ac_exeext
17879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017880 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017887 { ac_try='test -z "$ac_cxx_werror_flag"
17888 || test ! -s conftest.err'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_lib_dld_shl_load=yes
17901else
17902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017903sed 's/^/| /' conftest.$ac_ext >&5
17904
John Criswell47fdd832003-07-14 16:52:07 +000017905ac_cv_lib_dld_shl_load=no
17906fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017907rm -f conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017909LIBS=$ac_check_lib_save_LIBS
17910fi
17911echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17912echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17913if test $ac_cv_lib_dld_shl_load = yes; then
17914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17915else
17916 echo "$as_me:$LINENO: checking for dlopen" >&5
17917echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17918if test "${ac_cv_func_dlopen+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17920else
17921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017922/* confdefs.h. */
17923_ACEOF
17924cat confdefs.h >>conftest.$ac_ext
17925cat >>conftest.$ac_ext <<_ACEOF
17926/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017927/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17929#define dlopen innocuous_dlopen
17930
John Criswell47fdd832003-07-14 16:52:07 +000017931/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017932 which can conflict with char dlopen (); below.
17933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17934 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017935
John Criswell0c38eaf2003-09-10 15:17:25 +000017936#ifdef __STDC__
17937# include <limits.h>
17938#else
17939# include <assert.h>
17940#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017941
17942#undef dlopen
17943
John Criswell47fdd832003-07-14 16:52:07 +000017944/* Override any gcc2 internal prototype to avoid an error. */
17945#ifdef __cplusplus
17946extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017947{
John Criswell47fdd832003-07-14 16:52:07 +000017948#endif
17949/* We use char because int might match the return type of a gcc2
17950 builtin and then its argument prototype would still apply. */
17951char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017952/* The GNU C library defines this for functions which it implements
17953 to always fail with ENOSYS. Some functions are actually named
17954 something starting with __ and the normal name is an alias. */
17955#if defined (__stub_dlopen) || defined (__stub___dlopen)
17956choke me
17957#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017958char (*f) () = dlopen;
17959#endif
17960#ifdef __cplusplus
17961}
John Criswell47fdd832003-07-14 16:52:07 +000017962#endif
17963
John Criswell0c38eaf2003-09-10 15:17:25 +000017964int
17965main ()
17966{
17967return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017968 ;
17969 return 0;
17970}
17971_ACEOF
17972rm -f conftest.$ac_objext conftest$ac_exeext
17973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017974 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017981 { ac_try='test -z "$ac_cxx_werror_flag"
17982 || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_cv_func_dlopen=yes
17995else
17996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017997sed 's/^/| /' conftest.$ac_ext >&5
17998
John Criswell47fdd832003-07-14 16:52:07 +000017999ac_cv_func_dlopen=no
18000fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018001rm -f conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018003fi
18004echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18005echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18006if test $ac_cv_func_dlopen = yes; then
18007 lt_cv_dlopen="dlopen"
18008else
18009 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18010echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18011if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014 ac_check_lib_save_LIBS=$LIBS
18015LIBS="-ldl $LIBS"
18016cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018017/* confdefs.h. */
18018_ACEOF
18019cat confdefs.h >>conftest.$ac_ext
18020cat >>conftest.$ac_ext <<_ACEOF
18021/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018022
18023/* Override any gcc2 internal prototype to avoid an error. */
18024#ifdef __cplusplus
18025extern "C"
18026#endif
18027/* We use char because int might match the return type of a gcc2
18028 builtin and then its argument prototype would still apply. */
18029char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018030int
18031main ()
18032{
18033dlopen ();
18034 ;
18035 return 0;
18036}
18037_ACEOF
18038rm -f conftest.$ac_objext conftest$ac_exeext
18039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018040 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018047 { ac_try='test -z "$ac_cxx_werror_flag"
18048 || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_lib_dl_dlopen=yes
18061else
18062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018063sed 's/^/| /' conftest.$ac_ext >&5
18064
John Criswell47fdd832003-07-14 16:52:07 +000018065ac_cv_lib_dl_dlopen=no
18066fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018067rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018069LIBS=$ac_check_lib_save_LIBS
18070fi
18071echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18072echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18073if test $ac_cv_lib_dl_dlopen = yes; then
18074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18075else
18076 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18077echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18078if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080else
18081 ac_check_lib_save_LIBS=$LIBS
18082LIBS="-lsvld $LIBS"
18083cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018084/* confdefs.h. */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018089
18090/* Override any gcc2 internal prototype to avoid an error. */
18091#ifdef __cplusplus
18092extern "C"
18093#endif
18094/* We use char because int might match the return type of a gcc2
18095 builtin and then its argument prototype would still apply. */
18096char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018097int
18098main ()
18099{
18100dlopen ();
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext conftest$ac_exeext
18106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018107 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018114 { ac_try='test -z "$ac_cxx_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_lib_svld_dlopen=yes
18128else
18129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018130sed 's/^/| /' conftest.$ac_ext >&5
18131
John Criswell47fdd832003-07-14 16:52:07 +000018132ac_cv_lib_svld_dlopen=no
18133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018134rm -f conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018136LIBS=$ac_check_lib_save_LIBS
18137fi
18138echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18139echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18140if test $ac_cv_lib_svld_dlopen = yes; then
18141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18142else
18143 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18144echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18145if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 ac_check_lib_save_LIBS=$LIBS
18149LIBS="-ldld $LIBS"
18150cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018156
18157/* Override any gcc2 internal prototype to avoid an error. */
18158#ifdef __cplusplus
18159extern "C"
18160#endif
18161/* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18163char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018164int
18165main ()
18166{
18167dld_link ();
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest.$ac_objext conftest$ac_exeext
18173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018174 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018175 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018181 { ac_try='test -z "$ac_cxx_werror_flag"
18182 || test ! -s conftest.err'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; } &&
18188 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 ac_cv_lib_dld_dld_link=yes
18195else
18196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018197sed 's/^/| /' conftest.$ac_ext >&5
18198
John Criswell47fdd832003-07-14 16:52:07 +000018199ac_cv_lib_dld_dld_link=no
18200fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018201rm -f conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018203LIBS=$ac_check_lib_save_LIBS
18204fi
18205echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18206echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18207if test $ac_cv_lib_dld_dld_link = yes; then
18208 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18209fi
18210
18211
18212fi
18213
18214
18215fi
18216
18217
18218fi
18219
18220
18221fi
18222
18223
18224fi
18225
18226 ;;
18227 esac
18228
18229 if test "x$lt_cv_dlopen" != xno; then
18230 enable_dlopen=yes
18231 else
18232 enable_dlopen=no
18233 fi
18234
18235 case $lt_cv_dlopen in
18236 dlopen)
18237 save_CPPFLAGS="$CPPFLAGS"
18238 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18239
18240 save_LDFLAGS="$LDFLAGS"
18241 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18242
18243 save_LIBS="$LIBS"
18244 LIBS="$lt_cv_dlopen_libs $LIBS"
18245
18246 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18247echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18248if test "${lt_cv_dlopen_self+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251 if test "$cross_compiling" = yes; then :
18252 lt_cv_dlopen_self=cross
18253else
18254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18255 lt_status=$lt_dlunknown
18256 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +000018257#line 18257 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018258#include "confdefs.h"
18259
18260#if HAVE_DLFCN_H
18261#include <dlfcn.h>
18262#endif
18263
18264#include <stdio.h>
18265
18266#ifdef RTLD_GLOBAL
18267# define LT_DLGLOBAL RTLD_GLOBAL
18268#else
18269# ifdef DL_GLOBAL
18270# define LT_DLGLOBAL DL_GLOBAL
18271# else
18272# define LT_DLGLOBAL 0
18273# endif
18274#endif
18275
18276/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18277 find out it does not work in some platform. */
18278#ifndef LT_DLLAZY_OR_NOW
18279# ifdef RTLD_LAZY
18280# define LT_DLLAZY_OR_NOW RTLD_LAZY
18281# else
18282# ifdef DL_LAZY
18283# define LT_DLLAZY_OR_NOW DL_LAZY
18284# else
18285# ifdef RTLD_NOW
18286# define LT_DLLAZY_OR_NOW RTLD_NOW
18287# else
18288# ifdef DL_NOW
18289# define LT_DLLAZY_OR_NOW DL_NOW
18290# else
18291# define LT_DLLAZY_OR_NOW 0
18292# endif
18293# endif
18294# endif
18295# endif
18296#endif
18297
18298#ifdef __cplusplus
18299extern "C" void exit (int);
18300#endif
18301
18302void fnord() { int i=42;}
18303int main ()
18304{
18305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18306 int status = $lt_dlunknown;
18307
18308 if (self)
18309 {
18310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18311 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18312 /* dlclose (self); */
18313 }
18314
18315 exit (status);
18316}
18317EOF
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18323 (./conftest; exit; ) 2>/dev/null
18324 lt_status=$?
18325 case x$lt_status in
18326 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18327 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18328 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18329 esac
18330 else :
18331 # compilation failed
18332 lt_cv_dlopen_self=no
18333 fi
18334fi
18335rm -fr conftest*
18336
18337
18338fi
18339echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18340echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18341
18342 if test "x$lt_cv_dlopen_self" = xyes; then
18343 LDFLAGS="$LDFLAGS $link_static_flag"
18344 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18345echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18346if test "${lt_cv_dlopen_self_static+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348else
18349 if test "$cross_compiling" = yes; then :
18350 lt_cv_dlopen_self_static=cross
18351else
18352 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18353 lt_status=$lt_dlunknown
18354 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +000018355#line 18355 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018356#include "confdefs.h"
18357
18358#if HAVE_DLFCN_H
18359#include <dlfcn.h>
18360#endif
18361
18362#include <stdio.h>
18363
18364#ifdef RTLD_GLOBAL
18365# define LT_DLGLOBAL RTLD_GLOBAL
18366#else
18367# ifdef DL_GLOBAL
18368# define LT_DLGLOBAL DL_GLOBAL
18369# else
18370# define LT_DLGLOBAL 0
18371# endif
18372#endif
18373
18374/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18375 find out it does not work in some platform. */
18376#ifndef LT_DLLAZY_OR_NOW
18377# ifdef RTLD_LAZY
18378# define LT_DLLAZY_OR_NOW RTLD_LAZY
18379# else
18380# ifdef DL_LAZY
18381# define LT_DLLAZY_OR_NOW DL_LAZY
18382# else
18383# ifdef RTLD_NOW
18384# define LT_DLLAZY_OR_NOW RTLD_NOW
18385# else
18386# ifdef DL_NOW
18387# define LT_DLLAZY_OR_NOW DL_NOW
18388# else
18389# define LT_DLLAZY_OR_NOW 0
18390# endif
18391# endif
18392# endif
18393# endif
18394#endif
18395
18396#ifdef __cplusplus
18397extern "C" void exit (int);
18398#endif
18399
18400void fnord() { int i=42;}
18401int main ()
18402{
18403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18404 int status = $lt_dlunknown;
18405
18406 if (self)
18407 {
18408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18409 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18410 /* dlclose (self); */
18411 }
18412
18413 exit (status);
18414}
18415EOF
18416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417 (eval $ac_link) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18421 (./conftest; exit; ) 2>/dev/null
18422 lt_status=$?
18423 case x$lt_status in
18424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18426 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18427 esac
18428 else :
18429 # compilation failed
18430 lt_cv_dlopen_self_static=no
18431 fi
18432fi
18433rm -fr conftest*
18434
18435
18436fi
18437echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18438echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18439 fi
18440
18441 CPPFLAGS="$save_CPPFLAGS"
18442 LDFLAGS="$save_LDFLAGS"
18443 LIBS="$save_LIBS"
18444 ;;
18445 esac
18446
18447 case $lt_cv_dlopen_self in
18448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18449 *) enable_dlopen_self=unknown ;;
18450 esac
18451
18452 case $lt_cv_dlopen_self_static in
18453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18454 *) enable_dlopen_self_static=unknown ;;
18455 esac
18456fi
18457
18458
18459# The else clause should only fire when bootstrapping the
18460# libtool distribution, otherwise you forgot to ship ltmain.sh
18461# with your package, and you will get complaints that there are
18462# no rules to generate ltmain.sh.
18463if test -f "$ltmain"; then
18464 # See if we are running on zsh, and set the options which allow our commands through
18465 # without removal of \ escapes.
18466 if test -n "${ZSH_VERSION+set}" ; then
18467 setopt NO_GLOB_SUBST
18468 fi
18469 # Now quote all the things that may contain metacharacters while being
18470 # careful not to overquote the AC_SUBSTed values. We take copies of the
18471 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18473 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476 deplibs_check_method reload_flag reload_cmds need_locks \
18477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478 lt_cv_sys_global_symbol_to_c_name_address \
18479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480 old_postinstall_cmds old_postuninstall_cmds \
18481 compiler_CXX \
18482 CC_CXX \
18483 LD_CXX \
18484 lt_prog_compiler_wl_CXX \
18485 lt_prog_compiler_pic_CXX \
18486 lt_prog_compiler_static_CXX \
18487 lt_prog_compiler_no_builtin_flag_CXX \
18488 export_dynamic_flag_spec_CXX \
18489 thread_safe_flag_spec_CXX \
18490 whole_archive_flag_spec_CXX \
18491 enable_shared_with_static_runtimes_CXX \
18492 old_archive_cmds_CXX \
18493 old_archive_from_new_cmds_CXX \
18494 predep_objects_CXX \
18495 postdep_objects_CXX \
18496 predeps_CXX \
18497 postdeps_CXX \
18498 compiler_lib_search_path_CXX \
18499 archive_cmds_CXX \
18500 archive_expsym_cmds_CXX \
18501 postinstall_cmds_CXX \
18502 postuninstall_cmds_CXX \
18503 old_archive_from_expsyms_cmds_CXX \
18504 allow_undefined_flag_CXX \
18505 no_undefined_flag_CXX \
18506 export_symbols_cmds_CXX \
18507 hardcode_libdir_flag_spec_CXX \
18508 hardcode_libdir_flag_spec_ld_CXX \
18509 hardcode_libdir_separator_CXX \
18510 hardcode_automatic_CXX \
18511 module_cmds_CXX \
18512 module_expsym_cmds_CXX \
18513 lt_cv_prog_compiler_c_o_CXX \
18514 exclude_expsyms_CXX \
18515 include_expsyms_CXX; do
18516
18517 case $var in
18518 old_archive_cmds_CXX | \
18519 old_archive_from_new_cmds_CXX | \
18520 archive_cmds_CXX | \
18521 archive_expsym_cmds_CXX | \
18522 module_cmds_CXX | \
18523 module_expsym_cmds_CXX | \
18524 old_archive_from_expsyms_cmds_CXX | \
18525 export_symbols_cmds_CXX | \
18526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527 postinstall_cmds | postuninstall_cmds | \
18528 old_postinstall_cmds | old_postuninstall_cmds | \
18529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018531 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 +000018532 ;;
18533 *)
18534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535 ;;
18536 esac
18537 done
18538
18539 case $lt_echo in
18540 *'\$0 --fallback-echo"')
18541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542 ;;
18543 esac
18544
18545cfgfile="$ofile"
18546
18547 cat <<__EOF__ >> "$cfgfile"
18548# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18549
18550# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18551
18552# Shell to use when invoking shell scripts.
18553SHELL=$lt_SHELL
18554
18555# Whether or not to build shared libraries.
18556build_libtool_libs=$enable_shared
18557
18558# Whether or not to build static libraries.
18559build_old_libs=$enable_static
18560
18561# Whether or not to add -lc for building shared libraries.
18562build_libtool_need_lc=$archive_cmds_need_lc_CXX
18563
18564# Whether or not to disallow shared libs when runtime libs are static
18565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18566
18567# Whether or not to optimize for fast installation.
18568fast_install=$enable_fast_install
18569
18570# The host system.
18571host_alias=$host_alias
18572host=$host
18573
18574# An echo program that does not interpret backslashes.
18575echo=$lt_echo
18576
18577# The archiver.
18578AR=$lt_AR
18579AR_FLAGS=$lt_AR_FLAGS
18580
18581# A C compiler.
18582LTCC=$lt_LTCC
18583
18584# A language-specific compiler.
18585CC=$lt_compiler_CXX
18586
18587# Is the compiler the GNU C compiler?
18588with_gcc=$GCC_CXX
18589
18590# An ERE matcher.
18591EGREP=$lt_EGREP
18592
18593# The linker used to build libraries.
18594LD=$lt_LD_CXX
18595
18596# Whether we need hard or soft links.
18597LN_S=$lt_LN_S
18598
18599# A BSD-compatible nm program.
18600NM=$lt_NM
18601
18602# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018603STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018604
18605# Used to examine libraries when file_magic_cmd begins "file"
18606MAGIC_CMD=$MAGIC_CMD
18607
18608# Used on cygwin: DLL creation program.
18609DLLTOOL="$DLLTOOL"
18610
18611# Used on cygwin: object dumper.
18612OBJDUMP="$OBJDUMP"
18613
18614# Used on cygwin: assembler.
18615AS="$AS"
18616
18617# The name of the directory that contains temporary libtool files.
18618objdir=$objdir
18619
18620# How to create reloadable object files.
18621reload_flag=$lt_reload_flag
18622reload_cmds=$lt_reload_cmds
18623
18624# How to pass a linker flag through the compiler.
18625wl=$lt_lt_prog_compiler_wl_CXX
18626
18627# Object file suffix (normally "o").
18628objext="$ac_objext"
18629
18630# Old archive suffix (normally "a").
18631libext="$libext"
18632
18633# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018635
18636# Executable file suffix (normally "").
18637exeext="$exeext"
18638
18639# Additional compiler flags for building library objects.
18640pic_flag=$lt_lt_prog_compiler_pic_CXX
18641pic_mode=$pic_mode
18642
18643# What is the maximum length of a command?
18644max_cmd_len=$lt_cv_sys_max_cmd_len
18645
18646# Does compiler simultaneously support -c and -o options?
18647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18648
18649# Must we lock files when doing compilation ?
18650need_locks=$lt_need_locks
18651
18652# Do we need the lib prefix for modules?
18653need_lib_prefix=$need_lib_prefix
18654
18655# Do we need a version for libraries?
18656need_version=$need_version
18657
18658# Whether dlopen is supported.
18659dlopen_support=$enable_dlopen
18660
18661# Whether dlopen of programs is supported.
18662dlopen_self=$enable_dlopen_self
18663
18664# Whether dlopen of statically linked programs is supported.
18665dlopen_self_static=$enable_dlopen_self_static
18666
18667# Compiler flag to prevent dynamic linking.
18668link_static_flag=$lt_lt_prog_compiler_static_CXX
18669
18670# Compiler flag to turn off builtin functions.
18671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18672
18673# Compiler flag to allow reflexive dlopens.
18674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18675
18676# Compiler flag to generate shared objects directly from archives.
18677whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18678
18679# Compiler flag to generate thread-safe objects.
18680thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18681
18682# Library versioning type.
18683version_type=$version_type
18684
18685# Format of library name prefix.
18686libname_spec=$lt_libname_spec
18687
18688# List of archive names. First name is the real one, the rest are links.
18689# The last name is the one that the linker finds with -lNAME.
18690library_names_spec=$lt_library_names_spec
18691
18692# The coded name of the library, if different from the real name.
18693soname_spec=$lt_soname_spec
18694
18695# Commands used to build and install an old-style archive.
18696RANLIB=$lt_RANLIB
18697old_archive_cmds=$lt_old_archive_cmds_CXX
18698old_postinstall_cmds=$lt_old_postinstall_cmds
18699old_postuninstall_cmds=$lt_old_postuninstall_cmds
18700
18701# Create an old-style archive from a shared archive.
18702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18703
18704# Create a temporary old-style archive to link instead of a shared archive.
18705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18706
18707# Commands used to build and install a shared archive.
18708archive_cmds=$lt_archive_cmds_CXX
18709archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18710postinstall_cmds=$lt_postinstall_cmds
18711postuninstall_cmds=$lt_postuninstall_cmds
18712
18713# Commands used to build a loadable module (assumed same as above if empty)
18714module_cmds=$lt_module_cmds_CXX
18715module_expsym_cmds=$lt_module_expsym_cmds_CXX
18716
18717# Commands to strip libraries.
18718old_striplib=$lt_old_striplib
18719striplib=$lt_striplib
18720
18721# Dependencies to place before the objects being linked to create a
18722# shared library.
18723predep_objects=$lt_predep_objects_CXX
18724
18725# Dependencies to place after the objects being linked to create a
18726# shared library.
18727postdep_objects=$lt_postdep_objects_CXX
18728
18729# Dependencies to place before the objects being linked to create a
18730# shared library.
18731predeps=$lt_predeps_CXX
18732
18733# Dependencies to place after the objects being linked to create a
18734# shared library.
18735postdeps=$lt_postdeps_CXX
18736
18737# The library search path used internally by the compiler when linking
18738# a shared library.
18739compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18740
18741# Method to check whether dependent libraries are shared objects.
18742deplibs_check_method=$lt_deplibs_check_method
18743
18744# Command to use when deplibs_check_method == file_magic.
18745file_magic_cmd=$lt_file_magic_cmd
18746
18747# Flag that allows shared libraries with undefined symbols to be built.
18748allow_undefined_flag=$lt_allow_undefined_flag_CXX
18749
18750# Flag that forces no undefined symbols.
18751no_undefined_flag=$lt_no_undefined_flag_CXX
18752
18753# Commands used to finish a libtool library installation in a directory.
18754finish_cmds=$lt_finish_cmds
18755
18756# Same as above, but a single script fragment to be evaled but not shown.
18757finish_eval=$lt_finish_eval
18758
18759# Take the output of nm and produce a listing of raw symbols and C names.
18760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18761
18762# Transform the output of nm in a proper C declaration
18763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18764
18765# Transform the output of nm in a C name address pair
18766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18767
18768# This is the shared library runtime path variable.
18769runpath_var=$runpath_var
18770
18771# This is the shared library path variable.
18772shlibpath_var=$shlibpath_var
18773
18774# Is shlibpath searched before the hard-coded library search path?
18775shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18776
18777# How to hardcode a shared library path into an executable.
18778hardcode_action=$hardcode_action_CXX
18779
18780# Whether we should hardcode library paths into libraries.
18781hardcode_into_libs=$hardcode_into_libs
18782
18783# Flag to hardcode \$libdir into a binary during linking.
18784# This must work even if \$libdir does not exist.
18785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18786
18787# If ld is used when linking, flag to hardcode \$libdir into
18788# a binary during linking. This must work even if \$libdir does
18789# not exist.
18790hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18791
18792# Whether we need a single -rpath flag with a separated argument.
18793hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18794
18795# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796# resulting binary.
18797hardcode_direct=$hardcode_direct_CXX
18798
18799# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800# resulting binary.
18801hardcode_minus_L=$hardcode_minus_L_CXX
18802
18803# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804# the resulting binary.
18805hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18806
18807# Set to yes if building a shared library automatically hardcodes DIR into the library
18808# and all subsequent libraries and executables linked against it.
18809hardcode_automatic=$hardcode_automatic_CXX
18810
18811# Variables whose values should be saved in libtool wrapper scripts and
18812# restored at relink time.
18813variables_saved_for_relink="$variables_saved_for_relink"
18814
18815# Whether libtool must link a program against all its dependency libraries.
18816link_all_deplibs=$link_all_deplibs_CXX
18817
18818# Compile-time system search path for libraries
18819sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18820
18821# Run-time system search path for libraries
18822sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18823
18824# Fix the shell variable \$srcfile for the compiler.
18825fix_srcfile_path="$fix_srcfile_path_CXX"
18826
18827# Set to yes if exported symbols are required.
18828always_export_symbols=$always_export_symbols_CXX
18829
18830# The commands to list exported symbols.
18831export_symbols_cmds=$lt_export_symbols_cmds_CXX
18832
18833# The commands to extract the exported symbol list from a shared archive.
18834extract_expsyms_cmds=$lt_extract_expsyms_cmds
18835
18836# Symbols that should not be listed in the preloaded symbols.
18837exclude_expsyms=$lt_exclude_expsyms_CXX
18838
18839# Symbols that must always be exported.
18840include_expsyms=$lt_include_expsyms_CXX
18841
18842# ### END LIBTOOL TAG CONFIG: $tagname
18843
18844__EOF__
18845
18846
18847else
18848 # If there is no Makefile yet, we rely on a make rule to execute
18849 # `config.status --recheck' to rerun these tests and create the
18850 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852 if test -f "$ltmain_in"; then
18853 test -f Makefile && make "$ltmain"
18854 fi
John Criswell47fdd832003-07-14 16:52:07 +000018855fi
18856
18857
18858ac_ext=c
18859ac_cpp='$CPP $CPPFLAGS'
18860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863
18864CC=$lt_save_CC
18865LDCXX=$LD
18866LD=$lt_save_LD
18867GCC=$lt_save_GCC
18868with_gnu_ldcxx=$with_gnu_ld
18869with_gnu_ld=$lt_save_with_gnu_ld
18870lt_cv_path_LDCXX=$lt_cv_path_LD
18871lt_cv_path_LD=$lt_save_path_LD
18872lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18873lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18874
18875 else
18876 tagname=""
18877 fi
18878 ;;
18879
18880 F77)
18881 if test -n "$F77" && test "X$F77" != "Xno"; then
18882
18883ac_ext=f
18884ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18885ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18887
18888
18889archive_cmds_need_lc_F77=no
18890allow_undefined_flag_F77=
18891always_export_symbols_F77=no
18892archive_expsym_cmds_F77=
18893export_dynamic_flag_spec_F77=
18894hardcode_direct_F77=no
18895hardcode_libdir_flag_spec_F77=
18896hardcode_libdir_flag_spec_ld_F77=
18897hardcode_libdir_separator_F77=
18898hardcode_minus_L_F77=no
18899hardcode_automatic_F77=no
18900module_cmds_F77=
18901module_expsym_cmds_F77=
18902link_all_deplibs_F77=unknown
18903old_archive_cmds_F77=$old_archive_cmds
18904no_undefined_flag_F77=
18905whole_archive_flag_spec_F77=
18906enable_shared_with_static_runtimes_F77=no
18907
18908# Source file extension for f77 test sources.
18909ac_ext=f
18910
18911# Object file extension for compiled f77 test sources.
18912objext=o
18913objext_F77=$objext
18914
18915# Code to be used in simple compile tests
18916lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18917
18918# Code to be used in simple link tests
18919lt_simple_link_test_code=" program t\n end\n"
18920
18921# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18922
18923# If no C compiler was specified, use CC.
18924LTCC=${LTCC-"$CC"}
18925
18926# Allow CC to be a program name with arguments.
18927compiler=$CC
18928
18929
18930# Allow CC to be a program name with arguments.
18931lt_save_CC="$CC"
18932CC=${F77-"f77"}
18933compiler=$CC
18934compiler_F77=$CC
18935cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18936
18937echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18938echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18939echo "$as_me:$LINENO: result: $can_build_shared" >&5
18940echo "${ECHO_T}$can_build_shared" >&6
18941
18942echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18943echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18944test "$can_build_shared" = "no" && enable_shared=no
18945
18946# On AIX, shared libraries and static libraries use the same namespace, and
18947# are all built from PIC.
18948case "$host_os" in
18949aix3*)
18950 test "$enable_shared" = yes && enable_static=no
18951 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018952 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018953 postinstall_cmds='$RANLIB $lib'
18954 fi
18955 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018956aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018957 test "$enable_shared" = yes && enable_static=no
18958 ;;
18959esac
18960echo "$as_me:$LINENO: result: $enable_shared" >&5
18961echo "${ECHO_T}$enable_shared" >&6
18962
18963echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18964echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18965# Make sure either enable_shared or enable_static is yes.
18966test "$enable_shared" = yes || enable_static=yes
18967echo "$as_me:$LINENO: result: $enable_static" >&5
18968echo "${ECHO_T}$enable_static" >&6
18969
18970test "$ld_shlibs_F77" = no && can_build_shared=no
18971
18972GCC_F77="$G77"
18973LD_F77="$LD"
18974
18975lt_prog_compiler_wl_F77=
18976lt_prog_compiler_pic_F77=
18977lt_prog_compiler_static_F77=
18978
18979echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18980echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18981
18982 if test "$GCC" = yes; then
18983 lt_prog_compiler_wl_F77='-Wl,'
18984 lt_prog_compiler_static_F77='-static'
18985
18986 case $host_os in
18987 aix*)
18988 # All AIX code is PIC.
18989 if test "$host_cpu" = ia64; then
18990 # AIX 5 now supports IA64 processor
18991 lt_prog_compiler_static_F77='-Bstatic'
18992 fi
18993 ;;
18994
18995 amigaos*)
18996 # FIXME: we need at least 68020 code to build shared libraries, but
18997 # adding the `-m68020' flag to GCC prevents building anything better,
18998 # like `-m68040'.
18999 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19000 ;;
19001
19002 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19003 # PIC is the default for these OSes.
19004 ;;
19005
19006 mingw* | pw32* | os2*)
19007 # This hack is so that the source file can tell whether it is being
19008 # built for inclusion in a dll (and should export symbols for example).
19009 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19010 ;;
19011
19012 darwin* | rhapsody*)
19013 # PIC is the default on this platform
19014 # Common symbols not allowed in MH_DYLIB files
19015 lt_prog_compiler_pic_F77='-fno-common'
19016 ;;
19017
19018 msdosdjgpp*)
19019 # Just because we use GCC doesn't mean we suddenly get shared libraries
19020 # on systems that don't support them.
19021 lt_prog_compiler_can_build_shared_F77=no
19022 enable_shared=no
19023 ;;
19024
19025 sysv4*MP*)
19026 if test -d /usr/nec; then
19027 lt_prog_compiler_pic_F77=-Kconform_pic
19028 fi
19029 ;;
19030
19031 hpux*)
19032 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19033 # not for PA HP-UX.
19034 case "$host_cpu" in
19035 hppa*64*|ia64*)
19036 # +Z the default
19037 ;;
19038 *)
19039 lt_prog_compiler_pic_F77='-fPIC'
19040 ;;
19041 esac
19042 ;;
19043
19044 *)
19045 lt_prog_compiler_pic_F77='-fPIC'
19046 ;;
19047 esac
19048 else
19049 # PORTME Check for flag to pass linker flags through the system compiler.
19050 case $host_os in
19051 aix*)
19052 lt_prog_compiler_wl_F77='-Wl,'
19053 if test "$host_cpu" = ia64; then
19054 # AIX 5 now supports IA64 processor
19055 lt_prog_compiler_static_F77='-Bstatic'
19056 else
19057 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19058 fi
19059 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019060 darwin*)
19061 # PIC is the default on this platform
19062 # Common symbols not allowed in MH_DYLIB files
19063 case "$cc_basename" in
19064 xlc*)
19065 lt_prog_compiler_pic_F77='-qnocommon'
19066 lt_prog_compiler_wl_F77='-Wl,'
19067 ;;
19068 esac
19069 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019070
19071 mingw* | pw32* | os2*)
19072 # This hack is so that the source file can tell whether it is being
19073 # built for inclusion in a dll (and should export symbols for example).
19074 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19075 ;;
19076
19077 hpux9* | hpux10* | hpux11*)
19078 lt_prog_compiler_wl_F77='-Wl,'
19079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19080 # not for PA HP-UX.
19081 case "$host_cpu" in
19082 hppa*64*|ia64*)
19083 # +Z the default
19084 ;;
19085 *)
19086 lt_prog_compiler_pic_F77='+Z'
19087 ;;
19088 esac
19089 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19090 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19091 ;;
19092
19093 irix5* | irix6* | nonstopux*)
19094 lt_prog_compiler_wl_F77='-Wl,'
19095 # PIC (with -KPIC) is the default.
19096 lt_prog_compiler_static_F77='-non_shared'
19097 ;;
19098
19099 newsos6)
19100 lt_prog_compiler_pic_F77='-KPIC'
19101 lt_prog_compiler_static_F77='-Bstatic'
19102 ;;
19103
19104 linux*)
19105 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019106 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019107 lt_prog_compiler_wl_F77='-Wl,'
19108 lt_prog_compiler_pic_F77='-KPIC'
19109 lt_prog_compiler_static_F77='-static'
19110 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019111 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019112 lt_prog_compiler_wl_F77='-Wl,'
19113 # All Alpha code is PIC.
19114 lt_prog_compiler_static_F77='-non_shared'
19115 ;;
19116 esac
19117 ;;
19118
19119 osf3* | osf4* | osf5*)
19120 lt_prog_compiler_wl_F77='-Wl,'
19121 # All OSF/1 code is PIC.
19122 lt_prog_compiler_static_F77='-non_shared'
19123 ;;
19124
19125 sco3.2v5*)
19126 lt_prog_compiler_pic_F77='-Kpic'
19127 lt_prog_compiler_static_F77='-dn'
19128 ;;
19129
19130 solaris*)
19131 lt_prog_compiler_wl_F77='-Wl,'
19132 lt_prog_compiler_pic_F77='-KPIC'
19133 lt_prog_compiler_static_F77='-Bstatic'
19134 ;;
19135
19136 sunos4*)
19137 lt_prog_compiler_wl_F77='-Qoption ld '
19138 lt_prog_compiler_pic_F77='-PIC'
19139 lt_prog_compiler_static_F77='-Bstatic'
19140 ;;
19141
19142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19143 lt_prog_compiler_wl_F77='-Wl,'
19144 lt_prog_compiler_pic_F77='-KPIC'
19145 lt_prog_compiler_static_F77='-Bstatic'
19146 ;;
19147
19148 sysv4*MP*)
19149 if test -d /usr/nec ;then
19150 lt_prog_compiler_pic_F77='-Kconform_pic'
19151 lt_prog_compiler_static_F77='-Bstatic'
19152 fi
19153 ;;
19154
19155 uts4*)
19156 lt_prog_compiler_pic_F77='-pic'
19157 lt_prog_compiler_static_F77='-Bstatic'
19158 ;;
19159
19160 *)
19161 lt_prog_compiler_can_build_shared_F77=no
19162 ;;
19163 esac
19164 fi
19165
19166echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19167echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19168
19169#
19170# Check to make sure the PIC flag actually works.
19171#
19172if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019173
19174echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019175echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19176if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178else
19179 lt_prog_compiler_pic_works_F77=no
19180 ac_outfile=conftest.$ac_objext
19181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19182 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19183 # Insert the option either (1) after the last *FLAGS variable, or
19184 # (2) before a word containing "conftest.", or (3) at the end.
19185 # Note that $ac_compile itself does not contain backslashes and begins
19186 # with a dollar sign (not a hyphen), so the echo should work correctly.
19187 # The option is referenced via a variable to avoid confusing sed.
19188 lt_compile=`echo "$ac_compile" | $SED \
19189 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19191 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000019192 (eval echo "\"\$as_me:19192: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019193 (eval "$lt_compile" 2>conftest.err)
19194 ac_status=$?
19195 cat conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000019196 echo "$as_me:19196: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019197 if (exit $ac_status) && test -s "$ac_outfile"; then
19198 # The compiler can only warn and ignore the option if not recognized
19199 # So say no if there are warnings
19200 if test ! -s conftest.err; then
19201 lt_prog_compiler_pic_works_F77=yes
19202 fi
19203 fi
19204 $rm conftest*
19205
19206fi
19207echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19208echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19209
19210if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19211 case $lt_prog_compiler_pic_F77 in
19212 "" | " "*) ;;
19213 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19214 esac
19215else
19216 lt_prog_compiler_pic_F77=
19217 lt_prog_compiler_can_build_shared_F77=no
19218fi
19219
19220fi
19221case "$host_os" in
19222 # For platforms which do not support PIC, -DPIC is meaningless:
19223 *djgpp*)
19224 lt_prog_compiler_pic_F77=
19225 ;;
19226 *)
19227 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19228 ;;
19229esac
19230
19231echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19232echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19233if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235else
19236 lt_cv_prog_compiler_c_o_F77=no
19237 $rm -r conftest 2>/dev/null
19238 mkdir conftest
19239 cd conftest
19240 mkdir out
19241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19242
John Criswell47fdd832003-07-14 16:52:07 +000019243 lt_compiler_flag="-o out/conftest2.$ac_objext"
19244 # Insert the option either (1) after the last *FLAGS variable, or
19245 # (2) before a word containing "conftest.", or (3) at the end.
19246 # Note that $ac_compile itself does not contain backslashes and begins
19247 # with a dollar sign (not a hyphen), so the echo should work correctly.
19248 lt_compile=`echo "$ac_compile" | $SED \
19249 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19251 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000019252 (eval echo "\"\$as_me:19252: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019253 (eval "$lt_compile" 2>out/conftest.err)
19254 ac_status=$?
19255 cat out/conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000019256 echo "$as_me:19256: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19258 then
19259 # The compiler can only warn and ignore the option if not recognized
19260 # So say no if there are warnings
19261 if test ! -s out/conftest.err; then
19262 lt_cv_prog_compiler_c_o_F77=yes
19263 fi
19264 fi
19265 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019266 $rm conftest*
19267 # SGI C++ compiler will create directory out/ii_files/ for
19268 # template instantiation
19269 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19270 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019271 cd ..
19272 rmdir conftest
19273 $rm conftest*
19274
19275fi
19276echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19277echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19278
19279
19280hard_links="nottested"
19281if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19282 # do not overwrite the value of need_locks provided by the user
19283 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19284echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19285 hard_links=yes
19286 $rm conftest*
19287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19288 touch conftest.a
19289 ln conftest.a conftest.b 2>&5 || hard_links=no
19290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19291 echo "$as_me:$LINENO: result: $hard_links" >&5
19292echo "${ECHO_T}$hard_links" >&6
19293 if test "$hard_links" = no; then
19294 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19295echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19296 need_locks=warn
19297 fi
19298else
19299 need_locks=no
19300fi
19301
19302echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19303echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19304
19305 runpath_var=
19306 allow_undefined_flag_F77=
19307 enable_shared_with_static_runtimes_F77=no
19308 archive_cmds_F77=
19309 archive_expsym_cmds_F77=
19310 old_archive_From_new_cmds_F77=
19311 old_archive_from_expsyms_cmds_F77=
19312 export_dynamic_flag_spec_F77=
19313 whole_archive_flag_spec_F77=
19314 thread_safe_flag_spec_F77=
19315 hardcode_libdir_flag_spec_F77=
19316 hardcode_libdir_flag_spec_ld_F77=
19317 hardcode_libdir_separator_F77=
19318 hardcode_direct_F77=no
19319 hardcode_minus_L_F77=no
19320 hardcode_shlibpath_var_F77=unsupported
19321 link_all_deplibs_F77=unknown
19322 hardcode_automatic_F77=no
19323 module_cmds_F77=
19324 module_expsym_cmds_F77=
19325 always_export_symbols_F77=no
19326 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19327 # include_expsyms should be a list of space-separated symbols to be *always*
19328 # included in the symbol list
19329 include_expsyms_F77=
19330 # exclude_expsyms can be an extended regexp of symbols to exclude
19331 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19332 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19333 # as well as any symbol that contains `d'.
19334 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19335 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19336 # platforms (ab)use it in PIC code, but their linkers get confused if
19337 # the symbol is explicitly referenced. Since portable code cannot
19338 # rely on this symbol name, it's probably fine to never include it in
19339 # preloaded symbol tables.
19340 extract_expsyms_cmds=
19341
19342 case $host_os in
19343 cygwin* | mingw* | pw32*)
19344 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19345 # When not using gcc, we currently assume that we are using
19346 # Microsoft Visual C++.
19347 if test "$GCC" != yes; then
19348 with_gnu_ld=no
19349 fi
19350 ;;
19351 openbsd*)
19352 with_gnu_ld=no
19353 ;;
19354 esac
19355
19356 ld_shlibs_F77=yes
19357 if test "$with_gnu_ld" = yes; then
19358 # If archive_cmds runs LD, not CC, wlarc should be empty
19359 wlarc='${wl}'
19360
19361 # See if GNU ld supports shared libraries.
19362 case $host_os in
19363 aix3* | aix4* | aix5*)
19364 # On AIX/PPC, the GNU linker is very broken
19365 if test "$host_cpu" != ia64; then
19366 ld_shlibs_F77=no
19367 cat <<EOF 1>&2
19368
19369*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19370*** to be unable to reliably create shared libraries on AIX.
19371*** Therefore, libtool is disabling shared libraries support. If you
19372*** really care for shared libraries, you may want to modify your PATH
19373*** so that a non-GNU linker is found, and then restart.
19374
19375EOF
19376 fi
19377 ;;
19378
19379 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019380 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 +000019381 hardcode_libdir_flag_spec_F77='-L$libdir'
19382 hardcode_minus_L_F77=yes
19383
19384 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19385 # that the semantics of dynamic libraries on AmigaOS, at least up
19386 # to version 4, is to share data among multiple programs linked
19387 # with the same dynamic library. Since this doesn't match the
19388 # behavior of shared libraries on other platforms, we can't use
19389 # them.
19390 ld_shlibs_F77=no
19391 ;;
19392
19393 beos*)
19394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19395 allow_undefined_flag_F77=unsupported
19396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19397 # support --undefined. This deserves some investigation. FIXME
19398 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19399 else
19400 ld_shlibs_F77=no
19401 fi
19402 ;;
19403
19404 cygwin* | mingw* | pw32*)
19405 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19406 # as there is no search path for DLLs.
19407 hardcode_libdir_flag_spec_F77='-L$libdir'
19408 allow_undefined_flag_F77=unsupported
19409 always_export_symbols_F77=no
19410 enable_shared_with_static_runtimes_F77=yes
19411 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19412
19413 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19414 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19415 # If the export-symbols file already is a .def file (1st line
19416 # is EXPORTS), use it as is; otherwise, prepend...
19417 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19418 cp $export_symbols $output_objdir/$soname.def;
19419 else
19420 echo EXPORTS > $output_objdir/$soname.def;
19421 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019422 fi~
19423 $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 +000019424 else
19425 ld_shlibs=no
19426 fi
19427 ;;
19428
19429 netbsd*)
19430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19431 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19432 wlarc=
19433 else
19434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19435 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19436 fi
19437 ;;
19438
19439 solaris* | sysv5*)
19440 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19441 ld_shlibs_F77=no
19442 cat <<EOF 1>&2
19443
19444*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19445*** create shared libraries on Solaris systems. Therefore, libtool
19446*** is disabling shared libraries support. We urge you to upgrade GNU
19447*** binutils to release 2.9.1 or newer. Another option is to modify
19448*** your PATH or compiler configuration so that the native linker is
19449*** used, and then restart.
19450
19451EOF
19452 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19453 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19454 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19455 else
19456 ld_shlibs_F77=no
19457 fi
19458 ;;
19459
19460 sunos4*)
19461 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19462 wlarc=
19463 hardcode_direct_F77=yes
19464 hardcode_shlibpath_var_F77=no
19465 ;;
19466
Reid Spencer2706f8c2004-09-19 23:53:36 +000019467 linux*)
19468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19469 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470 archive_cmds_F77="$tmp_archive_cmds"
19471 supports_anon_versioning=no
19472 case `$LD -v 2>/dev/null` in
19473 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19474 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19475 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19476 *\ 2.11.*) ;; # other 2.11 versions
19477 *) supports_anon_versioning=yes ;;
19478 esac
19479 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019480 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19481cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19482$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019483 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19484 else
19485 archive_expsym_cmds_F77="$tmp_archive_cmds"
19486 fi
19487 else
19488 ld_shlibs_F77=no
19489 fi
19490 ;;
19491
John Criswell47fdd832003-07-14 16:52:07 +000019492 *)
19493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19496 else
19497 ld_shlibs_F77=no
19498 fi
19499 ;;
19500 esac
19501
19502 if test "$ld_shlibs_F77" = yes; then
19503 runpath_var=LD_RUN_PATH
19504 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19505 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19506 # ancient GNU ld didn't support --whole-archive et. al.
19507 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19508 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19509 else
19510 whole_archive_flag_spec_F77=
19511 fi
19512 fi
19513 else
19514 # PORTME fill in a description of your system's linker (not GNU ld)
19515 case $host_os in
19516 aix3*)
19517 allow_undefined_flag_F77=unsupported
19518 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019519 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 +000019520 # Note: this linker hardcodes the directories in LIBPATH if there
19521 # are no directories specified by -L.
19522 hardcode_minus_L_F77=yes
19523 if test "$GCC" = yes && test -z "$link_static_flag"; then
19524 # Neither direct hardcoding nor static linking is supported with a
19525 # broken collect2.
19526 hardcode_direct_F77=unsupported
19527 fi
19528 ;;
19529
19530 aix4* | aix5*)
19531 if test "$host_cpu" = ia64; then
19532 # On IA64, the linker does run time linking by default, so we don't
19533 # have to do anything special.
19534 aix_use_runtimelinking=no
19535 exp_sym_flag='-Bexport'
19536 no_entry_flag=""
19537 else
19538 # If we're using GNU nm, then we don't want the "-C" option.
19539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19540 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19541 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'
19542 else
19543 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'
19544 fi
19545 aix_use_runtimelinking=no
19546
19547 # Test if we are trying to use run time linking or normal
19548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19549 # need to do runtime linking.
19550 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19551 for ld_flag in $LDFLAGS; do
19552 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19553 aix_use_runtimelinking=yes
19554 break
19555 fi
19556 done
19557 esac
19558
19559 exp_sym_flag='-bexport'
19560 no_entry_flag='-bnoentry'
19561 fi
19562
19563 # When large executables or shared objects are built, AIX ld can
19564 # have problems creating the table of contents. If linking a library
19565 # or program results in "error TOC overflow" add -mminimal-toc to
19566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19568
19569 archive_cmds_F77=''
19570 hardcode_direct_F77=yes
19571 hardcode_libdir_separator_F77=':'
19572 link_all_deplibs_F77=yes
19573
19574 if test "$GCC" = yes; then
19575 case $host_os in aix4.012|aix4.012.*)
19576 # We only want to do this on AIX 4.2 and lower, the check
19577 # below for broken collect2 doesn't work under 4.3+
19578 collect2name=`${CC} -print-prog-name=collect2`
19579 if test -f "$collect2name" && \
19580 strings "$collect2name" | grep resolve_lib_name >/dev/null
19581 then
19582 # We have reworked collect2
19583 hardcode_direct_F77=yes
19584 else
19585 # We have old collect2
19586 hardcode_direct_F77=unsupported
19587 # It fails to find uninstalled libraries when the uninstalled
19588 # path is not listed in the libpath. Setting hardcode_minus_L
19589 # to unsupported forces relinking
19590 hardcode_minus_L_F77=yes
19591 hardcode_libdir_flag_spec_F77='-L$libdir'
19592 hardcode_libdir_separator_F77=
19593 fi
19594 esac
19595 shared_flag='-shared'
19596 else
19597 # not using gcc
19598 if test "$host_cpu" = ia64; then
19599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19600 # chokes on -Wl,-G. The following line is correct:
19601 shared_flag='-G'
19602 else
19603 if test "$aix_use_runtimelinking" = yes; then
19604 shared_flag='${wl}-G'
19605 else
19606 shared_flag='${wl}-bM:SRE'
19607 fi
19608 fi
19609 fi
19610
19611 # It seems that -bexpall does not export symbols beginning with
19612 # underscore (_), so it is better to generate a list of symbols to export.
19613 always_export_symbols_F77=yes
19614 if test "$aix_use_runtimelinking" = yes; then
19615 # Warning - without using the other runtime loading flags (-brtl),
19616 # -berok will link without error, but may produce a broken library.
19617 allow_undefined_flag_F77='-berok'
19618 # Determine the default libpath from the value encoded in an empty executable.
19619 cat >conftest.$ac_ext <<_ACEOF
19620 program main
19621
19622 end
19623_ACEOF
19624rm -f conftest.$ac_objext conftest$ac_exeext
19625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019626 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019633 { ac_try='test -z "$ac_f77_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646
19647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19648}'`
19649# Check for a 64-bit object if we didn't find anything.
19650if 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; }
19651}'`; fi
19652else
19653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019654sed 's/^/| /' conftest.$ac_ext >&5
19655
John Criswell47fdd832003-07-14 16:52:07 +000019656fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019657rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19660
19661 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19662 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"
19663 else
19664 if test "$host_cpu" = ia64; then
19665 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19666 allow_undefined_flag_F77="-z nodefs"
19667 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"
19668 else
19669 # Determine the default libpath from the value encoded in an empty executable.
19670 cat >conftest.$ac_ext <<_ACEOF
19671 program main
19672
19673 end
19674_ACEOF
19675rm -f conftest.$ac_objext conftest$ac_exeext
19676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019677 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019684 { ac_try='test -z "$ac_f77_werror_flag"
19685 || test ! -s conftest.err'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697
19698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19699}'`
19700# Check for a 64-bit object if we didn't find anything.
19701if 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; }
19702}'`; fi
19703else
19704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019705sed 's/^/| /' conftest.$ac_ext >&5
19706
John Criswell47fdd832003-07-14 16:52:07 +000019707fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019708rm -f conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19711
19712 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19713 # Warning - without using the other run time loading flags,
19714 # -berok will link without error, but may produce a broken library.
19715 no_undefined_flag_F77=' ${wl}-bernotok'
19716 allow_undefined_flag_F77=' ${wl}-berok'
19717 # -bexpall does not export symbols beginning with underscore (_)
19718 always_export_symbols_F77=yes
19719 # Exported symbols can be pulled into shared objects from archives
19720 whole_archive_flag_spec_F77=' '
19721 archive_cmds_need_lc_F77=yes
19722 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019723 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 +000019724 fi
19725 fi
19726 ;;
19727
19728 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019729 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 +000019730 hardcode_libdir_flag_spec_F77='-L$libdir'
19731 hardcode_minus_L_F77=yes
19732 # see comment about different semantics on the GNU ld section
19733 ld_shlibs_F77=no
19734 ;;
19735
Reid Spencer2706f8c2004-09-19 23:53:36 +000019736 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019737 export_dynamic_flag_spec_F77=-rdynamic
19738 ;;
19739
19740 cygwin* | mingw* | pw32*)
19741 # When not using gcc, we currently assume that we are using
19742 # Microsoft Visual C++.
19743 # hardcode_libdir_flag_spec is actually meaningless, as there is
19744 # no search path for DLLs.
19745 hardcode_libdir_flag_spec_F77=' '
19746 allow_undefined_flag_F77=unsupported
19747 # Tell ltmain to make .lib files, not .a files.
19748 libext=lib
19749 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019750 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019751 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019752 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 +000019753 # The linker will automatically build a .lib file if we build a DLL.
19754 old_archive_From_new_cmds_F77='true'
19755 # FIXME: Should let the user specify the lib program.
19756 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19757 fix_srcfile_path='`cygpath -w "$srcfile"`'
19758 enable_shared_with_static_runtimes_F77=yes
19759 ;;
19760
19761 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019762 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019763 rhapsody* | darwin1.[012])
19764 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19765 ;;
19766 *) # Darwin 1.3 on
19767 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19768 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19769 else
19770 case ${MACOSX_DEPLOYMENT_TARGET} in
19771 10.[012])
19772 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19773 ;;
19774 10.*)
19775 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19776 ;;
19777 esac
19778 fi
19779 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019780 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019781 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019782 hardcode_direct_F77=no
19783 hardcode_automatic_F77=yes
19784 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019785 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019786 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019787 if test "$GCC" = yes ; then
19788 output_verbose_link_cmd='echo'
19789 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19790 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19791 # 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 +000019792 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}'
19793 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 +000019794 else
19795 case "$cc_basename" in
19796 xlc*)
19797 output_verbose_link_cmd='echo'
19798 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19799 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19800 # 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 +000019801 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}'
19802 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 +000019803 ;;
19804 *)
19805 ld_shlibs_F77=no
19806 ;;
19807 esac
John Criswell47fdd832003-07-14 16:52:07 +000019808 fi
19809 ;;
19810
19811 dgux*)
19812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19813 hardcode_libdir_flag_spec_F77='-L$libdir'
19814 hardcode_shlibpath_var_F77=no
19815 ;;
19816
19817 freebsd1*)
19818 ld_shlibs_F77=no
19819 ;;
19820
19821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19822 # support. Future versions do this automatically, but an explicit c++rt0.o
19823 # does not break anything, and helps significantly (at the cost of a little
19824 # extra space).
19825 freebsd2.2*)
19826 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19827 hardcode_libdir_flag_spec_F77='-R$libdir'
19828 hardcode_direct_F77=yes
19829 hardcode_shlibpath_var_F77=no
19830 ;;
19831
19832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19833 freebsd2*)
19834 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_direct_F77=yes
19836 hardcode_minus_L_F77=yes
19837 hardcode_shlibpath_var_F77=no
19838 ;;
19839
19840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019841 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019842 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19843 hardcode_libdir_flag_spec_F77='-R$libdir'
19844 hardcode_direct_F77=yes
19845 hardcode_shlibpath_var_F77=no
19846 ;;
19847
19848 hpux9*)
19849 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019850 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 +000019851 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019852 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 +000019853 fi
19854 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19855 hardcode_libdir_separator_F77=:
19856 hardcode_direct_F77=yes
19857
19858 # hardcode_minus_L: Not really in the search PATH,
19859 # but as the default location of the library.
19860 hardcode_minus_L_F77=yes
19861 export_dynamic_flag_spec_F77='${wl}-E'
19862 ;;
19863
19864 hpux10* | hpux11*)
19865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19866 case "$host_cpu" in
19867 hppa*64*|ia64*)
19868 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19869 ;;
19870 *)
19871 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19872 ;;
19873 esac
19874 else
19875 case "$host_cpu" in
19876 hppa*64*|ia64*)
19877 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19878 ;;
19879 *)
19880 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19881 ;;
19882 esac
19883 fi
19884 if test "$with_gnu_ld" = no; then
19885 case "$host_cpu" in
19886 hppa*64*)
19887 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19888 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19889 hardcode_libdir_separator_F77=:
19890 hardcode_direct_F77=no
19891 hardcode_shlibpath_var_F77=no
19892 ;;
19893 ia64*)
19894 hardcode_libdir_flag_spec_F77='-L$libdir'
19895 hardcode_direct_F77=no
19896 hardcode_shlibpath_var_F77=no
19897
19898 # hardcode_minus_L: Not really in the search PATH,
19899 # but as the default location of the library.
19900 hardcode_minus_L_F77=yes
19901 ;;
19902 *)
19903 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19904 hardcode_libdir_separator_F77=:
19905 hardcode_direct_F77=yes
19906 export_dynamic_flag_spec_F77='${wl}-E'
19907
19908 # hardcode_minus_L: Not really in the search PATH,
19909 # but as the default location of the library.
19910 hardcode_minus_L_F77=yes
19911 ;;
19912 esac
19913 fi
19914 ;;
19915
19916 irix5* | irix6* | nonstopux*)
19917 if test "$GCC" = yes; then
19918 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'
19919 else
19920 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'
19921 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19922 fi
19923 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19924 hardcode_libdir_separator_F77=:
19925 link_all_deplibs_F77=yes
19926 ;;
19927
19928 netbsd*)
19929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19930 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19931 else
19932 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19933 fi
19934 hardcode_libdir_flag_spec_F77='-R$libdir'
19935 hardcode_direct_F77=yes
19936 hardcode_shlibpath_var_F77=no
19937 ;;
19938
19939 newsos6)
19940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19941 hardcode_direct_F77=yes
19942 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19943 hardcode_libdir_separator_F77=:
19944 hardcode_shlibpath_var_F77=no
19945 ;;
19946
19947 openbsd*)
19948 hardcode_direct_F77=yes
19949 hardcode_shlibpath_var_F77=no
19950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19951 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019952 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 +000019953 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19954 export_dynamic_flag_spec_F77='${wl}-E'
19955 else
19956 case $host_os in
19957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19958 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19959 hardcode_libdir_flag_spec_F77='-R$libdir'
19960 ;;
19961 *)
19962 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19963 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19964 ;;
19965 esac
19966 fi
19967 ;;
19968
19969 os2*)
19970 hardcode_libdir_flag_spec_F77='-L$libdir'
19971 hardcode_minus_L_F77=yes
19972 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019973 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 +000019974 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19975 ;;
19976
19977 osf3*)
19978 if test "$GCC" = yes; then
19979 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19980 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'
19981 else
19982 allow_undefined_flag_F77=' -expect_unresolved \*'
19983 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'
19984 fi
19985 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19986 hardcode_libdir_separator_F77=:
19987 ;;
19988
19989 osf4* | osf5*) # as osf3* with the addition of -msym flag
19990 if test "$GCC" = yes; then
19991 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19992 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'
19993 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19994 else
19995 allow_undefined_flag_F77=' -expect_unresolved \*'
19996 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 +000019997 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~
19998 $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'
19999
John Criswell47fdd832003-07-14 16:52:07 +000020000 # Both c and cxx compiler support -rpath directly
20001 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20002 fi
20003 hardcode_libdir_separator_F77=:
20004 ;;
20005
20006 sco3.2v5*)
20007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008 hardcode_shlibpath_var_F77=no
20009 export_dynamic_flag_spec_F77='${wl}-Bexport'
20010 runpath_var=LD_RUN_PATH
20011 hardcode_runpath_var=yes
20012 ;;
20013
20014 solaris*)
20015 no_undefined_flag_F77=' -z text'
20016 if test "$GCC" = yes; then
20017 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020018 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20019 $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 +000020020 else
20021 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20023 $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 +000020024 fi
20025 hardcode_libdir_flag_spec_F77='-R$libdir'
20026 hardcode_shlibpath_var_F77=no
20027 case $host_os in
20028 solaris2.[0-5] | solaris2.[0-5].*) ;;
20029 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20030 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20031 esac
20032 link_all_deplibs_F77=yes
20033 ;;
20034
20035 sunos4*)
20036 if test "x$host_vendor" = xsequent; then
20037 # Use $CC to link under sequent, because it throws in some extra .o
20038 # files that make .init and .fini sections work.
20039 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20040 else
20041 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20042 fi
20043 hardcode_libdir_flag_spec_F77='-L$libdir'
20044 hardcode_direct_F77=yes
20045 hardcode_minus_L_F77=yes
20046 hardcode_shlibpath_var_F77=no
20047 ;;
20048
20049 sysv4)
20050 case $host_vendor in
20051 sni)
20052 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20053 hardcode_direct_F77=yes # is this really true???
20054 ;;
20055 siemens)
20056 ## LD is ld it makes a PLAMLIB
20057 ## CC just makes a GrossModule.
20058 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20059 reload_cmds_F77='$CC -r -o $output$reload_objs'
20060 hardcode_direct_F77=no
20061 ;;
20062 motorola)
20063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20064 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20065 ;;
20066 esac
20067 runpath_var='LD_RUN_PATH'
20068 hardcode_shlibpath_var_F77=no
20069 ;;
20070
20071 sysv4.3*)
20072 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20073 hardcode_shlibpath_var_F77=no
20074 export_dynamic_flag_spec_F77='-Bexport'
20075 ;;
20076
20077 sysv4*MP*)
20078 if test -d /usr/nec; then
20079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20080 hardcode_shlibpath_var_F77=no
20081 runpath_var=LD_RUN_PATH
20082 hardcode_runpath_var=yes
20083 ld_shlibs_F77=yes
20084 fi
20085 ;;
20086
20087 sysv4.2uw2*)
20088 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20089 hardcode_direct_F77=yes
20090 hardcode_minus_L_F77=no
20091 hardcode_shlibpath_var_F77=no
20092 hardcode_runpath_var=yes
20093 runpath_var=LD_RUN_PATH
20094 ;;
20095
20096 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20097 no_undefined_flag_F77='${wl}-z ${wl}text'
20098 if test "$GCC" = yes; then
20099 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 else
20101 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20102 fi
20103 runpath_var='LD_RUN_PATH'
20104 hardcode_shlibpath_var_F77=no
20105 ;;
20106
20107 sysv5*)
20108 no_undefined_flag_F77=' -z text'
20109 # $CC -shared without GNU ld will not create a library from C++
20110 # object files and a static libstdc++, better avoid it by now
20111 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020112 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20113 $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 +000020114 hardcode_libdir_flag_spec_F77=
20115 hardcode_shlibpath_var_F77=no
20116 runpath_var='LD_RUN_PATH'
20117 ;;
20118
20119 uts4*)
20120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20121 hardcode_libdir_flag_spec_F77='-L$libdir'
20122 hardcode_shlibpath_var_F77=no
20123 ;;
20124
20125 *)
20126 ld_shlibs_F77=no
20127 ;;
20128 esac
20129 fi
20130
20131echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20132echo "${ECHO_T}$ld_shlibs_F77" >&6
20133test "$ld_shlibs_F77" = no && can_build_shared=no
20134
20135variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20136if test "$GCC" = yes; then
20137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20138fi
20139
20140#
20141# Do we need to explicitly link libc?
20142#
20143case "x$archive_cmds_need_lc_F77" in
20144x|xyes)
20145 # Assume -lc should be added
20146 archive_cmds_need_lc_F77=yes
20147
20148 if test "$enable_shared" = yes && test "$GCC" = yes; then
20149 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020150 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020151 # FIXME: we may have to deal with multi-command sequences.
20152 ;;
20153 '$CC '*)
20154 # Test whether the compiler implicitly links with -lc since on some
20155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20156 # to ld, don't add -lc before -lgcc.
20157 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20158echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20159 $rm conftest*
20160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20161
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163 (eval $ac_compile) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } 2>conftest.err; then
20167 soname=conftest
20168 lib=conftest
20169 libobjs=conftest.$ac_objext
20170 deplibs=
20171 wl=$lt_prog_compiler_wl_F77
20172 compiler_flags=-v
20173 linker_flags=-v
20174 verstring=
20175 output_objdir=.
20176 libname=conftest
20177 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20178 allow_undefined_flag_F77=
20179 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20180 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }
20184 then
20185 archive_cmds_need_lc_F77=no
20186 else
20187 archive_cmds_need_lc_F77=yes
20188 fi
20189 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20190 else
20191 cat conftest.err 1>&5
20192 fi
20193 $rm conftest*
20194 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20195echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20196 ;;
20197 esac
20198 fi
20199 ;;
20200esac
20201
John Criswell47fdd832003-07-14 16:52:07 +000020202echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20203echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20204library_names_spec=
20205libname_spec='lib$name'
20206soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020207shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020208postinstall_cmds=
20209postuninstall_cmds=
20210finish_cmds=
20211finish_eval=
20212shlibpath_var=
20213shlibpath_overrides_runpath=unknown
20214version_type=none
20215dynamic_linker="$host_os ld.so"
20216sys_lib_dlsearch_path_spec="/lib /usr/lib"
20217if test "$GCC" = yes; then
20218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20219 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20220 # if the path contains ";" then we assume it to be the separator
20221 # otherwise default to the standard path separator (i.e. ":") - it is
20222 # assumed that no part of a normal pathname contains ";" but that should
20223 # okay in the real world where ";" in dirpaths is itself problematic.
20224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20225 else
20226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20227 fi
20228else
20229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20230fi
20231need_lib_prefix=unknown
20232hardcode_into_libs=no
20233
20234# when you set need_version to no, make sure it does not cause -set_version
20235# flags to be left without arguments
20236need_version=unknown
20237
20238case $host_os in
20239aix3*)
20240 version_type=linux
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20242 shlibpath_var=LIBPATH
20243
20244 # AIX 3 has no versioning support, so we append a major version to the name.
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 ;;
20247
20248aix4* | aix5*)
20249 version_type=linux
20250 need_lib_prefix=no
20251 need_version=no
20252 hardcode_into_libs=yes
20253 if test "$host_cpu" = ia64; then
20254 # AIX 5 supports IA64
20255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 else
20258 # With GCC up to 2.95.x, collect2 would create an import file
20259 # for dependence libraries. The import file would start with
20260 # the line `#! .'. This would cause the generated library to
20261 # depend on `.', always an invalid library. This was fixed in
20262 # development snapshots of GCC prior to 3.0.
20263 case $host_os in
20264 aix4 | aix4.[01] | aix4.[01].*)
20265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20266 echo ' yes '
20267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20268 :
20269 else
20270 can_build_shared=no
20271 fi
20272 ;;
20273 esac
20274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20275 # soname into executable. Probably we can add versioning support to
20276 # collect2, so additional links can be useful in future.
20277 if test "$aix_use_runtimelinking" = yes; then
20278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20279 # instead of lib<name>.a to let people know that these are not
20280 # typical AIX shared libraries.
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20282 else
20283 # We preserve .a as extension for shared libraries through AIX4.2
20284 # and later when we are not doing run time linking.
20285 library_names_spec='${libname}${release}.a $libname.a'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 fi
20288 shlibpath_var=LIBPATH
20289 fi
20290 ;;
20291
20292amigaos*)
20293 library_names_spec='$libname.ixlibrary $libname.a'
20294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 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 +000020296 ;;
20297
20298beos*)
20299 library_names_spec='${libname}${shared_ext}'
20300 dynamic_linker="$host_os ld.so"
20301 shlibpath_var=LIBRARY_PATH
20302 ;;
20303
Reid Spencer2706f8c2004-09-19 23:53:36 +000020304bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020305 version_type=linux
20306 need_version=no
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20313 # the default ld.so.conf also contains /usr/contrib/lib and
20314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20315 # libtool to hard-code these into programs
20316 ;;
20317
20318cygwin* | mingw* | pw32*)
20319 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020320 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020321 need_version=no
20322 need_lib_prefix=no
20323
20324 case $GCC,$host_os in
20325 yes,cygwin* | yes,mingw* | yes,pw32*)
20326 library_names_spec='$libname.dll.a'
20327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020328 postinstall_cmds='base_file=`basename \${file}`~
20329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20330 dldir=$destdir/`dirname \$dlpath`~
20331 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020332 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20334 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020335 $rm \$dlpath'
20336 shlibpath_overrides_runpath=yes
20337
20338 case $host_os in
20339 cygwin*)
20340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20341 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 +000020342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020343 ;;
20344 mingw*)
20345 # MinGW DLLs use traditional 'lib' prefix
20346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20349 # It is most probably a Windows format PATH printed by
20350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20351 # path with ; separators, and with drive letters. We can handle the
20352 # drive letters (cygwin fileutils understands them), so leave them,
20353 # especially as we might pass files found there to a mingw objdump,
20354 # which wouldn't understand a cygwinified path. Ahh.
20355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20356 else
20357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20358 fi
20359 ;;
20360 pw32*)
20361 # pw32 DLLs use 'pw' prefix rather than 'lib'
20362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20363 ;;
20364 esac
20365 ;;
20366
20367 *)
20368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20369 ;;
20370 esac
20371 dynamic_linker='Win32 ld.exe'
20372 # FIXME: first we should search . and the directory the executable is in
20373 shlibpath_var=PATH
20374 ;;
20375
20376darwin* | rhapsody*)
20377 dynamic_linker="$host_os dyld"
20378 version_type=darwin
20379 need_lib_prefix=no
20380 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020381 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020382 soname_spec='${libname}${release}${major}$shared_ext'
20383 shlibpath_overrides_runpath=yes
20384 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020385 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020386 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020387 if test "$GCC" = yes; then
20388 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"`
20389 else
20390 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020391 fi
20392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20393 ;;
20394
20395dgux*)
20396 version_type=linux
20397 need_lib_prefix=no
20398 need_version=no
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 ;;
20403
20404freebsd1*)
20405 dynamic_linker=no
20406 ;;
20407
Reid Spencer2706f8c2004-09-19 23:53:36 +000020408kfreebsd*-gnu)
20409 version_type=linux
20410 need_lib_prefix=no
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20413 soname_spec='${libname}${release}${shared_ext}$major'
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=no
20416 hardcode_into_libs=yes
20417 dynamic_linker='GNU ld.so'
20418 ;;
20419
John Criswell47fdd832003-07-14 16:52:07 +000020420freebsd*)
20421 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20422 version_type=freebsd-$objformat
20423 case $version_type in
20424 freebsd-elf*)
20425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20426 need_version=no
20427 need_lib_prefix=no
20428 ;;
20429 freebsd-*)
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20431 need_version=yes
20432 ;;
20433 esac
20434 shlibpath_var=LD_LIBRARY_PATH
20435 case $host_os in
20436 freebsd2*)
20437 shlibpath_overrides_runpath=yes
20438 ;;
20439 freebsd3.01* | freebsdelf3.01*)
20440 shlibpath_overrides_runpath=yes
20441 hardcode_into_libs=yes
20442 ;;
20443 *) # from 3.2 on
20444 shlibpath_overrides_runpath=no
20445 hardcode_into_libs=yes
20446 ;;
20447 esac
20448 ;;
20449
20450gnu*)
20451 version_type=linux
20452 need_lib_prefix=no
20453 need_version=no
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 hardcode_into_libs=yes
20458 ;;
20459
20460hpux9* | hpux10* | hpux11*)
20461 # Give a soname corresponding to the major version so that dld.sl refuses to
20462 # link against other versions.
20463 version_type=sunos
20464 need_lib_prefix=no
20465 need_version=no
20466 case "$host_cpu" in
20467 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020468 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020469 hardcode_into_libs=yes
20470 dynamic_linker="$host_os dld.so"
20471 shlibpath_var=LD_LIBRARY_PATH
20472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 soname_spec='${libname}${release}${shared_ext}$major'
20475 if test "X$HPUX_IA64_MODE" = X32; then
20476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20477 else
20478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20479 fi
20480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20481 ;;
20482 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020483 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020484 hardcode_into_libs=yes
20485 dynamic_linker="$host_os dld.sl"
20486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20492 ;;
20493 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020494 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020495 dynamic_linker="$host_os dld.sl"
20496 shlibpath_var=SHLIB_PATH
20497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 ;;
20501 esac
20502 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20503 postinstall_cmds='chmod 555 $lib'
20504 ;;
20505
20506irix5* | irix6* | nonstopux*)
20507 case $host_os in
20508 nonstopux*) version_type=nonstopux ;;
20509 *)
20510 if test "$lt_cv_prog_gnu_ld" = yes; then
20511 version_type=linux
20512 else
20513 version_type=irix
20514 fi ;;
20515 esac
20516 need_lib_prefix=no
20517 need_version=no
20518 soname_spec='${libname}${release}${shared_ext}$major'
20519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20520 case $host_os in
20521 irix5* | nonstopux*)
20522 libsuff= shlibsuff=
20523 ;;
20524 *)
20525 case $LD in # libtool.m4 will add one of these switches to LD
20526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20527 libsuff= shlibsuff= libmagic=32-bit;;
20528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20529 libsuff=32 shlibsuff=N32 libmagic=N32;;
20530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20532 *) libsuff= shlibsuff= libmagic=never-match;;
20533 esac
20534 ;;
20535 esac
20536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20537 shlibpath_overrides_runpath=no
20538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20540 hardcode_into_libs=yes
20541 ;;
20542
20543# No shared lib support for Linux oldld, aout, or coff.
20544linux*oldld* | linux*aout* | linux*coff*)
20545 dynamic_linker=no
20546 ;;
20547
20548# This must be Linux ELF.
20549linux*)
20550 version_type=linux
20551 need_lib_prefix=no
20552 need_version=no
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554 soname_spec='${libname}${release}${shared_ext}$major'
20555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20556 shlibpath_var=LD_LIBRARY_PATH
20557 shlibpath_overrides_runpath=no
20558 # This implies no fast_install, which is unacceptable.
20559 # Some rework will be needed to allow for fast_install
20560 # before this can be enabled.
20561 hardcode_into_libs=yes
20562
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563 # Append ld.so.conf contents to the search path
20564 if test -f /etc/ld.so.conf; then
20565 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20567 fi
20568
John Criswell47fdd832003-07-14 16:52:07 +000020569 # We used to test for /lib/ld.so.1 and disable shared libraries on
20570 # powerpc, because MkLinux only supported shared libraries with the
20571 # GNU dynamic linker. Since this was broken with cross compilers,
20572 # most powerpc-linux boxes support dynamic linking these days and
20573 # people can always --disable-shared, the test was removed, and we
20574 # assume the GNU/Linux dynamic linker is in use.
20575 dynamic_linker='GNU/Linux ld.so'
20576 ;;
20577
Reid Spencer2706f8c2004-09-19 23:53:36 +000020578knetbsd*-gnu)
20579 version_type=linux
20580 need_lib_prefix=no
20581 need_version=no
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20583 soname_spec='${libname}${release}${shared_ext}$major'
20584 shlibpath_var=LD_LIBRARY_PATH
20585 shlibpath_overrides_runpath=no
20586 hardcode_into_libs=yes
20587 dynamic_linker='GNU ld.so'
20588 ;;
20589
John Criswell47fdd832003-07-14 16:52:07 +000020590netbsd*)
20591 version_type=sunos
20592 need_lib_prefix=no
20593 need_version=no
20594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20597 dynamic_linker='NetBSD (a.out) ld.so'
20598 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020600 soname_spec='${libname}${release}${shared_ext}$major'
20601 dynamic_linker='NetBSD ld.elf_so'
20602 fi
20603 shlibpath_var=LD_LIBRARY_PATH
20604 shlibpath_overrides_runpath=yes
20605 hardcode_into_libs=yes
20606 ;;
20607
20608newsos6)
20609 version_type=linux
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 shlibpath_var=LD_LIBRARY_PATH
20612 shlibpath_overrides_runpath=yes
20613 ;;
20614
Reid Spencer2706f8c2004-09-19 23:53:36 +000020615nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020616 version_type=linux
20617 need_lib_prefix=no
20618 need_version=no
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 shlibpath_var=LD_LIBRARY_PATH
20622 shlibpath_overrides_runpath=yes
20623 ;;
20624
20625openbsd*)
20626 version_type=sunos
20627 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020628 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20633 case $host_os in
20634 openbsd2.[89] | openbsd2.[89].*)
20635 shlibpath_overrides_runpath=no
20636 ;;
20637 *)
20638 shlibpath_overrides_runpath=yes
20639 ;;
20640 esac
20641 else
20642 shlibpath_overrides_runpath=yes
20643 fi
20644 ;;
20645
20646os2*)
20647 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020648 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020649 need_lib_prefix=no
20650 library_names_spec='$libname${shared_ext} $libname.a'
20651 dynamic_linker='OS/2 ld.exe'
20652 shlibpath_var=LIBPATH
20653 ;;
20654
20655osf3* | osf4* | osf5*)
20656 version_type=osf
20657 need_lib_prefix=no
20658 need_version=no
20659 soname_spec='${libname}${release}${shared_ext}$major'
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661 shlibpath_var=LD_LIBRARY_PATH
20662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20664 ;;
20665
20666sco3.2v5*)
20667 version_type=osf
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 shlibpath_var=LD_LIBRARY_PATH
20671 ;;
20672
20673solaris*)
20674 version_type=linux
20675 need_lib_prefix=no
20676 need_version=no
20677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20679 shlibpath_var=LD_LIBRARY_PATH
20680 shlibpath_overrides_runpath=yes
20681 hardcode_into_libs=yes
20682 # ldd complains unless libraries are executable
20683 postinstall_cmds='chmod +x $lib'
20684 ;;
20685
20686sunos4*)
20687 version_type=sunos
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20690 shlibpath_var=LD_LIBRARY_PATH
20691 shlibpath_overrides_runpath=yes
20692 if test "$with_gnu_ld" = yes; then
20693 need_lib_prefix=no
20694 fi
20695 need_version=yes
20696 ;;
20697
20698sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20699 version_type=linux
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 shlibpath_var=LD_LIBRARY_PATH
20703 case $host_vendor in
20704 sni)
20705 shlibpath_overrides_runpath=no
20706 need_lib_prefix=no
20707 export_dynamic_flag_spec='${wl}-Blargedynsym'
20708 runpath_var=LD_RUN_PATH
20709 ;;
20710 siemens)
20711 need_lib_prefix=no
20712 ;;
20713 motorola)
20714 need_lib_prefix=no
20715 need_version=no
20716 shlibpath_overrides_runpath=no
20717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20718 ;;
20719 esac
20720 ;;
20721
20722sysv4*MP*)
20723 if test -d /usr/nec ;then
20724 version_type=linux
20725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20726 soname_spec='$libname${shared_ext}.$major'
20727 shlibpath_var=LD_LIBRARY_PATH
20728 fi
20729 ;;
20730
20731uts4*)
20732 version_type=linux
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 shlibpath_var=LD_LIBRARY_PATH
20736 ;;
20737
20738*)
20739 dynamic_linker=no
20740 ;;
20741esac
20742echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20743echo "${ECHO_T}$dynamic_linker" >&6
20744test "$dynamic_linker" = no && can_build_shared=no
20745
Reid Spencer2706f8c2004-09-19 23:53:36 +000020746echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20747echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20748hardcode_action_F77=
20749if test -n "$hardcode_libdir_flag_spec_F77" || \
20750 test -n "$runpath_var_F77" || \
20751 test "X$hardcode_automatic_F77" = "Xyes" ; then
20752
20753 # We can hardcode non-existant directories.
20754 if test "$hardcode_direct_F77" != no &&
20755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20756 # have to relink, otherwise we might link with an installed library
20757 # when we should be linking with a yet-to-be-installed one
20758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20759 test "$hardcode_minus_L_F77" != no; then
20760 # Linking always hardcodes the temporary library directory.
20761 hardcode_action_F77=relink
20762 else
20763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20764 hardcode_action_F77=immediate
20765 fi
20766else
20767 # We cannot hardcode anything, or else we can only hardcode existing
20768 # directories.
20769 hardcode_action_F77=unsupported
20770fi
20771echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20772echo "${ECHO_T}$hardcode_action_F77" >&6
20773
20774if test "$hardcode_action_F77" = relink; then
20775 # Fast installation is not supported
20776 enable_fast_install=no
20777elif test "$shlibpath_overrides_runpath" = yes ||
20778 test "$enable_shared" = no; then
20779 # Fast installation is not necessary
20780 enable_fast_install=needless
20781fi
20782
20783striplib=
20784old_striplib=
20785echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20786echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20787if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20789 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20790 echo "$as_me:$LINENO: result: yes" >&5
20791echo "${ECHO_T}yes" >&6
20792else
20793# FIXME - insert some real tests, host_os isn't really good enough
20794 case $host_os in
20795 darwin*)
20796 if test -n "$STRIP" ; then
20797 striplib="$STRIP -x"
20798 echo "$as_me:$LINENO: result: yes" >&5
20799echo "${ECHO_T}yes" >&6
20800 else
20801 echo "$as_me:$LINENO: result: no" >&5
20802echo "${ECHO_T}no" >&6
20803fi
20804 ;;
20805 *)
20806 echo "$as_me:$LINENO: result: no" >&5
20807echo "${ECHO_T}no" >&6
20808 ;;
20809 esac
20810fi
20811
20812
John Criswell47fdd832003-07-14 16:52:07 +000020813
20814# The else clause should only fire when bootstrapping the
20815# libtool distribution, otherwise you forgot to ship ltmain.sh
20816# with your package, and you will get complaints that there are
20817# no rules to generate ltmain.sh.
20818if test -f "$ltmain"; then
20819 # See if we are running on zsh, and set the options which allow our commands through
20820 # without removal of \ escapes.
20821 if test -n "${ZSH_VERSION+set}" ; then
20822 setopt NO_GLOB_SUBST
20823 fi
20824 # Now quote all the things that may contain metacharacters while being
20825 # careful not to overquote the AC_SUBSTed values. We take copies of the
20826 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20828 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020829 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20830 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20831 deplibs_check_method reload_flag reload_cmds need_locks \
20832 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20833 lt_cv_sys_global_symbol_to_c_name_address \
20834 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20835 old_postinstall_cmds old_postuninstall_cmds \
20836 compiler_F77 \
20837 CC_F77 \
20838 LD_F77 \
20839 lt_prog_compiler_wl_F77 \
20840 lt_prog_compiler_pic_F77 \
20841 lt_prog_compiler_static_F77 \
20842 lt_prog_compiler_no_builtin_flag_F77 \
20843 export_dynamic_flag_spec_F77 \
20844 thread_safe_flag_spec_F77 \
20845 whole_archive_flag_spec_F77 \
20846 enable_shared_with_static_runtimes_F77 \
20847 old_archive_cmds_F77 \
20848 old_archive_from_new_cmds_F77 \
20849 predep_objects_F77 \
20850 postdep_objects_F77 \
20851 predeps_F77 \
20852 postdeps_F77 \
20853 compiler_lib_search_path_F77 \
20854 archive_cmds_F77 \
20855 archive_expsym_cmds_F77 \
20856 postinstall_cmds_F77 \
20857 postuninstall_cmds_F77 \
20858 old_archive_from_expsyms_cmds_F77 \
20859 allow_undefined_flag_F77 \
20860 no_undefined_flag_F77 \
20861 export_symbols_cmds_F77 \
20862 hardcode_libdir_flag_spec_F77 \
20863 hardcode_libdir_flag_spec_ld_F77 \
20864 hardcode_libdir_separator_F77 \
20865 hardcode_automatic_F77 \
20866 module_cmds_F77 \
20867 module_expsym_cmds_F77 \
20868 lt_cv_prog_compiler_c_o_F77 \
20869 exclude_expsyms_F77 \
20870 include_expsyms_F77; do
20871
20872 case $var in
20873 old_archive_cmds_F77 | \
20874 old_archive_from_new_cmds_F77 | \
20875 archive_cmds_F77 | \
20876 archive_expsym_cmds_F77 | \
20877 module_cmds_F77 | \
20878 module_expsym_cmds_F77 | \
20879 old_archive_from_expsyms_cmds_F77 | \
20880 export_symbols_cmds_F77 | \
20881 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20882 postinstall_cmds | postuninstall_cmds | \
20883 old_postinstall_cmds | old_postuninstall_cmds | \
20884 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20885 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020886 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 +000020887 ;;
20888 *)
20889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20890 ;;
20891 esac
20892 done
20893
20894 case $lt_echo in
20895 *'\$0 --fallback-echo"')
20896 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20897 ;;
20898 esac
20899
20900cfgfile="$ofile"
20901
20902 cat <<__EOF__ >> "$cfgfile"
20903# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20904
20905# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20906
20907# Shell to use when invoking shell scripts.
20908SHELL=$lt_SHELL
20909
20910# Whether or not to build shared libraries.
20911build_libtool_libs=$enable_shared
20912
20913# Whether or not to build static libraries.
20914build_old_libs=$enable_static
20915
20916# Whether or not to add -lc for building shared libraries.
20917build_libtool_need_lc=$archive_cmds_need_lc_F77
20918
20919# Whether or not to disallow shared libs when runtime libs are static
20920allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20921
20922# Whether or not to optimize for fast installation.
20923fast_install=$enable_fast_install
20924
20925# The host system.
20926host_alias=$host_alias
20927host=$host
20928
20929# An echo program that does not interpret backslashes.
20930echo=$lt_echo
20931
20932# The archiver.
20933AR=$lt_AR
20934AR_FLAGS=$lt_AR_FLAGS
20935
20936# A C compiler.
20937LTCC=$lt_LTCC
20938
20939# A language-specific compiler.
20940CC=$lt_compiler_F77
20941
20942# Is the compiler the GNU C compiler?
20943with_gcc=$GCC_F77
20944
20945# An ERE matcher.
20946EGREP=$lt_EGREP
20947
20948# The linker used to build libraries.
20949LD=$lt_LD_F77
20950
20951# Whether we need hard or soft links.
20952LN_S=$lt_LN_S
20953
20954# A BSD-compatible nm program.
20955NM=$lt_NM
20956
20957# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020958STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020959
20960# Used to examine libraries when file_magic_cmd begins "file"
20961MAGIC_CMD=$MAGIC_CMD
20962
20963# Used on cygwin: DLL creation program.
20964DLLTOOL="$DLLTOOL"
20965
20966# Used on cygwin: object dumper.
20967OBJDUMP="$OBJDUMP"
20968
20969# Used on cygwin: assembler.
20970AS="$AS"
20971
20972# The name of the directory that contains temporary libtool files.
20973objdir=$objdir
20974
20975# How to create reloadable object files.
20976reload_flag=$lt_reload_flag
20977reload_cmds=$lt_reload_cmds
20978
20979# How to pass a linker flag through the compiler.
20980wl=$lt_lt_prog_compiler_wl_F77
20981
20982# Object file suffix (normally "o").
20983objext="$ac_objext"
20984
20985# Old archive suffix (normally "a").
20986libext="$libext"
20987
20988# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020989shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020990
20991# Executable file suffix (normally "").
20992exeext="$exeext"
20993
20994# Additional compiler flags for building library objects.
20995pic_flag=$lt_lt_prog_compiler_pic_F77
20996pic_mode=$pic_mode
20997
20998# What is the maximum length of a command?
20999max_cmd_len=$lt_cv_sys_max_cmd_len
21000
21001# Does compiler simultaneously support -c and -o options?
21002compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21003
21004# Must we lock files when doing compilation ?
21005need_locks=$lt_need_locks
21006
21007# Do we need the lib prefix for modules?
21008need_lib_prefix=$need_lib_prefix
21009
21010# Do we need a version for libraries?
21011need_version=$need_version
21012
21013# Whether dlopen is supported.
21014dlopen_support=$enable_dlopen
21015
21016# Whether dlopen of programs is supported.
21017dlopen_self=$enable_dlopen_self
21018
21019# Whether dlopen of statically linked programs is supported.
21020dlopen_self_static=$enable_dlopen_self_static
21021
21022# Compiler flag to prevent dynamic linking.
21023link_static_flag=$lt_lt_prog_compiler_static_F77
21024
21025# Compiler flag to turn off builtin functions.
21026no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21027
21028# Compiler flag to allow reflexive dlopens.
21029export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21030
21031# Compiler flag to generate shared objects directly from archives.
21032whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21033
21034# Compiler flag to generate thread-safe objects.
21035thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21036
21037# Library versioning type.
21038version_type=$version_type
21039
21040# Format of library name prefix.
21041libname_spec=$lt_libname_spec
21042
21043# List of archive names. First name is the real one, the rest are links.
21044# The last name is the one that the linker finds with -lNAME.
21045library_names_spec=$lt_library_names_spec
21046
21047# The coded name of the library, if different from the real name.
21048soname_spec=$lt_soname_spec
21049
21050# Commands used to build and install an old-style archive.
21051RANLIB=$lt_RANLIB
21052old_archive_cmds=$lt_old_archive_cmds_F77
21053old_postinstall_cmds=$lt_old_postinstall_cmds
21054old_postuninstall_cmds=$lt_old_postuninstall_cmds
21055
21056# Create an old-style archive from a shared archive.
21057old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21058
21059# Create a temporary old-style archive to link instead of a shared archive.
21060old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21061
21062# Commands used to build and install a shared archive.
21063archive_cmds=$lt_archive_cmds_F77
21064archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21065postinstall_cmds=$lt_postinstall_cmds
21066postuninstall_cmds=$lt_postuninstall_cmds
21067
21068# Commands used to build a loadable module (assumed same as above if empty)
21069module_cmds=$lt_module_cmds_F77
21070module_expsym_cmds=$lt_module_expsym_cmds_F77
21071
21072# Commands to strip libraries.
21073old_striplib=$lt_old_striplib
21074striplib=$lt_striplib
21075
21076# Dependencies to place before the objects being linked to create a
21077# shared library.
21078predep_objects=$lt_predep_objects_F77
21079
21080# Dependencies to place after the objects being linked to create a
21081# shared library.
21082postdep_objects=$lt_postdep_objects_F77
21083
21084# Dependencies to place before the objects being linked to create a
21085# shared library.
21086predeps=$lt_predeps_F77
21087
21088# Dependencies to place after the objects being linked to create a
21089# shared library.
21090postdeps=$lt_postdeps_F77
21091
21092# The library search path used internally by the compiler when linking
21093# a shared library.
21094compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21095
21096# Method to check whether dependent libraries are shared objects.
21097deplibs_check_method=$lt_deplibs_check_method
21098
21099# Command to use when deplibs_check_method == file_magic.
21100file_magic_cmd=$lt_file_magic_cmd
21101
21102# Flag that allows shared libraries with undefined symbols to be built.
21103allow_undefined_flag=$lt_allow_undefined_flag_F77
21104
21105# Flag that forces no undefined symbols.
21106no_undefined_flag=$lt_no_undefined_flag_F77
21107
21108# Commands used to finish a libtool library installation in a directory.
21109finish_cmds=$lt_finish_cmds
21110
21111# Same as above, but a single script fragment to be evaled but not shown.
21112finish_eval=$lt_finish_eval
21113
21114# Take the output of nm and produce a listing of raw symbols and C names.
21115global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21116
21117# Transform the output of nm in a proper C declaration
21118global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21119
21120# Transform the output of nm in a C name address pair
21121global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21122
21123# This is the shared library runtime path variable.
21124runpath_var=$runpath_var
21125
21126# This is the shared library path variable.
21127shlibpath_var=$shlibpath_var
21128
21129# Is shlibpath searched before the hard-coded library search path?
21130shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21131
21132# How to hardcode a shared library path into an executable.
21133hardcode_action=$hardcode_action_F77
21134
21135# Whether we should hardcode library paths into libraries.
21136hardcode_into_libs=$hardcode_into_libs
21137
21138# Flag to hardcode \$libdir into a binary during linking.
21139# This must work even if \$libdir does not exist.
21140hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21141
21142# If ld is used when linking, flag to hardcode \$libdir into
21143# a binary during linking. This must work even if \$libdir does
21144# not exist.
21145hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21146
21147# Whether we need a single -rpath flag with a separated argument.
21148hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21149
21150# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21151# resulting binary.
21152hardcode_direct=$hardcode_direct_F77
21153
21154# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21155# resulting binary.
21156hardcode_minus_L=$hardcode_minus_L_F77
21157
21158# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21159# the resulting binary.
21160hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21161
21162# Set to yes if building a shared library automatically hardcodes DIR into the library
21163# and all subsequent libraries and executables linked against it.
21164hardcode_automatic=$hardcode_automatic_F77
21165
21166# Variables whose values should be saved in libtool wrapper scripts and
21167# restored at relink time.
21168variables_saved_for_relink="$variables_saved_for_relink"
21169
21170# Whether libtool must link a program against all its dependency libraries.
21171link_all_deplibs=$link_all_deplibs_F77
21172
21173# Compile-time system search path for libraries
21174sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21175
21176# Run-time system search path for libraries
21177sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21178
21179# Fix the shell variable \$srcfile for the compiler.
21180fix_srcfile_path="$fix_srcfile_path_F77"
21181
21182# Set to yes if exported symbols are required.
21183always_export_symbols=$always_export_symbols_F77
21184
21185# The commands to list exported symbols.
21186export_symbols_cmds=$lt_export_symbols_cmds_F77
21187
21188# The commands to extract the exported symbol list from a shared archive.
21189extract_expsyms_cmds=$lt_extract_expsyms_cmds
21190
21191# Symbols that should not be listed in the preloaded symbols.
21192exclude_expsyms=$lt_exclude_expsyms_F77
21193
21194# Symbols that must always be exported.
21195include_expsyms=$lt_include_expsyms_F77
21196
21197# ### END LIBTOOL TAG CONFIG: $tagname
21198
21199__EOF__
21200
21201
21202else
21203 # If there is no Makefile yet, we rely on a make rule to execute
21204 # `config.status --recheck' to rerun these tests and create the
21205 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021206 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21207 if test -f "$ltmain_in"; then
21208 test -f Makefile && make "$ltmain"
21209 fi
John Criswell47fdd832003-07-14 16:52:07 +000021210fi
21211
21212
21213ac_ext=c
21214ac_cpp='$CPP $CPPFLAGS'
21215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
21219CC="$lt_save_CC"
21220
21221 else
21222 tagname=""
21223 fi
21224 ;;
21225
21226 GCJ)
21227 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021228 ac_ext=c
21229ac_cpp='$CPP $CPPFLAGS'
21230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021233
21234
21235# Source file extension for Java test sources.
21236ac_ext=java
21237
21238# Object file extension for compiled Java test sources.
21239objext=o
21240objext_GCJ=$objext
21241
21242# Code to be used in simple compile tests
21243lt_simple_compile_test_code="class foo {}\n"
21244
21245# Code to be used in simple link tests
21246lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21247
21248# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21249
21250# If no C compiler was specified, use CC.
21251LTCC=${LTCC-"$CC"}
21252
21253# Allow CC to be a program name with arguments.
21254compiler=$CC
21255
21256
21257# Allow CC to be a program name with arguments.
21258lt_save_CC="$CC"
21259CC=${GCJ-"gcj"}
21260compiler=$CC
21261compiler_GCJ=$CC
21262
21263# GCJ did not exist at the time GCC didn't implicitly link libc in.
21264archive_cmds_need_lc_GCJ=no
21265
John Criswell47fdd832003-07-14 16:52:07 +000021266
21267lt_prog_compiler_no_builtin_flag_GCJ=
21268
21269if test "$GCC" = yes; then
21270 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21271
Reid Spencer2706f8c2004-09-19 23:53:36 +000021272
21273echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021274echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21275if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277else
21278 lt_cv_prog_compiler_rtti_exceptions=no
21279 ac_outfile=conftest.$ac_objext
21280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21281 lt_compiler_flag="-fno-rtti -fno-exceptions"
21282 # Insert the option either (1) after the last *FLAGS variable, or
21283 # (2) before a word containing "conftest.", or (3) at the end.
21284 # Note that $ac_compile itself does not contain backslashes and begins
21285 # with a dollar sign (not a hyphen), so the echo should work correctly.
21286 # The option is referenced via a variable to avoid confusing sed.
21287 lt_compile=`echo "$ac_compile" | $SED \
21288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21290 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000021291 (eval echo "\"\$as_me:21291: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021292 (eval "$lt_compile" 2>conftest.err)
21293 ac_status=$?
21294 cat conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000021295 echo "$as_me:21295: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021296 if (exit $ac_status) && test -s "$ac_outfile"; then
21297 # The compiler can only warn and ignore the option if not recognized
21298 # So say no if there are warnings
21299 if test ! -s conftest.err; then
21300 lt_cv_prog_compiler_rtti_exceptions=yes
21301 fi
21302 fi
21303 $rm conftest*
21304
21305fi
21306echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21307echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21308
21309if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21310 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21311else
21312 :
21313fi
21314
21315fi
21316
21317lt_prog_compiler_wl_GCJ=
21318lt_prog_compiler_pic_GCJ=
21319lt_prog_compiler_static_GCJ=
21320
21321echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21322echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21323
21324 if test "$GCC" = yes; then
21325 lt_prog_compiler_wl_GCJ='-Wl,'
21326 lt_prog_compiler_static_GCJ='-static'
21327
21328 case $host_os in
21329 aix*)
21330 # All AIX code is PIC.
21331 if test "$host_cpu" = ia64; then
21332 # AIX 5 now supports IA64 processor
21333 lt_prog_compiler_static_GCJ='-Bstatic'
21334 fi
21335 ;;
21336
21337 amigaos*)
21338 # FIXME: we need at least 68020 code to build shared libraries, but
21339 # adding the `-m68020' flag to GCC prevents building anything better,
21340 # like `-m68040'.
21341 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21342 ;;
21343
21344 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21345 # PIC is the default for these OSes.
21346 ;;
21347
21348 mingw* | pw32* | os2*)
21349 # This hack is so that the source file can tell whether it is being
21350 # built for inclusion in a dll (and should export symbols for example).
21351 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21352 ;;
21353
21354 darwin* | rhapsody*)
21355 # PIC is the default on this platform
21356 # Common symbols not allowed in MH_DYLIB files
21357 lt_prog_compiler_pic_GCJ='-fno-common'
21358 ;;
21359
21360 msdosdjgpp*)
21361 # Just because we use GCC doesn't mean we suddenly get shared libraries
21362 # on systems that don't support them.
21363 lt_prog_compiler_can_build_shared_GCJ=no
21364 enable_shared=no
21365 ;;
21366
21367 sysv4*MP*)
21368 if test -d /usr/nec; then
21369 lt_prog_compiler_pic_GCJ=-Kconform_pic
21370 fi
21371 ;;
21372
21373 hpux*)
21374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21375 # not for PA HP-UX.
21376 case "$host_cpu" in
21377 hppa*64*|ia64*)
21378 # +Z the default
21379 ;;
21380 *)
21381 lt_prog_compiler_pic_GCJ='-fPIC'
21382 ;;
21383 esac
21384 ;;
21385
21386 *)
21387 lt_prog_compiler_pic_GCJ='-fPIC'
21388 ;;
21389 esac
21390 else
21391 # PORTME Check for flag to pass linker flags through the system compiler.
21392 case $host_os in
21393 aix*)
21394 lt_prog_compiler_wl_GCJ='-Wl,'
21395 if test "$host_cpu" = ia64; then
21396 # AIX 5 now supports IA64 processor
21397 lt_prog_compiler_static_GCJ='-Bstatic'
21398 else
21399 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21400 fi
21401 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402 darwin*)
21403 # PIC is the default on this platform
21404 # Common symbols not allowed in MH_DYLIB files
21405 case "$cc_basename" in
21406 xlc*)
21407 lt_prog_compiler_pic_GCJ='-qnocommon'
21408 lt_prog_compiler_wl_GCJ='-Wl,'
21409 ;;
21410 esac
21411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021412
21413 mingw* | pw32* | os2*)
21414 # This hack is so that the source file can tell whether it is being
21415 # built for inclusion in a dll (and should export symbols for example).
21416 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21417 ;;
21418
21419 hpux9* | hpux10* | hpux11*)
21420 lt_prog_compiler_wl_GCJ='-Wl,'
21421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21422 # not for PA HP-UX.
21423 case "$host_cpu" in
21424 hppa*64*|ia64*)
21425 # +Z the default
21426 ;;
21427 *)
21428 lt_prog_compiler_pic_GCJ='+Z'
21429 ;;
21430 esac
21431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21432 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21433 ;;
21434
21435 irix5* | irix6* | nonstopux*)
21436 lt_prog_compiler_wl_GCJ='-Wl,'
21437 # PIC (with -KPIC) is the default.
21438 lt_prog_compiler_static_GCJ='-non_shared'
21439 ;;
21440
21441 newsos6)
21442 lt_prog_compiler_pic_GCJ='-KPIC'
21443 lt_prog_compiler_static_GCJ='-Bstatic'
21444 ;;
21445
21446 linux*)
21447 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021448 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021449 lt_prog_compiler_wl_GCJ='-Wl,'
21450 lt_prog_compiler_pic_GCJ='-KPIC'
21451 lt_prog_compiler_static_GCJ='-static'
21452 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021453 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021454 lt_prog_compiler_wl_GCJ='-Wl,'
21455 # All Alpha code is PIC.
21456 lt_prog_compiler_static_GCJ='-non_shared'
21457 ;;
21458 esac
21459 ;;
21460
21461 osf3* | osf4* | osf5*)
21462 lt_prog_compiler_wl_GCJ='-Wl,'
21463 # All OSF/1 code is PIC.
21464 lt_prog_compiler_static_GCJ='-non_shared'
21465 ;;
21466
21467 sco3.2v5*)
21468 lt_prog_compiler_pic_GCJ='-Kpic'
21469 lt_prog_compiler_static_GCJ='-dn'
21470 ;;
21471
21472 solaris*)
21473 lt_prog_compiler_wl_GCJ='-Wl,'
21474 lt_prog_compiler_pic_GCJ='-KPIC'
21475 lt_prog_compiler_static_GCJ='-Bstatic'
21476 ;;
21477
21478 sunos4*)
21479 lt_prog_compiler_wl_GCJ='-Qoption ld '
21480 lt_prog_compiler_pic_GCJ='-PIC'
21481 lt_prog_compiler_static_GCJ='-Bstatic'
21482 ;;
21483
21484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21485 lt_prog_compiler_wl_GCJ='-Wl,'
21486 lt_prog_compiler_pic_GCJ='-KPIC'
21487 lt_prog_compiler_static_GCJ='-Bstatic'
21488 ;;
21489
21490 sysv4*MP*)
21491 if test -d /usr/nec ;then
21492 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21493 lt_prog_compiler_static_GCJ='-Bstatic'
21494 fi
21495 ;;
21496
21497 uts4*)
21498 lt_prog_compiler_pic_GCJ='-pic'
21499 lt_prog_compiler_static_GCJ='-Bstatic'
21500 ;;
21501
21502 *)
21503 lt_prog_compiler_can_build_shared_GCJ=no
21504 ;;
21505 esac
21506 fi
21507
21508echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21509echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21510
21511#
21512# Check to make sure the PIC flag actually works.
21513#
21514if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021515
21516echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021517echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21518if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21520else
21521 lt_prog_compiler_pic_works_GCJ=no
21522 ac_outfile=conftest.$ac_objext
21523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21524 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21525 # Insert the option either (1) after the last *FLAGS variable, or
21526 # (2) before a word containing "conftest.", or (3) at the end.
21527 # Note that $ac_compile itself does not contain backslashes and begins
21528 # with a dollar sign (not a hyphen), so the echo should work correctly.
21529 # The option is referenced via a variable to avoid confusing sed.
21530 lt_compile=`echo "$ac_compile" | $SED \
21531 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21533 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000021534 (eval echo "\"\$as_me:21534: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021535 (eval "$lt_compile" 2>conftest.err)
21536 ac_status=$?
21537 cat conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000021538 echo "$as_me:21538: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021539 if (exit $ac_status) && test -s "$ac_outfile"; then
21540 # The compiler can only warn and ignore the option if not recognized
21541 # So say no if there are warnings
21542 if test ! -s conftest.err; then
21543 lt_prog_compiler_pic_works_GCJ=yes
21544 fi
21545 fi
21546 $rm conftest*
21547
21548fi
21549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21550echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21551
21552if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21553 case $lt_prog_compiler_pic_GCJ in
21554 "" | " "*) ;;
21555 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21556 esac
21557else
21558 lt_prog_compiler_pic_GCJ=
21559 lt_prog_compiler_can_build_shared_GCJ=no
21560fi
21561
21562fi
21563case "$host_os" in
21564 # For platforms which do not support PIC, -DPIC is meaningless:
21565 *djgpp*)
21566 lt_prog_compiler_pic_GCJ=
21567 ;;
21568 *)
21569 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21570 ;;
21571esac
21572
21573echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21574echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21575if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21577else
21578 lt_cv_prog_compiler_c_o_GCJ=no
21579 $rm -r conftest 2>/dev/null
21580 mkdir conftest
21581 cd conftest
21582 mkdir out
21583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21584
John Criswell47fdd832003-07-14 16:52:07 +000021585 lt_compiler_flag="-o out/conftest2.$ac_objext"
21586 # Insert the option either (1) after the last *FLAGS variable, or
21587 # (2) before a word containing "conftest.", or (3) at the end.
21588 # Note that $ac_compile itself does not contain backslashes and begins
21589 # with a dollar sign (not a hyphen), so the echo should work correctly.
21590 lt_compile=`echo "$ac_compile" | $SED \
21591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21593 -e 's:$: $lt_compiler_flag:'`
Reid Spencerecbd2422006-06-02 23:13:18 +000021594 (eval echo "\"\$as_me:21594: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021595 (eval "$lt_compile" 2>out/conftest.err)
21596 ac_status=$?
21597 cat out/conftest.err >&5
Reid Spencerecbd2422006-06-02 23:13:18 +000021598 echo "$as_me:21598: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21600 then
21601 # The compiler can only warn and ignore the option if not recognized
21602 # So say no if there are warnings
21603 if test ! -s out/conftest.err; then
21604 lt_cv_prog_compiler_c_o_GCJ=yes
21605 fi
21606 fi
21607 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021608 $rm conftest*
21609 # SGI C++ compiler will create directory out/ii_files/ for
21610 # template instantiation
21611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21612 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021613 cd ..
21614 rmdir conftest
21615 $rm conftest*
21616
21617fi
21618echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21619echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21620
21621
21622hard_links="nottested"
21623if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21624 # do not overwrite the value of need_locks provided by the user
21625 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21626echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21627 hard_links=yes
21628 $rm conftest*
21629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21630 touch conftest.a
21631 ln conftest.a conftest.b 2>&5 || hard_links=no
21632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21633 echo "$as_me:$LINENO: result: $hard_links" >&5
21634echo "${ECHO_T}$hard_links" >&6
21635 if test "$hard_links" = no; then
21636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21637echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21638 need_locks=warn
21639 fi
21640else
21641 need_locks=no
21642fi
21643
21644echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21645echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21646
21647 runpath_var=
21648 allow_undefined_flag_GCJ=
21649 enable_shared_with_static_runtimes_GCJ=no
21650 archive_cmds_GCJ=
21651 archive_expsym_cmds_GCJ=
21652 old_archive_From_new_cmds_GCJ=
21653 old_archive_from_expsyms_cmds_GCJ=
21654 export_dynamic_flag_spec_GCJ=
21655 whole_archive_flag_spec_GCJ=
21656 thread_safe_flag_spec_GCJ=
21657 hardcode_libdir_flag_spec_GCJ=
21658 hardcode_libdir_flag_spec_ld_GCJ=
21659 hardcode_libdir_separator_GCJ=
21660 hardcode_direct_GCJ=no
21661 hardcode_minus_L_GCJ=no
21662 hardcode_shlibpath_var_GCJ=unsupported
21663 link_all_deplibs_GCJ=unknown
21664 hardcode_automatic_GCJ=no
21665 module_cmds_GCJ=
21666 module_expsym_cmds_GCJ=
21667 always_export_symbols_GCJ=no
21668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21669 # include_expsyms should be a list of space-separated symbols to be *always*
21670 # included in the symbol list
21671 include_expsyms_GCJ=
21672 # exclude_expsyms can be an extended regexp of symbols to exclude
21673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21675 # as well as any symbol that contains `d'.
21676 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21678 # platforms (ab)use it in PIC code, but their linkers get confused if
21679 # the symbol is explicitly referenced. Since portable code cannot
21680 # rely on this symbol name, it's probably fine to never include it in
21681 # preloaded symbol tables.
21682 extract_expsyms_cmds=
21683
21684 case $host_os in
21685 cygwin* | mingw* | pw32*)
21686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21687 # When not using gcc, we currently assume that we are using
21688 # Microsoft Visual C++.
21689 if test "$GCC" != yes; then
21690 with_gnu_ld=no
21691 fi
21692 ;;
21693 openbsd*)
21694 with_gnu_ld=no
21695 ;;
21696 esac
21697
21698 ld_shlibs_GCJ=yes
21699 if test "$with_gnu_ld" = yes; then
21700 # If archive_cmds runs LD, not CC, wlarc should be empty
21701 wlarc='${wl}'
21702
21703 # See if GNU ld supports shared libraries.
21704 case $host_os in
21705 aix3* | aix4* | aix5*)
21706 # On AIX/PPC, the GNU linker is very broken
21707 if test "$host_cpu" != ia64; then
21708 ld_shlibs_GCJ=no
21709 cat <<EOF 1>&2
21710
21711*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21712*** to be unable to reliably create shared libraries on AIX.
21713*** Therefore, libtool is disabling shared libraries support. If you
21714*** really care for shared libraries, you may want to modify your PATH
21715*** so that a non-GNU linker is found, and then restart.
21716
21717EOF
21718 fi
21719 ;;
21720
21721 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021722 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 +000021723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21724 hardcode_minus_L_GCJ=yes
21725
21726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21727 # that the semantics of dynamic libraries on AmigaOS, at least up
21728 # to version 4, is to share data among multiple programs linked
21729 # with the same dynamic library. Since this doesn't match the
21730 # behavior of shared libraries on other platforms, we can't use
21731 # them.
21732 ld_shlibs_GCJ=no
21733 ;;
21734
21735 beos*)
21736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21737 allow_undefined_flag_GCJ=unsupported
21738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21739 # support --undefined. This deserves some investigation. FIXME
21740 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21741 else
21742 ld_shlibs_GCJ=no
21743 fi
21744 ;;
21745
21746 cygwin* | mingw* | pw32*)
21747 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21748 # as there is no search path for DLLs.
21749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21750 allow_undefined_flag_GCJ=unsupported
21751 always_export_symbols_GCJ=no
21752 enable_shared_with_static_runtimes_GCJ=yes
21753 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21754
21755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21756 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21757 # If the export-symbols file already is a .def file (1st line
21758 # is EXPORTS), use it as is; otherwise, prepend...
21759 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21760 cp $export_symbols $output_objdir/$soname.def;
21761 else
21762 echo EXPORTS > $output_objdir/$soname.def;
21763 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021764 fi~
21765 $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 +000021766 else
21767 ld_shlibs=no
21768 fi
21769 ;;
21770
21771 netbsd*)
21772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21773 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21774 wlarc=
21775 else
21776 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21777 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21778 fi
21779 ;;
21780
21781 solaris* | sysv5*)
21782 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21783 ld_shlibs_GCJ=no
21784 cat <<EOF 1>&2
21785
21786*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21787*** create shared libraries on Solaris systems. Therefore, libtool
21788*** is disabling shared libraries support. We urge you to upgrade GNU
21789*** binutils to release 2.9.1 or newer. Another option is to modify
21790*** your PATH or compiler configuration so that the native linker is
21791*** used, and then restart.
21792
21793EOF
21794 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21797 else
21798 ld_shlibs_GCJ=no
21799 fi
21800 ;;
21801
21802 sunos4*)
21803 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21804 wlarc=
21805 hardcode_direct_GCJ=yes
21806 hardcode_shlibpath_var_GCJ=no
21807 ;;
21808
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809 linux*)
21810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21811 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21812 archive_cmds_GCJ="$tmp_archive_cmds"
21813 supports_anon_versioning=no
21814 case `$LD -v 2>/dev/null` in
21815 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21818 *\ 2.11.*) ;; # other 2.11 versions
21819 *) supports_anon_versioning=yes ;;
21820 esac
21821 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021822 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21823cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21824$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21826 else
21827 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21828 fi
21829 else
21830 ld_shlibs_GCJ=no
21831 fi
21832 ;;
21833
John Criswell47fdd832003-07-14 16:52:07 +000021834 *)
21835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21838 else
21839 ld_shlibs_GCJ=no
21840 fi
21841 ;;
21842 esac
21843
21844 if test "$ld_shlibs_GCJ" = yes; then
21845 runpath_var=LD_RUN_PATH
21846 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21847 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21848 # ancient GNU ld didn't support --whole-archive et. al.
21849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21850 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21851 else
21852 whole_archive_flag_spec_GCJ=
21853 fi
21854 fi
21855 else
21856 # PORTME fill in a description of your system's linker (not GNU ld)
21857 case $host_os in
21858 aix3*)
21859 allow_undefined_flag_GCJ=unsupported
21860 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021861 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 +000021862 # Note: this linker hardcodes the directories in LIBPATH if there
21863 # are no directories specified by -L.
21864 hardcode_minus_L_GCJ=yes
21865 if test "$GCC" = yes && test -z "$link_static_flag"; then
21866 # Neither direct hardcoding nor static linking is supported with a
21867 # broken collect2.
21868 hardcode_direct_GCJ=unsupported
21869 fi
21870 ;;
21871
21872 aix4* | aix5*)
21873 if test "$host_cpu" = ia64; then
21874 # On IA64, the linker does run time linking by default, so we don't
21875 # have to do anything special.
21876 aix_use_runtimelinking=no
21877 exp_sym_flag='-Bexport'
21878 no_entry_flag=""
21879 else
21880 # If we're using GNU nm, then we don't want the "-C" option.
21881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21883 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'
21884 else
21885 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'
21886 fi
21887 aix_use_runtimelinking=no
21888
21889 # Test if we are trying to use run time linking or normal
21890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21891 # need to do runtime linking.
21892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21893 for ld_flag in $LDFLAGS; do
21894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21895 aix_use_runtimelinking=yes
21896 break
21897 fi
21898 done
21899 esac
21900
21901 exp_sym_flag='-bexport'
21902 no_entry_flag='-bnoentry'
21903 fi
21904
21905 # When large executables or shared objects are built, AIX ld can
21906 # have problems creating the table of contents. If linking a library
21907 # or program results in "error TOC overflow" add -mminimal-toc to
21908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21910
21911 archive_cmds_GCJ=''
21912 hardcode_direct_GCJ=yes
21913 hardcode_libdir_separator_GCJ=':'
21914 link_all_deplibs_GCJ=yes
21915
21916 if test "$GCC" = yes; then
21917 case $host_os in aix4.012|aix4.012.*)
21918 # We only want to do this on AIX 4.2 and lower, the check
21919 # below for broken collect2 doesn't work under 4.3+
21920 collect2name=`${CC} -print-prog-name=collect2`
21921 if test -f "$collect2name" && \
21922 strings "$collect2name" | grep resolve_lib_name >/dev/null
21923 then
21924 # We have reworked collect2
21925 hardcode_direct_GCJ=yes
21926 else
21927 # We have old collect2
21928 hardcode_direct_GCJ=unsupported
21929 # It fails to find uninstalled libraries when the uninstalled
21930 # path is not listed in the libpath. Setting hardcode_minus_L
21931 # to unsupported forces relinking
21932 hardcode_minus_L_GCJ=yes
21933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21934 hardcode_libdir_separator_GCJ=
21935 fi
21936 esac
21937 shared_flag='-shared'
21938 else
21939 # not using gcc
21940 if test "$host_cpu" = ia64; then
21941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21942 # chokes on -Wl,-G. The following line is correct:
21943 shared_flag='-G'
21944 else
21945 if test "$aix_use_runtimelinking" = yes; then
21946 shared_flag='${wl}-G'
21947 else
21948 shared_flag='${wl}-bM:SRE'
21949 fi
21950 fi
21951 fi
21952
21953 # It seems that -bexpall does not export symbols beginning with
21954 # underscore (_), so it is better to generate a list of symbols to export.
21955 always_export_symbols_GCJ=yes
21956 if test "$aix_use_runtimelinking" = yes; then
21957 # Warning - without using the other runtime loading flags (-brtl),
21958 # -berok will link without error, but may produce a broken library.
21959 allow_undefined_flag_GCJ='-berok'
21960 # Determine the default libpath from the value encoded in an empty executable.
21961 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021967
John Criswell47fdd832003-07-14 16:52:07 +000021968int
21969main ()
21970{
21971
21972 ;
21973 return 0;
21974}
21975_ACEOF
21976rm -f conftest.$ac_objext conftest$ac_exeext
21977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021978 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021979 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021985 { ac_try='test -z "$ac_c_werror_flag"
21986 || test ! -s conftest.err'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; } &&
21992 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; }; then
21998
21999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22000}'`
22001# Check for a 64-bit object if we didn't find anything.
22002if 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; }
22003}'`; fi
22004else
22005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022006sed 's/^/| /' conftest.$ac_ext >&5
22007
John Criswell47fdd832003-07-14 16:52:07 +000022008fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022009rm -f conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22012
22013 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22014 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"
22015 else
22016 if test "$host_cpu" = ia64; then
22017 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22018 allow_undefined_flag_GCJ="-z nodefs"
22019 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"
22020 else
22021 # Determine the default libpath from the value encoded in an empty executable.
22022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022023/* confdefs.h. */
22024_ACEOF
22025cat confdefs.h >>conftest.$ac_ext
22026cat >>conftest.$ac_ext <<_ACEOF
22027/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022028
John Criswell47fdd832003-07-14 16:52:07 +000022029int
22030main ()
22031{
22032
22033 ;
22034 return 0;
22035}
22036_ACEOF
22037rm -f conftest.$ac_objext conftest$ac_exeext
22038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022039 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022046 { ac_try='test -z "$ac_c_werror_flag"
22047 || test ! -s conftest.err'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; } &&
22053 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055 (eval $ac_try) 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
22059
22060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22061}'`
22062# Check for a 64-bit object if we didn't find anything.
22063if 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; }
22064}'`; fi
22065else
22066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022067sed 's/^/| /' conftest.$ac_ext >&5
22068
John Criswell47fdd832003-07-14 16:52:07 +000022069fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022070rm -f conftest.err conftest.$ac_objext \
22071 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022072if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22073
22074 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22075 # Warning - without using the other run time loading flags,
22076 # -berok will link without error, but may produce a broken library.
22077 no_undefined_flag_GCJ=' ${wl}-bernotok'
22078 allow_undefined_flag_GCJ=' ${wl}-berok'
22079 # -bexpall does not export symbols beginning with underscore (_)
22080 always_export_symbols_GCJ=yes
22081 # Exported symbols can be pulled into shared objects from archives
22082 whole_archive_flag_spec_GCJ=' '
22083 archive_cmds_need_lc_GCJ=yes
22084 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022085 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 +000022086 fi
22087 fi
22088 ;;
22089
22090 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022091 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 +000022092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22093 hardcode_minus_L_GCJ=yes
22094 # see comment about different semantics on the GNU ld section
22095 ld_shlibs_GCJ=no
22096 ;;
22097
Reid Spencer2706f8c2004-09-19 23:53:36 +000022098 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022099 export_dynamic_flag_spec_GCJ=-rdynamic
22100 ;;
22101
22102 cygwin* | mingw* | pw32*)
22103 # When not using gcc, we currently assume that we are using
22104 # Microsoft Visual C++.
22105 # hardcode_libdir_flag_spec is actually meaningless, as there is
22106 # no search path for DLLs.
22107 hardcode_libdir_flag_spec_GCJ=' '
22108 allow_undefined_flag_GCJ=unsupported
22109 # Tell ltmain to make .lib files, not .a files.
22110 libext=lib
22111 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022112 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022113 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022114 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 +000022115 # The linker will automatically build a .lib file if we build a DLL.
22116 old_archive_From_new_cmds_GCJ='true'
22117 # FIXME: Should let the user specify the lib program.
22118 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22119 fix_srcfile_path='`cygpath -w "$srcfile"`'
22120 enable_shared_with_static_runtimes_GCJ=yes
22121 ;;
22122
22123 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022124 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022125 rhapsody* | darwin1.[012])
22126 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22127 ;;
22128 *) # Darwin 1.3 on
22129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22130 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22131 else
22132 case ${MACOSX_DEPLOYMENT_TARGET} in
22133 10.[012])
22134 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22135 ;;
22136 10.*)
22137 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22138 ;;
22139 esac
22140 fi
22141 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022142 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022143 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022144 hardcode_direct_GCJ=no
22145 hardcode_automatic_GCJ=yes
22146 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022147 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022148 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022149 if test "$GCC" = yes ; then
22150 output_verbose_link_cmd='echo'
22151 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22152 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22153 # 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 +000022154 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}'
22155 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 +000022156 else
22157 case "$cc_basename" in
22158 xlc*)
22159 output_verbose_link_cmd='echo'
22160 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22161 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22162 # 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 +000022163 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}'
22164 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 +000022165 ;;
22166 *)
22167 ld_shlibs_GCJ=no
22168 ;;
22169 esac
John Criswell47fdd832003-07-14 16:52:07 +000022170 fi
22171 ;;
22172
22173 dgux*)
22174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22176 hardcode_shlibpath_var_GCJ=no
22177 ;;
22178
22179 freebsd1*)
22180 ld_shlibs_GCJ=no
22181 ;;
22182
22183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22184 # support. Future versions do this automatically, but an explicit c++rt0.o
22185 # does not break anything, and helps significantly (at the cost of a little
22186 # extra space).
22187 freebsd2.2*)
22188 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22189 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22190 hardcode_direct_GCJ=yes
22191 hardcode_shlibpath_var_GCJ=no
22192 ;;
22193
22194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22195 freebsd2*)
22196 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_direct_GCJ=yes
22198 hardcode_minus_L_GCJ=yes
22199 hardcode_shlibpath_var_GCJ=no
22200 ;;
22201
22202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022203 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022204 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22206 hardcode_direct_GCJ=yes
22207 hardcode_shlibpath_var_GCJ=no
22208 ;;
22209
22210 hpux9*)
22211 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022212 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 +000022213 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022214 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 +000022215 fi
22216 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22217 hardcode_libdir_separator_GCJ=:
22218 hardcode_direct_GCJ=yes
22219
22220 # hardcode_minus_L: Not really in the search PATH,
22221 # but as the default location of the library.
22222 hardcode_minus_L_GCJ=yes
22223 export_dynamic_flag_spec_GCJ='${wl}-E'
22224 ;;
22225
22226 hpux10* | hpux11*)
22227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22228 case "$host_cpu" in
22229 hppa*64*|ia64*)
22230 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22231 ;;
22232 *)
22233 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22234 ;;
22235 esac
22236 else
22237 case "$host_cpu" in
22238 hppa*64*|ia64*)
22239 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 ;;
22241 *)
22242 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22243 ;;
22244 esac
22245 fi
22246 if test "$with_gnu_ld" = no; then
22247 case "$host_cpu" in
22248 hppa*64*)
22249 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22251 hardcode_libdir_separator_GCJ=:
22252 hardcode_direct_GCJ=no
22253 hardcode_shlibpath_var_GCJ=no
22254 ;;
22255 ia64*)
22256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22257 hardcode_direct_GCJ=no
22258 hardcode_shlibpath_var_GCJ=no
22259
22260 # hardcode_minus_L: Not really in the search PATH,
22261 # but as the default location of the library.
22262 hardcode_minus_L_GCJ=yes
22263 ;;
22264 *)
22265 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22266 hardcode_libdir_separator_GCJ=:
22267 hardcode_direct_GCJ=yes
22268 export_dynamic_flag_spec_GCJ='${wl}-E'
22269
22270 # hardcode_minus_L: Not really in the search PATH,
22271 # but as the default location of the library.
22272 hardcode_minus_L_GCJ=yes
22273 ;;
22274 esac
22275 fi
22276 ;;
22277
22278 irix5* | irix6* | nonstopux*)
22279 if test "$GCC" = yes; then
22280 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'
22281 else
22282 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'
22283 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22284 fi
22285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22286 hardcode_libdir_separator_GCJ=:
22287 link_all_deplibs_GCJ=yes
22288 ;;
22289
22290 netbsd*)
22291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22292 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22293 else
22294 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22295 fi
22296 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22297 hardcode_direct_GCJ=yes
22298 hardcode_shlibpath_var_GCJ=no
22299 ;;
22300
22301 newsos6)
22302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22303 hardcode_direct_GCJ=yes
22304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22305 hardcode_libdir_separator_GCJ=:
22306 hardcode_shlibpath_var_GCJ=no
22307 ;;
22308
22309 openbsd*)
22310 hardcode_direct_GCJ=yes
22311 hardcode_shlibpath_var_GCJ=no
22312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22313 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022314 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 +000022315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22316 export_dynamic_flag_spec_GCJ='${wl}-E'
22317 else
22318 case $host_os in
22319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22321 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22322 ;;
22323 *)
22324 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22325 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22326 ;;
22327 esac
22328 fi
22329 ;;
22330
22331 os2*)
22332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22333 hardcode_minus_L_GCJ=yes
22334 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022335 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 +000022336 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22337 ;;
22338
22339 osf3*)
22340 if test "$GCC" = yes; then
22341 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22342 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'
22343 else
22344 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22345 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'
22346 fi
22347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22348 hardcode_libdir_separator_GCJ=:
22349 ;;
22350
22351 osf4* | osf5*) # as osf3* with the addition of -msym flag
22352 if test "$GCC" = yes; then
22353 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22354 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'
22355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22356 else
22357 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22358 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 +000022359 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~
22360 $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'
22361
John Criswell47fdd832003-07-14 16:52:07 +000022362 # Both c and cxx compiler support -rpath directly
22363 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22364 fi
22365 hardcode_libdir_separator_GCJ=:
22366 ;;
22367
22368 sco3.2v5*)
22369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370 hardcode_shlibpath_var_GCJ=no
22371 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22372 runpath_var=LD_RUN_PATH
22373 hardcode_runpath_var=yes
22374 ;;
22375
22376 solaris*)
22377 no_undefined_flag_GCJ=' -z text'
22378 if test "$GCC" = yes; then
22379 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022380 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22381 $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 +000022382 else
22383 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022384 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22385 $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 +000022386 fi
22387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22388 hardcode_shlibpath_var_GCJ=no
22389 case $host_os in
22390 solaris2.[0-5] | solaris2.[0-5].*) ;;
22391 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22392 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22393 esac
22394 link_all_deplibs_GCJ=yes
22395 ;;
22396
22397 sunos4*)
22398 if test "x$host_vendor" = xsequent; then
22399 # Use $CC to link under sequent, because it throws in some extra .o
22400 # files that make .init and .fini sections work.
22401 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22402 else
22403 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22404 fi
22405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22406 hardcode_direct_GCJ=yes
22407 hardcode_minus_L_GCJ=yes
22408 hardcode_shlibpath_var_GCJ=no
22409 ;;
22410
22411 sysv4)
22412 case $host_vendor in
22413 sni)
22414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22415 hardcode_direct_GCJ=yes # is this really true???
22416 ;;
22417 siemens)
22418 ## LD is ld it makes a PLAMLIB
22419 ## CC just makes a GrossModule.
22420 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22421 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22422 hardcode_direct_GCJ=no
22423 ;;
22424 motorola)
22425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22426 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22427 ;;
22428 esac
22429 runpath_var='LD_RUN_PATH'
22430 hardcode_shlibpath_var_GCJ=no
22431 ;;
22432
22433 sysv4.3*)
22434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22435 hardcode_shlibpath_var_GCJ=no
22436 export_dynamic_flag_spec_GCJ='-Bexport'
22437 ;;
22438
22439 sysv4*MP*)
22440 if test -d /usr/nec; then
22441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442 hardcode_shlibpath_var_GCJ=no
22443 runpath_var=LD_RUN_PATH
22444 hardcode_runpath_var=yes
22445 ld_shlibs_GCJ=yes
22446 fi
22447 ;;
22448
22449 sysv4.2uw2*)
22450 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22451 hardcode_direct_GCJ=yes
22452 hardcode_minus_L_GCJ=no
22453 hardcode_shlibpath_var_GCJ=no
22454 hardcode_runpath_var=yes
22455 runpath_var=LD_RUN_PATH
22456 ;;
22457
22458 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22459 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22460 if test "$GCC" = yes; then
22461 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22462 else
22463 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22464 fi
22465 runpath_var='LD_RUN_PATH'
22466 hardcode_shlibpath_var_GCJ=no
22467 ;;
22468
22469 sysv5*)
22470 no_undefined_flag_GCJ=' -z text'
22471 # $CC -shared without GNU ld will not create a library from C++
22472 # object files and a static libstdc++, better avoid it by now
22473 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022474 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22475 $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 +000022476 hardcode_libdir_flag_spec_GCJ=
22477 hardcode_shlibpath_var_GCJ=no
22478 runpath_var='LD_RUN_PATH'
22479 ;;
22480
22481 uts4*)
22482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22484 hardcode_shlibpath_var_GCJ=no
22485 ;;
22486
22487 *)
22488 ld_shlibs_GCJ=no
22489 ;;
22490 esac
22491 fi
22492
22493echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22494echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22495test "$ld_shlibs_GCJ" = no && can_build_shared=no
22496
22497variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22498if test "$GCC" = yes; then
22499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22500fi
22501
22502#
22503# Do we need to explicitly link libc?
22504#
22505case "x$archive_cmds_need_lc_GCJ" in
22506x|xyes)
22507 # Assume -lc should be added
22508 archive_cmds_need_lc_GCJ=yes
22509
22510 if test "$enable_shared" = yes && test "$GCC" = yes; then
22511 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022512 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022513 # FIXME: we may have to deal with multi-command sequences.
22514 ;;
22515 '$CC '*)
22516 # Test whether the compiler implicitly links with -lc since on some
22517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22518 # to ld, don't add -lc before -lgcc.
22519 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22521 $rm conftest*
22522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22523
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } 2>conftest.err; then
22529 soname=conftest
22530 lib=conftest
22531 libobjs=conftest.$ac_objext
22532 deplibs=
22533 wl=$lt_prog_compiler_wl_GCJ
22534 compiler_flags=-v
22535 linker_flags=-v
22536 verstring=
22537 output_objdir=.
22538 libname=conftest
22539 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22540 allow_undefined_flag_GCJ=
22541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22542 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }
22546 then
22547 archive_cmds_need_lc_GCJ=no
22548 else
22549 archive_cmds_need_lc_GCJ=yes
22550 fi
22551 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22552 else
22553 cat conftest.err 1>&5
22554 fi
22555 $rm conftest*
22556 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22557echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22558 ;;
22559 esac
22560 fi
22561 ;;
22562esac
22563
John Criswell47fdd832003-07-14 16:52:07 +000022564echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22566library_names_spec=
22567libname_spec='lib$name'
22568soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022570postinstall_cmds=
22571postuninstall_cmds=
22572finish_cmds=
22573finish_eval=
22574shlibpath_var=
22575shlibpath_overrides_runpath=unknown
22576version_type=none
22577dynamic_linker="$host_os ld.so"
22578sys_lib_dlsearch_path_spec="/lib /usr/lib"
22579if test "$GCC" = yes; then
22580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22582 # if the path contains ";" then we assume it to be the separator
22583 # otherwise default to the standard path separator (i.e. ":") - it is
22584 # assumed that no part of a normal pathname contains ";" but that should
22585 # okay in the real world where ";" in dirpaths is itself problematic.
22586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22587 else
22588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22589 fi
22590else
22591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22592fi
22593need_lib_prefix=unknown
22594hardcode_into_libs=no
22595
22596# when you set need_version to no, make sure it does not cause -set_version
22597# flags to be left without arguments
22598need_version=unknown
22599
22600case $host_os in
22601aix3*)
22602 version_type=linux
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22604 shlibpath_var=LIBPATH
22605
22606 # AIX 3 has no versioning support, so we append a major version to the name.
22607 soname_spec='${libname}${release}${shared_ext}$major'
22608 ;;
22609
22610aix4* | aix5*)
22611 version_type=linux
22612 need_lib_prefix=no
22613 need_version=no
22614 hardcode_into_libs=yes
22615 if test "$host_cpu" = ia64; then
22616 # AIX 5 supports IA64
22617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 else
22620 # With GCC up to 2.95.x, collect2 would create an import file
22621 # for dependence libraries. The import file would start with
22622 # the line `#! .'. This would cause the generated library to
22623 # depend on `.', always an invalid library. This was fixed in
22624 # development snapshots of GCC prior to 3.0.
22625 case $host_os in
22626 aix4 | aix4.[01] | aix4.[01].*)
22627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22628 echo ' yes '
22629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22630 :
22631 else
22632 can_build_shared=no
22633 fi
22634 ;;
22635 esac
22636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22637 # soname into executable. Probably we can add versioning support to
22638 # collect2, so additional links can be useful in future.
22639 if test "$aix_use_runtimelinking" = yes; then
22640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22641 # instead of lib<name>.a to let people know that these are not
22642 # typical AIX shared libraries.
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644 else
22645 # We preserve .a as extension for shared libraries through AIX4.2
22646 # and later when we are not doing run time linking.
22647 library_names_spec='${libname}${release}.a $libname.a'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 fi
22650 shlibpath_var=LIBPATH
22651 fi
22652 ;;
22653
22654amigaos*)
22655 library_names_spec='$libname.ixlibrary $libname.a'
22656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 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 +000022658 ;;
22659
22660beos*)
22661 library_names_spec='${libname}${shared_ext}'
22662 dynamic_linker="$host_os ld.so"
22663 shlibpath_var=LIBRARY_PATH
22664 ;;
22665
Reid Spencer2706f8c2004-09-19 23:53:36 +000022666bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022667 version_type=linux
22668 need_version=no
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22675 # the default ld.so.conf also contains /usr/contrib/lib and
22676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22677 # libtool to hard-code these into programs
22678 ;;
22679
22680cygwin* | mingw* | pw32*)
22681 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022682 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022683 need_version=no
22684 need_lib_prefix=no
22685
22686 case $GCC,$host_os in
22687 yes,cygwin* | yes,mingw* | yes,pw32*)
22688 library_names_spec='$libname.dll.a'
22689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022690 postinstall_cmds='base_file=`basename \${file}`~
22691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22692 dldir=$destdir/`dirname \$dlpath`~
22693 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022694 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22696 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022697 $rm \$dlpath'
22698 shlibpath_overrides_runpath=yes
22699
22700 case $host_os in
22701 cygwin*)
22702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22703 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 +000022704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022705 ;;
22706 mingw*)
22707 # MinGW DLLs use traditional 'lib' prefix
22708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22711 # It is most probably a Windows format PATH printed by
22712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22713 # path with ; separators, and with drive letters. We can handle the
22714 # drive letters (cygwin fileutils understands them), so leave them,
22715 # especially as we might pass files found there to a mingw objdump,
22716 # which wouldn't understand a cygwinified path. Ahh.
22717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22718 else
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22720 fi
22721 ;;
22722 pw32*)
22723 # pw32 DLLs use 'pw' prefix rather than 'lib'
22724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22725 ;;
22726 esac
22727 ;;
22728
22729 *)
22730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22731 ;;
22732 esac
22733 dynamic_linker='Win32 ld.exe'
22734 # FIXME: first we should search . and the directory the executable is in
22735 shlibpath_var=PATH
22736 ;;
22737
22738darwin* | rhapsody*)
22739 dynamic_linker="$host_os dyld"
22740 version_type=darwin
22741 need_lib_prefix=no
22742 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022744 soname_spec='${libname}${release}${major}$shared_ext'
22745 shlibpath_overrides_runpath=yes
22746 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022747 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022749 if test "$GCC" = yes; then
22750 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"`
22751 else
22752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022753 fi
22754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22755 ;;
22756
22757dgux*)
22758 version_type=linux
22759 need_lib_prefix=no
22760 need_version=no
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 ;;
22765
22766freebsd1*)
22767 dynamic_linker=no
22768 ;;
22769
Reid Spencer2706f8c2004-09-19 23:53:36 +000022770kfreebsd*-gnu)
22771 version_type=linux
22772 need_lib_prefix=no
22773 need_version=no
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22776 shlibpath_var=LD_LIBRARY_PATH
22777 shlibpath_overrides_runpath=no
22778 hardcode_into_libs=yes
22779 dynamic_linker='GNU ld.so'
22780 ;;
22781
John Criswell47fdd832003-07-14 16:52:07 +000022782freebsd*)
22783 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22784 version_type=freebsd-$objformat
22785 case $version_type in
22786 freebsd-elf*)
22787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22788 need_version=no
22789 need_lib_prefix=no
22790 ;;
22791 freebsd-*)
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22793 need_version=yes
22794 ;;
22795 esac
22796 shlibpath_var=LD_LIBRARY_PATH
22797 case $host_os in
22798 freebsd2*)
22799 shlibpath_overrides_runpath=yes
22800 ;;
22801 freebsd3.01* | freebsdelf3.01*)
22802 shlibpath_overrides_runpath=yes
22803 hardcode_into_libs=yes
22804 ;;
22805 *) # from 3.2 on
22806 shlibpath_overrides_runpath=no
22807 hardcode_into_libs=yes
22808 ;;
22809 esac
22810 ;;
22811
22812gnu*)
22813 version_type=linux
22814 need_lib_prefix=no
22815 need_version=no
22816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22817 soname_spec='${libname}${release}${shared_ext}$major'
22818 shlibpath_var=LD_LIBRARY_PATH
22819 hardcode_into_libs=yes
22820 ;;
22821
22822hpux9* | hpux10* | hpux11*)
22823 # Give a soname corresponding to the major version so that dld.sl refuses to
22824 # link against other versions.
22825 version_type=sunos
22826 need_lib_prefix=no
22827 need_version=no
22828 case "$host_cpu" in
22829 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022830 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022831 hardcode_into_libs=yes
22832 dynamic_linker="$host_os dld.so"
22833 shlibpath_var=LD_LIBRARY_PATH
22834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22836 soname_spec='${libname}${release}${shared_ext}$major'
22837 if test "X$HPUX_IA64_MODE" = X32; then
22838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22839 else
22840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22841 fi
22842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22843 ;;
22844 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022845 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022846 hardcode_into_libs=yes
22847 dynamic_linker="$host_os dld.sl"
22848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22854 ;;
22855 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022856 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022857 dynamic_linker="$host_os dld.sl"
22858 shlibpath_var=SHLIB_PATH
22859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 ;;
22863 esac
22864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22865 postinstall_cmds='chmod 555 $lib'
22866 ;;
22867
22868irix5* | irix6* | nonstopux*)
22869 case $host_os in
22870 nonstopux*) version_type=nonstopux ;;
22871 *)
22872 if test "$lt_cv_prog_gnu_ld" = yes; then
22873 version_type=linux
22874 else
22875 version_type=irix
22876 fi ;;
22877 esac
22878 need_lib_prefix=no
22879 need_version=no
22880 soname_spec='${libname}${release}${shared_ext}$major'
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22882 case $host_os in
22883 irix5* | nonstopux*)
22884 libsuff= shlibsuff=
22885 ;;
22886 *)
22887 case $LD in # libtool.m4 will add one of these switches to LD
22888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22889 libsuff= shlibsuff= libmagic=32-bit;;
22890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22891 libsuff=32 shlibsuff=N32 libmagic=N32;;
22892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22894 *) libsuff= shlibsuff= libmagic=never-match;;
22895 esac
22896 ;;
22897 esac
22898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22899 shlibpath_overrides_runpath=no
22900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22902 hardcode_into_libs=yes
22903 ;;
22904
22905# No shared lib support for Linux oldld, aout, or coff.
22906linux*oldld* | linux*aout* | linux*coff*)
22907 dynamic_linker=no
22908 ;;
22909
22910# This must be Linux ELF.
22911linux*)
22912 version_type=linux
22913 need_lib_prefix=no
22914 need_version=no
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22918 shlibpath_var=LD_LIBRARY_PATH
22919 shlibpath_overrides_runpath=no
22920 # This implies no fast_install, which is unacceptable.
22921 # Some rework will be needed to allow for fast_install
22922 # before this can be enabled.
22923 hardcode_into_libs=yes
22924
Reid Spencer2706f8c2004-09-19 23:53:36 +000022925 # Append ld.so.conf contents to the search path
22926 if test -f /etc/ld.so.conf; then
22927 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22929 fi
22930
John Criswell47fdd832003-07-14 16:52:07 +000022931 # We used to test for /lib/ld.so.1 and disable shared libraries on
22932 # powerpc, because MkLinux only supported shared libraries with the
22933 # GNU dynamic linker. Since this was broken with cross compilers,
22934 # most powerpc-linux boxes support dynamic linking these days and
22935 # people can always --disable-shared, the test was removed, and we
22936 # assume the GNU/Linux dynamic linker is in use.
22937 dynamic_linker='GNU/Linux ld.so'
22938 ;;
22939
Reid Spencer2706f8c2004-09-19 23:53:36 +000022940knetbsd*-gnu)
22941 version_type=linux
22942 need_lib_prefix=no
22943 need_version=no
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 shlibpath_overrides_runpath=no
22948 hardcode_into_libs=yes
22949 dynamic_linker='GNU ld.so'
22950 ;;
22951
John Criswell47fdd832003-07-14 16:52:07 +000022952netbsd*)
22953 version_type=sunos
22954 need_lib_prefix=no
22955 need_version=no
22956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22959 dynamic_linker='NetBSD (a.out) ld.so'
22960 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022962 soname_spec='${libname}${release}${shared_ext}$major'
22963 dynamic_linker='NetBSD ld.elf_so'
22964 fi
22965 shlibpath_var=LD_LIBRARY_PATH
22966 shlibpath_overrides_runpath=yes
22967 hardcode_into_libs=yes
22968 ;;
22969
22970newsos6)
22971 version_type=linux
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 shlibpath_overrides_runpath=yes
22975 ;;
22976
Reid Spencer2706f8c2004-09-19 23:53:36 +000022977nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022978 version_type=linux
22979 need_lib_prefix=no
22980 need_version=no
22981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982 soname_spec='${libname}${release}${shared_ext}$major'
22983 shlibpath_var=LD_LIBRARY_PATH
22984 shlibpath_overrides_runpath=yes
22985 ;;
22986
22987openbsd*)
22988 version_type=sunos
22989 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022990 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993 shlibpath_var=LD_LIBRARY_PATH
22994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22995 case $host_os in
22996 openbsd2.[89] | openbsd2.[89].*)
22997 shlibpath_overrides_runpath=no
22998 ;;
22999 *)
23000 shlibpath_overrides_runpath=yes
23001 ;;
23002 esac
23003 else
23004 shlibpath_overrides_runpath=yes
23005 fi
23006 ;;
23007
23008os2*)
23009 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023010 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023011 need_lib_prefix=no
23012 library_names_spec='$libname${shared_ext} $libname.a'
23013 dynamic_linker='OS/2 ld.exe'
23014 shlibpath_var=LIBPATH
23015 ;;
23016
23017osf3* | osf4* | osf5*)
23018 version_type=osf
23019 need_lib_prefix=no
23020 need_version=no
23021 soname_spec='${libname}${release}${shared_ext}$major'
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23023 shlibpath_var=LD_LIBRARY_PATH
23024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23026 ;;
23027
23028sco3.2v5*)
23029 version_type=osf
23030 soname_spec='${libname}${release}${shared_ext}$major'
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 shlibpath_var=LD_LIBRARY_PATH
23033 ;;
23034
23035solaris*)
23036 version_type=linux
23037 need_lib_prefix=no
23038 need_version=no
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 shlibpath_overrides_runpath=yes
23043 hardcode_into_libs=yes
23044 # ldd complains unless libraries are executable
23045 postinstall_cmds='chmod +x $lib'
23046 ;;
23047
23048sunos4*)
23049 version_type=sunos
23050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23052 shlibpath_var=LD_LIBRARY_PATH
23053 shlibpath_overrides_runpath=yes
23054 if test "$with_gnu_ld" = yes; then
23055 need_lib_prefix=no
23056 fi
23057 need_version=yes
23058 ;;
23059
23060sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23061 version_type=linux
23062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23063 soname_spec='${libname}${release}${shared_ext}$major'
23064 shlibpath_var=LD_LIBRARY_PATH
23065 case $host_vendor in
23066 sni)
23067 shlibpath_overrides_runpath=no
23068 need_lib_prefix=no
23069 export_dynamic_flag_spec='${wl}-Blargedynsym'
23070 runpath_var=LD_RUN_PATH
23071 ;;
23072 siemens)
23073 need_lib_prefix=no
23074 ;;
23075 motorola)
23076 need_lib_prefix=no
23077 need_version=no
23078 shlibpath_overrides_runpath=no
23079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23080 ;;
23081 esac
23082 ;;
23083
23084sysv4*MP*)
23085 if test -d /usr/nec ;then
23086 version_type=linux
23087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23088 soname_spec='$libname${shared_ext}.$major'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 fi
23091 ;;
23092
23093uts4*)
23094 version_type=linux
23095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096 soname_spec='${libname}${release}${shared_ext}$major'
23097 shlibpath_var=LD_LIBRARY_PATH
23098 ;;
23099
23100*)
23101 dynamic_linker=no
23102 ;;
23103esac
23104echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23105echo "${ECHO_T}$dynamic_linker" >&6
23106test "$dynamic_linker" = no && can_build_shared=no
23107
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23109echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23110hardcode_action_GCJ=
23111if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23112 test -n "$runpath_var_GCJ" || \
23113 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23114
23115 # We can hardcode non-existant directories.
23116 if test "$hardcode_direct_GCJ" != no &&
23117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23118 # have to relink, otherwise we might link with an installed library
23119 # when we should be linking with a yet-to-be-installed one
23120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23121 test "$hardcode_minus_L_GCJ" != no; then
23122 # Linking always hardcodes the temporary library directory.
23123 hardcode_action_GCJ=relink
23124 else
23125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23126 hardcode_action_GCJ=immediate
23127 fi
23128else
23129 # We cannot hardcode anything, or else we can only hardcode existing
23130 # directories.
23131 hardcode_action_GCJ=unsupported
23132fi
23133echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23134echo "${ECHO_T}$hardcode_action_GCJ" >&6
23135
23136if test "$hardcode_action_GCJ" = relink; then
23137 # Fast installation is not supported
23138 enable_fast_install=no
23139elif test "$shlibpath_overrides_runpath" = yes ||
23140 test "$enable_shared" = no; then
23141 # Fast installation is not necessary
23142 enable_fast_install=needless
23143fi
23144
23145striplib=
23146old_striplib=
23147echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23148echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23149if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23152 echo "$as_me:$LINENO: result: yes" >&5
23153echo "${ECHO_T}yes" >&6
23154else
23155# FIXME - insert some real tests, host_os isn't really good enough
23156 case $host_os in
23157 darwin*)
23158 if test -n "$STRIP" ; then
23159 striplib="$STRIP -x"
23160 echo "$as_me:$LINENO: result: yes" >&5
23161echo "${ECHO_T}yes" >&6
23162 else
23163 echo "$as_me:$LINENO: result: no" >&5
23164echo "${ECHO_T}no" >&6
23165fi
23166 ;;
23167 *)
23168 echo "$as_me:$LINENO: result: no" >&5
23169echo "${ECHO_T}no" >&6
23170 ;;
23171 esac
23172fi
23173
John Criswell47fdd832003-07-14 16:52:07 +000023174if test "x$enable_dlopen" != xyes; then
23175 enable_dlopen=unknown
23176 enable_dlopen_self=unknown
23177 enable_dlopen_self_static=unknown
23178else
23179 lt_cv_dlopen=no
23180 lt_cv_dlopen_libs=
23181
23182 case $host_os in
23183 beos*)
23184 lt_cv_dlopen="load_add_on"
23185 lt_cv_dlopen_libs=
23186 lt_cv_dlopen_self=yes
23187 ;;
23188
23189 mingw* | pw32*)
23190 lt_cv_dlopen="LoadLibrary"
23191 lt_cv_dlopen_libs=
23192 ;;
23193
23194 cygwin*)
23195 lt_cv_dlopen="dlopen"
23196 lt_cv_dlopen_libs=
23197 ;;
23198
23199 darwin*)
23200 # if libdl is installed we need to link against it
23201 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23202echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23203if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23205else
23206 ac_check_lib_save_LIBS=$LIBS
23207LIBS="-ldl $LIBS"
23208cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023209/* confdefs.h. */
23210_ACEOF
23211cat confdefs.h >>conftest.$ac_ext
23212cat >>conftest.$ac_ext <<_ACEOF
23213/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023214
23215/* Override any gcc2 internal prototype to avoid an error. */
23216#ifdef __cplusplus
23217extern "C"
23218#endif
23219/* We use char because int might match the return type of a gcc2
23220 builtin and then its argument prototype would still apply. */
23221char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023222int
23223main ()
23224{
23225dlopen ();
23226 ;
23227 return 0;
23228}
23229_ACEOF
23230rm -f conftest.$ac_objext conftest$ac_exeext
23231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023232 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023234 grep -v '^ *+' conftest.er1 >conftest.err
23235 rm -f conftest.er1
23236 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023239 { ac_try='test -z "$ac_c_werror_flag"
23240 || test ! -s conftest.err'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23243 ac_status=$?
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; } &&
23246 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23249 ac_status=$?
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 ac_cv_lib_dl_dlopen=yes
23253else
23254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023255sed 's/^/| /' conftest.$ac_ext >&5
23256
John Criswell47fdd832003-07-14 16:52:07 +000023257ac_cv_lib_dl_dlopen=no
23258fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023259rm -f conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023261LIBS=$ac_check_lib_save_LIBS
23262fi
23263echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23264echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23265if test $ac_cv_lib_dl_dlopen = yes; then
23266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23267else
23268
23269 lt_cv_dlopen="dyld"
23270 lt_cv_dlopen_libs=
23271 lt_cv_dlopen_self=yes
23272
23273fi
23274
23275 ;;
23276
23277 *)
23278 echo "$as_me:$LINENO: checking for shl_load" >&5
23279echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23280if test "${ac_cv_func_shl_load+set}" = set; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23282else
23283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023284/* confdefs.h. */
23285_ACEOF
23286cat confdefs.h >>conftest.$ac_ext
23287cat >>conftest.$ac_ext <<_ACEOF
23288/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023289/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23291#define shl_load innocuous_shl_load
23292
John Criswell47fdd832003-07-14 16:52:07 +000023293/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023294 which can conflict with char shl_load (); below.
23295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23296 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023297
John Criswell0c38eaf2003-09-10 15:17:25 +000023298#ifdef __STDC__
23299# include <limits.h>
23300#else
23301# include <assert.h>
23302#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023303
23304#undef shl_load
23305
John Criswell47fdd832003-07-14 16:52:07 +000023306/* Override any gcc2 internal prototype to avoid an error. */
23307#ifdef __cplusplus
23308extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023309{
John Criswell47fdd832003-07-14 16:52:07 +000023310#endif
23311/* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23313char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023314/* The GNU C library defines this for functions which it implements
23315 to always fail with ENOSYS. Some functions are actually named
23316 something starting with __ and the normal name is an alias. */
23317#if defined (__stub_shl_load) || defined (__stub___shl_load)
23318choke me
23319#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023320char (*f) () = shl_load;
23321#endif
23322#ifdef __cplusplus
23323}
John Criswell47fdd832003-07-14 16:52:07 +000023324#endif
23325
John Criswell0c38eaf2003-09-10 15:17:25 +000023326int
23327main ()
23328{
23329return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023330 ;
23331 return 0;
23332}
23333_ACEOF
23334rm -f conftest.$ac_objext conftest$ac_exeext
23335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023336 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023338 grep -v '^ *+' conftest.er1 >conftest.err
23339 rm -f conftest.er1
23340 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023343 { ac_try='test -z "$ac_c_werror_flag"
23344 || test ! -s conftest.err'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23347 ac_status=$?
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356 ac_cv_func_shl_load=yes
23357else
23358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023359sed 's/^/| /' conftest.$ac_ext >&5
23360
John Criswell47fdd832003-07-14 16:52:07 +000023361ac_cv_func_shl_load=no
23362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023363rm -f conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023365fi
23366echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23367echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23368if test $ac_cv_func_shl_load = yes; then
23369 lt_cv_dlopen="shl_load"
23370else
23371 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23372echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23373if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375else
23376 ac_check_lib_save_LIBS=$LIBS
23377LIBS="-ldld $LIBS"
23378cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023379/* confdefs.h. */
23380_ACEOF
23381cat confdefs.h >>conftest.$ac_ext
23382cat >>conftest.$ac_ext <<_ACEOF
23383/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023384
23385/* Override any gcc2 internal prototype to avoid an error. */
23386#ifdef __cplusplus
23387extern "C"
23388#endif
23389/* We use char because int might match the return type of a gcc2
23390 builtin and then its argument prototype would still apply. */
23391char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023392int
23393main ()
23394{
23395shl_load ();
23396 ;
23397 return 0;
23398}
23399_ACEOF
23400rm -f conftest.$ac_objext conftest$ac_exeext
23401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023409 { ac_try='test -z "$ac_c_werror_flag"
23410 || test ! -s conftest.err'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; } &&
23416 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; }; then
23422 ac_cv_lib_dld_shl_load=yes
23423else
23424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023425sed 's/^/| /' conftest.$ac_ext >&5
23426
John Criswell47fdd832003-07-14 16:52:07 +000023427ac_cv_lib_dld_shl_load=no
23428fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023429rm -f conftest.err conftest.$ac_objext \
23430 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023431LIBS=$ac_check_lib_save_LIBS
23432fi
23433echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23434echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23435if test $ac_cv_lib_dld_shl_load = yes; then
23436 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23437else
23438 echo "$as_me:$LINENO: checking for dlopen" >&5
23439echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23440if test "${ac_cv_func_dlopen+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442else
23443 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023444/* confdefs.h. */
23445_ACEOF
23446cat confdefs.h >>conftest.$ac_ext
23447cat >>conftest.$ac_ext <<_ACEOF
23448/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023449/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23451#define dlopen innocuous_dlopen
23452
John Criswell47fdd832003-07-14 16:52:07 +000023453/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023454 which can conflict with char dlopen (); below.
23455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23456 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023457
John Criswell0c38eaf2003-09-10 15:17:25 +000023458#ifdef __STDC__
23459# include <limits.h>
23460#else
23461# include <assert.h>
23462#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023463
23464#undef dlopen
23465
John Criswell47fdd832003-07-14 16:52:07 +000023466/* Override any gcc2 internal prototype to avoid an error. */
23467#ifdef __cplusplus
23468extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023469{
John Criswell47fdd832003-07-14 16:52:07 +000023470#endif
23471/* We use char because int might match the return type of a gcc2
23472 builtin and then its argument prototype would still apply. */
23473char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023474/* The GNU C library defines this for functions which it implements
23475 to always fail with ENOSYS. Some functions are actually named
23476 something starting with __ and the normal name is an alias. */
23477#if defined (__stub_dlopen) || defined (__stub___dlopen)
23478choke me
23479#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023480char (*f) () = dlopen;
23481#endif
23482#ifdef __cplusplus
23483}
John Criswell47fdd832003-07-14 16:52:07 +000023484#endif
23485
John Criswell0c38eaf2003-09-10 15:17:25 +000023486int
23487main ()
23488{
23489return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023490 ;
23491 return 0;
23492}
23493_ACEOF
23494rm -f conftest.$ac_objext conftest$ac_exeext
23495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023496 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023497 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_cv_func_dlopen=yes
23517else
23518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023519sed 's/^/| /' conftest.$ac_ext >&5
23520
John Criswell47fdd832003-07-14 16:52:07 +000023521ac_cv_func_dlopen=no
23522fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023523rm -f conftest.err conftest.$ac_objext \
23524 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023525fi
23526echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23527echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23528if test $ac_cv_func_dlopen = yes; then
23529 lt_cv_dlopen="dlopen"
23530else
23531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23535else
23536 ac_check_lib_save_LIBS=$LIBS
23537LIBS="-ldl $LIBS"
23538cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023539/* confdefs.h. */
23540_ACEOF
23541cat confdefs.h >>conftest.$ac_ext
23542cat >>conftest.$ac_ext <<_ACEOF
23543/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023544
23545/* Override any gcc2 internal prototype to avoid an error. */
23546#ifdef __cplusplus
23547extern "C"
23548#endif
23549/* We use char because int might match the return type of a gcc2
23550 builtin and then its argument prototype would still apply. */
23551char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023552int
23553main ()
23554{
23555dlopen ();
23556 ;
23557 return 0;
23558}
23559_ACEOF
23560rm -f conftest.$ac_objext conftest$ac_exeext
23561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023562 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023564 grep -v '^ *+' conftest.er1 >conftest.err
23565 rm -f conftest.er1
23566 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023569 { ac_try='test -z "$ac_c_werror_flag"
23570 || test ! -s conftest.err'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; } &&
23576 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23579 ac_status=$?
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_cv_lib_dl_dlopen=yes
23583else
23584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023585sed 's/^/| /' conftest.$ac_ext >&5
23586
John Criswell47fdd832003-07-14 16:52:07 +000023587ac_cv_lib_dl_dlopen=no
23588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023589rm -f conftest.err conftest.$ac_objext \
23590 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023591LIBS=$ac_check_lib_save_LIBS
23592fi
23593echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23594echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23595if test $ac_cv_lib_dl_dlopen = yes; then
23596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23597else
23598 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23599echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23600if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23602else
23603 ac_check_lib_save_LIBS=$LIBS
23604LIBS="-lsvld $LIBS"
23605cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023606/* confdefs.h. */
23607_ACEOF
23608cat confdefs.h >>conftest.$ac_ext
23609cat >>conftest.$ac_ext <<_ACEOF
23610/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023611
23612/* Override any gcc2 internal prototype to avoid an error. */
23613#ifdef __cplusplus
23614extern "C"
23615#endif
23616/* We use char because int might match the return type of a gcc2
23617 builtin and then its argument prototype would still apply. */
23618char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023619int
23620main ()
23621{
23622dlopen ();
23623 ;
23624 return 0;
23625}
23626_ACEOF
23627rm -f conftest.$ac_objext conftest$ac_exeext
23628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023629 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023630 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023631 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1
23633 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023636 { ac_try='test -z "$ac_c_werror_flag"
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 ac_cv_lib_svld_dlopen=yes
23650else
23651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023652sed 's/^/| /' conftest.$ac_ext >&5
23653
John Criswell47fdd832003-07-14 16:52:07 +000023654ac_cv_lib_svld_dlopen=no
23655fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023656rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023658LIBS=$ac_check_lib_save_LIBS
23659fi
23660echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23661echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23662if test $ac_cv_lib_svld_dlopen = yes; then
23663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23664else
23665 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23666echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23667if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669else
23670 ac_check_lib_save_LIBS=$LIBS
23671LIBS="-ldld $LIBS"
23672cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023673/* confdefs.h. */
23674_ACEOF
23675cat confdefs.h >>conftest.$ac_ext
23676cat >>conftest.$ac_ext <<_ACEOF
23677/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023678
23679/* Override any gcc2 internal prototype to avoid an error. */
23680#ifdef __cplusplus
23681extern "C"
23682#endif
23683/* We use char because int might match the return type of a gcc2
23684 builtin and then its argument prototype would still apply. */
23685char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023686int
23687main ()
23688{
23689dld_link ();
23690 ;
23691 return 0;
23692}
23693_ACEOF
23694rm -f conftest.$ac_objext conftest$ac_exeext
23695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023696 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023698 grep -v '^ *+' conftest.er1 >conftest.err
23699 rm -f conftest.er1
23700 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023703 { ac_try='test -z "$ac_c_werror_flag"
23704 || test ! -s conftest.err'
23705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; } &&
23710 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23716 ac_cv_lib_dld_dld_link=yes
23717else
23718 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023719sed 's/^/| /' conftest.$ac_ext >&5
23720
John Criswell47fdd832003-07-14 16:52:07 +000023721ac_cv_lib_dld_dld_link=no
23722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023723rm -f conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023725LIBS=$ac_check_lib_save_LIBS
23726fi
23727echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23728echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23729if test $ac_cv_lib_dld_dld_link = yes; then
23730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23731fi
23732
23733
23734fi
23735
23736
23737fi
23738
23739
23740fi
23741
23742
23743fi
23744
23745
23746fi
23747
23748 ;;
23749 esac
23750
23751 if test "x$lt_cv_dlopen" != xno; then
23752 enable_dlopen=yes
23753 else
23754 enable_dlopen=no
23755 fi
23756
23757 case $lt_cv_dlopen in
23758 dlopen)
23759 save_CPPFLAGS="$CPPFLAGS"
23760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23761
23762 save_LDFLAGS="$LDFLAGS"
23763 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23764
23765 save_LIBS="$LIBS"
23766 LIBS="$lt_cv_dlopen_libs $LIBS"
23767
23768 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23769echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23770if test "${lt_cv_dlopen_self+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23772else
23773 if test "$cross_compiling" = yes; then :
23774 lt_cv_dlopen_self=cross
23775else
23776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23777 lt_status=$lt_dlunknown
23778 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +000023779#line 23779 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023780#include "confdefs.h"
23781
23782#if HAVE_DLFCN_H
23783#include <dlfcn.h>
23784#endif
23785
23786#include <stdio.h>
23787
23788#ifdef RTLD_GLOBAL
23789# define LT_DLGLOBAL RTLD_GLOBAL
23790#else
23791# ifdef DL_GLOBAL
23792# define LT_DLGLOBAL DL_GLOBAL
23793# else
23794# define LT_DLGLOBAL 0
23795# endif
23796#endif
23797
23798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23799 find out it does not work in some platform. */
23800#ifndef LT_DLLAZY_OR_NOW
23801# ifdef RTLD_LAZY
23802# define LT_DLLAZY_OR_NOW RTLD_LAZY
23803# else
23804# ifdef DL_LAZY
23805# define LT_DLLAZY_OR_NOW DL_LAZY
23806# else
23807# ifdef RTLD_NOW
23808# define LT_DLLAZY_OR_NOW RTLD_NOW
23809# else
23810# ifdef DL_NOW
23811# define LT_DLLAZY_OR_NOW DL_NOW
23812# else
23813# define LT_DLLAZY_OR_NOW 0
23814# endif
23815# endif
23816# endif
23817# endif
23818#endif
23819
23820#ifdef __cplusplus
23821extern "C" void exit (int);
23822#endif
23823
23824void fnord() { int i=42;}
23825int main ()
23826{
23827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23828 int status = $lt_dlunknown;
23829
23830 if (self)
23831 {
23832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23834 /* dlclose (self); */
23835 }
23836
23837 exit (status);
23838}
23839EOF
23840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841 (eval $ac_link) 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23845 (./conftest; exit; ) 2>/dev/null
23846 lt_status=$?
23847 case x$lt_status in
23848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23850 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23851 esac
23852 else :
23853 # compilation failed
23854 lt_cv_dlopen_self=no
23855 fi
23856fi
23857rm -fr conftest*
23858
23859
23860fi
23861echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23862echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23863
23864 if test "x$lt_cv_dlopen_self" = xyes; then
23865 LDFLAGS="$LDFLAGS $link_static_flag"
23866 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23867echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23868if test "${lt_cv_dlopen_self_static+set}" = set; then
23869 echo $ECHO_N "(cached) $ECHO_C" >&6
23870else
23871 if test "$cross_compiling" = yes; then :
23872 lt_cv_dlopen_self_static=cross
23873else
23874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23875 lt_status=$lt_dlunknown
23876 cat > conftest.$ac_ext <<EOF
Reid Spencerecbd2422006-06-02 23:13:18 +000023877#line 23877 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023878#include "confdefs.h"
23879
23880#if HAVE_DLFCN_H
23881#include <dlfcn.h>
23882#endif
23883
23884#include <stdio.h>
23885
23886#ifdef RTLD_GLOBAL
23887# define LT_DLGLOBAL RTLD_GLOBAL
23888#else
23889# ifdef DL_GLOBAL
23890# define LT_DLGLOBAL DL_GLOBAL
23891# else
23892# define LT_DLGLOBAL 0
23893# endif
23894#endif
23895
23896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23897 find out it does not work in some platform. */
23898#ifndef LT_DLLAZY_OR_NOW
23899# ifdef RTLD_LAZY
23900# define LT_DLLAZY_OR_NOW RTLD_LAZY
23901# else
23902# ifdef DL_LAZY
23903# define LT_DLLAZY_OR_NOW DL_LAZY
23904# else
23905# ifdef RTLD_NOW
23906# define LT_DLLAZY_OR_NOW RTLD_NOW
23907# else
23908# ifdef DL_NOW
23909# define LT_DLLAZY_OR_NOW DL_NOW
23910# else
23911# define LT_DLLAZY_OR_NOW 0
23912# endif
23913# endif
23914# endif
23915# endif
23916#endif
23917
23918#ifdef __cplusplus
23919extern "C" void exit (int);
23920#endif
23921
23922void fnord() { int i=42;}
23923int main ()
23924{
23925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23926 int status = $lt_dlunknown;
23927
23928 if (self)
23929 {
23930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23932 /* dlclose (self); */
23933 }
23934
23935 exit (status);
23936}
23937EOF
23938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939 (eval $ac_link) 2>&5
23940 ac_status=$?
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23943 (./conftest; exit; ) 2>/dev/null
23944 lt_status=$?
23945 case x$lt_status in
23946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23948 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23949 esac
23950 else :
23951 # compilation failed
23952 lt_cv_dlopen_self_static=no
23953 fi
23954fi
23955rm -fr conftest*
23956
23957
23958fi
23959echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23960echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23961 fi
23962
23963 CPPFLAGS="$save_CPPFLAGS"
23964 LDFLAGS="$save_LDFLAGS"
23965 LIBS="$save_LIBS"
23966 ;;
23967 esac
23968
23969 case $lt_cv_dlopen_self in
23970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23971 *) enable_dlopen_self=unknown ;;
23972 esac
23973
23974 case $lt_cv_dlopen_self_static in
23975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23976 *) enable_dlopen_self_static=unknown ;;
23977 esac
23978fi
23979
23980
23981# The else clause should only fire when bootstrapping the
23982# libtool distribution, otherwise you forgot to ship ltmain.sh
23983# with your package, and you will get complaints that there are
23984# no rules to generate ltmain.sh.
23985if test -f "$ltmain"; then
23986 # See if we are running on zsh, and set the options which allow our commands through
23987 # without removal of \ escapes.
23988 if test -n "${ZSH_VERSION+set}" ; then
23989 setopt NO_GLOB_SUBST
23990 fi
23991 # Now quote all the things that may contain metacharacters while being
23992 # careful not to overquote the AC_SUBSTed values. We take copies of the
23993 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23995 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23998 deplibs_check_method reload_flag reload_cmds need_locks \
23999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24000 lt_cv_sys_global_symbol_to_c_name_address \
24001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24002 old_postinstall_cmds old_postuninstall_cmds \
24003 compiler_GCJ \
24004 CC_GCJ \
24005 LD_GCJ \
24006 lt_prog_compiler_wl_GCJ \
24007 lt_prog_compiler_pic_GCJ \
24008 lt_prog_compiler_static_GCJ \
24009 lt_prog_compiler_no_builtin_flag_GCJ \
24010 export_dynamic_flag_spec_GCJ \
24011 thread_safe_flag_spec_GCJ \
24012 whole_archive_flag_spec_GCJ \
24013 enable_shared_with_static_runtimes_GCJ \
24014 old_archive_cmds_GCJ \
24015 old_archive_from_new_cmds_GCJ \
24016 predep_objects_GCJ \
24017 postdep_objects_GCJ \
24018 predeps_GCJ \
24019 postdeps_GCJ \
24020 compiler_lib_search_path_GCJ \
24021 archive_cmds_GCJ \
24022 archive_expsym_cmds_GCJ \
24023 postinstall_cmds_GCJ \
24024 postuninstall_cmds_GCJ \
24025 old_archive_from_expsyms_cmds_GCJ \
24026 allow_undefined_flag_GCJ \
24027 no_undefined_flag_GCJ \
24028 export_symbols_cmds_GCJ \
24029 hardcode_libdir_flag_spec_GCJ \
24030 hardcode_libdir_flag_spec_ld_GCJ \
24031 hardcode_libdir_separator_GCJ \
24032 hardcode_automatic_GCJ \
24033 module_cmds_GCJ \
24034 module_expsym_cmds_GCJ \
24035 lt_cv_prog_compiler_c_o_GCJ \
24036 exclude_expsyms_GCJ \
24037 include_expsyms_GCJ; do
24038
24039 case $var in
24040 old_archive_cmds_GCJ | \
24041 old_archive_from_new_cmds_GCJ | \
24042 archive_cmds_GCJ | \
24043 archive_expsym_cmds_GCJ | \
24044 module_cmds_GCJ | \
24045 module_expsym_cmds_GCJ | \
24046 old_archive_from_expsyms_cmds_GCJ | \
24047 export_symbols_cmds_GCJ | \
24048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24049 postinstall_cmds | postuninstall_cmds | \
24050 old_postinstall_cmds | old_postuninstall_cmds | \
24051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24052 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024053 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 +000024054 ;;
24055 *)
24056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24057 ;;
24058 esac
24059 done
24060
24061 case $lt_echo in
24062 *'\$0 --fallback-echo"')
24063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24064 ;;
24065 esac
24066
24067cfgfile="$ofile"
24068
24069 cat <<__EOF__ >> "$cfgfile"
24070# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24071
24072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24073
24074# Shell to use when invoking shell scripts.
24075SHELL=$lt_SHELL
24076
24077# Whether or not to build shared libraries.
24078build_libtool_libs=$enable_shared
24079
24080# Whether or not to build static libraries.
24081build_old_libs=$enable_static
24082
24083# Whether or not to add -lc for building shared libraries.
24084build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24085
24086# Whether or not to disallow shared libs when runtime libs are static
24087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24088
24089# Whether or not to optimize for fast installation.
24090fast_install=$enable_fast_install
24091
24092# The host system.
24093host_alias=$host_alias
24094host=$host
24095
24096# An echo program that does not interpret backslashes.
24097echo=$lt_echo
24098
24099# The archiver.
24100AR=$lt_AR
24101AR_FLAGS=$lt_AR_FLAGS
24102
24103# A C compiler.
24104LTCC=$lt_LTCC
24105
24106# A language-specific compiler.
24107CC=$lt_compiler_GCJ
24108
24109# Is the compiler the GNU C compiler?
24110with_gcc=$GCC_GCJ
24111
24112# An ERE matcher.
24113EGREP=$lt_EGREP
24114
24115# The linker used to build libraries.
24116LD=$lt_LD_GCJ
24117
24118# Whether we need hard or soft links.
24119LN_S=$lt_LN_S
24120
24121# A BSD-compatible nm program.
24122NM=$lt_NM
24123
24124# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024125STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024126
24127# Used to examine libraries when file_magic_cmd begins "file"
24128MAGIC_CMD=$MAGIC_CMD
24129
24130# Used on cygwin: DLL creation program.
24131DLLTOOL="$DLLTOOL"
24132
24133# Used on cygwin: object dumper.
24134OBJDUMP="$OBJDUMP"
24135
24136# Used on cygwin: assembler.
24137AS="$AS"
24138
24139# The name of the directory that contains temporary libtool files.
24140objdir=$objdir
24141
24142# How to create reloadable object files.
24143reload_flag=$lt_reload_flag
24144reload_cmds=$lt_reload_cmds
24145
24146# How to pass a linker flag through the compiler.
24147wl=$lt_lt_prog_compiler_wl_GCJ
24148
24149# Object file suffix (normally "o").
24150objext="$ac_objext"
24151
24152# Old archive suffix (normally "a").
24153libext="$libext"
24154
24155# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024156shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024157
24158# Executable file suffix (normally "").
24159exeext="$exeext"
24160
24161# Additional compiler flags for building library objects.
24162pic_flag=$lt_lt_prog_compiler_pic_GCJ
24163pic_mode=$pic_mode
24164
24165# What is the maximum length of a command?
24166max_cmd_len=$lt_cv_sys_max_cmd_len
24167
24168# Does compiler simultaneously support -c and -o options?
24169compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24170
24171# Must we lock files when doing compilation ?
24172need_locks=$lt_need_locks
24173
24174# Do we need the lib prefix for modules?
24175need_lib_prefix=$need_lib_prefix
24176
24177# Do we need a version for libraries?
24178need_version=$need_version
24179
24180# Whether dlopen is supported.
24181dlopen_support=$enable_dlopen
24182
24183# Whether dlopen of programs is supported.
24184dlopen_self=$enable_dlopen_self
24185
24186# Whether dlopen of statically linked programs is supported.
24187dlopen_self_static=$enable_dlopen_self_static
24188
24189# Compiler flag to prevent dynamic linking.
24190link_static_flag=$lt_lt_prog_compiler_static_GCJ
24191
24192# Compiler flag to turn off builtin functions.
24193no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24194
24195# Compiler flag to allow reflexive dlopens.
24196export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24197
24198# Compiler flag to generate shared objects directly from archives.
24199whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24200
24201# Compiler flag to generate thread-safe objects.
24202thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24203
24204# Library versioning type.
24205version_type=$version_type
24206
24207# Format of library name prefix.
24208libname_spec=$lt_libname_spec
24209
24210# List of archive names. First name is the real one, the rest are links.
24211# The last name is the one that the linker finds with -lNAME.
24212library_names_spec=$lt_library_names_spec
24213
24214# The coded name of the library, if different from the real name.
24215soname_spec=$lt_soname_spec
24216
24217# Commands used to build and install an old-style archive.
24218RANLIB=$lt_RANLIB
24219old_archive_cmds=$lt_old_archive_cmds_GCJ
24220old_postinstall_cmds=$lt_old_postinstall_cmds
24221old_postuninstall_cmds=$lt_old_postuninstall_cmds
24222
24223# Create an old-style archive from a shared archive.
24224old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24225
24226# Create a temporary old-style archive to link instead of a shared archive.
24227old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24228
24229# Commands used to build and install a shared archive.
24230archive_cmds=$lt_archive_cmds_GCJ
24231archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24232postinstall_cmds=$lt_postinstall_cmds
24233postuninstall_cmds=$lt_postuninstall_cmds
24234
24235# Commands used to build a loadable module (assumed same as above if empty)
24236module_cmds=$lt_module_cmds_GCJ
24237module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24238
24239# Commands to strip libraries.
24240old_striplib=$lt_old_striplib
24241striplib=$lt_striplib
24242
24243# Dependencies to place before the objects being linked to create a
24244# shared library.
24245predep_objects=$lt_predep_objects_GCJ
24246
24247# Dependencies to place after the objects being linked to create a
24248# shared library.
24249postdep_objects=$lt_postdep_objects_GCJ
24250
24251# Dependencies to place before the objects being linked to create a
24252# shared library.
24253predeps=$lt_predeps_GCJ
24254
24255# Dependencies to place after the objects being linked to create a
24256# shared library.
24257postdeps=$lt_postdeps_GCJ
24258
24259# The library search path used internally by the compiler when linking
24260# a shared library.
24261compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24262
24263# Method to check whether dependent libraries are shared objects.
24264deplibs_check_method=$lt_deplibs_check_method
24265
24266# Command to use when deplibs_check_method == file_magic.
24267file_magic_cmd=$lt_file_magic_cmd
24268
24269# Flag that allows shared libraries with undefined symbols to be built.
24270allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24271
24272# Flag that forces no undefined symbols.
24273no_undefined_flag=$lt_no_undefined_flag_GCJ
24274
24275# Commands used to finish a libtool library installation in a directory.
24276finish_cmds=$lt_finish_cmds
24277
24278# Same as above, but a single script fragment to be evaled but not shown.
24279finish_eval=$lt_finish_eval
24280
24281# Take the output of nm and produce a listing of raw symbols and C names.
24282global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24283
24284# Transform the output of nm in a proper C declaration
24285global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24286
24287# Transform the output of nm in a C name address pair
24288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24289
24290# This is the shared library runtime path variable.
24291runpath_var=$runpath_var
24292
24293# This is the shared library path variable.
24294shlibpath_var=$shlibpath_var
24295
24296# Is shlibpath searched before the hard-coded library search path?
24297shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24298
24299# How to hardcode a shared library path into an executable.
24300hardcode_action=$hardcode_action_GCJ
24301
24302# Whether we should hardcode library paths into libraries.
24303hardcode_into_libs=$hardcode_into_libs
24304
24305# Flag to hardcode \$libdir into a binary during linking.
24306# This must work even if \$libdir does not exist.
24307hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24308
24309# If ld is used when linking, flag to hardcode \$libdir into
24310# a binary during linking. This must work even if \$libdir does
24311# not exist.
24312hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24313
24314# Whether we need a single -rpath flag with a separated argument.
24315hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24316
24317# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24318# resulting binary.
24319hardcode_direct=$hardcode_direct_GCJ
24320
24321# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24322# resulting binary.
24323hardcode_minus_L=$hardcode_minus_L_GCJ
24324
24325# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24326# the resulting binary.
24327hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24328
24329# Set to yes if building a shared library automatically hardcodes DIR into the library
24330# and all subsequent libraries and executables linked against it.
24331hardcode_automatic=$hardcode_automatic_GCJ
24332
24333# Variables whose values should be saved in libtool wrapper scripts and
24334# restored at relink time.
24335variables_saved_for_relink="$variables_saved_for_relink"
24336
24337# Whether libtool must link a program against all its dependency libraries.
24338link_all_deplibs=$link_all_deplibs_GCJ
24339
24340# Compile-time system search path for libraries
24341sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24342
24343# Run-time system search path for libraries
24344sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24345
24346# Fix the shell variable \$srcfile for the compiler.
24347fix_srcfile_path="$fix_srcfile_path_GCJ"
24348
24349# Set to yes if exported symbols are required.
24350always_export_symbols=$always_export_symbols_GCJ
24351
24352# The commands to list exported symbols.
24353export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24354
24355# The commands to extract the exported symbol list from a shared archive.
24356extract_expsyms_cmds=$lt_extract_expsyms_cmds
24357
24358# Symbols that should not be listed in the preloaded symbols.
24359exclude_expsyms=$lt_exclude_expsyms_GCJ
24360
24361# Symbols that must always be exported.
24362include_expsyms=$lt_include_expsyms_GCJ
24363
24364# ### END LIBTOOL TAG CONFIG: $tagname
24365
24366__EOF__
24367
24368
24369else
24370 # If there is no Makefile yet, we rely on a make rule to execute
24371 # `config.status --recheck' to rerun these tests and create the
24372 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24374 if test -f "$ltmain_in"; then
24375 test -f Makefile && make "$ltmain"
24376 fi
John Criswell47fdd832003-07-14 16:52:07 +000024377fi
24378
24379
24380ac_ext=c
24381ac_cpp='$CPP $CPPFLAGS'
24382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384ac_compiler_gnu=$ac_cv_c_compiler_gnu
24385
24386CC="$lt_save_CC"
24387
24388 else
24389 tagname=""
24390 fi
24391 ;;
24392
24393 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024394 ac_ext=c
24395ac_cpp='$CPP $CPPFLAGS'
24396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24398ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024399
24400
24401# Source file extension for RC test sources.
24402ac_ext=rc
24403
24404# Object file extension for compiled RC test sources.
24405objext=o
24406objext_RC=$objext
24407
24408# Code to be used in simple compile tests
24409lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24410
24411# Code to be used in simple link tests
24412lt_simple_link_test_code="$lt_simple_compile_test_code"
24413
24414# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24415
24416# If no C compiler was specified, use CC.
24417LTCC=${LTCC-"$CC"}
24418
24419# Allow CC to be a program name with arguments.
24420compiler=$CC
24421
24422
24423# Allow CC to be a program name with arguments.
24424lt_save_CC="$CC"
24425CC=${RC-"windres"}
24426compiler=$CC
24427compiler_RC=$CC
24428lt_cv_prog_compiler_c_o_RC=yes
24429
24430# The else clause should only fire when bootstrapping the
24431# libtool distribution, otherwise you forgot to ship ltmain.sh
24432# with your package, and you will get complaints that there are
24433# no rules to generate ltmain.sh.
24434if test -f "$ltmain"; then
24435 # See if we are running on zsh, and set the options which allow our commands through
24436 # without removal of \ escapes.
24437 if test -n "${ZSH_VERSION+set}" ; then
24438 setopt NO_GLOB_SUBST
24439 fi
24440 # Now quote all the things that may contain metacharacters while being
24441 # careful not to overquote the AC_SUBSTed values. We take copies of the
24442 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024443 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24444 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024445 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24446 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24447 deplibs_check_method reload_flag reload_cmds need_locks \
24448 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24449 lt_cv_sys_global_symbol_to_c_name_address \
24450 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24451 old_postinstall_cmds old_postuninstall_cmds \
24452 compiler_RC \
24453 CC_RC \
24454 LD_RC \
24455 lt_prog_compiler_wl_RC \
24456 lt_prog_compiler_pic_RC \
24457 lt_prog_compiler_static_RC \
24458 lt_prog_compiler_no_builtin_flag_RC \
24459 export_dynamic_flag_spec_RC \
24460 thread_safe_flag_spec_RC \
24461 whole_archive_flag_spec_RC \
24462 enable_shared_with_static_runtimes_RC \
24463 old_archive_cmds_RC \
24464 old_archive_from_new_cmds_RC \
24465 predep_objects_RC \
24466 postdep_objects_RC \
24467 predeps_RC \
24468 postdeps_RC \
24469 compiler_lib_search_path_RC \
24470 archive_cmds_RC \
24471 archive_expsym_cmds_RC \
24472 postinstall_cmds_RC \
24473 postuninstall_cmds_RC \
24474 old_archive_from_expsyms_cmds_RC \
24475 allow_undefined_flag_RC \
24476 no_undefined_flag_RC \
24477 export_symbols_cmds_RC \
24478 hardcode_libdir_flag_spec_RC \
24479 hardcode_libdir_flag_spec_ld_RC \
24480 hardcode_libdir_separator_RC \
24481 hardcode_automatic_RC \
24482 module_cmds_RC \
24483 module_expsym_cmds_RC \
24484 lt_cv_prog_compiler_c_o_RC \
24485 exclude_expsyms_RC \
24486 include_expsyms_RC; do
24487
24488 case $var in
24489 old_archive_cmds_RC | \
24490 old_archive_from_new_cmds_RC | \
24491 archive_cmds_RC | \
24492 archive_expsym_cmds_RC | \
24493 module_cmds_RC | \
24494 module_expsym_cmds_RC | \
24495 old_archive_from_expsyms_cmds_RC | \
24496 export_symbols_cmds_RC | \
24497 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24498 postinstall_cmds | postuninstall_cmds | \
24499 old_postinstall_cmds | old_postuninstall_cmds | \
24500 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24501 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024502 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 +000024503 ;;
24504 *)
24505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24506 ;;
24507 esac
24508 done
24509
24510 case $lt_echo in
24511 *'\$0 --fallback-echo"')
24512 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24513 ;;
24514 esac
24515
24516cfgfile="$ofile"
24517
24518 cat <<__EOF__ >> "$cfgfile"
24519# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24520
24521# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24522
24523# Shell to use when invoking shell scripts.
24524SHELL=$lt_SHELL
24525
24526# Whether or not to build shared libraries.
24527build_libtool_libs=$enable_shared
24528
24529# Whether or not to build static libraries.
24530build_old_libs=$enable_static
24531
24532# Whether or not to add -lc for building shared libraries.
24533build_libtool_need_lc=$archive_cmds_need_lc_RC
24534
24535# Whether or not to disallow shared libs when runtime libs are static
24536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24537
24538# Whether or not to optimize for fast installation.
24539fast_install=$enable_fast_install
24540
24541# The host system.
24542host_alias=$host_alias
24543host=$host
24544
24545# An echo program that does not interpret backslashes.
24546echo=$lt_echo
24547
24548# The archiver.
24549AR=$lt_AR
24550AR_FLAGS=$lt_AR_FLAGS
24551
24552# A C compiler.
24553LTCC=$lt_LTCC
24554
24555# A language-specific compiler.
24556CC=$lt_compiler_RC
24557
24558# Is the compiler the GNU C compiler?
24559with_gcc=$GCC_RC
24560
24561# An ERE matcher.
24562EGREP=$lt_EGREP
24563
24564# The linker used to build libraries.
24565LD=$lt_LD_RC
24566
24567# Whether we need hard or soft links.
24568LN_S=$lt_LN_S
24569
24570# A BSD-compatible nm program.
24571NM=$lt_NM
24572
24573# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024574STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024575
24576# Used to examine libraries when file_magic_cmd begins "file"
24577MAGIC_CMD=$MAGIC_CMD
24578
24579# Used on cygwin: DLL creation program.
24580DLLTOOL="$DLLTOOL"
24581
24582# Used on cygwin: object dumper.
24583OBJDUMP="$OBJDUMP"
24584
24585# Used on cygwin: assembler.
24586AS="$AS"
24587
24588# The name of the directory that contains temporary libtool files.
24589objdir=$objdir
24590
24591# How to create reloadable object files.
24592reload_flag=$lt_reload_flag
24593reload_cmds=$lt_reload_cmds
24594
24595# How to pass a linker flag through the compiler.
24596wl=$lt_lt_prog_compiler_wl_RC
24597
24598# Object file suffix (normally "o").
24599objext="$ac_objext"
24600
24601# Old archive suffix (normally "a").
24602libext="$libext"
24603
24604# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024605shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024606
24607# Executable file suffix (normally "").
24608exeext="$exeext"
24609
24610# Additional compiler flags for building library objects.
24611pic_flag=$lt_lt_prog_compiler_pic_RC
24612pic_mode=$pic_mode
24613
24614# What is the maximum length of a command?
24615max_cmd_len=$lt_cv_sys_max_cmd_len
24616
24617# Does compiler simultaneously support -c and -o options?
24618compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24619
24620# Must we lock files when doing compilation ?
24621need_locks=$lt_need_locks
24622
24623# Do we need the lib prefix for modules?
24624need_lib_prefix=$need_lib_prefix
24625
24626# Do we need a version for libraries?
24627need_version=$need_version
24628
24629# Whether dlopen is supported.
24630dlopen_support=$enable_dlopen
24631
24632# Whether dlopen of programs is supported.
24633dlopen_self=$enable_dlopen_self
24634
24635# Whether dlopen of statically linked programs is supported.
24636dlopen_self_static=$enable_dlopen_self_static
24637
24638# Compiler flag to prevent dynamic linking.
24639link_static_flag=$lt_lt_prog_compiler_static_RC
24640
24641# Compiler flag to turn off builtin functions.
24642no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24643
24644# Compiler flag to allow reflexive dlopens.
24645export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24646
24647# Compiler flag to generate shared objects directly from archives.
24648whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24649
24650# Compiler flag to generate thread-safe objects.
24651thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24652
24653# Library versioning type.
24654version_type=$version_type
24655
24656# Format of library name prefix.
24657libname_spec=$lt_libname_spec
24658
24659# List of archive names. First name is the real one, the rest are links.
24660# The last name is the one that the linker finds with -lNAME.
24661library_names_spec=$lt_library_names_spec
24662
24663# The coded name of the library, if different from the real name.
24664soname_spec=$lt_soname_spec
24665
24666# Commands used to build and install an old-style archive.
24667RANLIB=$lt_RANLIB
24668old_archive_cmds=$lt_old_archive_cmds_RC
24669old_postinstall_cmds=$lt_old_postinstall_cmds
24670old_postuninstall_cmds=$lt_old_postuninstall_cmds
24671
24672# Create an old-style archive from a shared archive.
24673old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24674
24675# Create a temporary old-style archive to link instead of a shared archive.
24676old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24677
24678# Commands used to build and install a shared archive.
24679archive_cmds=$lt_archive_cmds_RC
24680archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24681postinstall_cmds=$lt_postinstall_cmds
24682postuninstall_cmds=$lt_postuninstall_cmds
24683
24684# Commands used to build a loadable module (assumed same as above if empty)
24685module_cmds=$lt_module_cmds_RC
24686module_expsym_cmds=$lt_module_expsym_cmds_RC
24687
24688# Commands to strip libraries.
24689old_striplib=$lt_old_striplib
24690striplib=$lt_striplib
24691
24692# Dependencies to place before the objects being linked to create a
24693# shared library.
24694predep_objects=$lt_predep_objects_RC
24695
24696# Dependencies to place after the objects being linked to create a
24697# shared library.
24698postdep_objects=$lt_postdep_objects_RC
24699
24700# Dependencies to place before the objects being linked to create a
24701# shared library.
24702predeps=$lt_predeps_RC
24703
24704# Dependencies to place after the objects being linked to create a
24705# shared library.
24706postdeps=$lt_postdeps_RC
24707
24708# The library search path used internally by the compiler when linking
24709# a shared library.
24710compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24711
24712# Method to check whether dependent libraries are shared objects.
24713deplibs_check_method=$lt_deplibs_check_method
24714
24715# Command to use when deplibs_check_method == file_magic.
24716file_magic_cmd=$lt_file_magic_cmd
24717
24718# Flag that allows shared libraries with undefined symbols to be built.
24719allow_undefined_flag=$lt_allow_undefined_flag_RC
24720
24721# Flag that forces no undefined symbols.
24722no_undefined_flag=$lt_no_undefined_flag_RC
24723
24724# Commands used to finish a libtool library installation in a directory.
24725finish_cmds=$lt_finish_cmds
24726
24727# Same as above, but a single script fragment to be evaled but not shown.
24728finish_eval=$lt_finish_eval
24729
24730# Take the output of nm and produce a listing of raw symbols and C names.
24731global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24732
24733# Transform the output of nm in a proper C declaration
24734global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24735
24736# Transform the output of nm in a C name address pair
24737global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24738
24739# This is the shared library runtime path variable.
24740runpath_var=$runpath_var
24741
24742# This is the shared library path variable.
24743shlibpath_var=$shlibpath_var
24744
24745# Is shlibpath searched before the hard-coded library search path?
24746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24747
24748# How to hardcode a shared library path into an executable.
24749hardcode_action=$hardcode_action_RC
24750
24751# Whether we should hardcode library paths into libraries.
24752hardcode_into_libs=$hardcode_into_libs
24753
24754# Flag to hardcode \$libdir into a binary during linking.
24755# This must work even if \$libdir does not exist.
24756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24757
24758# If ld is used when linking, flag to hardcode \$libdir into
24759# a binary during linking. This must work even if \$libdir does
24760# not exist.
24761hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24762
24763# Whether we need a single -rpath flag with a separated argument.
24764hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24765
24766# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24767# resulting binary.
24768hardcode_direct=$hardcode_direct_RC
24769
24770# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24771# resulting binary.
24772hardcode_minus_L=$hardcode_minus_L_RC
24773
24774# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24775# the resulting binary.
24776hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24777
24778# Set to yes if building a shared library automatically hardcodes DIR into the library
24779# and all subsequent libraries and executables linked against it.
24780hardcode_automatic=$hardcode_automatic_RC
24781
24782# Variables whose values should be saved in libtool wrapper scripts and
24783# restored at relink time.
24784variables_saved_for_relink="$variables_saved_for_relink"
24785
24786# Whether libtool must link a program against all its dependency libraries.
24787link_all_deplibs=$link_all_deplibs_RC
24788
24789# Compile-time system search path for libraries
24790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24791
24792# Run-time system search path for libraries
24793sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24794
24795# Fix the shell variable \$srcfile for the compiler.
24796fix_srcfile_path="$fix_srcfile_path_RC"
24797
24798# Set to yes if exported symbols are required.
24799always_export_symbols=$always_export_symbols_RC
24800
24801# The commands to list exported symbols.
24802export_symbols_cmds=$lt_export_symbols_cmds_RC
24803
24804# The commands to extract the exported symbol list from a shared archive.
24805extract_expsyms_cmds=$lt_extract_expsyms_cmds
24806
24807# Symbols that should not be listed in the preloaded symbols.
24808exclude_expsyms=$lt_exclude_expsyms_RC
24809
24810# Symbols that must always be exported.
24811include_expsyms=$lt_include_expsyms_RC
24812
24813# ### END LIBTOOL TAG CONFIG: $tagname
24814
24815__EOF__
24816
24817
24818else
24819 # If there is no Makefile yet, we rely on a make rule to execute
24820 # `config.status --recheck' to rerun these tests and create the
24821 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024822 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24823 if test -f "$ltmain_in"; then
24824 test -f Makefile && make "$ltmain"
24825 fi
John Criswell47fdd832003-07-14 16:52:07 +000024826fi
24827
24828
24829ac_ext=c
24830ac_cpp='$CPP $CPPFLAGS'
24831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24833ac_compiler_gnu=$ac_cv_c_compiler_gnu
24834
24835CC="$lt_save_CC"
24836
24837 ;;
24838
24839 *)
24840 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24841echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24842 { (exit 1); exit 1; }; }
24843 ;;
24844 esac
24845
24846 # Append the new tag name to the list of available tags.
24847 if test -n "$tagname" ; then
24848 available_tags="$available_tags $tagname"
24849 fi
24850 fi
24851 done
24852 IFS="$lt_save_ifs"
24853
24854 # Now substitute the updated list of available tags.
24855 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24856 mv "${ofile}T" "$ofile"
24857 chmod +x "$ofile"
24858 else
24859 rm -f "${ofile}T"
24860 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24861echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24862 { (exit 1); exit 1; }; }
24863 fi
24864fi
John Criswell7a73b802003-06-30 21:59:07 +000024865
24866
24867
24868# This can be used to rebuild libtool when needed
24869LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24870
24871# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024872LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024873
24874# Prevent multiple expansion
24875
24876
24877
John Criswell47fdd832003-07-14 16:52:07 +000024878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024895
Reid Spencer582a23c2004-12-29 07:07:57 +000024896if test "$lt_cv_dlopen_self" = "yes" ; then
24897
24898cat >>confdefs.h <<\_ACEOF
24899#define CAN_DLOPEN_SELF 1
24900_ACEOF
24901
24902fi
24903
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024904etags_version=`$ETAGS --version 2>&1`
24905case "$etags_version" in
24906 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24907 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24908 *) ETAGSFLAGS="" ;;
24909esac
24910ETAGSFLAGS=$ETAGSFLAGS
24911
24912
Reid Spencer7931a782004-12-27 06:15:02 +000024913if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024914 LLVMGCC="llvm-gcc${EXEEXT}"
24915 LLVMGXX="llvm-g++${EXEEXT}"
24916 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24917set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024918echo "$as_me:$LINENO: checking for $ac_word" >&5
24919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24920if test "${ac_cv_path_LLVMGCC+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24922else
24923 case $LLVMGCC in
24924 [\\/]* | ?:[\\/]*)
24925 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24926 ;;
24927 *)
24928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24929for as_dir in $PATH
24930do
24931 IFS=$as_save_IFS
24932 test -z "$as_dir" && as_dir=.
24933 for ac_exec_ext in '' $ac_executable_extensions; do
24934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24935 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24937 break 2
24938 fi
24939done
24940done
24941
Reid Spencer59473af2004-12-25 07:31:29 +000024942 ;;
24943esac
24944fi
24945LLVMGCC=$ac_cv_path_LLVMGCC
24946
24947if test -n "$LLVMGCC"; then
24948 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24949echo "${ECHO_T}$LLVMGCC" >&6
24950else
24951 echo "$as_me:$LINENO: result: no" >&5
24952echo "${ECHO_T}no" >&6
24953fi
24954
Reid Spencerc84492c2005-06-02 22:34:49 +000024955 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24956set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024957echo "$as_me:$LINENO: checking for $ac_word" >&5
24958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24959if test "${ac_cv_path_LLVMGXX+set}" = set; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24961else
24962 case $LLVMGXX in
24963 [\\/]* | ?:[\\/]*)
24964 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24965 ;;
24966 *)
24967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24968for as_dir in $PATH
24969do
24970 IFS=$as_save_IFS
24971 test -z "$as_dir" && as_dir=.
24972 for ac_exec_ext in '' $ac_executable_extensions; do
24973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24974 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24976 break 2
24977 fi
24978done
24979done
24980
Reid Spencer59473af2004-12-25 07:31:29 +000024981 ;;
24982esac
24983fi
24984LLVMGXX=$ac_cv_path_LLVMGXX
24985
24986if test -n "$LLVMGXX"; then
24987 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24988echo "${ECHO_T}$LLVMGXX" >&6
24989else
24990 echo "$as_me:$LINENO: result: no" >&5
24991echo "${ECHO_T}no" >&6
24992fi
24993
24994else
Reid Spencerc84492c2005-06-02 22:34:49 +000024995 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24996 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024997 LLVMGCC=$LLVMGCC
24998
24999 LLVMGXX=$LLVMGXX
25000
25001fi
25002
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025003echo "$as_me:$LINENO: checking tool compatibility" >&5
25004echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25005
Reid Spencer86901802004-12-08 23:07:27 +000025006ICC=no
25007IXX=no
25008case $CC in
25009 icc*|icpc*)
25010 ICC=yes
25011 IXX=yes
25012 ;;
25013 *)
25014 ;;
25015esac
25016
Duraid Madina937c60a2006-02-15 07:57:42 +000025017if test "$GCC" != "yes" && test "$ICC" != "yes"
25018then
25019 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25020echo "$as_me: error: gcc|icc required but not found" >&2;}
25021 { (exit 1); exit 1; }; }
25022fi
25023
25024if test "$GXX" != "yes" && test "$IXX" != "yes"
25025then
25026 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25027echo "$as_me: error: g++|icc required but not found" >&2;}
25028 { (exit 1); exit 1; }; }
25029fi
25030
Reid Spencer86901802004-12-08 23:07:27 +000025031if test "$GCC" = "yes"
25032then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000025033 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000025034 if test "$gccmajor" -lt "3"
25035 then
25036 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025037echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25038 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000025039 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025040fi
25041
25042if test -z "$llvm_cv_gnu_make_command"
25043then
25044 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25045echo "$as_me: error: GNU Make required but not found" >&2;}
25046 { (exit 1); exit 1; }; }
25047fi
25048
25049echo "$as_me:$LINENO: result: ok" >&5
25050echo "${ECHO_T}ok" >&6
25051
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025052
John Criswell7a73b802003-06-30 21:59:07 +000025053
John Criswell7a73b802003-06-30 21:59:07 +000025054echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25055echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25056if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25058else
25059 ac_check_lib_save_LIBS=$LIBS
25060LIBS="-lelf $LIBS"
25061cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025062/* confdefs.h. */
25063_ACEOF
25064cat confdefs.h >>conftest.$ac_ext
25065cat >>conftest.$ac_ext <<_ACEOF
25066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025067
25068/* Override any gcc2 internal prototype to avoid an error. */
25069#ifdef __cplusplus
25070extern "C"
25071#endif
25072/* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
25074char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000025075int
25076main ()
25077{
25078elf_begin ();
25079 ;
25080 return 0;
25081}
25082_ACEOF
25083rm -f conftest.$ac_objext conftest$ac_exeext
25084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025085 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025092 { ac_try='test -z "$ac_c_werror_flag"
25093 || test ! -s conftest.err'
25094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 (eval $ac_try) 2>&5
25096 ac_status=$?
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; } &&
25099 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; }; then
25105 ac_cv_lib_elf_elf_begin=yes
25106else
25107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025108sed 's/^/| /' conftest.$ac_ext >&5
25109
John Criswell7a73b802003-06-30 21:59:07 +000025110ac_cv_lib_elf_elf_begin=no
25111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025112rm -f conftest.err conftest.$ac_objext \
25113 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025114LIBS=$ac_check_lib_save_LIBS
25115fi
25116echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25117echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25118if test $ac_cv_lib_elf_elf_begin = yes; then
25119 cat >>confdefs.h <<_ACEOF
25120#define HAVE_LIBELF 1
25121_ACEOF
25122
25123 LIBS="-lelf $LIBS"
25124
25125fi
25126
25127
Reid Spencer3484a992006-01-19 08:31:08 +000025128echo "$as_me:$LINENO: checking for sin in -lm" >&5
25129echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25130if test "${ac_cv_lib_m_sin+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25132else
25133 ac_check_lib_save_LIBS=$LIBS
25134LIBS="-lm $LIBS"
25135cat >conftest.$ac_ext <<_ACEOF
25136/* confdefs.h. */
25137_ACEOF
25138cat confdefs.h >>conftest.$ac_ext
25139cat >>conftest.$ac_ext <<_ACEOF
25140/* end confdefs.h. */
25141
25142/* Override any gcc2 internal prototype to avoid an error. */
25143#ifdef __cplusplus
25144extern "C"
25145#endif
25146/* We use char because int might match the return type of a gcc2
25147 builtin and then its argument prototype would still apply. */
25148char sin ();
25149int
25150main ()
25151{
25152sin ();
25153 ;
25154 return 0;
25155}
25156_ACEOF
25157rm -f conftest.$ac_objext conftest$ac_exeext
25158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25159 (eval $ac_link) 2>conftest.er1
25160 ac_status=$?
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } &&
25166 { ac_try='test -z "$ac_c_werror_flag"
25167 || test ! -s conftest.err'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_lib_m_sin=yes
25180else
25181 echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184ac_cv_lib_m_sin=no
25185fi
25186rm -f conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
25188LIBS=$ac_check_lib_save_LIBS
25189fi
25190echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25191echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25192if test $ac_cv_lib_m_sin = yes; then
25193 cat >>confdefs.h <<_ACEOF
25194#define HAVE_LIBM 1
25195_ACEOF
25196
25197 LIBS="-lm $LIBS"
25198
25199fi
25200
Reid Spencer484fc8e2006-06-01 16:55:59 +000025201if test "$llvm_cv_os_type" == "MingW" ; then
25202
Reid Spencer48fdf912006-06-01 19:03:21 +000025203echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25204echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25205if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025206 echo $ECHO_N "(cached) $ECHO_C" >&6
25207else
25208 ac_check_lib_save_LIBS=$LIBS
25209LIBS="-limagehlp $LIBS"
25210cat >conftest.$ac_ext <<_ACEOF
25211/* confdefs.h. */
25212_ACEOF
25213cat confdefs.h >>conftest.$ac_ext
25214cat >>conftest.$ac_ext <<_ACEOF
25215/* end confdefs.h. */
25216
Reid Spencer48fdf912006-06-01 19:03:21 +000025217
Reid Spencer484fc8e2006-06-01 16:55:59 +000025218int
25219main ()
25220{
Reid Spencer48fdf912006-06-01 19:03:21 +000025221main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025222 ;
25223 return 0;
25224}
25225_ACEOF
25226rm -f conftest.$ac_objext conftest$ac_exeext
25227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228 (eval $ac_link) 2>conftest.er1
25229 ac_status=$?
25230 grep -v '^ *+' conftest.er1 >conftest.err
25231 rm -f conftest.er1
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } &&
25235 { ac_try='test -z "$ac_c_werror_flag"
25236 || test ! -s conftest.err'
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; } &&
25242 { ac_try='test -s conftest$ac_exeext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025248 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025249else
25250 echo "$as_me: failed program was:" >&5
25251sed 's/^/| /' conftest.$ac_ext >&5
25252
Reid Spencer48fdf912006-06-01 19:03:21 +000025253ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025254fi
25255rm -f conftest.err conftest.$ac_objext \
25256 conftest$ac_exeext conftest.$ac_ext
25257LIBS=$ac_check_lib_save_LIBS
25258fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025259echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25260echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25261if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025262 cat >>confdefs.h <<_ACEOF
25263#define HAVE_LIBIMAGEHLP 1
25264_ACEOF
25265
25266 LIBS="-limagehlp $LIBS"
25267
25268fi
25269
25270
Reid Spencer48fdf912006-06-01 19:03:21 +000025271echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25272echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25273if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275else
25276 ac_check_lib_save_LIBS=$LIBS
25277LIBS="-lpsapi $LIBS"
25278cat >conftest.$ac_ext <<_ACEOF
25279/* confdefs.h. */
25280_ACEOF
25281cat confdefs.h >>conftest.$ac_ext
25282cat >>conftest.$ac_ext <<_ACEOF
25283/* end confdefs.h. */
25284
Reid Spencer48fdf912006-06-01 19:03:21 +000025285
Reid Spencer484fc8e2006-06-01 16:55:59 +000025286int
25287main ()
25288{
Reid Spencer48fdf912006-06-01 19:03:21 +000025289main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000025290 ;
25291 return 0;
25292}
25293_ACEOF
25294rm -f conftest.$ac_objext conftest$ac_exeext
25295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25296 (eval $ac_link) 2>conftest.er1
25297 ac_status=$?
25298 grep -v '^ *+' conftest.er1 >conftest.err
25299 rm -f conftest.er1
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
25303 { ac_try='test -z "$ac_c_werror_flag"
25304 || test ! -s conftest.err'
25305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306 (eval $ac_try) 2>&5
25307 ac_status=$?
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); }; } &&
25310 { ac_try='test -s conftest$ac_exeext'
25311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312 (eval $ac_try) 2>&5
25313 ac_status=$?
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000025316 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000025317else
25318 echo "$as_me: failed program was:" >&5
25319sed 's/^/| /' conftest.$ac_ext >&5
25320
Reid Spencer48fdf912006-06-01 19:03:21 +000025321ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000025322fi
25323rm -f conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
25325LIBS=$ac_check_lib_save_LIBS
25326fi
Reid Spencer48fdf912006-06-01 19:03:21 +000025327echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25328echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25329if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000025330 cat >>confdefs.h <<_ACEOF
25331#define HAVE_LIBPSAPI 1
25332_ACEOF
25333
25334 LIBS="-lpsapi $LIBS"
25335
25336fi
25337
25338fi
Reid Spencer22177fe2005-07-12 15:24:20 +000025339
Reid Spencer17795972004-11-18 09:47:37 +000025340echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25341echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25342if test "${ac_cv_search_lt_dlopen+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25344else
25345 ac_func_search_save_LIBS=$LIBS
25346ac_cv_search_lt_dlopen=no
25347cat >conftest.$ac_ext <<_ACEOF
25348/* confdefs.h. */
25349_ACEOF
25350cat confdefs.h >>conftest.$ac_ext
25351cat >>conftest.$ac_ext <<_ACEOF
25352/* end confdefs.h. */
25353
25354/* Override any gcc2 internal prototype to avoid an error. */
25355#ifdef __cplusplus
25356extern "C"
25357#endif
25358/* We use char because int might match the return type of a gcc2
25359 builtin and then its argument prototype would still apply. */
25360char lt_dlopen ();
25361int
25362main ()
25363{
25364lt_dlopen ();
25365 ;
25366 return 0;
25367}
25368_ACEOF
25369rm -f conftest.$ac_objext conftest$ac_exeext
25370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25371 (eval $ac_link) 2>conftest.er1
25372 ac_status=$?
25373 grep -v '^ *+' conftest.er1 >conftest.err
25374 rm -f conftest.er1
25375 cat conftest.err >&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } &&
25378 { ac_try='test -z "$ac_c_werror_flag"
25379 || test ! -s conftest.err'
25380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25382 ac_status=$?
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; } &&
25385 { ac_try='test -s conftest$ac_exeext'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; }; then
25391 ac_cv_search_lt_dlopen="none required"
25392else
25393 echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396fi
25397rm -f conftest.err conftest.$ac_objext \
25398 conftest$ac_exeext conftest.$ac_ext
25399if test "$ac_cv_search_lt_dlopen" = no; then
25400 for ac_lib in ltdl; do
25401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25402 cat >conftest.$ac_ext <<_ACEOF
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
25408
25409/* Override any gcc2 internal prototype to avoid an error. */
25410#ifdef __cplusplus
25411extern "C"
25412#endif
25413/* We use char because int might match the return type of a gcc2
25414 builtin and then its argument prototype would still apply. */
25415char lt_dlopen ();
25416int
25417main ()
25418{
25419lt_dlopen ();
25420 ;
25421 return 0;
25422}
25423_ACEOF
25424rm -f conftest.$ac_objext conftest$ac_exeext
25425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426 (eval $ac_link) 2>conftest.er1
25427 ac_status=$?
25428 grep -v '^ *+' conftest.er1 >conftest.err
25429 rm -f conftest.er1
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -z "$ac_c_werror_flag"
25434 || test ! -s conftest.err'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; } &&
25440 { ac_try='test -s conftest$ac_exeext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 ac_cv_search_lt_dlopen="-l$ac_lib"
25447break
25448else
25449 echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452fi
25453rm -f conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
25455 done
25456fi
25457LIBS=$ac_func_search_save_LIBS
25458fi
25459echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25460echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25461if test "$ac_cv_search_lt_dlopen" != no; then
25462 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25463
25464cat >>confdefs.h <<\_ACEOF
25465#define HAVE_LT_DLOPEN 1
25466_ACEOF
25467
25468else
25469 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25470 not be available" >&5
25471echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25472 not be available" >&2;}
25473fi
25474
25475
John Criswell7a73b802003-06-30 21:59:07 +000025476echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25477echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25478if test "${ac_cv_search_dlopen+set}" = set; then
25479 echo $ECHO_N "(cached) $ECHO_C" >&6
25480else
25481 ac_func_search_save_LIBS=$LIBS
25482ac_cv_search_dlopen=no
25483cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025484/* confdefs.h. */
25485_ACEOF
25486cat confdefs.h >>conftest.$ac_ext
25487cat >>conftest.$ac_ext <<_ACEOF
25488/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025489
25490/* Override any gcc2 internal prototype to avoid an error. */
25491#ifdef __cplusplus
25492extern "C"
25493#endif
25494/* We use char because int might match the return type of a gcc2
25495 builtin and then its argument prototype would still apply. */
25496char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025497int
25498main ()
25499{
25500dlopen ();
25501 ;
25502 return 0;
25503}
25504_ACEOF
25505rm -f conftest.$ac_objext conftest$ac_exeext
25506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025507 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025508 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025509 grep -v '^ *+' conftest.er1 >conftest.err
25510 rm -f conftest.er1
25511 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025514 { ac_try='test -z "$ac_c_werror_flag"
25515 || test ! -s conftest.err'
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; } &&
25521 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25524 ac_status=$?
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; }; then
25527 ac_cv_search_dlopen="none required"
25528else
25529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025530sed 's/^/| /' conftest.$ac_ext >&5
25531
John Criswell7a73b802003-06-30 21:59:07 +000025532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025533rm -f conftest.err conftest.$ac_objext \
25534 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025535if test "$ac_cv_search_dlopen" = no; then
25536 for ac_lib in dl; do
25537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25538 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025539/* confdefs.h. */
25540_ACEOF
25541cat confdefs.h >>conftest.$ac_ext
25542cat >>conftest.$ac_ext <<_ACEOF
25543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025544
25545/* Override any gcc2 internal prototype to avoid an error. */
25546#ifdef __cplusplus
25547extern "C"
25548#endif
25549/* We use char because int might match the return type of a gcc2
25550 builtin and then its argument prototype would still apply. */
25551char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025552int
25553main ()
25554{
25555dlopen ();
25556 ;
25557 return 0;
25558}
25559_ACEOF
25560rm -f conftest.$ac_objext conftest$ac_exeext
25561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025562 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025569 { ac_try='test -z "$ac_c_werror_flag"
25570 || test ! -s conftest.err'
25571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); }; } &&
25576 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578 (eval $ac_try) 2>&5
25579 ac_status=$?
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); }; }; then
25582 ac_cv_search_dlopen="-l$ac_lib"
25583break
25584else
25585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025586sed 's/^/| /' conftest.$ac_ext >&5
25587
John Criswell7a73b802003-06-30 21:59:07 +000025588fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025589rm -f conftest.err conftest.$ac_objext \
25590 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025591 done
25592fi
25593LIBS=$ac_func_search_save_LIBS
25594fi
25595echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25596echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25597if test "$ac_cv_search_dlopen" != no; then
25598 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025599
25600cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025601#define HAVE_DLOPEN 1
25602_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025603
25604else
Brian Gaekec45be042003-10-07 06:01:34 +000025605 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25606echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025607fi
25608
25609
25610echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25611echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25612if test "${ac_cv_search_mallinfo+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25614else
25615 ac_func_search_save_LIBS=$LIBS
25616ac_cv_search_mallinfo=no
25617cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025623
25624/* Override any gcc2 internal prototype to avoid an error. */
25625#ifdef __cplusplus
25626extern "C"
25627#endif
25628/* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25630char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025631int
25632main ()
25633{
25634mallinfo ();
25635 ;
25636 return 0;
25637}
25638_ACEOF
25639rm -f conftest.$ac_objext conftest$ac_exeext
25640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025641 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025642 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025648 { ac_try='test -z "$ac_c_werror_flag"
25649 || test ! -s conftest.err'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_search_mallinfo="none required"
25662else
25663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025664sed 's/^/| /' conftest.$ac_ext >&5
25665
John Criswell7a73b802003-06-30 21:59:07 +000025666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025667rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025669if test "$ac_cv_search_mallinfo" = no; then
25670 for ac_lib in malloc; do
25671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025673/* confdefs.h. */
25674_ACEOF
25675cat confdefs.h >>conftest.$ac_ext
25676cat >>conftest.$ac_ext <<_ACEOF
25677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025678
25679/* Override any gcc2 internal prototype to avoid an error. */
25680#ifdef __cplusplus
25681extern "C"
25682#endif
25683/* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25685char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025686int
25687main ()
25688{
25689mallinfo ();
25690 ;
25691 return 0;
25692}
25693_ACEOF
25694rm -f conftest.$ac_objext conftest$ac_exeext
25695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025696 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025698 grep -v '^ *+' conftest.er1 >conftest.err
25699 rm -f conftest.er1
25700 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025703 { ac_try='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_search_mallinfo="-l$ac_lib"
25717break
25718else
25719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025720sed 's/^/| /' conftest.$ac_ext >&5
25721
John Criswell7a73b802003-06-30 21:59:07 +000025722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025723rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025725 done
25726fi
25727LIBS=$ac_func_search_save_LIBS
25728fi
25729echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25730echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25731if test "$ac_cv_search_mallinfo" != no; then
25732 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025733
25734cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025735#define HAVE_MALLINFO 1
25736_ACEOF
25737
25738fi
25739
25740
Reid Spencer0a262ba2005-08-24 10:07:20 +000025741if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025742
25743echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25744echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25745if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25746 echo $ECHO_N "(cached) $ECHO_C" >&6
25747else
25748 ac_check_lib_save_LIBS=$LIBS
25749LIBS="-lpthread $LIBS"
25750cat >conftest.$ac_ext <<_ACEOF
25751/* confdefs.h. */
25752_ACEOF
25753cat confdefs.h >>conftest.$ac_ext
25754cat >>conftest.$ac_ext <<_ACEOF
25755/* end confdefs.h. */
25756
25757/* Override any gcc2 internal prototype to avoid an error. */
25758#ifdef __cplusplus
25759extern "C"
25760#endif
25761/* We use char because int might match the return type of a gcc2
25762 builtin and then its argument prototype would still apply. */
25763char pthread_mutex_init ();
25764int
25765main ()
25766{
25767pthread_mutex_init ();
25768 ;
25769 return 0;
25770}
25771_ACEOF
25772rm -f conftest.$ac_objext conftest$ac_exeext
25773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25774 (eval $ac_link) 2>conftest.er1
25775 ac_status=$?
25776 grep -v '^ *+' conftest.er1 >conftest.err
25777 rm -f conftest.er1
25778 cat conftest.err >&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } &&
25781 { ac_try='test -z "$ac_c_werror_flag"
25782 || test ! -s conftest.err'
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; } &&
25788 { ac_try='test -s conftest$ac_exeext'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
25794 ac_cv_lib_pthread_pthread_mutex_init=yes
25795else
25796 echo "$as_me: failed program was:" >&5
25797sed 's/^/| /' conftest.$ac_ext >&5
25798
25799ac_cv_lib_pthread_pthread_mutex_init=no
25800fi
25801rm -f conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
25803LIBS=$ac_check_lib_save_LIBS
25804fi
25805echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25806echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25807if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25808 cat >>confdefs.h <<_ACEOF
25809#define HAVE_LIBPTHREAD 1
25810_ACEOF
25811
25812 LIBS="-lpthread $LIBS"
25813
25814fi
25815
Reid Spencer0a262ba2005-08-24 10:07:20 +000025816 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025817echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25818if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25820else
25821 ac_func_search_save_LIBS=$LIBS
25822ac_cv_search_pthread_mutex_lock=no
25823cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025824/* confdefs.h. */
25825_ACEOF
25826cat confdefs.h >>conftest.$ac_ext
25827cat >>conftest.$ac_ext <<_ACEOF
25828/* end confdefs.h. */
25829
25830/* Override any gcc2 internal prototype to avoid an error. */
25831#ifdef __cplusplus
25832extern "C"
25833#endif
25834/* We use char because int might match the return type of a gcc2
25835 builtin and then its argument prototype would still apply. */
25836char pthread_mutex_lock ();
25837int
25838main ()
25839{
25840pthread_mutex_lock ();
25841 ;
25842 return 0;
25843}
25844_ACEOF
25845rm -f conftest.$ac_objext conftest$ac_exeext
25846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025847 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025848 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025849 grep -v '^ *+' conftest.er1 >conftest.err
25850 rm -f conftest.er1
25851 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025854 { ac_try='test -z "$ac_c_werror_flag"
25855 || test ! -s conftest.err'
25856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); }; } &&
25861 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25864 ac_status=$?
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; }; then
25867 ac_cv_search_pthread_mutex_lock="none required"
25868else
25869 echo "$as_me: failed program was:" >&5
25870sed 's/^/| /' conftest.$ac_ext >&5
25871
25872fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025873rm -f conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025875if test "$ac_cv_search_pthread_mutex_lock" = no; then
25876 for ac_lib in pthread; do
25877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25878 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025879/* confdefs.h. */
25880_ACEOF
25881cat confdefs.h >>conftest.$ac_ext
25882cat >>conftest.$ac_ext <<_ACEOF
25883/* end confdefs.h. */
25884
25885/* Override any gcc2 internal prototype to avoid an error. */
25886#ifdef __cplusplus
25887extern "C"
25888#endif
25889/* We use char because int might match the return type of a gcc2
25890 builtin and then its argument prototype would still apply. */
25891char pthread_mutex_lock ();
25892int
25893main ()
25894{
25895pthread_mutex_lock ();
25896 ;
25897 return 0;
25898}
25899_ACEOF
25900rm -f conftest.$ac_objext conftest$ac_exeext
25901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025902 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025903 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025904 grep -v '^ *+' conftest.er1 >conftest.err
25905 rm -f conftest.er1
25906 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025909 { ac_try='test -z "$ac_c_werror_flag"
25910 || test ! -s conftest.err'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25913 ac_status=$?
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; }; then
25922 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25923break
25924else
25925 echo "$as_me: failed program was:" >&5
25926sed 's/^/| /' conftest.$ac_ext >&5
25927
25928fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025929rm -f conftest.err conftest.$ac_objext \
25930 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025931 done
25932fi
25933LIBS=$ac_func_search_save_LIBS
25934fi
25935echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25936echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25937if test "$ac_cv_search_pthread_mutex_lock" != no; then
25938 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025939
John Criswell40468462004-09-24 21:19:06 +000025940cat >>confdefs.h <<\_ACEOF
25941#define HAVE_PTHREAD_MUTEX_LOCK 1
25942_ACEOF
25943
25944fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025945
Reid Spencer0a262ba2005-08-24 10:07:20 +000025946fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025947
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025948
Reid Spencer59473af2004-12-25 07:31:29 +000025949
25950
25951
25952
25953
25954ac_header_dirent=no
25955for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25956 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25957echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25958echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25959if eval "test \"\${$as_ac_Header+set}\" = set"; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961else
25962 cat >conftest.$ac_ext <<_ACEOF
25963/* confdefs.h. */
25964_ACEOF
25965cat confdefs.h >>conftest.$ac_ext
25966cat >>conftest.$ac_ext <<_ACEOF
25967/* end confdefs.h. */
25968#include <sys/types.h>
25969#include <$ac_hdr>
25970
25971int
25972main ()
25973{
25974if ((DIR *) 0)
25975return 0;
25976 ;
25977 return 0;
25978}
25979_ACEOF
25980rm -f conftest.$ac_objext
25981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982 (eval $ac_compile) 2>conftest.er1
25983 ac_status=$?
25984 grep -v '^ *+' conftest.er1 >conftest.err
25985 rm -f conftest.er1
25986 cat conftest.err >&5
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
25989 { ac_try='test -z "$ac_c_werror_flag"
25990 || test ! -s conftest.err'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; } &&
25996 { ac_try='test -s conftest.$ac_objext'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 eval "$as_ac_Header=yes"
26003else
26004 echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
26007eval "$as_ac_Header=no"
26008fi
26009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26010fi
26011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26013if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014 cat >>confdefs.h <<_ACEOF
26015#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26016_ACEOF
26017
26018ac_header_dirent=$ac_hdr; break
26019fi
26020
26021done
26022# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26023if test $ac_header_dirent = dirent.h; then
26024 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26025echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26026if test "${ac_cv_search_opendir+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26028else
26029 ac_func_search_save_LIBS=$LIBS
26030ac_cv_search_opendir=no
26031cat >conftest.$ac_ext <<_ACEOF
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
26037
26038/* Override any gcc2 internal prototype to avoid an error. */
26039#ifdef __cplusplus
26040extern "C"
26041#endif
26042/* We use char because int might match the return type of a gcc2
26043 builtin and then its argument prototype would still apply. */
26044char opendir ();
26045int
26046main ()
26047{
26048opendir ();
26049 ;
26050 return 0;
26051}
26052_ACEOF
26053rm -f conftest.$ac_objext conftest$ac_exeext
26054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26055 (eval $ac_link) 2>conftest.er1
26056 ac_status=$?
26057 grep -v '^ *+' conftest.er1 >conftest.err
26058 rm -f conftest.er1
26059 cat conftest.err >&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } &&
26062 { ac_try='test -z "$ac_c_werror_flag"
26063 || test ! -s conftest.err'
26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; } &&
26069 { ac_try='test -s conftest$ac_exeext'
26070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); }; }; then
26075 ac_cv_search_opendir="none required"
26076else
26077 echo "$as_me: failed program was:" >&5
26078sed 's/^/| /' conftest.$ac_ext >&5
26079
26080fi
26081rm -f conftest.err conftest.$ac_objext \
26082 conftest$ac_exeext conftest.$ac_ext
26083if test "$ac_cv_search_opendir" = no; then
26084 for ac_lib in dir; do
26085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26086 cat >conftest.$ac_ext <<_ACEOF
26087/* confdefs.h. */
26088_ACEOF
26089cat confdefs.h >>conftest.$ac_ext
26090cat >>conftest.$ac_ext <<_ACEOF
26091/* end confdefs.h. */
26092
26093/* Override any gcc2 internal prototype to avoid an error. */
26094#ifdef __cplusplus
26095extern "C"
26096#endif
26097/* We use char because int might match the return type of a gcc2
26098 builtin and then its argument prototype would still apply. */
26099char opendir ();
26100int
26101main ()
26102{
26103opendir ();
26104 ;
26105 return 0;
26106}
26107_ACEOF
26108rm -f conftest.$ac_objext conftest$ac_exeext
26109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110 (eval $ac_link) 2>conftest.er1
26111 ac_status=$?
26112 grep -v '^ *+' conftest.er1 >conftest.err
26113 rm -f conftest.er1
26114 cat conftest.err >&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } &&
26117 { ac_try='test -z "$ac_c_werror_flag"
26118 || test ! -s conftest.err'
26119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120 (eval $ac_try) 2>&5
26121 ac_status=$?
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; } &&
26124 { ac_try='test -s conftest$ac_exeext'
26125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126 (eval $ac_try) 2>&5
26127 ac_status=$?
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); }; }; then
26130 ac_cv_search_opendir="-l$ac_lib"
26131break
26132else
26133 echo "$as_me: failed program was:" >&5
26134sed 's/^/| /' conftest.$ac_ext >&5
26135
26136fi
26137rm -f conftest.err conftest.$ac_objext \
26138 conftest$ac_exeext conftest.$ac_ext
26139 done
26140fi
26141LIBS=$ac_func_search_save_LIBS
26142fi
26143echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26144echo "${ECHO_T}$ac_cv_search_opendir" >&6
26145if test "$ac_cv_search_opendir" != no; then
26146 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26147
26148fi
26149
26150else
26151 echo "$as_me:$LINENO: checking for library containing opendir" >&5
26152echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26153if test "${ac_cv_search_opendir+set}" = set; then
26154 echo $ECHO_N "(cached) $ECHO_C" >&6
26155else
26156 ac_func_search_save_LIBS=$LIBS
26157ac_cv_search_opendir=no
26158cat >conftest.$ac_ext <<_ACEOF
26159/* confdefs.h. */
26160_ACEOF
26161cat confdefs.h >>conftest.$ac_ext
26162cat >>conftest.$ac_ext <<_ACEOF
26163/* end confdefs.h. */
26164
26165/* Override any gcc2 internal prototype to avoid an error. */
26166#ifdef __cplusplus
26167extern "C"
26168#endif
26169/* We use char because int might match the return type of a gcc2
26170 builtin and then its argument prototype would still apply. */
26171char opendir ();
26172int
26173main ()
26174{
26175opendir ();
26176 ;
26177 return 0;
26178}
26179_ACEOF
26180rm -f conftest.$ac_objext conftest$ac_exeext
26181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26182 (eval $ac_link) 2>conftest.er1
26183 ac_status=$?
26184 grep -v '^ *+' conftest.er1 >conftest.err
26185 rm -f conftest.er1
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag"
26190 || test ! -s conftest.err'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; } &&
26196 { ac_try='test -s conftest$ac_exeext'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26199 ac_status=$?
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 ac_cv_search_opendir="none required"
26203else
26204 echo "$as_me: failed program was:" >&5
26205sed 's/^/| /' conftest.$ac_ext >&5
26206
26207fi
26208rm -f conftest.err conftest.$ac_objext \
26209 conftest$ac_exeext conftest.$ac_ext
26210if test "$ac_cv_search_opendir" = no; then
26211 for ac_lib in x; do
26212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26213 cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h. */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h. */
26219
26220/* Override any gcc2 internal prototype to avoid an error. */
26221#ifdef __cplusplus
26222extern "C"
26223#endif
26224/* We use char because int might match the return type of a gcc2
26225 builtin and then its argument prototype would still apply. */
26226char opendir ();
26227int
26228main ()
26229{
26230opendir ();
26231 ;
26232 return 0;
26233}
26234_ACEOF
26235rm -f conftest.$ac_objext conftest$ac_exeext
26236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237 (eval $ac_link) 2>conftest.er1
26238 ac_status=$?
26239 grep -v '^ *+' conftest.er1 >conftest.err
26240 rm -f conftest.er1
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } &&
26244 { ac_try='test -z "$ac_c_werror_flag"
26245 || test ! -s conftest.err'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; } &&
26251 { ac_try='test -s conftest$ac_exeext'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 ac_cv_search_opendir="-l$ac_lib"
26258break
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263fi
26264rm -f conftest.err conftest.$ac_objext \
26265 conftest$ac_exeext conftest.$ac_ext
26266 done
26267fi
26268LIBS=$ac_func_search_save_LIBS
26269fi
26270echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26271echo "${ECHO_T}$ac_cv_search_opendir" >&6
26272if test "$ac_cv_search_opendir" != no; then
26273 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26274
26275fi
26276
26277fi
26278
26279echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26280echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26281if test "${ac_cv_header_mmap_anon+set}" = set; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26283else
26284 ac_ext=c
26285ac_cpp='$CPP $CPPFLAGS'
26286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288ac_compiler_gnu=$ac_cv_c_compiler_gnu
26289
26290 cat >conftest.$ac_ext <<_ACEOF
26291/* confdefs.h. */
26292_ACEOF
26293cat confdefs.h >>conftest.$ac_ext
26294cat >>conftest.$ac_ext <<_ACEOF
26295/* end confdefs.h. */
26296#include <sys/mman.h>
26297#include <unistd.h>
26298#include <fcntl.h>
26299int
26300main ()
26301{
26302mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26303 ;
26304 return 0;
26305}
26306_ACEOF
26307rm -f conftest.$ac_objext
26308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309 (eval $ac_compile) 2>conftest.er1
26310 ac_status=$?
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest.$ac_objext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ac_cv_header_mmap_anon=yes
26330else
26331 echo "$as_me: failed program was:" >&5
26332sed 's/^/| /' conftest.$ac_ext >&5
26333
26334ac_cv_header_mmap_anon=no
26335fi
26336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337 ac_ext=c
26338ac_cpp='$CPP $CPPFLAGS'
26339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342
26343
26344fi
26345echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26346echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26347if test "$ac_cv_header_mmap_anon" = yes; then
26348
26349cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026350#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026351_ACEOF
26352
26353fi
26354
26355echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26356echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26357if test "${ac_cv_header_stat_broken+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26359else
26360 cat >conftest.$ac_ext <<_ACEOF
26361/* confdefs.h. */
26362_ACEOF
26363cat confdefs.h >>conftest.$ac_ext
26364cat >>conftest.$ac_ext <<_ACEOF
26365/* end confdefs.h. */
26366#include <sys/types.h>
26367#include <sys/stat.h>
26368
26369#if defined(S_ISBLK) && defined(S_IFDIR)
26370# if S_ISBLK (S_IFDIR)
26371You lose.
26372# endif
26373#endif
26374
26375#if defined(S_ISBLK) && defined(S_IFCHR)
26376# if S_ISBLK (S_IFCHR)
26377You lose.
26378# endif
26379#endif
26380
26381#if defined(S_ISLNK) && defined(S_IFREG)
26382# if S_ISLNK (S_IFREG)
26383You lose.
26384# endif
26385#endif
26386
26387#if defined(S_ISSOCK) && defined(S_IFREG)
26388# if S_ISSOCK (S_IFREG)
26389You lose.
26390# endif
26391#endif
26392
26393_ACEOF
26394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26395 $EGREP "You lose" >/dev/null 2>&1; then
26396 ac_cv_header_stat_broken=yes
26397else
26398 ac_cv_header_stat_broken=no
26399fi
26400rm -f conftest*
26401
26402fi
26403echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26404echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26405if test $ac_cv_header_stat_broken = yes; then
26406
26407cat >>confdefs.h <<\_ACEOF
26408#define STAT_MACROS_BROKEN 1
26409_ACEOF
26410
26411fi
26412
John Criswell7a73b802003-06-30 21:59:07 +000026413echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26414echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26415if test "${ac_cv_header_stdc+set}" = set; then
26416 echo $ECHO_N "(cached) $ECHO_C" >&6
26417else
26418 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026419/* confdefs.h. */
26420_ACEOF
26421cat confdefs.h >>conftest.$ac_ext
26422cat >>conftest.$ac_ext <<_ACEOF
26423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026424#include <stdlib.h>
26425#include <stdarg.h>
26426#include <string.h>
26427#include <float.h>
26428
John Criswell0c38eaf2003-09-10 15:17:25 +000026429int
26430main ()
26431{
26432
26433 ;
26434 return 0;
26435}
John Criswell7a73b802003-06-30 21:59:07 +000026436_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026437rm -f conftest.$ac_objext
26438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026439 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026441 grep -v '^ *+' conftest.er1 >conftest.err
26442 rm -f conftest.er1
26443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026445 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026446 { ac_try='test -z "$ac_c_werror_flag"
26447 || test ! -s conftest.err'
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; } &&
26453 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026459 ac_cv_header_stdc=yes
26460else
26461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026462sed 's/^/| /' conftest.$ac_ext >&5
26463
26464ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026465fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026467
26468if test $ac_cv_header_stdc = yes; then
26469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026471/* confdefs.h. */
26472_ACEOF
26473cat confdefs.h >>conftest.$ac_ext
26474cat >>conftest.$ac_ext <<_ACEOF
26475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026476#include <string.h>
26477
26478_ACEOF
26479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026480 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026481 :
26482else
26483 ac_cv_header_stdc=no
26484fi
26485rm -f conftest*
26486
26487fi
26488
26489if test $ac_cv_header_stdc = yes; then
26490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26491 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026492/* confdefs.h. */
26493_ACEOF
26494cat confdefs.h >>conftest.$ac_ext
26495cat >>conftest.$ac_ext <<_ACEOF
26496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026497#include <stdlib.h>
26498
26499_ACEOF
26500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026501 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026502 :
26503else
26504 ac_cv_header_stdc=no
26505fi
26506rm -f conftest*
26507
26508fi
26509
26510if test $ac_cv_header_stdc = yes; then
26511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26512 if test "$cross_compiling" = yes; then
26513 :
26514else
26515 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026516/* confdefs.h. */
26517_ACEOF
26518cat confdefs.h >>conftest.$ac_ext
26519cat >>conftest.$ac_ext <<_ACEOF
26520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026521#include <ctype.h>
26522#if ((' ' & 0x0FF) == 0x020)
26523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26525#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026526# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026527 (('a' <= (c) && (c) <= 'i') \
26528 || ('j' <= (c) && (c) <= 'r') \
26529 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26531#endif
26532
26533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26534int
26535main ()
26536{
26537 int i;
26538 for (i = 0; i < 256; i++)
26539 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026540 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026541 exit(2);
26542 exit (0);
26543}
26544_ACEOF
26545rm -f conftest$ac_exeext
26546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26547 (eval $ac_link) 2>&5
26548 ac_status=$?
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 :
26557else
26558 echo "$as_me: program exited with status $ac_status" >&5
26559echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026560sed 's/^/| /' conftest.$ac_ext >&5
26561
John Criswell7a73b802003-06-30 21:59:07 +000026562( exit $ac_status )
26563ac_cv_header_stdc=no
26564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026566fi
26567fi
26568fi
26569echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26570echo "${ECHO_T}$ac_cv_header_stdc" >&6
26571if test $ac_cv_header_stdc = yes; then
26572
26573cat >>confdefs.h <<\_ACEOF
26574#define STDC_HEADERS 1
26575_ACEOF
26576
26577fi
26578
26579echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26580echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26581if test "${ac_cv_header_sys_wait_h+set}" = set; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26583else
26584 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026585/* confdefs.h. */
26586_ACEOF
26587cat confdefs.h >>conftest.$ac_ext
26588cat >>conftest.$ac_ext <<_ACEOF
26589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026590#include <sys/types.h>
26591#include <sys/wait.h>
26592#ifndef WEXITSTATUS
26593# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26594#endif
26595#ifndef WIFEXITED
26596# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26597#endif
26598
John Criswell7a73b802003-06-30 21:59:07 +000026599int
26600main ()
26601{
26602 int s;
26603 wait (&s);
26604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26605 ;
26606 return 0;
26607}
26608_ACEOF
26609rm -f conftest.$ac_objext
26610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026611 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026612 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026613 grep -v '^ *+' conftest.er1 >conftest.err
26614 rm -f conftest.er1
26615 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026618 { ac_try='test -z "$ac_c_werror_flag"
26619 || test ! -s conftest.err'
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26622 ac_status=$?
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; } &&
26625 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); }; }; then
26631 ac_cv_header_sys_wait_h=yes
26632else
26633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026634sed 's/^/| /' conftest.$ac_ext >&5
26635
John Criswell7a73b802003-06-30 21:59:07 +000026636ac_cv_header_sys_wait_h=no
26637fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026639fi
26640echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26641echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26642if test $ac_cv_header_sys_wait_h = yes; then
26643
26644cat >>confdefs.h <<\_ACEOF
26645#define HAVE_SYS_WAIT_H 1
26646_ACEOF
26647
26648fi
26649
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026650echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26651echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26652if test "${ac_cv_header_time+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26654else
26655 cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h. */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026661#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026662#include <sys/time.h>
26663#include <time.h>
26664
26665int
26666main ()
26667{
26668if ((struct tm *) 0)
26669return 0;
26670 ;
26671 return 0;
26672}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026673_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026674rm -f conftest.$ac_objext
26675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26676 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026677 ac_status=$?
26678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026682 (exit $ac_status); } &&
26683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest.$ac_objext'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026701ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026702fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26704fi
26705echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26706echo "${ECHO_T}$ac_cv_header_time" >&6
26707if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026708
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026709cat >>confdefs.h <<\_ACEOF
26710#define TIME_WITH_SYS_TIME 1
26711_ACEOF
26712
26713fi
26714
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026715
Reid Spencer59473af2004-12-25 07:31:29 +000026716
26717
26718
26719
26720
26721
26722for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26723do
26724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26725if eval "test \"\${$as_ac_Header+set}\" = set"; then
26726 echo "$as_me:$LINENO: checking for $ac_header" >&5
26727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26728if eval "test \"\${$as_ac_Header+set}\" = set"; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26730fi
26731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26733else
26734 # Is the header compilable?
26735echo "$as_me:$LINENO: checking $ac_header usability" >&5
26736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26737cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026738/* confdefs.h. */
26739_ACEOF
26740cat confdefs.h >>conftest.$ac_ext
26741cat >>conftest.$ac_ext <<_ACEOF
26742/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026743$ac_includes_default
26744#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026745_ACEOF
26746rm -f conftest.$ac_objext
26747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26748 (eval $ac_compile) 2>conftest.er1
26749 ac_status=$?
26750 grep -v '^ *+' conftest.er1 >conftest.err
26751 rm -f conftest.er1
26752 cat conftest.err >&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); } &&
26755 { ac_try='test -z "$ac_c_werror_flag"
26756 || test ! -s conftest.err'
26757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; } &&
26762 { ac_try='test -s conftest.$ac_objext'
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26765 ac_status=$?
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026768 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026769else
26770 echo "$as_me: failed program was:" >&5
26771sed 's/^/| /' conftest.$ac_ext >&5
26772
Reid Spencer59473af2004-12-25 07:31:29 +000026773ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026774fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26777echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026778
Reid Spencer59473af2004-12-25 07:31:29 +000026779# Is the header present?
26780echo "$as_me:$LINENO: checking $ac_header presence" >&5
26781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26782cat >conftest.$ac_ext <<_ACEOF
26783/* confdefs.h. */
26784_ACEOF
26785cat confdefs.h >>conftest.$ac_ext
26786cat >>conftest.$ac_ext <<_ACEOF
26787/* end confdefs.h. */
26788#include <$ac_header>
26789_ACEOF
26790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26792 ac_status=$?
26793 grep -v '^ *+' conftest.er1 >conftest.err
26794 rm -f conftest.er1
26795 cat conftest.err >&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } >/dev/null; then
26798 if test -s conftest.err; then
26799 ac_cpp_err=$ac_c_preproc_warn_flag
26800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26801 else
26802 ac_cpp_err=
26803 fi
26804else
26805 ac_cpp_err=yes
26806fi
26807if test -z "$ac_cpp_err"; then
26808 ac_header_preproc=yes
26809else
26810 echo "$as_me: failed program was:" >&5
26811sed 's/^/| /' conftest.$ac_ext >&5
26812
26813 ac_header_preproc=no
26814fi
26815rm -f conftest.err conftest.$ac_ext
26816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26817echo "${ECHO_T}$ac_header_preproc" >&6
26818
26819# So? What about this header?
26820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26821 yes:no: )
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26826 ac_header_preproc=yes
26827 ;;
26828 no:yes:* )
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26841 (
26842 cat <<\_ASBOX
26843## ----------------------------------- ##
26844## Report this to llvmbugs@cs.uiuc.edu ##
26845## ----------------------------------- ##
26846_ASBOX
26847 ) |
26848 sed "s/^/$as_me: WARNING: /" >&2
26849 ;;
26850esac
26851echo "$as_me:$LINENO: checking for $ac_header" >&5
26852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26853if eval "test \"\${$as_ac_Header+set}\" = set"; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26855else
26856 eval "$as_ac_Header=\$ac_header_preproc"
26857fi
26858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026860
26861fi
Reid Spencer59473af2004-12-25 07:31:29 +000026862if test `eval echo '${'$as_ac_Header'}'` = yes; then
26863 cat >>confdefs.h <<_ACEOF
26864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026865_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026866
26867fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026868
Reid Spencer59473af2004-12-25 07:31:29 +000026869done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026870
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026871
26872
Reid Spencer59473af2004-12-25 07:31:29 +000026873
26874
26875
26876
Reid Spencer0a262ba2005-08-24 10:07:20 +000026877for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026878do
26879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26880if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo "$as_me:$LINENO: checking for $ac_header" >&5
26882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26883if eval "test \"\${$as_ac_Header+set}\" = set"; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26885fi
26886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26888else
26889 # Is the header compilable?
26890echo "$as_me:$LINENO: checking $ac_header usability" >&5
26891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26892cat >conftest.$ac_ext <<_ACEOF
26893/* confdefs.h. */
26894_ACEOF
26895cat confdefs.h >>conftest.$ac_ext
26896cat >>conftest.$ac_ext <<_ACEOF
26897/* end confdefs.h. */
26898$ac_includes_default
26899#include <$ac_header>
26900_ACEOF
26901rm -f conftest.$ac_objext
26902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26903 (eval $ac_compile) 2>conftest.er1
26904 ac_status=$?
26905 grep -v '^ *+' conftest.er1 >conftest.err
26906 rm -f conftest.er1
26907 cat conftest.err >&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); } &&
26910 { ac_try='test -z "$ac_c_werror_flag"
26911 || test ! -s conftest.err'
26912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913 (eval $ac_try) 2>&5
26914 ac_status=$?
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); }; } &&
26917 { ac_try='test -s conftest.$ac_objext'
26918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919 (eval $ac_try) 2>&5
26920 ac_status=$?
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; }; then
26923 ac_header_compiler=yes
26924else
26925 echo "$as_me: failed program was:" >&5
26926sed 's/^/| /' conftest.$ac_ext >&5
26927
26928ac_header_compiler=no
26929fi
26930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26932echo "${ECHO_T}$ac_header_compiler" >&6
26933
26934# Is the header present?
26935echo "$as_me:$LINENO: checking $ac_header presence" >&5
26936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26937cat >conftest.$ac_ext <<_ACEOF
26938/* confdefs.h. */
26939_ACEOF
26940cat confdefs.h >>conftest.$ac_ext
26941cat >>conftest.$ac_ext <<_ACEOF
26942/* end confdefs.h. */
26943#include <$ac_header>
26944_ACEOF
26945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26947 ac_status=$?
26948 grep -v '^ *+' conftest.er1 >conftest.err
26949 rm -f conftest.er1
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } >/dev/null; then
26953 if test -s conftest.err; then
26954 ac_cpp_err=$ac_c_preproc_warn_flag
26955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26956 else
26957 ac_cpp_err=
26958 fi
26959else
26960 ac_cpp_err=yes
26961fi
26962if test -z "$ac_cpp_err"; then
26963 ac_header_preproc=yes
26964else
26965 echo "$as_me: failed program was:" >&5
26966sed 's/^/| /' conftest.$ac_ext >&5
26967
26968 ac_header_preproc=no
26969fi
26970rm -f conftest.err conftest.$ac_ext
26971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26972echo "${ECHO_T}$ac_header_preproc" >&6
26973
26974# So? What about this header?
26975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26976 yes:no: )
26977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26980echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26981 ac_header_preproc=yes
26982 ;;
26983 no:yes:* )
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26985echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26987echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26989echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26991echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26995echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26996 (
26997 cat <<\_ASBOX
26998## ----------------------------------- ##
26999## Report this to llvmbugs@cs.uiuc.edu ##
27000## ----------------------------------- ##
27001_ASBOX
27002 ) |
27003 sed "s/^/$as_me: WARNING: /" >&2
27004 ;;
27005esac
27006echo "$as_me:$LINENO: checking for $ac_header" >&5
27007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27008if eval "test \"\${$as_ac_Header+set}\" = set"; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
27011 eval "$as_ac_Header=\$ac_header_preproc"
27012fi
27013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27015
27016fi
27017if test `eval echo '${'$as_ac_Header'}'` = yes; then
27018 cat >>confdefs.h <<_ACEOF
27019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27020_ACEOF
27021
27022fi
27023
27024done
27025
27026
27027
27028
27029
27030
27031for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027032do
27033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27034if eval "test \"\${$as_ac_Header+set}\" = set"; then
27035 echo "$as_me:$LINENO: checking for $ac_header" >&5
27036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27037if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027038 echo $ECHO_N "(cached) $ECHO_C" >&6
27039fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027042else
27043 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027044echo "$as_me:$LINENO: checking $ac_header usability" >&5
27045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027046cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027047/* confdefs.h. */
27048_ACEOF
27049cat confdefs.h >>conftest.$ac_ext
27050cat >>conftest.$ac_ext <<_ACEOF
27051/* end confdefs.h. */
27052$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027053#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027054_ACEOF
27055rm -f conftest.$ac_objext
27056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027057 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027058 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027059 grep -v '^ *+' conftest.er1 >conftest.err
27060 rm -f conftest.er1
27061 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027064 { ac_try='test -z "$ac_c_werror_flag"
27065 || test ! -s conftest.err'
27066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067 (eval $ac_try) 2>&5
27068 ac_status=$?
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; } &&
27071 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073 (eval $ac_try) 2>&5
27074 ac_status=$?
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 ac_header_compiler=yes
27078else
27079 echo "$as_me: failed program was:" >&5
27080sed 's/^/| /' conftest.$ac_ext >&5
27081
27082ac_header_compiler=no
27083fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27086echo "${ECHO_T}$ac_header_compiler" >&6
27087
27088# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027089echo "$as_me:$LINENO: checking $ac_header presence" >&5
27090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027091cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027092/* confdefs.h. */
27093_ACEOF
27094cat confdefs.h >>conftest.$ac_ext
27095cat >>conftest.$ac_ext <<_ACEOF
27096/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027097#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027098_ACEOF
27099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27101 ac_status=$?
27102 grep -v '^ *+' conftest.er1 >conftest.err
27103 rm -f conftest.er1
27104 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } >/dev/null; then
27107 if test -s conftest.err; then
27108 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000027109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027110 else
27111 ac_cpp_err=
27112 fi
27113else
27114 ac_cpp_err=yes
27115fi
27116if test -z "$ac_cpp_err"; then
27117 ac_header_preproc=yes
27118else
27119 echo "$as_me: failed program was:" >&5
27120sed 's/^/| /' conftest.$ac_ext >&5
27121
27122 ac_header_preproc=no
27123fi
27124rm -f conftest.err conftest.$ac_ext
27125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27126echo "${ECHO_T}$ac_header_preproc" >&6
27127
27128# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27130 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000027135 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000027136 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000027137 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000027150 (
27151 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000027152## ----------------------------------- ##
27153## Report this to llvmbugs@cs.uiuc.edu ##
27154## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027155_ASBOX
27156 ) |
27157 sed "s/^/$as_me: WARNING: /" >&2
27158 ;;
27159esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027160echo "$as_me:$LINENO: checking for $ac_header" >&5
27161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027163 echo $ECHO_N "(cached) $ECHO_C" >&6
27164else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027165 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027166fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000027169
27170fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027171if test `eval echo '${'$as_ac_Header'}'` = yes; then
27172 cat >>confdefs.h <<_ACEOF
27173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000027174_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000027175
27176fi
John Criswell7ed43ad2004-07-19 16:12:29 +000027177
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027178done
27179
John Criswell7ed43ad2004-07-19 16:12:29 +000027180
Chris Lattner0b142592005-11-14 06:57:34 +000027181for ac_header in malloc/malloc.h
27182do
27183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27184if eval "test \"\${$as_ac_Header+set}\" = set"; then
27185 echo "$as_me:$LINENO: checking for $ac_header" >&5
27186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27187if eval "test \"\${$as_ac_Header+set}\" = set"; then
27188 echo $ECHO_N "(cached) $ECHO_C" >&6
27189fi
27190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27192else
27193 # Is the header compilable?
27194echo "$as_me:$LINENO: checking $ac_header usability" >&5
27195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27196cat >conftest.$ac_ext <<_ACEOF
27197/* confdefs.h. */
27198_ACEOF
27199cat confdefs.h >>conftest.$ac_ext
27200cat >>conftest.$ac_ext <<_ACEOF
27201/* end confdefs.h. */
27202$ac_includes_default
27203#include <$ac_header>
27204_ACEOF
27205rm -f conftest.$ac_objext
27206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27207 (eval $ac_compile) 2>conftest.er1
27208 ac_status=$?
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
27214 { ac_try='test -z "$ac_c_werror_flag"
27215 || test ! -s conftest.err'
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest.$ac_objext'
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_header_compiler=yes
27228else
27229 echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
27232ac_header_compiler=no
27233fi
27234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27236echo "${ECHO_T}$ac_header_compiler" >&6
27237
27238# Is the header present?
27239echo "$as_me:$LINENO: checking $ac_header presence" >&5
27240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27241cat >conftest.$ac_ext <<_ACEOF
27242/* confdefs.h. */
27243_ACEOF
27244cat confdefs.h >>conftest.$ac_ext
27245cat >>conftest.$ac_ext <<_ACEOF
27246/* end confdefs.h. */
27247#include <$ac_header>
27248_ACEOF
27249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27251 ac_status=$?
27252 grep -v '^ *+' conftest.er1 >conftest.err
27253 rm -f conftest.er1
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } >/dev/null; then
27257 if test -s conftest.err; then
27258 ac_cpp_err=$ac_c_preproc_warn_flag
27259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27260 else
27261 ac_cpp_err=
27262 fi
27263else
27264 ac_cpp_err=yes
27265fi
27266if test -z "$ac_cpp_err"; then
27267 ac_header_preproc=yes
27268else
27269 echo "$as_me: failed program was:" >&5
27270sed 's/^/| /' conftest.$ac_ext >&5
27271
27272 ac_header_preproc=no
27273fi
27274rm -f conftest.err conftest.$ac_ext
27275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27276echo "${ECHO_T}$ac_header_preproc" >&6
27277
27278# So? What about this header?
27279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27280 yes:no: )
27281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27285 ac_header_preproc=yes
27286 ;;
27287 no:yes:* )
27288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27300 (
27301 cat <<\_ASBOX
27302## ----------------------------------- ##
27303## Report this to llvmbugs@cs.uiuc.edu ##
27304## ----------------------------------- ##
27305_ASBOX
27306 ) |
27307 sed "s/^/$as_me: WARNING: /" >&2
27308 ;;
27309esac
27310echo "$as_me:$LINENO: checking for $ac_header" >&5
27311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27312if eval "test \"\${$as_ac_Header+set}\" = set"; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315 eval "$as_ac_Header=\$ac_header_preproc"
27316fi
27317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27319
27320fi
27321if test `eval echo '${'$as_ac_Header'}'` = yes; then
27322 cat >>confdefs.h <<_ACEOF
27323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27324_ACEOF
27325
27326fi
27327
27328done
27329
Reid Spencer0a262ba2005-08-24 10:07:20 +000027330if test "$ENABLE_THREADS" -eq 1 ; then
27331
27332for ac_header in pthread.h
27333do
27334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27335if eval "test \"\${$as_ac_Header+set}\" = set"; then
27336 echo "$as_me:$LINENO: checking for $ac_header" >&5
27337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27338if eval "test \"\${$as_ac_Header+set}\" = set"; then
27339 echo $ECHO_N "(cached) $ECHO_C" >&6
27340fi
27341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27343else
27344 # Is the header compilable?
27345echo "$as_me:$LINENO: checking $ac_header usability" >&5
27346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27347cat >conftest.$ac_ext <<_ACEOF
27348/* confdefs.h. */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h. */
27353$ac_includes_default
27354#include <$ac_header>
27355_ACEOF
27356rm -f conftest.$ac_objext
27357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27358 (eval $ac_compile) 2>conftest.er1
27359 ac_status=$?
27360 grep -v '^ *+' conftest.er1 >conftest.err
27361 rm -f conftest.er1
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag"
27366 || test ! -s conftest.err'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; } &&
27372 { ac_try='test -s conftest.$ac_objext'
27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374 (eval $ac_try) 2>&5
27375 ac_status=$?
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; }; then
27378 ac_header_compiler=yes
27379else
27380 echo "$as_me: failed program was:" >&5
27381sed 's/^/| /' conftest.$ac_ext >&5
27382
27383ac_header_compiler=no
27384fi
27385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27387echo "${ECHO_T}$ac_header_compiler" >&6
27388
27389# Is the header present?
27390echo "$as_me:$LINENO: checking $ac_header presence" >&5
27391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27392cat >conftest.$ac_ext <<_ACEOF
27393/* confdefs.h. */
27394_ACEOF
27395cat confdefs.h >>conftest.$ac_ext
27396cat >>conftest.$ac_ext <<_ACEOF
27397/* end confdefs.h. */
27398#include <$ac_header>
27399_ACEOF
27400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27402 ac_status=$?
27403 grep -v '^ *+' conftest.er1 >conftest.err
27404 rm -f conftest.er1
27405 cat conftest.err >&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); } >/dev/null; then
27408 if test -s conftest.err; then
27409 ac_cpp_err=$ac_c_preproc_warn_flag
27410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27411 else
27412 ac_cpp_err=
27413 fi
27414else
27415 ac_cpp_err=yes
27416fi
27417if test -z "$ac_cpp_err"; then
27418 ac_header_preproc=yes
27419else
27420 echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423 ac_header_preproc=no
27424fi
27425rm -f conftest.err conftest.$ac_ext
27426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27427echo "${ECHO_T}$ac_header_preproc" >&6
27428
27429# So? What about this header?
27430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27431 yes:no: )
27432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27436 ac_header_preproc=yes
27437 ;;
27438 no:yes:* )
27439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27451 (
27452 cat <<\_ASBOX
27453## ----------------------------------- ##
27454## Report this to llvmbugs@cs.uiuc.edu ##
27455## ----------------------------------- ##
27456_ASBOX
27457 ) |
27458 sed "s/^/$as_me: WARNING: /" >&2
27459 ;;
27460esac
27461echo "$as_me:$LINENO: checking for $ac_header" >&5
27462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27463if eval "test \"\${$as_ac_Header+set}\" = set"; then
27464 echo $ECHO_N "(cached) $ECHO_C" >&6
27465else
27466 eval "$as_ac_Header=\$ac_header_preproc"
27467fi
27468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27470
27471fi
27472if test `eval echo '${'$as_ac_Header'}'` = yes; then
27473 cat >>confdefs.h <<_ACEOF
27474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27475_ACEOF
27476
27477fi
27478
27479done
27480
27481fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027482
27483
John Criswell7a73b802003-06-30 21:59:07 +000027484echo "$as_me:$LINENO: checking for pid_t" >&5
27485echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27486if test "${ac_cv_type_pid_t+set}" = set; then
27487 echo $ECHO_N "(cached) $ECHO_C" >&6
27488else
27489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027490/* confdefs.h. */
27491_ACEOF
27492cat confdefs.h >>conftest.$ac_ext
27493cat >>conftest.$ac_ext <<_ACEOF
27494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027495$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027496int
27497main ()
27498{
27499if ((pid_t *) 0)
27500 return 0;
27501if (sizeof (pid_t))
27502 return 0;
27503 ;
27504 return 0;
27505}
27506_ACEOF
27507rm -f conftest.$ac_objext
27508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027509 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027511 grep -v '^ *+' conftest.er1 >conftest.err
27512 rm -f conftest.er1
27513 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027516 { ac_try='test -z "$ac_c_werror_flag"
27517 || test ! -s conftest.err'
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
27523 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 ac_cv_type_pid_t=yes
27530else
27531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027532sed 's/^/| /' conftest.$ac_ext >&5
27533
John Criswell7a73b802003-06-30 21:59:07 +000027534ac_cv_type_pid_t=no
27535fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027537fi
27538echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27539echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27540if test $ac_cv_type_pid_t = yes; then
27541 :
27542else
27543
27544cat >>confdefs.h <<_ACEOF
27545#define pid_t int
27546_ACEOF
27547
27548fi
27549
27550echo "$as_me:$LINENO: checking for size_t" >&5
27551echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27552if test "${ac_cv_type_size_t+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27554else
27555 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027556/* confdefs.h. */
27557_ACEOF
27558cat confdefs.h >>conftest.$ac_ext
27559cat >>conftest.$ac_ext <<_ACEOF
27560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027561$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027562int
27563main ()
27564{
27565if ((size_t *) 0)
27566 return 0;
27567if (sizeof (size_t))
27568 return 0;
27569 ;
27570 return 0;
27571}
27572_ACEOF
27573rm -f conftest.$ac_objext
27574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027575 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027582 { ac_try='test -z "$ac_c_werror_flag"
27583 || test ! -s conftest.err'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 ac_cv_type_size_t=yes
27596else
27597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027598sed 's/^/| /' conftest.$ac_ext >&5
27599
John Criswell7a73b802003-06-30 21:59:07 +000027600ac_cv_type_size_t=no
27601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027603fi
27604echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27605echo "${ECHO_T}$ac_cv_type_size_t" >&6
27606if test $ac_cv_type_size_t = yes; then
27607 :
27608else
27609
27610cat >>confdefs.h <<_ACEOF
27611#define size_t unsigned
27612_ACEOF
27613
27614fi
27615
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027616echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27617echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27618if test "${ac_cv_type_signal+set}" = set; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27620else
27621 cat >conftest.$ac_ext <<_ACEOF
27622/* confdefs.h. */
27623_ACEOF
27624cat confdefs.h >>conftest.$ac_ext
27625cat >>conftest.$ac_ext <<_ACEOF
27626/* end confdefs.h. */
27627#include <sys/types.h>
27628#include <signal.h>
27629#ifdef signal
27630# undef signal
27631#endif
27632#ifdef __cplusplus
27633extern "C" void (*signal (int, void (*)(int)))(int);
27634#else
27635void (*signal ()) ();
27636#endif
27637
27638int
27639main ()
27640{
27641int i;
27642 ;
27643 return 0;
27644}
27645_ACEOF
27646rm -f conftest.$ac_objext
27647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648 (eval $ac_compile) 2>conftest.er1
27649 ac_status=$?
27650 grep -v '^ *+' conftest.er1 >conftest.err
27651 rm -f conftest.er1
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } &&
27655 { ac_try='test -z "$ac_c_werror_flag"
27656 || test ! -s conftest.err'
27657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658 (eval $ac_try) 2>&5
27659 ac_status=$?
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; } &&
27662 { ac_try='test -s conftest.$ac_objext'
27663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664 (eval $ac_try) 2>&5
27665 ac_status=$?
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); }; }; then
27668 ac_cv_type_signal=void
27669else
27670 echo "$as_me: failed program was:" >&5
27671sed 's/^/| /' conftest.$ac_ext >&5
27672
27673ac_cv_type_signal=int
27674fi
27675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27676fi
27677echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27678echo "${ECHO_T}$ac_cv_type_signal" >&6
27679
27680cat >>confdefs.h <<_ACEOF
27681#define RETSIGTYPE $ac_cv_type_signal
27682_ACEOF
27683
27684
27685echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27686echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27687if test "${ac_cv_struct_tm+set}" = set; then
27688 echo $ECHO_N "(cached) $ECHO_C" >&6
27689else
27690 cat >conftest.$ac_ext <<_ACEOF
27691/* confdefs.h. */
27692_ACEOF
27693cat confdefs.h >>conftest.$ac_ext
27694cat >>conftest.$ac_ext <<_ACEOF
27695/* end confdefs.h. */
27696#include <sys/types.h>
27697#include <time.h>
27698
27699int
27700main ()
27701{
27702struct tm *tp; tp->tm_sec;
27703 ;
27704 return 0;
27705}
27706_ACEOF
27707rm -f conftest.$ac_objext
27708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27709 (eval $ac_compile) 2>conftest.er1
27710 ac_status=$?
27711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest.$ac_objext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 ac_cv_struct_tm=time.h
27730else
27731 echo "$as_me: failed program was:" >&5
27732sed 's/^/| /' conftest.$ac_ext >&5
27733
27734ac_cv_struct_tm=sys/time.h
27735fi
27736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737fi
27738echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27739echo "${ECHO_T}$ac_cv_struct_tm" >&6
27740if test $ac_cv_struct_tm = sys/time.h; then
27741
27742cat >>confdefs.h <<\_ACEOF
27743#define TM_IN_SYS_TIME 1
27744_ACEOF
27745
27746fi
27747
John Criswell7a73b802003-06-30 21:59:07 +000027748echo "$as_me:$LINENO: checking for int64_t" >&5
27749echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27750if test "${ac_cv_type_int64_t+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027754/* confdefs.h. */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
27758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027759$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027760int
27761main ()
27762{
27763if ((int64_t *) 0)
27764 return 0;
27765if (sizeof (int64_t))
27766 return 0;
27767 ;
27768 return 0;
27769}
27770_ACEOF
27771rm -f conftest.$ac_objext
27772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027773 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027775 grep -v '^ *+' conftest.er1 >conftest.err
27776 rm -f conftest.er1
27777 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ac_cv_type_int64_t=yes
27794else
27795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027796sed 's/^/| /' conftest.$ac_ext >&5
27797
John Criswell7a73b802003-06-30 21:59:07 +000027798ac_cv_type_int64_t=no
27799fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027801fi
27802echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27803echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27804if test $ac_cv_type_int64_t = yes; then
27805
27806cat >>confdefs.h <<_ACEOF
27807#define HAVE_INT64_T 1
27808_ACEOF
27809
27810
27811else
27812 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27813echo "$as_me: error: Type int64_t required but not found" >&2;}
27814 { (exit 1); exit 1; }; }
27815fi
27816
27817echo "$as_me:$LINENO: checking for uint64_t" >&5
27818echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27819if test "${ac_cv_type_uint64_t+set}" = set; then
27820 echo $ECHO_N "(cached) $ECHO_C" >&6
27821else
27822 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027823/* confdefs.h. */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027828$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027829int
27830main ()
27831{
27832if ((uint64_t *) 0)
27833 return 0;
27834if (sizeof (uint64_t))
27835 return 0;
27836 ;
27837 return 0;
27838}
27839_ACEOF
27840rm -f conftest.$ac_objext
27841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027842 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027849 { ac_try='test -z "$ac_c_werror_flag"
27850 || test ! -s conftest.err'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; }; then
27862 ac_cv_type_uint64_t=yes
27863else
27864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027865sed 's/^/| /' conftest.$ac_ext >&5
27866
John Criswell7a73b802003-06-30 21:59:07 +000027867ac_cv_type_uint64_t=no
27868fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027870fi
27871echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27872echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27873if test $ac_cv_type_uint64_t = yes; then
27874
27875cat >>confdefs.h <<_ACEOF
27876#define HAVE_UINT64_T 1
27877_ACEOF
27878
27879
27880else
Misha Brukmanceca9042004-09-02 23:02:30 +000027881 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027882echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27883if test "${ac_cv_type_u_int64_t+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27885else
27886 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
27892$ac_includes_default
27893int
27894main ()
27895{
27896if ((u_int64_t *) 0)
27897 return 0;
27898if (sizeof (u_int64_t))
27899 return 0;
27900 ;
27901 return 0;
27902}
27903_ACEOF
27904rm -f conftest.$ac_objext
27905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027906 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027907 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027908 grep -v '^ *+' conftest.er1 >conftest.err
27909 rm -f conftest.er1
27910 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027913 { ac_try='test -z "$ac_c_werror_flag"
27914 || test ! -s conftest.err'
27915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916 (eval $ac_try) 2>&5
27917 ac_status=$?
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); }; } &&
27920 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922 (eval $ac_try) 2>&5
27923 ac_status=$?
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); }; }; then
27926 ac_cv_type_u_int64_t=yes
27927else
27928 echo "$as_me: failed program was:" >&5
27929sed 's/^/| /' conftest.$ac_ext >&5
27930
27931ac_cv_type_u_int64_t=no
27932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027934fi
27935echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27936echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27937if test $ac_cv_type_u_int64_t = yes; then
27938
27939cat >>confdefs.h <<_ACEOF
27940#define HAVE_U_INT64_T 1
27941_ACEOF
27942
27943
Misha Brukmanceca9042004-09-02 23:02:30 +000027944else
27945 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27946echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27947 { (exit 1); exit 1; }; }
27948fi
27949
John Criswell679ff312004-09-02 18:44:44 +000027950fi
27951
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027952
27953
27954
27955
27956
27957
27958
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027959
27960
Reid Spencerdf3be822006-01-23 08:15:53 +000027961for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027962do
27963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27964echo "$as_me:$LINENO: checking for $ac_func" >&5
27965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27966if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027967 echo $ECHO_N "(cached) $ECHO_C" >&6
27968else
27969 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027970/* confdefs.h. */
27971_ACEOF
27972cat confdefs.h >>conftest.$ac_ext
27973cat >>conftest.$ac_ext <<_ACEOF
27974/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27977#define $ac_func innocuous_$ac_func
27978
27979/* System header to define __stub macros and hopefully few prototypes,
27980 which can conflict with char $ac_func (); below.
27981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27982 <limits.h> exists even on freestanding compilers. */
27983
27984#ifdef __STDC__
27985# include <limits.h>
27986#else
27987# include <assert.h>
27988#endif
27989
27990#undef $ac_func
27991
27992/* Override any gcc2 internal prototype to avoid an error. */
27993#ifdef __cplusplus
27994extern "C"
27995{
27996#endif
27997/* We use char because int might match the return type of a gcc2
27998 builtin and then its argument prototype would still apply. */
27999char $ac_func ();
28000/* The GNU C library defines this for functions which it implements
28001 to always fail with ENOSYS. Some functions are actually named
28002 something starting with __ and the normal name is an alias. */
28003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28004choke me
28005#else
28006char (*f) () = $ac_func;
28007#endif
28008#ifdef __cplusplus
28009}
28010#endif
John Criswell7a73b802003-06-30 21:59:07 +000028011
John Criswell7a73b802003-06-30 21:59:07 +000028012int
28013main ()
28014{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028015return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028016 ;
28017 return 0;
28018}
28019_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028020rm -f conftest.$ac_objext conftest$ac_exeext
28021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28022 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028023 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028024 grep -v '^ *+' conftest.er1 >conftest.err
28025 rm -f conftest.er1
28026 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028029 { ac_try='test -z "$ac_c_werror_flag"
28030 || test ! -s conftest.err'
28031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032 (eval $ac_try) 2>&5
28033 ac_status=$?
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028036 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038 (eval $ac_try) 2>&5
28039 ac_status=$?
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028042 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028043else
28044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028045sed 's/^/| /' conftest.$ac_ext >&5
28046
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028047eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028048fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028049rm -f conftest.err conftest.$ac_objext \
28050 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028051fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28054if test `eval echo '${'$as_ac_var'}'` = yes; then
28055 cat >>confdefs.h <<_ACEOF
28056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028057_ACEOF
28058
28059fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028060done
John Criswell7a73b802003-06-30 21:59:07 +000028061
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028062
28063
28064
Reid Spencer6af3d262004-12-15 04:01:48 +000028065
28066
Reid Spencer59473af2004-12-25 07:31:29 +000028067
Reid Spencerdf3be822006-01-23 08:15:53 +000028068for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28069do
28070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28071echo "$as_me:$LINENO: checking for $ac_func" >&5
28072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28073if eval "test \"\${$as_ac_var+set}\" = set"; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28075else
28076 cat >conftest.$ac_ext <<_ACEOF
28077/* confdefs.h. */
28078_ACEOF
28079cat confdefs.h >>conftest.$ac_ext
28080cat >>conftest.$ac_ext <<_ACEOF
28081/* end confdefs.h. */
28082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28084#define $ac_func innocuous_$ac_func
28085
28086/* System header to define __stub macros and hopefully few prototypes,
28087 which can conflict with char $ac_func (); below.
28088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28089 <limits.h> exists even on freestanding compilers. */
28090
28091#ifdef __STDC__
28092# include <limits.h>
28093#else
28094# include <assert.h>
28095#endif
28096
28097#undef $ac_func
28098
28099/* Override any gcc2 internal prototype to avoid an error. */
28100#ifdef __cplusplus
28101extern "C"
28102{
28103#endif
28104/* We use char because int might match the return type of a gcc2
28105 builtin and then its argument prototype would still apply. */
28106char $ac_func ();
28107/* The GNU C library defines this for functions which it implements
28108 to always fail with ENOSYS. Some functions are actually named
28109 something starting with __ and the normal name is an alias. */
28110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28111choke me
28112#else
28113char (*f) () = $ac_func;
28114#endif
28115#ifdef __cplusplus
28116}
28117#endif
28118
28119int
28120main ()
28121{
28122return f != $ac_func;
28123 ;
28124 return 0;
28125}
28126_ACEOF
28127rm -f conftest.$ac_objext conftest$ac_exeext
28128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129 (eval $ac_link) 2>conftest.er1
28130 ac_status=$?
28131 grep -v '^ *+' conftest.er1 >conftest.err
28132 rm -f conftest.er1
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag"
28137 || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 eval "$as_ac_var=yes"
28150else
28151 echo "$as_me: failed program was:" >&5
28152sed 's/^/| /' conftest.$ac_ext >&5
28153
28154eval "$as_ac_var=no"
28155fi
28156rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
28158fi
28159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28160echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28161if test `eval echo '${'$as_ac_var'}'` = yes; then
28162 cat >>confdefs.h <<_ACEOF
28163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28164_ACEOF
28165
28166fi
28167done
28168
28169
28170
28171
28172
28173
28174
28175
28176for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000028177do
28178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28179echo "$as_me:$LINENO: checking for $ac_func" >&5
28180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28181if eval "test \"\${$as_ac_var+set}\" = set"; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28183else
28184 cat >conftest.$ac_ext <<_ACEOF
28185/* confdefs.h. */
28186_ACEOF
28187cat confdefs.h >>conftest.$ac_ext
28188cat >>conftest.$ac_ext <<_ACEOF
28189/* end confdefs.h. */
28190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28192#define $ac_func innocuous_$ac_func
28193
28194/* System header to define __stub macros and hopefully few prototypes,
28195 which can conflict with char $ac_func (); below.
28196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28197 <limits.h> exists even on freestanding compilers. */
28198
28199#ifdef __STDC__
28200# include <limits.h>
28201#else
28202# include <assert.h>
28203#endif
28204
28205#undef $ac_func
28206
28207/* Override any gcc2 internal prototype to avoid an error. */
28208#ifdef __cplusplus
28209extern "C"
28210{
28211#endif
28212/* We use char because int might match the return type of a gcc2
28213 builtin and then its argument prototype would still apply. */
28214char $ac_func ();
28215/* The GNU C library defines this for functions which it implements
28216 to always fail with ENOSYS. Some functions are actually named
28217 something starting with __ and the normal name is an alias. */
28218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28219choke me
28220#else
28221char (*f) () = $ac_func;
28222#endif
28223#ifdef __cplusplus
28224}
28225#endif
28226
28227int
28228main ()
28229{
28230return f != $ac_func;
28231 ;
28232 return 0;
28233}
28234_ACEOF
28235rm -f conftest.$ac_objext conftest$ac_exeext
28236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237 (eval $ac_link) 2>conftest.er1
28238 ac_status=$?
28239 grep -v '^ *+' conftest.er1 >conftest.err
28240 rm -f conftest.er1
28241 cat conftest.err >&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } &&
28244 { ac_try='test -z "$ac_c_werror_flag"
28245 || test ! -s conftest.err'
28246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247 (eval $ac_try) 2>&5
28248 ac_status=$?
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; } &&
28251 { ac_try='test -s conftest$ac_exeext'
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28254 ac_status=$?
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; }; then
28257 eval "$as_ac_var=yes"
28258else
28259 echo "$as_me: failed program was:" >&5
28260sed 's/^/| /' conftest.$ac_ext >&5
28261
28262eval "$as_ac_var=no"
28263fi
28264rm -f conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
28266fi
28267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28269if test `eval echo '${'$as_ac_var'}'` = yes; then
28270 cat >>confdefs.h <<_ACEOF
28271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28272_ACEOF
28273
28274fi
28275done
28276
28277
Reid Spencerba46ca32004-12-31 05:49:15 +000028278
28279
Chris Lattner0b142592005-11-14 06:57:34 +000028280
Chris Lattner511f11d2005-11-14 07:25:50 +000028281for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028282do
28283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28284echo "$as_me:$LINENO: checking for $ac_func" >&5
28285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28286if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028287 echo $ECHO_N "(cached) $ECHO_C" >&6
28288else
28289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028290/* confdefs.h. */
28291_ACEOF
28292cat confdefs.h >>conftest.$ac_ext
28293cat >>conftest.$ac_ext <<_ACEOF
28294/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28297#define $ac_func innocuous_$ac_func
28298
28299/* System header to define __stub macros and hopefully few prototypes,
28300 which can conflict with char $ac_func (); below.
28301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28302 <limits.h> exists even on freestanding compilers. */
28303
28304#ifdef __STDC__
28305# include <limits.h>
28306#else
28307# include <assert.h>
28308#endif
28309
28310#undef $ac_func
28311
28312/* Override any gcc2 internal prototype to avoid an error. */
28313#ifdef __cplusplus
28314extern "C"
28315{
28316#endif
28317/* We use char because int might match the return type of a gcc2
28318 builtin and then its argument prototype would still apply. */
28319char $ac_func ();
28320/* The GNU C library defines this for functions which it implements
28321 to always fail with ENOSYS. Some functions are actually named
28322 something starting with __ and the normal name is an alias. */
28323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28324choke me
28325#else
28326char (*f) () = $ac_func;
28327#endif
28328#ifdef __cplusplus
28329}
28330#endif
John Criswell7a73b802003-06-30 21:59:07 +000028331
John Criswell7a73b802003-06-30 21:59:07 +000028332int
28333main ()
28334{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028335return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028336 ;
28337 return 0;
28338}
28339_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028340rm -f conftest.$ac_objext conftest$ac_exeext
28341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28342 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028344 grep -v '^ *+' conftest.er1 >conftest.err
28345 rm -f conftest.er1
28346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028349 { ac_try='test -z "$ac_c_werror_flag"
28350 || test ! -s conftest.err'
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028356 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028362 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028363else
28364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028365sed 's/^/| /' conftest.$ac_ext >&5
28366
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028367eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028368fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028369rm -f conftest.err conftest.$ac_objext \
28370 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028371fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28374if test `eval echo '${'$as_ac_var'}'` = yes; then
28375 cat >>confdefs.h <<_ACEOF
28376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028377_ACEOF
28378
28379fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028380done
John Criswell7a73b802003-06-30 21:59:07 +000028381
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028382echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28383echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028384if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028387 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028388ac_cpp='$CPP $CPPFLAGS'
28389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28391ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028393 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028394 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028395else
28396 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028397
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028398 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028399_ACEOF
28400cat confdefs.h >>conftest.$ac_ext
28401cat >>conftest.$ac_ext <<_ACEOF
28402/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028403
John Criswella0137d32003-10-13 16:22:01 +000028404#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028405#include <stdlib.h>
28406
John Criswella0137d32003-10-13 16:22:01 +000028407int
28408main ()
28409{
28410
Reid Spencer2706f8c2004-09-19 23:53:36 +000028411volatile double A, B;
28412char Buffer[100];
28413A = 1;
28414A /= 10.0;
28415sprintf(Buffer, "%a", A);
28416B = atof(Buffer);
28417if (A != B)
28418 return (1);
28419if (A != 0x1.999999999999ap-4)
28420 return (1);
28421return (0);
John Criswella0137d32003-10-13 16:22:01 +000028422 ;
28423 return 0;
28424}
28425_ACEOF
28426rm -f conftest$ac_exeext
28427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28428 (eval $ac_link) 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028437 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028438else
28439 echo "$as_me: program exited with status $ac_status" >&5
28440echo "$as_me: failed program was:" >&5
28441sed 's/^/| /' conftest.$ac_ext >&5
28442
28443( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028444llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028445fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028446rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028447fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028448 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028449ac_cpp='$CPP $CPPFLAGS'
28450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452ac_compiler_gnu=$ac_cv_c_compiler_gnu
28453
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028454fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028455echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28456echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28457 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028458
28459cat >>confdefs.h <<\_ACEOF
28460#define HAVE_PRINTF_A 1
28461_ACEOF
28462
Reid Spencer2706f8c2004-09-19 23:53:36 +000028463 fi
John Criswella0137d32003-10-13 16:22:01 +000028464
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028465# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28466# for constant arguments. Useless!
28467echo "$as_me:$LINENO: checking for working alloca.h" >&5
28468echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28469if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471else
John Criswell0021c312004-02-13 21:57:29 +000028472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028473/* confdefs.h. */
28474_ACEOF
28475cat confdefs.h >>conftest.$ac_ext
28476cat >>conftest.$ac_ext <<_ACEOF
28477/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028478#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028479int
28480main ()
28481{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028482char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028483 ;
28484 return 0;
28485}
28486_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028487rm -f conftest.$ac_objext conftest$ac_exeext
28488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28489 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028491 grep -v '^ *+' conftest.er1 >conftest.err
28492 rm -f conftest.er1
28493 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028496 { ac_try='test -z "$ac_c_werror_flag"
28497 || test ! -s conftest.err'
28498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499 (eval $ac_try) 2>&5
28500 ac_status=$?
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028503 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028509 ac_cv_working_alloca_h=yes
28510else
28511 echo "$as_me: failed program was:" >&5
28512sed 's/^/| /' conftest.$ac_ext >&5
28513
28514ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028515fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028516rm -f conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
28518fi
28519echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28520echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28521if test $ac_cv_working_alloca_h = yes; then
28522
28523cat >>confdefs.h <<\_ACEOF
28524#define HAVE_ALLOCA_H 1
28525_ACEOF
28526
28527fi
28528
28529echo "$as_me:$LINENO: checking for alloca" >&5
28530echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28531if test "${ac_cv_func_alloca_works+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28533else
28534 cat >conftest.$ac_ext <<_ACEOF
28535/* confdefs.h. */
28536_ACEOF
28537cat confdefs.h >>conftest.$ac_ext
28538cat >>conftest.$ac_ext <<_ACEOF
28539/* end confdefs.h. */
28540#ifdef __GNUC__
28541# define alloca __builtin_alloca
28542#else
28543# ifdef _MSC_VER
28544# include <malloc.h>
28545# define alloca _alloca
28546# else
28547# if HAVE_ALLOCA_H
28548# include <alloca.h>
28549# else
28550# ifdef _AIX
28551 #pragma alloca
28552# else
28553# ifndef alloca /* predefined by HP cc +Olibcalls */
28554char *alloca ();
28555# endif
28556# endif
28557# endif
28558# endif
28559#endif
28560
28561int
28562main ()
28563{
28564char *p = (char *) alloca (1);
28565 ;
28566 return 0;
28567}
28568_ACEOF
28569rm -f conftest.$ac_objext conftest$ac_exeext
28570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571 (eval $ac_link) 2>conftest.er1
28572 ac_status=$?
28573 grep -v '^ *+' conftest.er1 >conftest.err
28574 rm -f conftest.er1
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_c_werror_flag"
28579 || test ! -s conftest.err'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest$ac_exeext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 ac_cv_func_alloca_works=yes
28592else
28593 echo "$as_me: failed program was:" >&5
28594sed 's/^/| /' conftest.$ac_ext >&5
28595
28596ac_cv_func_alloca_works=no
28597fi
28598rm -f conftest.err conftest.$ac_objext \
28599 conftest$ac_exeext conftest.$ac_ext
28600fi
28601echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28602echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28603
28604if test $ac_cv_func_alloca_works = yes; then
28605
28606cat >>confdefs.h <<\_ACEOF
28607#define HAVE_ALLOCA 1
28608_ACEOF
28609
28610else
28611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28612# that cause trouble. Some versions do not even contain alloca or
28613# contain a buggy version. If you still want to use their alloca,
28614# use ar to extract alloca.o from them instead of compiling alloca.c.
28615
28616ALLOCA=alloca.$ac_objext
28617
28618cat >>confdefs.h <<\_ACEOF
28619#define C_ALLOCA 1
28620_ACEOF
28621
28622
28623echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28624echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28625if test "${ac_cv_os_cray+set}" = set; then
28626 echo $ECHO_N "(cached) $ECHO_C" >&6
28627else
28628 cat >conftest.$ac_ext <<_ACEOF
28629/* confdefs.h. */
28630_ACEOF
28631cat confdefs.h >>conftest.$ac_ext
28632cat >>conftest.$ac_ext <<_ACEOF
28633/* end confdefs.h. */
28634#if defined(CRAY) && ! defined(CRAY2)
28635webecray
28636#else
28637wenotbecray
28638#endif
28639
28640_ACEOF
28641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642 $EGREP "webecray" >/dev/null 2>&1; then
28643 ac_cv_os_cray=yes
28644else
28645 ac_cv_os_cray=no
28646fi
28647rm -f conftest*
28648
28649fi
28650echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28651echo "${ECHO_T}$ac_cv_os_cray" >&6
28652if test $ac_cv_os_cray = yes; then
28653 for ac_func in _getb67 GETB67 getb67; do
28654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28655echo "$as_me:$LINENO: checking for $ac_func" >&5
28656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28657if eval "test \"\${$as_ac_var+set}\" = set"; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659else
28660 cat >conftest.$ac_ext <<_ACEOF
28661/* confdefs.h. */
28662_ACEOF
28663cat confdefs.h >>conftest.$ac_ext
28664cat >>conftest.$ac_ext <<_ACEOF
28665/* end confdefs.h. */
28666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28668#define $ac_func innocuous_$ac_func
28669
28670/* System header to define __stub macros and hopefully few prototypes,
28671 which can conflict with char $ac_func (); below.
28672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28673 <limits.h> exists even on freestanding compilers. */
28674
28675#ifdef __STDC__
28676# include <limits.h>
28677#else
28678# include <assert.h>
28679#endif
28680
28681#undef $ac_func
28682
28683/* Override any gcc2 internal prototype to avoid an error. */
28684#ifdef __cplusplus
28685extern "C"
28686{
28687#endif
28688/* We use char because int might match the return type of a gcc2
28689 builtin and then its argument prototype would still apply. */
28690char $ac_func ();
28691/* The GNU C library defines this for functions which it implements
28692 to always fail with ENOSYS. Some functions are actually named
28693 something starting with __ and the normal name is an alias. */
28694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28695choke me
28696#else
28697char (*f) () = $ac_func;
28698#endif
28699#ifdef __cplusplus
28700}
28701#endif
28702
28703int
28704main ()
28705{
28706return f != $ac_func;
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 eval "$as_ac_var=yes"
28734else
28735 echo "$as_me: failed program was:" >&5
28736sed 's/^/| /' conftest.$ac_ext >&5
28737
28738eval "$as_ac_var=no"
28739fi
28740rm -f conftest.err conftest.$ac_objext \
28741 conftest$ac_exeext conftest.$ac_ext
28742fi
28743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28745if test `eval echo '${'$as_ac_var'}'` = yes; then
28746
28747cat >>confdefs.h <<_ACEOF
28748#define CRAY_STACKSEG_END $ac_func
28749_ACEOF
28750
28751 break
28752fi
28753
28754 done
28755fi
28756
28757echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28758echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28759if test "${ac_cv_c_stack_direction+set}" = set; then
28760 echo $ECHO_N "(cached) $ECHO_C" >&6
28761else
28762 if test "$cross_compiling" = yes; then
28763 ac_cv_c_stack_direction=0
28764else
28765 cat >conftest.$ac_ext <<_ACEOF
28766/* confdefs.h. */
28767_ACEOF
28768cat confdefs.h >>conftest.$ac_ext
28769cat >>conftest.$ac_ext <<_ACEOF
28770/* end confdefs.h. */
28771int
28772find_stack_direction ()
28773{
28774 static char *addr = 0;
28775 auto char dummy;
28776 if (addr == 0)
28777 {
28778 addr = &dummy;
28779 return find_stack_direction ();
28780 }
John Criswell0021c312004-02-13 21:57:29 +000028781 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028782 return (&dummy > addr) ? 1 : -1;
28783}
John Criswell0021c312004-02-13 21:57:29 +000028784
John Criswell0021c312004-02-13 21:57:29 +000028785int
28786main ()
28787{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028788 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028789}
28790_ACEOF
28791rm -f conftest$ac_exeext
28792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793 (eval $ac_link) 2>&5
28794 ac_status=$?
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798 (eval $ac_try) 2>&5
28799 ac_status=$?
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028802 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028803else
28804 echo "$as_me: program exited with status $ac_status" >&5
28805echo "$as_me: failed program was:" >&5
28806sed 's/^/| /' conftest.$ac_ext >&5
28807
28808( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028809ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028810fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028811rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028812fi
28813fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028814echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28815echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28816
28817cat >>confdefs.h <<_ACEOF
28818#define STACK_DIRECTION $ac_cv_c_stack_direction
28819_ACEOF
28820
28821
John Criswell0021c312004-02-13 21:57:29 +000028822fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028823
28824
28825echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28826echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28827if test "${ac_cv_func_rand48+set}" = set; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829else
28830 ac_ext=cc
28831ac_cpp='$CXXCPP $CPPFLAGS'
28832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28835
28836 cat >conftest.$ac_ext <<_ACEOF
28837/* confdefs.h. */
28838_ACEOF
28839cat confdefs.h >>conftest.$ac_ext
28840cat >>conftest.$ac_ext <<_ACEOF
28841/* end confdefs.h. */
28842#include <stdlib.h>
28843int
28844main ()
28845{
28846srand48(0);lrand48();drand48();
28847 ;
28848 return 0;
28849}
28850_ACEOF
28851rm -f conftest.$ac_objext
28852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28853 (eval $ac_compile) 2>conftest.er1
28854 ac_status=$?
28855 grep -v '^ *+' conftest.er1 >conftest.err
28856 rm -f conftest.er1
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
28860 { ac_try='test -z "$ac_cxx_werror_flag"
28861 || test ! -s conftest.err'
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; } &&
28867 { ac_try='test -s conftest.$ac_objext'
28868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869 (eval $ac_try) 2>&5
28870 ac_status=$?
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28873 ac_cv_func_rand48=yes
28874else
28875 echo "$as_me: failed program was:" >&5
28876sed 's/^/| /' conftest.$ac_ext >&5
28877
28878ac_cv_func_rand48=no
28879fi
28880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28881 ac_ext=c
28882ac_cpp='$CPP $CPPFLAGS'
28883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28885ac_compiler_gnu=$ac_cv_c_compiler_gnu
28886
28887fi
28888echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28889echo "${ECHO_T}$ac_cv_func_rand48" >&6
28890
28891if test "$ac_cv_func_rand48" = "yes" ; then
28892
28893cat >>confdefs.h <<\_ACEOF
28894#define HAVE_RAND48 1
28895_ACEOF
28896
28897fi
John Criswell0021c312004-02-13 21:57:29 +000028898
28899
John Criswell7a73b802003-06-30 21:59:07 +000028900echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28901echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28902if test "${ac_cv_cxx_namespaces+set}" = set; then
28903 echo $ECHO_N "(cached) $ECHO_C" >&6
28904else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028905 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028906ac_cpp='$CXXCPP $CPPFLAGS'
28907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28910
28911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028917namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028918int
28919main ()
28920{
28921using namespace Outer::Inner; return i;
28922 ;
28923 return 0;
28924}
28925_ACEOF
28926rm -f conftest.$ac_objext
28927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028928 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028930 grep -v '^ *+' conftest.er1 >conftest.err
28931 rm -f conftest.er1
28932 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028935 { ac_try='test -z "$ac_cxx_werror_flag"
28936 || test ! -s conftest.err'
28937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938 (eval $ac_try) 2>&5
28939 ac_status=$?
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); }; } &&
28942 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944 (eval $ac_try) 2>&5
28945 ac_status=$?
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); }; }; then
28948 ac_cv_cxx_namespaces=yes
28949else
28950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028951sed 's/^/| /' conftest.$ac_ext >&5
28952
John Criswell7a73b802003-06-30 21:59:07 +000028953ac_cv_cxx_namespaces=no
28954fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028956 ac_ext=c
28957ac_cpp='$CPP $CPPFLAGS'
28958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28960ac_compiler_gnu=$ac_cv_c_compiler_gnu
28961
28962
28963fi
28964echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28965echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28966if test "$ac_cv_cxx_namespaces" = yes; then
28967
28968cat >>confdefs.h <<\_ACEOF
28969#define HAVE_NAMESPACES
28970_ACEOF
28971
28972fi
28973
Brian Gaeke90583492003-11-10 03:06:28 +000028974echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28975echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28976if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028977 echo $ECHO_N "(cached) $ECHO_C" >&6
28978else
28979
John Criswell7a73b802003-06-30 21:59:07 +000028980 ac_ext=cc
28981ac_cpp='$CXXCPP $CPPFLAGS'
28982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28985
28986 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028987/* confdefs.h. */
28988_ACEOF
28989cat confdefs.h >>conftest.$ac_ext
28990cat >>conftest.$ac_ext <<_ACEOF
28991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028992#include <ext/hash_map>
28993#ifdef HAVE_NAMESPACES
28994using namespace std;
28995#endif
John Criswell7a73b802003-06-30 21:59:07 +000028996int
28997main ()
28998{
Brian Gaeke90583492003-11-10 03:06:28 +000028999hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029000 ;
29001 return 0;
29002}
29003_ACEOF
29004rm -f conftest.$ac_objext
29005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029006 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029008 grep -v '^ *+' conftest.er1 >conftest.err
29009 rm -f conftest.er1
29010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029013 { ac_try='test -z "$ac_cxx_werror_flag"
29014 || test ! -s conftest.err'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029026 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000029027else
29028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029029sed 's/^/| /' conftest.$ac_ext >&5
29030
Brian Gaeke90583492003-11-10 03:06:28 +000029031ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029032fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029034 ac_ext=c
29035ac_cpp='$CPP $CPPFLAGS'
29036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29038ac_compiler_gnu=$ac_cv_c_compiler_gnu
29039
John Criswell7a73b802003-06-30 21:59:07 +000029040fi
Brian Gaeke90583492003-11-10 03:06:28 +000029041echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29042echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029043 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29044 then
John Criswell9f011862004-09-24 18:28:00 +000029045
29046cat >>confdefs.h <<\_ACEOF
29047#define HAVE_STD_EXT_HASH_MAP 1
29048_ACEOF
29049
29050 else
29051
29052cat >>confdefs.h <<\_ACEOF
29053#define HAVE_STD_EXT_HASH_MAP 0
29054_ACEOF
29055
Brian Gaeke90583492003-11-10 03:06:28 +000029056 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029057
Brian Gaeke90583492003-11-10 03:06:28 +000029058 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29059echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29060if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29062else
29063
Brian Gaeke90583492003-11-10 03:06:28 +000029064 ac_ext=cc
29065ac_cpp='$CXXCPP $CPPFLAGS'
29066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29069
29070 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029071/* confdefs.h. */
29072_ACEOF
29073cat confdefs.h >>conftest.$ac_ext
29074cat >>conftest.$ac_ext <<_ACEOF
29075/* end confdefs.h. */
29076#include <ext/hash_map>
29077#ifdef HAVE_NAMESPACES
29078using namespace __gnu_cxx;
29079#endif
29080int
29081main ()
29082{
29083hash_map<int,int> t;
29084 ;
29085 return 0;
29086}
29087_ACEOF
29088rm -f conftest.$ac_objext
29089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029090 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029092 grep -v '^ *+' conftest.er1 >conftest.err
29093 rm -f conftest.er1
29094 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029097 { ac_try='test -z "$ac_cxx_werror_flag"
29098 || test ! -s conftest.err'
29099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100 (eval $ac_try) 2>&5
29101 ac_status=$?
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; } &&
29104 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106 (eval $ac_try) 2>&5
29107 ac_status=$?
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; }; then
29110 ac_cv_cxx_have_gnu_ext_hash_map=yes
29111else
29112 echo "$as_me: failed program was:" >&5
29113sed 's/^/| /' conftest.$ac_ext >&5
29114
29115ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000029116fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029118 ac_ext=c
29119ac_cpp='$CPP $CPPFLAGS'
29120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29122ac_compiler_gnu=$ac_cv_c_compiler_gnu
29123
29124fi
29125echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29126echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029127 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29128 then
John Criswell9f011862004-09-24 18:28:00 +000029129
29130cat >>confdefs.h <<\_ACEOF
29131#define HAVE_GNU_EXT_HASH_MAP 1
29132_ACEOF
29133
29134 else
29135
29136cat >>confdefs.h <<\_ACEOF
29137#define HAVE_GNU_EXT_HASH_MAP 0
29138_ACEOF
29139
Brian Gaeke90583492003-11-10 03:06:28 +000029140 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029141
Brian Gaeke90583492003-11-10 03:06:28 +000029142 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29143echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29144if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29146else
John Criswell7a73b802003-06-30 21:59:07 +000029147
Brian Gaeke90583492003-11-10 03:06:28 +000029148 ac_ext=cc
29149ac_cpp='$CXXCPP $CPPFLAGS'
29150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29153
29154 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029155/* confdefs.h. */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h. */
29160#include <hash_map>
29161int
29162main ()
29163{
29164hash_map<int,int> t;
29165 ;
29166 return 0;
29167}
29168_ACEOF
29169rm -f conftest.$ac_objext
29170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029171 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029172 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029173 grep -v '^ *+' conftest.er1 >conftest.err
29174 rm -f conftest.er1
29175 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029178 { ac_try='test -z "$ac_cxx_werror_flag"
29179 || test ! -s conftest.err'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187 (eval $ac_try) 2>&5
29188 ac_status=$?
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ac_cv_cxx_have_global_hash_map=yes
29192else
29193 echo "$as_me: failed program was:" >&5
29194sed 's/^/| /' conftest.$ac_ext >&5
29195
29196ac_cv_cxx_have_global_hash_map=no
29197fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029199 ac_ext=c
29200ac_cpp='$CPP $CPPFLAGS'
29201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203ac_compiler_gnu=$ac_cv_c_compiler_gnu
29204
29205fi
29206echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29207echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029208 if test "$ac_cv_cxx_have_global_hash_map" = yes
29209 then
John Criswell9f011862004-09-24 18:28:00 +000029210
29211cat >>confdefs.h <<\_ACEOF
29212#define HAVE_GLOBAL_HASH_MAP 1
29213_ACEOF
29214
29215 else
29216
29217cat >>confdefs.h <<\_ACEOF
29218#define HAVE_GLOBAL_HASH_MAP 0
29219_ACEOF
29220
Brian Gaeke90583492003-11-10 03:06:28 +000029221 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029222
Brian Gaeke90583492003-11-10 03:06:28 +000029223echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29224echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29225if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227else
29228
John Criswell7a73b802003-06-30 21:59:07 +000029229 ac_ext=cc
29230ac_cpp='$CXXCPP $CPPFLAGS'
29231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29234
29235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029236/* confdefs.h. */
29237_ACEOF
29238cat confdefs.h >>conftest.$ac_ext
29239cat >>conftest.$ac_ext <<_ACEOF
29240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029241#include <ext/hash_set>
29242#ifdef HAVE_NAMESPACES
29243using namespace std;
29244#endif
John Criswell7a73b802003-06-30 21:59:07 +000029245int
29246main ()
29247{
Brian Gaeke90583492003-11-10 03:06:28 +000029248hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029249 ;
29250 return 0;
29251}
29252_ACEOF
29253rm -f conftest.$ac_objext
29254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029255 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029257 grep -v '^ *+' conftest.er1 >conftest.err
29258 rm -f conftest.er1
29259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029262 { ac_try='test -z "$ac_cxx_werror_flag"
29263 || test ! -s conftest.err'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29266 ac_status=$?
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } &&
29269 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029275 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029276else
29277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029278sed 's/^/| /' conftest.$ac_ext >&5
29279
Brian Gaeke90583492003-11-10 03:06:28 +000029280ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029283 ac_ext=c
29284ac_cpp='$CPP $CPPFLAGS'
29285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287ac_compiler_gnu=$ac_cv_c_compiler_gnu
29288
29289fi
29290echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29291echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029292 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29293 then
John Criswell9f011862004-09-24 18:28:00 +000029294
29295cat >>confdefs.h <<\_ACEOF
29296#define HAVE_STD_EXT_HASH_SET 1
29297_ACEOF
29298
29299 else
29300
29301cat >>confdefs.h <<\_ACEOF
29302#define HAVE_STD_EXT_HASH_SET 0
29303_ACEOF
29304
Brian Gaeke90583492003-11-10 03:06:28 +000029305 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029306
Brian Gaeke90583492003-11-10 03:06:28 +000029307 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29308echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29309if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311else
29312
Brian Gaeke90583492003-11-10 03:06:28 +000029313 ac_ext=cc
29314ac_cpp='$CXXCPP $CPPFLAGS'
29315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29318
John Criswell7a73b802003-06-30 21:59:07 +000029319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029320/* confdefs.h. */
29321_ACEOF
29322cat confdefs.h >>conftest.$ac_ext
29323cat >>conftest.$ac_ext <<_ACEOF
29324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029325#include <ext/hash_set>
29326#ifdef HAVE_NAMESPACES
29327using namespace __gnu_cxx;
29328#endif
John Criswell7a73b802003-06-30 21:59:07 +000029329int
29330main ()
29331{
Brian Gaeke90583492003-11-10 03:06:28 +000029332hash_set<int> t;
29333 ;
29334 return 0;
29335}
29336_ACEOF
29337rm -f conftest.$ac_objext
29338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029339 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029341 grep -v '^ *+' conftest.er1 >conftest.err
29342 rm -f conftest.er1
29343 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029346 { ac_try='test -z "$ac_cxx_werror_flag"
29347 || test ! -s conftest.err'
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29350 ac_status=$?
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; } &&
29353 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; }; then
29359 ac_cv_cxx_have_gnu_ext_hash_set=yes
29360else
29361 echo "$as_me: failed program was:" >&5
29362sed 's/^/| /' conftest.$ac_ext >&5
29363
29364ac_cv_cxx_have_gnu_ext_hash_set=no
29365fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029367 ac_ext=c
29368ac_cpp='$CPP $CPPFLAGS'
29369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371ac_compiler_gnu=$ac_cv_c_compiler_gnu
29372
29373fi
29374echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29375echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029376 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29377 then
John Criswell9f011862004-09-24 18:28:00 +000029378
29379cat >>confdefs.h <<\_ACEOF
29380#define HAVE_GNU_EXT_HASH_SET 1
29381_ACEOF
29382
29383 else
29384
29385cat >>confdefs.h <<\_ACEOF
29386#define HAVE_GNU_EXT_HASH_SET 0
29387_ACEOF
29388
Brian Gaeke90583492003-11-10 03:06:28 +000029389 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029390
Brian Gaeke90583492003-11-10 03:06:28 +000029391 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29392echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29393if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29395else
29396
Brian Gaeke90583492003-11-10 03:06:28 +000029397 ac_ext=cc
29398ac_cpp='$CXXCPP $CPPFLAGS'
29399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29402
29403 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029404/* confdefs.h. */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h. */
29409#include <hash_set>
29410int
29411main ()
29412{
John Criswell7a73b802003-06-30 21:59:07 +000029413hash_set<int> t; return 0;
29414 ;
29415 return 0;
29416}
29417_ACEOF
29418rm -f conftest.$ac_objext
29419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029420 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029427 { ac_try='test -z "$ac_cxx_werror_flag"
29428 || test ! -s conftest.err'
29429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430 (eval $ac_try) 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029440 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029441else
29442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029443sed 's/^/| /' conftest.$ac_ext >&5
29444
Brian Gaeke90583492003-11-10 03:06:28 +000029445ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029446fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029448 ac_ext=c
29449ac_cpp='$CPP $CPPFLAGS'
29450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29452ac_compiler_gnu=$ac_cv_c_compiler_gnu
29453
John Criswell7a73b802003-06-30 21:59:07 +000029454fi
Brian Gaeke90583492003-11-10 03:06:28 +000029455echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29456echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029457 if test "$ac_cv_cxx_have_global_hash_set" = yes
29458 then
John Criswell9f011862004-09-24 18:28:00 +000029459
29460cat >>confdefs.h <<\_ACEOF
29461#define HAVE_GLOBAL_HASH_SET 1
29462_ACEOF
29463
29464 else
29465
29466cat >>confdefs.h <<\_ACEOF
29467#define HAVE_GLOBAL_HASH_SET 0
29468_ACEOF
29469
Brian Gaeke90583492003-11-10 03:06:28 +000029470 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029471
John Criswell7a73b802003-06-30 21:59:07 +000029472echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29473echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29474if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477
John Criswell7a73b802003-06-30 21:59:07 +000029478 ac_ext=cc
29479ac_cpp='$CXXCPP $CPPFLAGS'
29480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29483
29484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029485/* confdefs.h. */
29486_ACEOF
29487cat confdefs.h >>conftest.$ac_ext
29488cat >>conftest.$ac_ext <<_ACEOF
29489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029490#include <iterator>
29491#ifdef HAVE_NAMESPACES
29492using namespace std;
29493#endif
John Criswell7a73b802003-06-30 21:59:07 +000029494int
29495main ()
29496{
29497iterator<int,int,int> t; return 0;
29498 ;
29499 return 0;
29500}
29501_ACEOF
29502rm -f conftest.$ac_objext
29503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029504 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029506 grep -v '^ *+' conftest.er1 >conftest.err
29507 rm -f conftest.er1
29508 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029511 { ac_try='test -z "$ac_cxx_werror_flag"
29512 || test ! -s conftest.err'
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29524 ac_cv_cxx_have_std_iterator=yes
29525else
29526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029527sed 's/^/| /' conftest.$ac_ext >&5
29528
John Criswell7a73b802003-06-30 21:59:07 +000029529ac_cv_cxx_have_std_iterator=no
29530fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029532 ac_ext=c
29533ac_cpp='$CPP $CPPFLAGS'
29534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536ac_compiler_gnu=$ac_cv_c_compiler_gnu
29537
29538
29539fi
29540echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29541echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029542if test "$ac_cv_cxx_have_std_iterator" = yes
29543then
John Criswell40468462004-09-24 21:19:06 +000029544
29545cat >>confdefs.h <<\_ACEOF
29546#define HAVE_STD_ITERATOR 1
29547_ACEOF
29548
29549else
29550
29551cat >>confdefs.h <<\_ACEOF
29552#define HAVE_STD_ITERATOR 0
29553_ACEOF
29554
John Criswell7a73b802003-06-30 21:59:07 +000029555fi
29556
29557echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29558echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29559if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29560 echo $ECHO_N "(cached) $ECHO_C" >&6
29561else
29562
John Criswell7a73b802003-06-30 21:59:07 +000029563 ac_ext=cc
29564ac_cpp='$CXXCPP $CPPFLAGS'
29565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29568
29569 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029575#include <iterator>
29576#ifdef HAVE_NAMESPACES
29577using namespace std;
29578#endif
John Criswell7a73b802003-06-30 21:59:07 +000029579int
29580main ()
29581{
John Criswellc78022e2003-07-29 19:11:58 +000029582bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029583 ;
29584 return 0;
29585}
29586_ACEOF
29587rm -f conftest.$ac_objext
29588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029589 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029590 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029591 grep -v '^ *+' conftest.er1 >conftest.err
29592 rm -f conftest.er1
29593 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029596 { ac_try='test -z "$ac_cxx_werror_flag"
29597 || test ! -s conftest.err'
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; } &&
29603 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 ac_cv_cxx_have_bi_iterator=yes
29610else
29611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029612sed 's/^/| /' conftest.$ac_ext >&5
29613
John Criswell7a73b802003-06-30 21:59:07 +000029614ac_cv_cxx_have_bi_iterator=no
29615fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029617 ac_ext=c
29618ac_cpp='$CPP $CPPFLAGS'
29619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621ac_compiler_gnu=$ac_cv_c_compiler_gnu
29622
29623
29624fi
29625echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29626echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029627if test "$ac_cv_cxx_have_bi_iterator" = yes
29628then
John Criswell40468462004-09-24 21:19:06 +000029629
29630cat >>confdefs.h <<\_ACEOF
29631#define HAVE_BI_ITERATOR 1
29632_ACEOF
29633
29634else
29635
29636cat >>confdefs.h <<\_ACEOF
29637#define HAVE_BI_ITERATOR 0
29638_ACEOF
29639
John Criswell7a73b802003-06-30 21:59:07 +000029640fi
29641
29642echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29643echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29644if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29645 echo $ECHO_N "(cached) $ECHO_C" >&6
29646else
29647
John Criswell7a73b802003-06-30 21:59:07 +000029648 ac_ext=cc
29649ac_cpp='$CXXCPP $CPPFLAGS'
29650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29653
29654 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029655/* confdefs.h. */
29656_ACEOF
29657cat confdefs.h >>conftest.$ac_ext
29658cat >>conftest.$ac_ext <<_ACEOF
29659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029660#include <iterator>
29661#ifdef HAVE_NAMESPACES
29662using namespace std;
29663#endif
John Criswell7a73b802003-06-30 21:59:07 +000029664int
29665main ()
29666{
John Criswellc78022e2003-07-29 19:11:58 +000029667forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029668 ;
29669 return 0;
29670}
29671_ACEOF
29672rm -f conftest.$ac_objext
29673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029674 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029676 grep -v '^ *+' conftest.er1 >conftest.err
29677 rm -f conftest.er1
29678 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029681 { ac_try='test -z "$ac_cxx_werror_flag"
29682 || test ! -s conftest.err'
29683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684 (eval $ac_try) 2>&5
29685 ac_status=$?
29686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687 (exit $ac_status); }; } &&
29688 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690 (eval $ac_try) 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; }; then
29694 ac_cv_cxx_have_fwd_iterator=yes
29695else
29696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029697sed 's/^/| /' conftest.$ac_ext >&5
29698
John Criswell7a73b802003-06-30 21:59:07 +000029699ac_cv_cxx_have_fwd_iterator=no
29700fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029702 ac_ext=c
29703ac_cpp='$CPP $CPPFLAGS'
29704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29706ac_compiler_gnu=$ac_cv_c_compiler_gnu
29707
29708
29709fi
29710echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29711echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029712if test "$ac_cv_cxx_have_fwd_iterator" = yes
29713then
John Criswell40468462004-09-24 21:19:06 +000029714
29715cat >>confdefs.h <<\_ACEOF
29716#define HAVE_FWD_ITERATOR 1
29717_ACEOF
29718
29719else
29720
29721cat >>confdefs.h <<\_ACEOF
29722#define HAVE_FWD_ITERATOR 0
29723_ACEOF
29724
John Criswell7a73b802003-06-30 21:59:07 +000029725fi
29726
29727
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029728echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29729echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29730if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29732else
29733 ac_ext=cc
29734ac_cpp='$CXXCPP $CPPFLAGS'
29735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29738
Reid Spencerabec8f92004-10-27 23:03:44 +000029739 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029740/* confdefs.h. */
29741_ACEOF
29742cat confdefs.h >>conftest.$ac_ext
29743cat >>conftest.$ac_ext <<_ACEOF
29744/* end confdefs.h. */
29745#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029746int
29747main ()
29748{
29749float f; isnan(f);
29750 ;
29751 return 0;
29752}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029753_ACEOF
29754rm -f conftest.$ac_objext
29755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029756 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029758 grep -v '^ *+' conftest.er1 >conftest.err
29759 rm -f conftest.er1
29760 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029763 { ac_try='test -z "$ac_cxx_werror_flag"
29764 || test ! -s conftest.err'
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29773 ac_status=$?
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29776 ac_cv_func_isnan_in_math_h=yes
29777else
29778 echo "$as_me: failed program was:" >&5
29779sed 's/^/| /' conftest.$ac_ext >&5
29780
29781ac_cv_func_isnan_in_math_h=no
29782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029784 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029785ac_cpp='$CPP $CPPFLAGS'
29786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788ac_compiler_gnu=$ac_cv_c_compiler_gnu
29789
29790fi
29791echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29792echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029793
29794
29795if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029796
29797cat >>confdefs.h <<\_ACEOF
29798#define HAVE_ISNAN_IN_MATH_H 1
29799_ACEOF
29800
Reid Spencerabec8f92004-10-27 23:03:44 +000029801fi
29802
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029803echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29804echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29805if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29806 echo $ECHO_N "(cached) $ECHO_C" >&6
29807else
29808 ac_ext=cc
29809ac_cpp='$CXXCPP $CPPFLAGS'
29810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29813
Reid Spencerabec8f92004-10-27 23:03:44 +000029814 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029815/* confdefs.h. */
29816_ACEOF
29817cat confdefs.h >>conftest.$ac_ext
29818cat >>conftest.$ac_ext <<_ACEOF
29819/* end confdefs.h. */
29820#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029821int
29822main ()
29823{
29824float f; isnan(f);
29825 ;
29826 return 0;
29827}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029828_ACEOF
29829rm -f conftest.$ac_objext
29830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029831 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029833 grep -v '^ *+' conftest.er1 >conftest.err
29834 rm -f conftest.er1
29835 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029838 { ac_try='test -z "$ac_cxx_werror_flag"
29839 || test ! -s conftest.err'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851 ac_cv_func_isnan_in_cmath=yes
29852else
29853 echo "$as_me: failed program was:" >&5
29854sed 's/^/| /' conftest.$ac_ext >&5
29855
29856ac_cv_func_isnan_in_cmath=no
29857fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029859 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029860ac_cpp='$CPP $CPPFLAGS'
29861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29863ac_compiler_gnu=$ac_cv_c_compiler_gnu
29864
29865fi
29866echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29867echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029868
29869if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029870
29871cat >>confdefs.h <<\_ACEOF
29872#define HAVE_ISNAN_IN_CMATH 1
29873_ACEOF
29874
Reid Spencerabec8f92004-10-27 23:03:44 +000029875fi
29876
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029877echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29878echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29879if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29880 echo $ECHO_N "(cached) $ECHO_C" >&6
29881else
29882 ac_ext=cc
29883ac_cpp='$CXXCPP $CPPFLAGS'
29884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29887
Reid Spencerabec8f92004-10-27 23:03:44 +000029888 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029889/* confdefs.h. */
29890_ACEOF
29891cat confdefs.h >>conftest.$ac_ext
29892cat >>conftest.$ac_ext <<_ACEOF
29893/* end confdefs.h. */
29894#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029895int
29896main ()
29897{
29898float f; std::isnan(f);
29899 ;
29900 return 0;
29901}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029902_ACEOF
29903rm -f conftest.$ac_objext
29904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029905 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029912 { ac_try='test -z "$ac_cxx_werror_flag"
29913 || test ! -s conftest.err'
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; } &&
29919 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29922 ac_status=$?
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; }; then
29925 ac_cv_func_std_isnan_in_cmath=yes
29926else
29927 echo "$as_me: failed program was:" >&5
29928sed 's/^/| /' conftest.$ac_ext >&5
29929
29930ac_cv_func_std_isnan_in_cmath=no
29931fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029933 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029934ac_cpp='$CPP $CPPFLAGS'
29935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29937ac_compiler_gnu=$ac_cv_c_compiler_gnu
29938
29939fi
29940echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29941echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029942
29943if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029944
29945cat >>confdefs.h <<\_ACEOF
29946#define HAVE_STD_ISNAN_IN_CMATH 1
29947_ACEOF
29948
Reid Spencerabec8f92004-10-27 23:03:44 +000029949fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029950
29951
Brian Gaeke52a551d2004-07-21 03:14:12 +000029952echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29953echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29954if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29956else
29957 ac_ext=cc
29958ac_cpp='$CXXCPP $CPPFLAGS'
29959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29962
Reid Spencerabec8f92004-10-27 23:03:44 +000029963 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029964/* confdefs.h. */
29965_ACEOF
29966cat confdefs.h >>conftest.$ac_ext
29967cat >>conftest.$ac_ext <<_ACEOF
29968/* end confdefs.h. */
29969#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029970int
29971main ()
29972{
29973float f; isinf(f);
29974 ;
29975 return 0;
29976}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029977_ACEOF
29978rm -f conftest.$ac_objext
29979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029980 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029982 grep -v '^ *+' conftest.er1 >conftest.err
29983 rm -f conftest.er1
29984 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029987 { ac_try='test -z "$ac_cxx_werror_flag"
29988 || test ! -s conftest.err'
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; } &&
29994 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29997 ac_status=$?
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; }; then
30000 ac_cv_func_isinf_in_math_h=yes
30001else
30002 echo "$as_me: failed program was:" >&5
30003sed 's/^/| /' conftest.$ac_ext >&5
30004
30005ac_cv_func_isinf_in_math_h=no
30006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030008 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030009ac_cpp='$CPP $CPPFLAGS'
30010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012ac_compiler_gnu=$ac_cv_c_compiler_gnu
30013
30014fi
30015echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30016echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030017
30018if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030019
30020cat >>confdefs.h <<\_ACEOF
30021#define HAVE_ISINF_IN_MATH_H 1
30022_ACEOF
30023
Reid Spencerabec8f92004-10-27 23:03:44 +000030024fi
30025
Brian Gaeke52a551d2004-07-21 03:14:12 +000030026echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30027echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30028if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30029 echo $ECHO_N "(cached) $ECHO_C" >&6
30030else
30031 ac_ext=cc
30032ac_cpp='$CXXCPP $CPPFLAGS'
30033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30036
Reid Spencerabec8f92004-10-27 23:03:44 +000030037 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030038/* confdefs.h. */
30039_ACEOF
30040cat confdefs.h >>conftest.$ac_ext
30041cat >>conftest.$ac_ext <<_ACEOF
30042/* end confdefs.h. */
30043#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030044int
30045main ()
30046{
30047float f; isinf(f);
30048 ;
30049 return 0;
30050}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030051_ACEOF
30052rm -f conftest.$ac_objext
30053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030054 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030055 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030056 grep -v '^ *+' conftest.er1 >conftest.err
30057 rm -f conftest.er1
30058 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030061 { ac_try='test -z "$ac_cxx_werror_flag"
30062 || test ! -s conftest.err'
30063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30064 (eval $ac_try) 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; } &&
30068 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070 (eval $ac_try) 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074 ac_cv_func_isinf_in_cmath=yes
30075else
30076 echo "$as_me: failed program was:" >&5
30077sed 's/^/| /' conftest.$ac_ext >&5
30078
30079ac_cv_func_isinf_in_cmath=no
30080fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030082 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030083ac_cpp='$CPP $CPPFLAGS'
30084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30086ac_compiler_gnu=$ac_cv_c_compiler_gnu
30087
30088fi
30089echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30090echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030091
30092if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030093
30094cat >>confdefs.h <<\_ACEOF
30095#define HAVE_ISINF_IN_CMATH 1
30096_ACEOF
30097
Reid Spencerabec8f92004-10-27 23:03:44 +000030098fi
30099
Brian Gaeke52a551d2004-07-21 03:14:12 +000030100echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30101echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30102if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30103 echo $ECHO_N "(cached) $ECHO_C" >&6
30104else
30105 ac_ext=cc
30106ac_cpp='$CXXCPP $CPPFLAGS'
30107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30110
Reid Spencerabec8f92004-10-27 23:03:44 +000030111 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000030112/* confdefs.h. */
30113_ACEOF
30114cat confdefs.h >>conftest.$ac_ext
30115cat >>conftest.$ac_ext <<_ACEOF
30116/* end confdefs.h. */
30117#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000030118int
30119main ()
30120{
30121float f; std::isinf(f)}
30122 ;
30123 return 0;
30124}
Brian Gaeke52a551d2004-07-21 03:14:12 +000030125_ACEOF
30126rm -f conftest.$ac_objext
30127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030128 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000030129 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030130 grep -v '^ *+' conftest.er1 >conftest.err
30131 rm -f conftest.er1
30132 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000030133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030135 { ac_try='test -z "$ac_cxx_werror_flag"
30136 || test ! -s conftest.err'
30137 { (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); }; } &&
30142 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000030143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 (eval $ac_try) 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; }; then
30148 ac_cv_func_std_isinf_in_cmath=yes
30149else
30150 echo "$as_me: failed program was:" >&5
30151sed 's/^/| /' conftest.$ac_ext >&5
30152
30153ac_cv_func_std_isinf_in_cmath=no
30154fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030156 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000030157ac_cpp='$CPP $CPPFLAGS'
30158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30160ac_compiler_gnu=$ac_cv_c_compiler_gnu
30161
30162fi
30163echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30164echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030165
30166if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000030167
30168cat >>confdefs.h <<\_ACEOF
30169#define HAVE_STD_ISINF_IN_CMATH 1
30170_ACEOF
30171
Reid Spencerabec8f92004-10-27 23:03:44 +000030172fi
30173
Brian Gaeked59a6472004-07-21 03:33:58 +000030174echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30175echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30176if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30177 echo $ECHO_N "(cached) $ECHO_C" >&6
30178else
30179 ac_ext=cc
30180ac_cpp='$CXXCPP $CPPFLAGS'
30181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30184
Reid Spencerabec8f92004-10-27 23:03:44 +000030185 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000030186/* confdefs.h. */
30187_ACEOF
30188cat confdefs.h >>conftest.$ac_ext
30189cat >>conftest.$ac_ext <<_ACEOF
30190/* end confdefs.h. */
30191#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000030192int
30193main ()
30194{
30195float f; finite(f);
30196 ;
30197 return 0;
30198}
Brian Gaeked59a6472004-07-21 03:33:58 +000030199_ACEOF
30200rm -f conftest.$ac_objext
30201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030202 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000030203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030204 grep -v '^ *+' conftest.er1 >conftest.err
30205 rm -f conftest.er1
30206 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000030207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030209 { ac_try='test -z "$ac_cxx_werror_flag"
30210 || test ! -s conftest.err'
30211 { (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); }; } &&
30216 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000030217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 ac_cv_func_finite_in_ieeefp_h=yes
30223else
30224 echo "$as_me: failed program was:" >&5
30225sed 's/^/| /' conftest.$ac_ext >&5
30226
30227ac_cv_func_finite_in_ieeefp_h=no
30228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030230 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030231ac_cpp='$CPP $CPPFLAGS'
30232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30234ac_compiler_gnu=$ac_cv_c_compiler_gnu
30235
30236fi
30237echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30238echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030239
Brian Gaeke6802b552004-10-28 05:06:45 +000030240if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030241
30242cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030243#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030244_ACEOF
30245
Reid Spencerabec8f92004-10-27 23:03:44 +000030246fi
30247
30248
30249
John Criswell7a73b802003-06-30 21:59:07 +000030250
30251
30252for ac_header in stdlib.h unistd.h
30253do
30254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30255if eval "test \"\${$as_ac_Header+set}\" = set"; then
30256 echo "$as_me:$LINENO: checking for $ac_header" >&5
30257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30258if eval "test \"\${$as_ac_Header+set}\" = set"; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30260fi
30261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30263else
30264 # Is the header compilable?
30265echo "$as_me:$LINENO: checking $ac_header usability" >&5
30266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30267cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030273$ac_includes_default
30274#include <$ac_header>
30275_ACEOF
30276rm -f conftest.$ac_objext
30277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030278 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030285 { ac_try='test -z "$ac_c_werror_flag"
30286 || test ! -s conftest.err'
30287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30288 (eval $ac_try) 2>&5
30289 ac_status=$?
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; } &&
30292 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294 (eval $ac_try) 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
30298 ac_header_compiler=yes
30299else
30300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030301sed 's/^/| /' conftest.$ac_ext >&5
30302
John Criswell7a73b802003-06-30 21:59:07 +000030303ac_header_compiler=no
30304fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30307echo "${ECHO_T}$ac_header_compiler" >&6
30308
30309# Is the header present?
30310echo "$as_me:$LINENO: checking $ac_header presence" >&5
30311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30312cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030313/* confdefs.h. */
30314_ACEOF
30315cat confdefs.h >>conftest.$ac_ext
30316cat >>conftest.$ac_ext <<_ACEOF
30317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030318#include <$ac_header>
30319_ACEOF
30320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30322 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030323 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030324 rm -f conftest.er1
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } >/dev/null; then
30328 if test -s conftest.err; then
30329 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030331 else
30332 ac_cpp_err=
30333 fi
30334else
30335 ac_cpp_err=yes
30336fi
30337if test -z "$ac_cpp_err"; then
30338 ac_header_preproc=yes
30339else
30340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030341sed 's/^/| /' conftest.$ac_ext >&5
30342
John Criswell7a73b802003-06-30 21:59:07 +000030343 ac_header_preproc=no
30344fi
30345rm -f conftest.err conftest.$ac_ext
30346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30347echo "${ECHO_T}$ac_header_preproc" >&6
30348
30349# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30351 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30356 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030357 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030358 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030371 (
30372 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030373## ----------------------------------- ##
30374## Report this to llvmbugs@cs.uiuc.edu ##
30375## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030376_ASBOX
30377 ) |
30378 sed "s/^/$as_me: WARNING: /" >&2
30379 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030380esac
30381echo "$as_me:$LINENO: checking for $ac_header" >&5
30382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30383if eval "test \"\${$as_ac_Header+set}\" = set"; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030386 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030387fi
30388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30390
30391fi
30392if test `eval echo '${'$as_ac_Header'}'` = yes; then
30393 cat >>confdefs.h <<_ACEOF
30394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30395_ACEOF
30396
30397fi
30398
30399done
30400
30401
30402for ac_func in getpagesize
30403do
30404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405echo "$as_me:$LINENO: checking for $ac_func" >&5
30406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30407if eval "test \"\${$as_ac_var+set}\" = set"; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30409else
30410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030411/* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418#define $ac_func innocuous_$ac_func
30419
John Criswell7a73b802003-06-30 21:59:07 +000030420/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030424
John Criswell0c38eaf2003-09-10 15:17:25 +000030425#ifdef __STDC__
30426# include <limits.h>
30427#else
30428# include <assert.h>
30429#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030430
30431#undef $ac_func
30432
John Criswell7a73b802003-06-30 21:59:07 +000030433/* Override any gcc2 internal prototype to avoid an error. */
30434#ifdef __cplusplus
30435extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030436{
John Criswell7a73b802003-06-30 21:59:07 +000030437#endif
30438/* We use char because int might match the return type of a gcc2
30439 builtin and then its argument prototype would still apply. */
30440char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030441/* The GNU C library defines this for functions which it implements
30442 to always fail with ENOSYS. Some functions are actually named
30443 something starting with __ and the normal name is an alias. */
30444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30445choke me
30446#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030447char (*f) () = $ac_func;
30448#endif
30449#ifdef __cplusplus
30450}
John Criswell7a73b802003-06-30 21:59:07 +000030451#endif
30452
John Criswell0c38eaf2003-09-10 15:17:25 +000030453int
30454main ()
30455{
30456return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030457 ;
30458 return 0;
30459}
30460_ACEOF
30461rm -f conftest.$ac_objext conftest$ac_exeext
30462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030463 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030470 { ac_try='test -z "$ac_c_werror_flag"
30471 || test ! -s conftest.err'
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; } &&
30477 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479 (eval $ac_try) 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 eval "$as_ac_var=yes"
30484else
30485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030486sed 's/^/| /' conftest.$ac_ext >&5
30487
John Criswell7a73b802003-06-30 21:59:07 +000030488eval "$as_ac_var=no"
30489fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030490rm -f conftest.err conftest.$ac_objext \
30491 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030492fi
30493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30495if test `eval echo '${'$as_ac_var'}'` = yes; then
30496 cat >>confdefs.h <<_ACEOF
30497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30498_ACEOF
30499
30500fi
30501done
30502
30503echo "$as_me:$LINENO: checking for working mmap" >&5
30504echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30505if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30507else
30508 if test "$cross_compiling" = yes; then
30509 ac_cv_func_mmap_fixed_mapped=no
30510else
30511 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030512/* confdefs.h. */
30513_ACEOF
30514cat confdefs.h >>conftest.$ac_ext
30515cat >>conftest.$ac_ext <<_ACEOF
30516/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030517$ac_includes_default
30518/* malloc might have been renamed as rpl_malloc. */
30519#undef malloc
30520
30521/* Thanks to Mike Haertel and Jim Avera for this test.
30522 Here is a matrix of mmap possibilities:
30523 mmap private not fixed
30524 mmap private fixed at somewhere currently unmapped
30525 mmap private fixed at somewhere already mapped
30526 mmap shared not fixed
30527 mmap shared fixed at somewhere currently unmapped
30528 mmap shared fixed at somewhere already mapped
30529 For private mappings, we should verify that changes cannot be read()
30530 back from the file, nor mmap's back from the file at a different
30531 address. (There have been systems where private was not correctly
30532 implemented like the infamous i386 svr4.0, and systems where the
30533 VM page cache was not coherent with the file system buffer cache
30534 like early versions of FreeBSD and possibly contemporary NetBSD.)
30535 For shared mappings, we should conversely verify that changes get
30536 propagated back to all the places they're supposed to be.
30537
30538 Grep wants private fixed already mapped.
30539 The main things grep needs to know about mmap are:
30540 * does it exist and is it safe to write into the mmap'd area
30541 * how to use it (BSD variants) */
30542
30543#include <fcntl.h>
30544#include <sys/mman.h>
30545
30546#if !STDC_HEADERS && !HAVE_STDLIB_H
30547char *malloc ();
30548#endif
30549
30550/* This mess was copied from the GNU getpagesize.h. */
30551#if !HAVE_GETPAGESIZE
30552/* Assume that all systems that can run configure have sys/param.h. */
30553# if !HAVE_SYS_PARAM_H
30554# define HAVE_SYS_PARAM_H 1
30555# endif
30556
30557# ifdef _SC_PAGESIZE
30558# define getpagesize() sysconf(_SC_PAGESIZE)
30559# else /* no _SC_PAGESIZE */
30560# if HAVE_SYS_PARAM_H
30561# include <sys/param.h>
30562# ifdef EXEC_PAGESIZE
30563# define getpagesize() EXEC_PAGESIZE
30564# else /* no EXEC_PAGESIZE */
30565# ifdef NBPG
30566# define getpagesize() NBPG * CLSIZE
30567# ifndef CLSIZE
30568# define CLSIZE 1
30569# endif /* no CLSIZE */
30570# else /* no NBPG */
30571# ifdef NBPC
30572# define getpagesize() NBPC
30573# else /* no NBPC */
30574# ifdef PAGESIZE
30575# define getpagesize() PAGESIZE
30576# endif /* PAGESIZE */
30577# endif /* no NBPC */
30578# endif /* no NBPG */
30579# endif /* no EXEC_PAGESIZE */
30580# else /* no HAVE_SYS_PARAM_H */
30581# define getpagesize() 8192 /* punt totally */
30582# endif /* no HAVE_SYS_PARAM_H */
30583# endif /* no _SC_PAGESIZE */
30584
30585#endif /* no HAVE_GETPAGESIZE */
30586
30587int
30588main ()
30589{
30590 char *data, *data2, *data3;
30591 int i, pagesize;
30592 int fd;
30593
30594 pagesize = getpagesize ();
30595
30596 /* First, make a file with some known garbage in it. */
30597 data = (char *) malloc (pagesize);
30598 if (!data)
30599 exit (1);
30600 for (i = 0; i < pagesize; ++i)
30601 *(data + i) = rand ();
30602 umask (0);
30603 fd = creat ("conftest.mmap", 0600);
30604 if (fd < 0)
30605 exit (1);
30606 if (write (fd, data, pagesize) != pagesize)
30607 exit (1);
30608 close (fd);
30609
30610 /* Next, try to mmap the file at a fixed address which already has
30611 something else allocated at it. If we can, also make sure that
30612 we see the same garbage. */
30613 fd = open ("conftest.mmap", O_RDWR);
30614 if (fd < 0)
30615 exit (1);
30616 data2 = (char *) malloc (2 * pagesize);
30617 if (!data2)
30618 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030619 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030622 exit (1);
30623 for (i = 0; i < pagesize; ++i)
30624 if (*(data + i) != *(data2 + i))
30625 exit (1);
30626
30627 /* Finally, make sure that changes to the mapped area do not
30628 percolate back to the file as seen by read(). (This is a bug on
30629 some variants of i386 svr4.0.) */
30630 for (i = 0; i < pagesize; ++i)
30631 *(data2 + i) = *(data2 + i) + 1;
30632 data3 = (char *) malloc (pagesize);
30633 if (!data3)
30634 exit (1);
30635 if (read (fd, data3, pagesize) != pagesize)
30636 exit (1);
30637 for (i = 0; i < pagesize; ++i)
30638 if (*(data + i) != *(data3 + i))
30639 exit (1);
30640 close (fd);
30641 exit (0);
30642}
30643_ACEOF
30644rm -f conftest$ac_exeext
30645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>&5
30647 ac_status=$?
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; }; then
30655 ac_cv_func_mmap_fixed_mapped=yes
30656else
30657 echo "$as_me: program exited with status $ac_status" >&5
30658echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030659sed 's/^/| /' conftest.$ac_ext >&5
30660
John Criswell7a73b802003-06-30 21:59:07 +000030661( exit $ac_status )
30662ac_cv_func_mmap_fixed_mapped=no
30663fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030664rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030665fi
30666fi
30667echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30668echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30669if test $ac_cv_func_mmap_fixed_mapped = yes; then
30670
30671cat >>confdefs.h <<\_ACEOF
30672#define HAVE_MMAP 1
30673_ACEOF
30674
30675fi
30676rm -f conftest.mmap
30677
30678echo "$as_me:$LINENO: checking for mmap of files" >&5
30679echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30680if test "${ac_cv_func_mmap_file+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30682else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030683 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030684ac_cpp='$CPP $CPPFLAGS'
30685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30687ac_compiler_gnu=$ac_cv_c_compiler_gnu
30688
30689 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030690 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030691else
30692 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030693
Reid Spencer777ce172004-09-20 04:09:56 +000030694 /* confdefs.h. */
30695_ACEOF
30696cat confdefs.h >>conftest.$ac_ext
30697cat >>conftest.$ac_ext <<_ACEOF
30698/* end confdefs.h. */
30699
John Criswell7a73b802003-06-30 21:59:07 +000030700#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030701#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030702#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030703
30704int
30705main ()
30706{
John Criswell7a73b802003-06-30 21:59:07 +000030707
30708 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030709 fd = creat ("foo",0777);
30710 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30711 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030712 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030713 ;
30714 return 0;
30715}
John Criswell7a73b802003-06-30 21:59:07 +000030716_ACEOF
30717rm -f conftest$ac_exeext
30718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30719 (eval $ac_link) 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 ac_cv_func_mmap_file=yes
30729else
30730 echo "$as_me: program exited with status $ac_status" >&5
30731echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030732sed 's/^/| /' conftest.$ac_ext >&5
30733
John Criswell7a73b802003-06-30 21:59:07 +000030734( exit $ac_status )
30735ac_cv_func_mmap_file=no
30736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030738fi
30739 ac_ext=c
30740ac_cpp='$CPP $CPPFLAGS'
30741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30743ac_compiler_gnu=$ac_cv_c_compiler_gnu
30744
30745
30746fi
30747echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30748echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30749if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030750
30751cat >>confdefs.h <<\_ACEOF
30752#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030753_ACEOF
30754
30755 MMAP_FILE=yes
30756
30757fi
30758
Reid Spencer7931a782004-12-27 06:15:02 +000030759echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30760echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30761if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30762 echo $ECHO_N "(cached) $ECHO_C" >&6
30763else
Reid Spencer582a23c2004-12-29 07:07:57 +000030764 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030765 ac_cv_need_dev_zero_for_mmap=yes
30766 else
30767 ac_cv_need_dev_zero_for_mmap=no
30768 fi
30769
30770fi
30771echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30772echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30773if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30774
30775cat >>confdefs.h <<\_ACEOF
30776#define NEED_DEV_ZERO_FOR_MMAP 1
30777_ACEOF
30778
30779fi
John Criswell7a73b802003-06-30 21:59:07 +000030780echo "$as_me:$LINENO: checking for mprotect" >&5
30781echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30782if test "${ac_cv_func_mprotect+set}" = set; then
30783 echo $ECHO_N "(cached) $ECHO_C" >&6
30784else
30785 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030786/* confdefs.h. */
30787_ACEOF
30788cat confdefs.h >>conftest.$ac_ext
30789cat >>conftest.$ac_ext <<_ACEOF
30790/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030791/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30793#define mprotect innocuous_mprotect
30794
John Criswell7a73b802003-06-30 21:59:07 +000030795/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030796 which can conflict with char mprotect (); below.
30797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030799
John Criswell0c38eaf2003-09-10 15:17:25 +000030800#ifdef __STDC__
30801# include <limits.h>
30802#else
30803# include <assert.h>
30804#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030805
30806#undef mprotect
30807
John Criswell7a73b802003-06-30 21:59:07 +000030808/* Override any gcc2 internal prototype to avoid an error. */
30809#ifdef __cplusplus
30810extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030811{
John Criswell7a73b802003-06-30 21:59:07 +000030812#endif
30813/* We use char because int might match the return type of a gcc2
30814 builtin and then its argument prototype would still apply. */
30815char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030816/* The GNU C library defines this for functions which it implements
30817 to always fail with ENOSYS. Some functions are actually named
30818 something starting with __ and the normal name is an alias. */
30819#if defined (__stub_mprotect) || defined (__stub___mprotect)
30820choke me
30821#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030822char (*f) () = mprotect;
30823#endif
30824#ifdef __cplusplus
30825}
John Criswell7a73b802003-06-30 21:59:07 +000030826#endif
30827
John Criswell0c38eaf2003-09-10 15:17:25 +000030828int
30829main ()
30830{
30831return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030832 ;
30833 return 0;
30834}
30835_ACEOF
30836rm -f conftest.$ac_objext conftest$ac_exeext
30837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030838 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030840 grep -v '^ *+' conftest.er1 >conftest.err
30841 rm -f conftest.er1
30842 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030845 { ac_try='test -z "$ac_c_werror_flag"
30846 || test ! -s conftest.err'
30847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848 (eval $ac_try) 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; } &&
30852 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854 (eval $ac_try) 2>&5
30855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 ac_cv_func_mprotect=yes
30859else
30860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030861sed 's/^/| /' conftest.$ac_ext >&5
30862
John Criswell7a73b802003-06-30 21:59:07 +000030863ac_cv_func_mprotect=no
30864fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030865rm -f conftest.err conftest.$ac_objext \
30866 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030867fi
30868echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30869echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30870if test $ac_cv_func_mprotect = yes; then
30871 :
30872else
30873 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30874echo "$as_me: error: Function mprotect() required but not found" >&2;}
30875 { (exit 1); exit 1; }; }
30876fi
30877
30878
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030879if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030880then
Reid Spencer582a23c2004-12-29 07:07:57 +000030881 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30882echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030883fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030884if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030885then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030886 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30887echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030888fi
John Criswell7a73b802003-06-30 21:59:07 +000030889
30890
Brian Gaekef3b24102003-11-16 18:38:14 +000030891echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30892echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030893if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30894 echo $ECHO_N "(cached) $ECHO_C" >&6
30895else
30896 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030897if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030898 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000030899 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030900 if test $? -eq 0 ; then
30901 llvm_cv_llvmgcc_sanity="yes"
30902 fi
30903 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030904fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030905fi
30906echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30907echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30908
30909if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030910 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030911 LLVMCC1=$llvmcc1path
30912
Reid Spencer502935f2004-12-22 05:56:56 +000030913 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030914 LLVMCC1PLUS=$llvmcc1pluspath
30915
Reid Spencer502935f2004-12-22 05:56:56 +000030916 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30917 LLVMGCCDIR=$llvmgccdir
30918
Reid Spencerb5d75b82006-05-09 00:31:01 +000030919 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000030920 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30921 LLVMGCC_VERSION=$llvmgccversion
30922
30923 LLVMGCC_MAJVERS=$llvmgccmajvers
30924
Brian Gaekef3b24102003-11-16 18:38:14 +000030925fi
30926
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030927SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030928
30929
Reid Spencere9de0912004-08-20 09:03:57 +000030930# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030931# information into substitutions that will end up in Makefile.config.in
30932# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000030933if test "${prefix}" == "NONE" ; then
30934 prefix="/usr/local"
30935fi
Reid Spencere9de0912004-08-20 09:03:57 +000030936eval LLVM_PREFIX="${prefix}";
30937eval LLVM_BINDIR="${prefix}/bin";
30938eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030939eval LLVM_DATADIR="${prefix}/share/llvm";
30940eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30941eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030942eval LLVM_INCLUDEDIR="${prefix}/include";
30943eval LLVM_INFODIR="${prefix}/info";
30944eval LLVM_MANDIR="${prefix}/man";
30945LLVM_CONFIGTIME=`date`
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030957# Place the various directores into the config.h file as #defines so that we
30958# can know about the installation paths within LLVM.
30959
Reid Spencere9de0912004-08-20 09:03:57 +000030960cat >>confdefs.h <<_ACEOF
30961#define LLVM_PREFIX "$LLVM_PREFIX"
30962_ACEOF
30963
30964
30965cat >>confdefs.h <<_ACEOF
30966#define LLVM_BINDIR "$LLVM_BINDIR"
30967_ACEOF
30968
30969
30970cat >>confdefs.h <<_ACEOF
30971#define LLVM_LIBDIR "$LLVM_LIBDIR"
30972_ACEOF
30973
30974
30975cat >>confdefs.h <<_ACEOF
30976#define LLVM_DATADIR "$LLVM_DATADIR"
30977_ACEOF
30978
30979
30980cat >>confdefs.h <<_ACEOF
30981#define LLVM_DATADIR "$LLVM_DOCSDIR"
30982_ACEOF
30983
30984
30985cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030986#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030987_ACEOF
30988
30989
30990cat >>confdefs.h <<_ACEOF
30991#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30992_ACEOF
30993
30994
30995cat >>confdefs.h <<_ACEOF
30996#define LLVM_INFODIR "$LLVM_INFODIR"
30997_ACEOF
30998
30999
31000cat >>confdefs.h <<_ACEOF
31001#define LLVM_MANDIR "$LLVM_MANDIR"
31002_ACEOF
31003
31004
31005cat >>confdefs.h <<_ACEOF
31006#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31007_ACEOF
31008
31009
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031010
31011 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31012
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031013 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31014
31015 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31016
31017 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31018
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031019 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31020
31021
31022 ac_config_files="$ac_config_files Makefile.config"
31023
31024
Reid Spencer1f319422004-11-29 04:56:35 +000031025 ac_config_files="$ac_config_files docs/doxygen.cfg"
31026
31027
Reid Spencere198afc2006-04-20 22:15:30 +000031028 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000031029
31030
Reid Spencerc0682832005-02-24 19:05:19 +000031031 ac_config_commands="$ac_config_commands setup"
31032
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031033 ac_config_commands="$ac_config_commands Makefile"
31034
31035
31036 ac_config_commands="$ac_config_commands Makefile.common"
31037
31038
31039 ac_config_commands="$ac_config_commands examples/Makefile"
31040
31041
31042 ac_config_commands="$ac_config_commands lib/Makefile"
31043
31044
31045 ac_config_commands="$ac_config_commands runtime/Makefile"
31046
31047
31048 ac_config_commands="$ac_config_commands test/Makefile"
31049
31050
31051 ac_config_commands="$ac_config_commands test/Makefile.tests"
31052
31053
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031054 ac_config_commands="$ac_config_commands tools/Makefile"
31055
31056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031057 ac_config_commands="$ac_config_commands utils/Makefile"
31058
31059
31060 ac_config_commands="$ac_config_commands projects/Makefile"
31061
31062
31063
John Criswell7a73b802003-06-30 21:59:07 +000031064cat >confcache <<\_ACEOF
31065# This file is a shell script that caches the results of configure
31066# tests run on this system so they can be shared between configure
31067# scripts and configure runs, see configure's option --config-cache.
31068# It is not useful on other systems. If it contains results you don't
31069# want to keep, you may remove or edit it.
31070#
31071# config.status only pays attention to the cache file if you give it
31072# the --recheck option to rerun configure.
31073#
John Criswell0c38eaf2003-09-10 15:17:25 +000031074# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000031075# loading this file, other *unset* `ac_cv_foo' will be assigned the
31076# following values.
31077
31078_ACEOF
31079
31080# The following way of writing the cache mishandles newlines in values,
31081# but we know of no workaround that is simple, portable, and efficient.
31082# So, don't put newlines in cache variables' values.
31083# Ultrix sh set writes to stderr and can't be redirected directly,
31084# and sets the high bit in the cache file unless we assign to the vars.
31085{
31086 (set) 2>&1 |
31087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31088 *ac_space=\ *)
31089 # `set' does not quote correctly, so add quotes (double-quote
31090 # substitution turns \\\\ into \\, and sed turns \\ into \).
31091 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031092 "s/'/'\\\\''/g;
31093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000031094 ;;
31095 *)
31096 # `set' quotes correctly as required by POSIX, so do not add quotes.
31097 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000031099 ;;
31100 esac;
31101} |
31102 sed '
31103 t clear
31104 : clear
31105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31106 t end
31107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31108 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000031109if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000031110 if test -w $cache_file; then
31111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31112 cat confcache >$cache_file
31113 else
31114 echo "not updating unwritable cache $cache_file"
31115 fi
31116fi
31117rm -f confcache
31118
31119test "x$prefix" = xNONE && prefix=$ac_default_prefix
31120# Let make expand exec_prefix.
31121test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31122
31123# VPATH may cause trouble with some makes, so we remove $(srcdir),
31124# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31125# trailing colons and then remove the whole line if VPATH becomes empty
31126# (actually we leave an empty line to preserve line numbers).
31127if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000031129s/:*\$(srcdir):*/:/;
31130s/:*\${srcdir}:*/:/;
31131s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031132s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000031133s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000031134s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000031135}'
31136fi
31137
31138DEFS=-DHAVE_CONFIG_H
31139
John Criswell0c38eaf2003-09-10 15:17:25 +000031140ac_libobjs=
31141ac_ltlibobjs=
31142for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31143 # 1. Remove the extension, and $U if already installed.
31144 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031146 # 2. Add them.
31147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31149done
31150LIBOBJS=$ac_libobjs
31151
31152LTLIBOBJS=$ac_ltlibobjs
31153
31154
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031155if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31156 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31157Usually this means the macro was only invoked conditionally." >&5
31158echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31159Usually this means the macro was only invoked conditionally." >&2;}
31160 { (exit 1); exit 1; }; }
31161fi
31162if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31163 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31164Usually this means the macro was only invoked conditionally." >&5
31165echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31166Usually this means the macro was only invoked conditionally." >&2;}
31167 { (exit 1); exit 1; }; }
31168fi
John Criswell7a73b802003-06-30 21:59:07 +000031169
31170: ${CONFIG_STATUS=./config.status}
31171ac_clean_files_save=$ac_clean_files
31172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31174echo "$as_me: creating $CONFIG_STATUS" >&6;}
31175cat >$CONFIG_STATUS <<_ACEOF
31176#! $SHELL
31177# Generated by $as_me.
31178# Run this file to recreate the current configuration.
31179# Compiler output produced by configure, useful for debugging
31180# configure, is in config.log if it exists.
31181
31182debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000031183ac_cs_recheck=false
31184ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000031185SHELL=\${CONFIG_SHELL-$SHELL}
31186_ACEOF
31187
31188cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031189## --------------------- ##
31190## M4sh Initialization. ##
31191## --------------------- ##
31192
31193# Be Bourne compatible
31194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31195 emulate sh
31196 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31198 # is contrary to our usage. Disable this feature.
31199 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000031200elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31201 set -o posix
31202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000031203DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000031204
John Criswell7a73b802003-06-30 21:59:07 +000031205# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031206if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031207 as_unset=unset
31208else
31209 as_unset=false
31210fi
31211
John Criswell0c38eaf2003-09-10 15:17:25 +000031212
31213# Work around bugs in pre-3.0 UWIN ksh.
31214$as_unset ENV MAIL MAILPATH
31215PS1='$ '
31216PS2='> '
31217PS4='+ '
31218
31219# NLS nuisances.
31220for as_var in \
31221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31223 LC_TELEPHONE LC_TIME
31224do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031226 eval $as_var=C; export $as_var
31227 else
31228 $as_unset $as_var
31229 fi
31230done
31231
31232# Required to use basename.
31233if expr a : '\(a\)' >/dev/null 2>&1; then
31234 as_expr=expr
31235else
31236 as_expr=false
31237fi
31238
31239if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31240 as_basename=basename
31241else
31242 as_basename=false
31243fi
John Criswell7a73b802003-06-30 21:59:07 +000031244
31245
31246# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031247as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31249 X"$0" : 'X\(//\)$' \| \
31250 X"$0" : 'X\(/\)$' \| \
31251 . : '\(.\)' 2>/dev/null ||
31252echo X/"$0" |
31253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31254 /^X\/\(\/\/\)$/{ s//\1/; q; }
31255 /^X\/\(\/\).*/{ s//\1/; q; }
31256 s/.*/./; q'`
31257
John Criswell0c38eaf2003-09-10 15:17:25 +000031258
John Criswell7a73b802003-06-30 21:59:07 +000031259# PATH needs CR, and LINENO needs CR and PATH.
31260# Avoid depending upon Character Ranges.
31261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31264as_cr_digits='0123456789'
31265as_cr_alnum=$as_cr_Letters$as_cr_digits
31266
31267# The user is always right.
31268if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031269 echo "#! /bin/sh" >conf$$.sh
31270 echo "exit 0" >>conf$$.sh
31271 chmod +x conf$$.sh
31272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031273 PATH_SEPARATOR=';'
31274 else
31275 PATH_SEPARATOR=:
31276 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031277 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031278fi
31279
31280
31281 as_lineno_1=$LINENO
31282 as_lineno_2=$LINENO
31283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31284 test "x$as_lineno_1" != "x$as_lineno_2" &&
31285 test "x$as_lineno_3" = "x$as_lineno_2" || {
31286 # Find who we are. Look in the path if we contain no path at all
31287 # relative or not.
31288 case $0 in
31289 *[\\/]* ) as_myself=$0 ;;
31290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31291for as_dir in $PATH
31292do
31293 IFS=$as_save_IFS
31294 test -z "$as_dir" && as_dir=.
31295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31296done
31297
31298 ;;
31299 esac
31300 # We did not find ourselves, most probably we were run as `sh COMMAND'
31301 # in which case we are not to be found in the path.
31302 if test "x$as_myself" = x; then
31303 as_myself=$0
31304 fi
31305 if test ! -f "$as_myself"; then
31306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31307echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31308 { (exit 1); exit 1; }; }
31309 fi
31310 case $CONFIG_SHELL in
31311 '')
31312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31314do
31315 IFS=$as_save_IFS
31316 test -z "$as_dir" && as_dir=.
31317 for as_base in sh bash ksh sh5; do
31318 case $as_dir in
31319 /*)
31320 if ("$as_dir/$as_base" -c '
31321 as_lineno_1=$LINENO
31322 as_lineno_2=$LINENO
31323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31324 test "x$as_lineno_1" != "x$as_lineno_2" &&
31325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031328 CONFIG_SHELL=$as_dir/$as_base
31329 export CONFIG_SHELL
31330 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31331 fi;;
31332 esac
31333 done
31334done
31335;;
31336 esac
31337
31338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31339 # uniformly replaced by the line number. The first 'sed' inserts a
31340 # line-number line before each line; the second 'sed' does the real
31341 # work. The second script uses 'N' to pair each line-number line
31342 # with the numbered line, and appends trailing '-' during
31343 # substitution so that $LINENO is not a special case at line end.
31344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31346 sed '=' <$as_myself |
31347 sed '
31348 N
31349 s,$,-,
31350 : loop
31351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31352 t loop
31353 s,-$,,
31354 s,^['$as_cr_digits']*\n,,
31355 ' >$as_me.lineno &&
31356 chmod +x $as_me.lineno ||
31357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31358echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31359 { (exit 1); exit 1; }; }
31360
31361 # Don't try to exec as it changes $[0], causing all sort of problems
31362 # (the dirname of $[0] is not the place where we might find the
31363 # original and so on. Autoconf is especially sensible to this).
31364 . ./$as_me.lineno
31365 # Exit status is that of the last command.
31366 exit
31367}
31368
31369
31370case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31371 *c*,-n*) ECHO_N= ECHO_C='
31372' ECHO_T=' ' ;;
31373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31375esac
31376
31377if expr a : '\(a\)' >/dev/null 2>&1; then
31378 as_expr=expr
31379else
31380 as_expr=false
31381fi
31382
31383rm -f conf$$ conf$$.exe conf$$.file
31384echo >conf$$.file
31385if ln -s conf$$.file conf$$ 2>/dev/null; then
31386 # We could just check for DJGPP; but this test a) works b) is more generic
31387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31388 if test -f conf$$.exe; then
31389 # Don't use ln at all; we don't have any links
31390 as_ln_s='cp -p'
31391 else
31392 as_ln_s='ln -s'
31393 fi
31394elif ln conf$$.file conf$$ 2>/dev/null; then
31395 as_ln_s=ln
31396else
31397 as_ln_s='cp -p'
31398fi
31399rm -f conf$$ conf$$.exe conf$$.file
31400
John Criswell0c38eaf2003-09-10 15:17:25 +000031401if mkdir -p . 2>/dev/null; then
31402 as_mkdir_p=:
31403else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031404 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031405 as_mkdir_p=false
31406fi
31407
John Criswell7a73b802003-06-30 21:59:07 +000031408as_executable_p="test -f"
31409
31410# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031412
31413# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031415
31416
31417# IFS
31418# We need space, tab and new line, in precisely that order.
31419as_nl='
31420'
31421IFS=" $as_nl"
31422
31423# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031424$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031425
31426exec 6>&1
31427
31428# Open the log real soon, to keep \$[0] and so on meaningful, and to
31429# report actual input values of CONFIG_FILES etc. instead of their
31430# values after options handling. Logging --version etc. is OK.
31431exec 5>>config.log
31432{
31433 echo
31434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31435## Running $as_me. ##
31436_ASBOX
31437} >&5
31438cat >&5 <<_CSEOF
31439
Reid Spencer57d37252006-04-14 03:01:27 +000031440This file was extended by llvm $as_me 1.8cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031441generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031442
31443 CONFIG_FILES = $CONFIG_FILES
31444 CONFIG_HEADERS = $CONFIG_HEADERS
31445 CONFIG_LINKS = $CONFIG_LINKS
31446 CONFIG_COMMANDS = $CONFIG_COMMANDS
31447 $ $0 $@
31448
31449_CSEOF
31450echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31451echo >&5
31452_ACEOF
31453
31454# Files that config.status was made for.
31455if test -n "$ac_config_files"; then
31456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31457fi
31458
31459if test -n "$ac_config_headers"; then
31460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31461fi
31462
31463if test -n "$ac_config_links"; then
31464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31465fi
31466
31467if test -n "$ac_config_commands"; then
31468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31469fi
31470
31471cat >>$CONFIG_STATUS <<\_ACEOF
31472
31473ac_cs_usage="\
31474\`$as_me' instantiates files from templates according to the
31475current configuration.
31476
31477Usage: $0 [OPTIONS] [FILE]...
31478
31479 -h, --help print this help, then exit
31480 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031481 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031482 -d, --debug don't remove temporary files
31483 --recheck update $as_me by reconfiguring in the same conditions
31484 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031485 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031486 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031487 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031488
31489Configuration files:
31490$config_files
31491
31492Configuration headers:
31493$config_headers
31494
John Criswellc764fbc2003-09-06 15:17:13 +000031495Configuration commands:
31496$config_commands
31497
John Criswell7a73b802003-06-30 21:59:07 +000031498Report bugs to <bug-autoconf@gnu.org>."
31499_ACEOF
31500
31501cat >>$CONFIG_STATUS <<_ACEOF
31502ac_cs_version="\\
Reid Spencer57d37252006-04-14 03:01:27 +000031503llvm config.status 1.8cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031504configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031505 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31506
Reid Spencer2706f8c2004-09-19 23:53:36 +000031507Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031508This config.status script is free software; the Free Software Foundation
31509gives unlimited permission to copy, distribute and modify it."
31510srcdir=$srcdir
31511INSTALL="$INSTALL"
31512_ACEOF
31513
31514cat >>$CONFIG_STATUS <<\_ACEOF
31515# If no file are specified by the user, then we need to provide default
31516# value. By we need to know if files were specified by the user.
31517ac_need_defaults=:
31518while test $# != 0
31519do
31520 case $1 in
31521 --*=*)
31522 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31523 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031524 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031525 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031526 -*)
31527 ac_option=$1
31528 ac_optarg=$2
31529 ac_shift=shift
31530 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031531 *) # This is not an option, so the user has probably given explicit
31532 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031533 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031534 ac_need_defaults=false;;
31535 esac
31536
John Criswell0c38eaf2003-09-10 15:17:25 +000031537 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031538 # Handling of the options.
31539_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031540cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31542 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031543 --version | --vers* | -V )
31544 echo "$ac_cs_version"; exit 0 ;;
31545 --he | --h)
31546 # Conflict between --help and --header
31547 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31548Try \`$0 --help' for more information." >&5
31549echo "$as_me: error: ambiguous option: $1
31550Try \`$0 --help' for more information." >&2;}
31551 { (exit 1); exit 1; }; };;
31552 --help | --hel | -h )
31553 echo "$ac_cs_usage"; exit 0 ;;
31554 --debug | --d* | -d )
31555 debug=: ;;
31556 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031557 $ac_shift
31558 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031559 ac_need_defaults=false;;
31560 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031561 $ac_shift
31562 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031563 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31566 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031567
31568 # This is an error.
31569 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31570Try \`$0 --help' for more information." >&5
31571echo "$as_me: error: unrecognized option: $1
31572Try \`$0 --help' for more information." >&2;}
31573 { (exit 1); exit 1; }; } ;;
31574
31575 *) ac_config_targets="$ac_config_targets $1" ;;
31576
31577 esac
31578 shift
31579done
31580
John Criswell0c38eaf2003-09-10 15:17:25 +000031581ac_configure_extra_args=
31582
31583if $ac_cs_silent; then
31584 exec 6>/dev/null
31585 ac_configure_extra_args="$ac_configure_extra_args --silent"
31586fi
31587
31588_ACEOF
31589cat >>$CONFIG_STATUS <<_ACEOF
31590if \$ac_cs_recheck; then
31591 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31592 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31593fi
31594
John Criswell7a73b802003-06-30 21:59:07 +000031595_ACEOF
31596
John Criswellc764fbc2003-09-06 15:17:13 +000031597cat >>$CONFIG_STATUS <<_ACEOF
31598#
31599# INIT-COMMANDS section.
31600#
John Criswell7a73b802003-06-30 21:59:07 +000031601
Reid Spencerc0682832005-02-24 19:05:19 +000031602llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031603
31604_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031605
31606
31607
31608cat >>$CONFIG_STATUS <<\_ACEOF
31609for ac_config_target in $ac_config_targets
31610do
31611 case "$ac_config_target" in
31612 # Handling of arguments.
31613 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031614 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencere198afc2006-04-20 22:15:30 +000031615 "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031616 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031617 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31618 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031619 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031620 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031621 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031622 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31623 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031624 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031625 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031626 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031627 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031628 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031629 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31630 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031631 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31633echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31634 { (exit 1); exit 1; }; };;
31635 esac
31636done
31637
31638# If the user did not use the arguments to specify the items to instantiate,
31639# then the envvar interface is used. Set only those that are not.
31640# We use the long form for the default assignment because of an extremely
31641# bizarre bug on SunOS 4.1.3.
31642if $ac_need_defaults; then
31643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031645 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031646fi
31647
John Criswell0c38eaf2003-09-10 15:17:25 +000031648# Have a temporary directory for convenience. Make it in the build tree
31649# simply because there is no reason to put it here, and in addition,
31650# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031651# Create a temporary directory, and hook for its removal unless debugging.
31652$debug ||
31653{
31654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31655 trap '{ (exit 1); exit 1; }' 1 2 13 15
31656}
31657
31658# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031659
John Criswell7a73b802003-06-30 21:59:07 +000031660{
John Criswell0c38eaf2003-09-10 15:17:25 +000031661 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031662 test -n "$tmp" && test -d "$tmp"
31663} ||
31664{
John Criswell0c38eaf2003-09-10 15:17:25 +000031665 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031666 (umask 077 && mkdir $tmp)
31667} ||
31668{
John Criswell0c38eaf2003-09-10 15:17:25 +000031669 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031670 { (exit 1); exit 1; }
31671}
31672
31673_ACEOF
31674
31675cat >>$CONFIG_STATUS <<_ACEOF
31676
31677#
31678# CONFIG_FILES section.
31679#
31680
31681# No need to generate the scripts if there are no CONFIG_FILES.
31682# This happens for instance when ./config.status config.h
31683if test -n "\$CONFIG_FILES"; then
31684 # Protect against being on the right side of a sed subst in config.status.
31685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31687s,@SHELL@,$SHELL,;t t
31688s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31689s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31690s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31691s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31692s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31693s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31694s,@exec_prefix@,$exec_prefix,;t t
31695s,@prefix@,$prefix,;t t
31696s,@program_transform_name@,$program_transform_name,;t t
31697s,@bindir@,$bindir,;t t
31698s,@sbindir@,$sbindir,;t t
31699s,@libexecdir@,$libexecdir,;t t
31700s,@datadir@,$datadir,;t t
31701s,@sysconfdir@,$sysconfdir,;t t
31702s,@sharedstatedir@,$sharedstatedir,;t t
31703s,@localstatedir@,$localstatedir,;t t
31704s,@libdir@,$libdir,;t t
31705s,@includedir@,$includedir,;t t
31706s,@oldincludedir@,$oldincludedir,;t t
31707s,@infodir@,$infodir,;t t
31708s,@mandir@,$mandir,;t t
31709s,@build_alias@,$build_alias,;t t
31710s,@host_alias@,$host_alias,;t t
31711s,@target_alias@,$target_alias,;t t
31712s,@DEFS@,$DEFS,;t t
31713s,@ECHO_C@,$ECHO_C,;t t
31714s,@ECHO_N@,$ECHO_N,;t t
31715s,@ECHO_T@,$ECHO_T,;t t
31716s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031717s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031718s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031719s,@build@,$build,;t t
31720s,@build_cpu@,$build_cpu,;t t
31721s,@build_vendor@,$build_vendor,;t t
31722s,@build_os@,$build_os,;t t
31723s,@host@,$host,;t t
31724s,@host_cpu@,$host_cpu,;t t
31725s,@host_vendor@,$host_vendor,;t t
31726s,@host_os@,$host_os,;t t
31727s,@target@,$target,;t t
31728s,@target_cpu@,$target_cpu,;t t
31729s,@target_vendor@,$target_vendor,;t t
31730s,@target_os@,$target_os,;t t
31731s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031732s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31733s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031734s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031735s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031736s,@CC@,$CC,;t t
31737s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031738s,@LDFLAGS@,$LDFLAGS,;t t
31739s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031740s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031741s,@EXEEXT@,$EXEEXT,;t t
31742s,@OBJEXT@,$OBJEXT,;t t
Reid Spencer54d14482006-04-07 16:01:51 +000031743s,@CVSBUILD@,$CVSBUILD,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031744s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencerc28ccd82006-04-09 20:42:14 +000031745s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031746s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031747s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031748s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031749s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031750s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031751s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031752s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753s,@CXX@,$CXX,;t t
31754s,@CXXFLAGS@,$CXXFLAGS,;t t
31755s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031756s,@LEX@,$LEX,;t t
31757s,@LEXLIB@,$LEXLIB,;t t
31758s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031759s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031760s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031761s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031762s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031763s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031764s,@CMP@,$CMP,;t t
31765s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031766s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767s,@FIND@,$FIND,;t t
31768s,@GREP@,$GREP,;t t
31769s,@MKDIR@,$MKDIR,;t t
31770s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031771s,@RANLIB@,$RANLIB,;t t
31772s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031773s,@RM@,$RM,;t t
31774s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031775s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031776s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031777s,@GV@,$GV,;t t
Reid Spencerecbd2422006-06-02 23:13:18 +000031778s,@DOTTY@,$DOTTY,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031779s,@PERL@,$PERL,;t t
31780s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031781s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31782s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31783s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031784s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031785s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031786s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031787s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031788s,@GROFF@,$GROFF,;t t
31789s,@GZIP@,$GZIP,;t t
31790s,@POD2HTML@,$POD2HTML,;t t
31791s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031792s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031793s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031794s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031795s,@EGREP@,$EGREP,;t t
31796s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31797s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31798s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31799s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31800s,@LIBADD_DL@,$LIBADD_DL,;t t
31801s,@ECHO@,$ECHO,;t t
31802s,@AR@,$AR,;t t
31803s,@ac_ct_AR@,$ac_ct_AR,;t t
31804s,@STRIP@,$STRIP,;t t
31805s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31806s,@CXXCPP@,$CXXCPP,;t t
31807s,@F77@,$F77,;t t
31808s,@FFLAGS@,$FFLAGS,;t t
31809s,@ac_ct_F77@,$ac_ct_F77,;t t
31810s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031811s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031812s,@LLVMGCC@,$LLVMGCC,;t t
31813s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031814s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031815s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031816s,@LLVMCC1@,$LLVMCC1,;t t
31817s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031818s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031819s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31820s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031821s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031822s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31823s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31824s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31825s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31826s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31827s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31828s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31829s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31830s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31831s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031832s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031833s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031834CEOF
31835
31836_ACEOF
31837
31838 cat >>$CONFIG_STATUS <<\_ACEOF
31839 # Split the substitutions into bite-sized pieces for seds with
31840 # small command number limits, like on Digital OSF/1 and HP-UX.
31841 ac_max_sed_lines=48
31842 ac_sed_frag=1 # Number of current file.
31843 ac_beg=1 # First line for current file.
31844 ac_end=$ac_max_sed_lines # Line after last line for current file.
31845 ac_more_lines=:
31846 ac_sed_cmds=
31847 while $ac_more_lines; do
31848 if test $ac_beg -gt 1; then
31849 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31850 else
31851 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31852 fi
31853 if test ! -s $tmp/subs.frag; then
31854 ac_more_lines=false
31855 else
31856 # The purpose of the label and of the branching condition is to
31857 # speed up the sed processing (if there are no `@' at all, there
31858 # is no need to browse any of the substitutions).
31859 # These are the two extra sed commands mentioned above.
31860 (echo ':t
31861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31862 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031863 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031864 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031865 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031866 fi
31867 ac_sed_frag=`expr $ac_sed_frag + 1`
31868 ac_beg=$ac_end
31869 ac_end=`expr $ac_end + $ac_max_sed_lines`
31870 fi
31871 done
31872 if test -z "$ac_sed_cmds"; then
31873 ac_sed_cmds=cat
31874 fi
31875fi # test -n "$CONFIG_FILES"
31876
31877_ACEOF
31878cat >>$CONFIG_STATUS <<\_ACEOF
31879for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31881 case $ac_file in
31882 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031883 cat >$tmp/stdin
31884 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31885 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031886 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031888 * ) ac_file_in=$ac_file.in ;;
31889 esac
31890
31891 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31892 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031894 X"$ac_file" : 'X\(//\)[^/]' \| \
31895 X"$ac_file" : 'X\(//\)$' \| \
31896 X"$ac_file" : 'X\(/\)' \| \
31897 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031898echo X"$ac_file" |
31899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31901 /^X\(\/\/\)$/{ s//\1/; q; }
31902 /^X\(\/\).*/{ s//\1/; q; }
31903 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031904 { if $as_mkdir_p; then
31905 mkdir -p "$ac_dir"
31906 else
31907 as_dir="$ac_dir"
31908 as_dirs=
31909 while test ! -d "$as_dir"; do
31910 as_dirs="$as_dir $as_dirs"
31911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031913 X"$as_dir" : 'X\(//\)[^/]' \| \
31914 X"$as_dir" : 'X\(//\)$' \| \
31915 X"$as_dir" : 'X\(/\)' \| \
31916 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031917echo X"$as_dir" |
31918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31920 /^X\(\/\/\)$/{ s//\1/; q; }
31921 /^X\(\/\).*/{ s//\1/; q; }
31922 s/.*/./; q'`
31923 done
31924 test ! -n "$as_dirs" || mkdir $as_dirs
31925 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31926echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31927 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031928
31929 ac_builddir=.
31930
31931if test "$ac_dir" != .; then
31932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31933 # A "../" for each directory in $ac_dir_suffix.
31934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31935else
31936 ac_dir_suffix= ac_top_builddir=
31937fi
31938
31939case $srcdir in
31940 .) # No --srcdir option. We are building in place.
31941 ac_srcdir=.
31942 if test -z "$ac_top_builddir"; then
31943 ac_top_srcdir=.
31944 else
31945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31946 fi ;;
31947 [\\/]* | ?:[\\/]* ) # Absolute path.
31948 ac_srcdir=$srcdir$ac_dir_suffix;
31949 ac_top_srcdir=$srcdir ;;
31950 *) # Relative path.
31951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31953esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031954
31955# Do not use `cd foo && pwd` to compute absolute paths, because
31956# the directories may not exist.
31957case `pwd` in
31958.) ac_abs_builddir="$ac_dir";;
31959*)
31960 case "$ac_dir" in
31961 .) ac_abs_builddir=`pwd`;;
31962 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31963 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31964 esac;;
31965esac
31966case $ac_abs_builddir in
31967.) ac_abs_top_builddir=${ac_top_builddir}.;;
31968*)
31969 case ${ac_top_builddir}. in
31970 .) ac_abs_top_builddir=$ac_abs_builddir;;
31971 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31972 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31973 esac;;
31974esac
31975case $ac_abs_builddir in
31976.) ac_abs_srcdir=$ac_srcdir;;
31977*)
31978 case $ac_srcdir in
31979 .) ac_abs_srcdir=$ac_abs_builddir;;
31980 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31981 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31982 esac;;
31983esac
31984case $ac_abs_builddir in
31985.) ac_abs_top_srcdir=$ac_top_srcdir;;
31986*)
31987 case $ac_top_srcdir in
31988 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31989 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31990 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31991 esac;;
31992esac
John Criswell7a73b802003-06-30 21:59:07 +000031993
31994
31995 case $INSTALL in
31996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31997 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31998 esac
31999
32000 if test x"$ac_file" != x-; then
32001 { echo "$as_me:$LINENO: creating $ac_file" >&5
32002echo "$as_me: creating $ac_file" >&6;}
32003 rm -f "$ac_file"
32004 fi
32005 # Let's still pretend it is `configure' which instantiates (i.e., don't
32006 # use $as_me), people would be surprised to read:
32007 # /* config.h. Generated by config.status. */
32008 if test x"$ac_file" = x-; then
32009 configure_input=
32010 else
32011 configure_input="$ac_file. "
32012 fi
32013 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000032014 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000032015
32016 # First look for the input files in the build tree, otherwise in the
32017 # src tree.
32018 ac_file_inputs=`IFS=:
32019 for f in $ac_file_in; do
32020 case $f in
32021 -) echo $tmp/stdin ;;
32022 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032023 # Absolute (can't be DOS-style, as IFS=:)
32024 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032025echo "$as_me: error: cannot find input file: $f" >&2;}
32026 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032027 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032028 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032029 if test -f "$f"; then
32030 # Build tree
32031 echo "$f"
32032 elif test -f "$srcdir/$f"; then
32033 # Source tree
32034 echo "$srcdir/$f"
32035 else
32036 # /dev/null tree
32037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032038echo "$as_me: error: cannot find input file: $f" >&2;}
32039 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032040 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032041 esac
32042 done` || { (exit 1); exit 1; }
32043_ACEOF
32044cat >>$CONFIG_STATUS <<_ACEOF
32045 sed "$ac_vpsub
32046$extrasub
32047_ACEOF
32048cat >>$CONFIG_STATUS <<\_ACEOF
32049:t
32050/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32051s,@configure_input@,$configure_input,;t t
32052s,@srcdir@,$ac_srcdir,;t t
32053s,@abs_srcdir@,$ac_abs_srcdir,;t t
32054s,@top_srcdir@,$ac_top_srcdir,;t t
32055s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32056s,@builddir@,$ac_builddir,;t t
32057s,@abs_builddir@,$ac_abs_builddir,;t t
32058s,@top_builddir@,$ac_top_builddir,;t t
32059s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32060s,@INSTALL@,$ac_INSTALL,;t t
32061" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32062 rm -f $tmp/stdin
32063 if test x"$ac_file" != x-; then
32064 mv $tmp/out $ac_file
32065 else
32066 cat $tmp/out
32067 rm -f $tmp/out
32068 fi
32069
32070done
32071_ACEOF
32072cat >>$CONFIG_STATUS <<\_ACEOF
32073
32074#
32075# CONFIG_HEADER section.
32076#
32077
32078# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32079# NAME is the cpp macro being defined and VALUE is the value it is being given.
32080#
32081# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032082ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32083ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000032084ac_dC=' '
32085ac_dD=',;t'
32086# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000032087ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000032088ac_uB='$,\1#\2define\3'
32089ac_uC=' '
32090ac_uD=',;t'
32091
32092for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32094 case $ac_file in
32095 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000032096 cat >$tmp/stdin
32097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000032101 * ) ac_file_in=$ac_file.in ;;
32102 esac
32103
32104 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32105echo "$as_me: creating $ac_file" >&6;}
32106
32107 # First look for the input files in the build tree, otherwise in the
32108 # src tree.
32109 ac_file_inputs=`IFS=:
32110 for f in $ac_file_in; do
32111 case $f in
32112 -) echo $tmp/stdin ;;
32113 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000032114 # Absolute (can't be DOS-style, as IFS=:)
32115 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032116echo "$as_me: error: cannot find input file: $f" >&2;}
32117 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032118 # Do quote $f, to prevent DOS paths from being IFS'd.
32119 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000032120 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000032121 if test -f "$f"; then
32122 # Build tree
32123 echo "$f"
32124 elif test -f "$srcdir/$f"; then
32125 # Source tree
32126 echo "$srcdir/$f"
32127 else
32128 # /dev/null tree
32129 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000032130echo "$as_me: error: cannot find input file: $f" >&2;}
32131 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000032132 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000032133 esac
32134 done` || { (exit 1); exit 1; }
32135 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032136 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000032137
32138_ACEOF
32139
32140# Transform confdefs.h into two sed scripts, `conftest.defines' and
32141# `conftest.undefs', that substitutes the proper values into
32142# config.h.in to produce config.h. The first handles `#define'
32143# templates, and the second `#undef' templates.
32144# And first: Protect against being on the right side of a sed subst in
32145# config.status. Protect against being in an unquoted here document
32146# in config.status.
32147rm -f conftest.defines conftest.undefs
32148# Using a here document instead of a string reduces the quoting nightmare.
32149# Putting comments in sed scripts is not portable.
32150#
32151# `end' is used to avoid that the second main sed command (meant for
32152# 0-ary CPP macros) applies to n-ary macro definitions.
32153# See the Autoconf documentation for `clear'.
32154cat >confdef2sed.sed <<\_ACEOF
32155s/[\\&,]/\\&/g
32156s,[\\$`],\\&,g
32157t clear
32158: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000032159s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032160t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000032161s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000032162: end
32163_ACEOF
32164# If some macros were called several times there might be several times
32165# the same #defines, which is useless. Nevertheless, we may not want to
32166# sort them, since we want the *last* AC-DEFINE to be honored.
32167uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32168sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32169rm -f confdef2sed.sed
32170
32171# This sed command replaces #undef with comments. This is necessary, for
32172# example, in the case of _POSIX_SOURCE, which is predefined and required
32173# on some systems where configure will not decide to define it.
32174cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032175s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000032176_ACEOF
32177
32178# Break up conftest.defines because some shells have a limit on the size
32179# of here documents, and old seds have small limits too (100 cmds).
32180echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000032181echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032182echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32183echo ' :' >>$CONFIG_STATUS
32184rm -f conftest.tail
32185while grep . conftest.defines >/dev/null
32186do
32187 # Write a limited-size here document to $tmp/defines.sed.
32188 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32189 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032190 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032191 # Work around the forget-to-reset-the-flag bug.
32192 echo 't clr' >>$CONFIG_STATUS
32193 echo ': clr' >>$CONFIG_STATUS
32194 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32195 echo 'CEOF
32196 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32197 rm -f $tmp/in
32198 mv $tmp/out $tmp/in
32199' >>$CONFIG_STATUS
32200 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32201 rm -f conftest.defines
32202 mv conftest.tail conftest.defines
32203done
32204rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000032205echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032206echo >>$CONFIG_STATUS
32207
32208# Break up conftest.undefs because some shells have a limit on the size
32209# of here documents, and old seds have small limits too (100 cmds).
32210echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32211rm -f conftest.tail
32212while grep . conftest.undefs >/dev/null
32213do
32214 # Write a limited-size here document to $tmp/undefs.sed.
32215 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32216 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000032217 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000032218 # Work around the forget-to-reset-the-flag bug.
32219 echo 't clr' >>$CONFIG_STATUS
32220 echo ': clr' >>$CONFIG_STATUS
32221 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32222 echo 'CEOF
32223 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32224 rm -f $tmp/in
32225 mv $tmp/out $tmp/in
32226' >>$CONFIG_STATUS
32227 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32228 rm -f conftest.undefs
32229 mv conftest.tail conftest.undefs
32230done
32231rm -f conftest.undefs
32232
32233cat >>$CONFIG_STATUS <<\_ACEOF
32234 # Let's still pretend it is `configure' which instantiates (i.e., don't
32235 # use $as_me), people would be surprised to read:
32236 # /* config.h. Generated by config.status. */
32237 if test x"$ac_file" = x-; then
32238 echo "/* Generated by configure. */" >$tmp/config.h
32239 else
32240 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32241 fi
32242 cat $tmp/in >>$tmp/config.h
32243 rm -f $tmp/in
32244 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032245 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032246 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32247echo "$as_me: $ac_file is unchanged" >&6;}
32248 else
32249 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32250$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032251 X"$ac_file" : 'X\(//\)[^/]' \| \
32252 X"$ac_file" : 'X\(//\)$' \| \
32253 X"$ac_file" : 'X\(/\)' \| \
32254 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032255echo X"$ac_file" |
32256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32258 /^X\(\/\/\)$/{ s//\1/; q; }
32259 /^X\(\/\).*/{ s//\1/; q; }
32260 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032261 { if $as_mkdir_p; then
32262 mkdir -p "$ac_dir"
32263 else
32264 as_dir="$ac_dir"
32265 as_dirs=
32266 while test ! -d "$as_dir"; do
32267 as_dirs="$as_dir $as_dirs"
32268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032270 X"$as_dir" : 'X\(//\)[^/]' \| \
32271 X"$as_dir" : 'X\(//\)$' \| \
32272 X"$as_dir" : 'X\(/\)' \| \
32273 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032274echo X"$as_dir" |
32275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32277 /^X\(\/\/\)$/{ s//\1/; q; }
32278 /^X\(\/\).*/{ s//\1/; q; }
32279 s/.*/./; q'`
32280 done
32281 test ! -n "$as_dirs" || mkdir $as_dirs
32282 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32283echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32284 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032285
32286 rm -f $ac_file
32287 mv $tmp/config.h $ac_file
32288 fi
32289 else
32290 cat $tmp/config.h
32291 rm -f $tmp/config.h
32292 fi
32293done
32294_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032295cat >>$CONFIG_STATUS <<\_ACEOF
32296
32297#
32298# CONFIG_COMMANDS section.
32299#
32300for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32301 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32302 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32303 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32304$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032305 X"$ac_dest" : 'X\(//\)[^/]' \| \
32306 X"$ac_dest" : 'X\(//\)$' \| \
32307 X"$ac_dest" : 'X\(/\)' \| \
32308 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032309echo X"$ac_dest" |
32310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32312 /^X\(\/\/\)$/{ s//\1/; q; }
32313 /^X\(\/\).*/{ s//\1/; q; }
32314 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032315 { if $as_mkdir_p; then
32316 mkdir -p "$ac_dir"
32317 else
32318 as_dir="$ac_dir"
32319 as_dirs=
32320 while test ! -d "$as_dir"; do
32321 as_dirs="$as_dir $as_dirs"
32322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32323$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32324 X"$as_dir" : 'X\(//\)[^/]' \| \
32325 X"$as_dir" : 'X\(//\)$' \| \
32326 X"$as_dir" : 'X\(/\)' \| \
32327 . : '\(.\)' 2>/dev/null ||
32328echo X"$as_dir" |
32329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32331 /^X\(\/\/\)$/{ s//\1/; q; }
32332 /^X\(\/\).*/{ s//\1/; q; }
32333 s/.*/./; q'`
32334 done
32335 test ! -n "$as_dirs" || mkdir $as_dirs
32336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32337echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32338 { (exit 1); exit 1; }; }; }
32339
John Criswellc764fbc2003-09-06 15:17:13 +000032340 ac_builddir=.
32341
32342if test "$ac_dir" != .; then
32343 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32344 # A "../" for each directory in $ac_dir_suffix.
32345 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32346else
32347 ac_dir_suffix= ac_top_builddir=
32348fi
32349
32350case $srcdir in
32351 .) # No --srcdir option. We are building in place.
32352 ac_srcdir=.
32353 if test -z "$ac_top_builddir"; then
32354 ac_top_srcdir=.
32355 else
32356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32357 fi ;;
32358 [\\/]* | ?:[\\/]* ) # Absolute path.
32359 ac_srcdir=$srcdir$ac_dir_suffix;
32360 ac_top_srcdir=$srcdir ;;
32361 *) # Relative path.
32362 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32363 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32364esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032365
32366# Do not use `cd foo && pwd` to compute absolute paths, because
32367# the directories may not exist.
32368case `pwd` in
32369.) ac_abs_builddir="$ac_dir";;
32370*)
32371 case "$ac_dir" in
32372 .) ac_abs_builddir=`pwd`;;
32373 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32374 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32375 esac;;
32376esac
32377case $ac_abs_builddir in
32378.) ac_abs_top_builddir=${ac_top_builddir}.;;
32379*)
32380 case ${ac_top_builddir}. in
32381 .) ac_abs_top_builddir=$ac_abs_builddir;;
32382 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32383 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32384 esac;;
32385esac
32386case $ac_abs_builddir in
32387.) ac_abs_srcdir=$ac_srcdir;;
32388*)
32389 case $ac_srcdir in
32390 .) ac_abs_srcdir=$ac_abs_builddir;;
32391 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32392 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32393 esac;;
32394esac
32395case $ac_abs_builddir in
32396.) ac_abs_top_srcdir=$ac_top_srcdir;;
32397*)
32398 case $ac_top_srcdir in
32399 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32400 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32401 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32402 esac;;
32403esac
John Criswellc764fbc2003-09-06 15:17:13 +000032404
32405
32406 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32407echo "$as_me: executing $ac_dest commands" >&6;}
32408 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032409 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32410 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32411 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32412 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32413 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32414 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32415 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32416 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32417 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32418 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32419 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32420 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32421 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32422 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32423 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32424 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32425 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32426 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32427 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32428 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032429 esac
32430done
32431_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032432
32433cat >>$CONFIG_STATUS <<\_ACEOF
32434
32435{ (exit 0); exit 0; }
32436_ACEOF
32437chmod +x $CONFIG_STATUS
32438ac_clean_files=$ac_clean_files_save
32439
32440
32441# configure is writing to config.log, and then calls config.status.
32442# config.status does its own redirection, appending to config.log.
32443# Unfortunately, on DOS this fails, as config.log is still kept open
32444# by configure, so config.status won't be able to write to it; its
32445# output is simply discarded. So we exec the FD to /dev/null,
32446# effectively closing config.log, so it can be properly (re)opened and
32447# appended to by config.status. When coming back to configure, we
32448# need to make the FD available again.
32449if test "$no_create" != yes; then
32450 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032451 ac_config_status_args=
32452 test "$silent" = yes &&
32453 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032454 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032456 exec 5>>config.log
32457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32458 # would make configure fail if this is the last instruction.
32459 $ac_cs_success || { (exit 1); exit 1; }
32460fi
32461
John Criswell12399a12003-09-30 15:55:44 +000032462#
32463# CONFIG_SUBDIRS section.
32464#
32465if test "$no_recursion" != yes; then
32466
32467 # Remove --cache-file and --srcdir arguments so they do not pile up.
32468 ac_sub_configure_args=
32469 ac_prev=
32470 for ac_arg in $ac_configure_args; do
32471 if test -n "$ac_prev"; then
32472 ac_prev=
32473 continue
32474 fi
32475 case $ac_arg in
32476 -cache-file | --cache-file | --cache-fil | --cache-fi \
32477 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32478 ac_prev=cache_file ;;
32479 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32480 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32481 | --c=*)
32482 ;;
32483 --config-cache | -C)
32484 ;;
32485 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32486 ac_prev=srcdir ;;
32487 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32488 ;;
32489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32490 ac_prev=prefix ;;
32491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32492 ;;
32493 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32494 esac
32495 done
32496
32497 # Always prepend --prefix to ensure using the same prefix
32498 # in subdir configurations.
32499 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32500
32501 ac_popdir=`pwd`
32502 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32503
32504 # Do not complain, so a configure script can configure whichever
32505 # parts of a large source tree are present.
32506 test -d $srcdir/$ac_dir || continue
32507
32508 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32509echo "$as_me: configuring in $ac_dir" >&6;}
32510 { if $as_mkdir_p; then
32511 mkdir -p "$ac_dir"
32512 else
32513 as_dir="$ac_dir"
32514 as_dirs=
32515 while test ! -d "$as_dir"; do
32516 as_dirs="$as_dir $as_dirs"
32517 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32518$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032519 X"$as_dir" : 'X\(//\)[^/]' \| \
32520 X"$as_dir" : 'X\(//\)$' \| \
32521 X"$as_dir" : 'X\(/\)' \| \
32522 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032523echo X"$as_dir" |
32524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32526 /^X\(\/\/\)$/{ s//\1/; q; }
32527 /^X\(\/\).*/{ s//\1/; q; }
32528 s/.*/./; q'`
32529 done
32530 test ! -n "$as_dirs" || mkdir $as_dirs
32531 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32532echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32533 { (exit 1); exit 1; }; }; }
32534
32535 ac_builddir=.
32536
32537if test "$ac_dir" != .; then
32538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32539 # A "../" for each directory in $ac_dir_suffix.
32540 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32541else
32542 ac_dir_suffix= ac_top_builddir=
32543fi
32544
32545case $srcdir in
32546 .) # No --srcdir option. We are building in place.
32547 ac_srcdir=.
32548 if test -z "$ac_top_builddir"; then
32549 ac_top_srcdir=.
32550 else
32551 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32552 fi ;;
32553 [\\/]* | ?:[\\/]* ) # Absolute path.
32554 ac_srcdir=$srcdir$ac_dir_suffix;
32555 ac_top_srcdir=$srcdir ;;
32556 *) # Relative path.
32557 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32558 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32559esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032560
32561# Do not use `cd foo && pwd` to compute absolute paths, because
32562# the directories may not exist.
32563case `pwd` in
32564.) ac_abs_builddir="$ac_dir";;
32565*)
32566 case "$ac_dir" in
32567 .) ac_abs_builddir=`pwd`;;
32568 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32569 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32570 esac;;
32571esac
32572case $ac_abs_builddir in
32573.) ac_abs_top_builddir=${ac_top_builddir}.;;
32574*)
32575 case ${ac_top_builddir}. in
32576 .) ac_abs_top_builddir=$ac_abs_builddir;;
32577 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32578 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32579 esac;;
32580esac
32581case $ac_abs_builddir in
32582.) ac_abs_srcdir=$ac_srcdir;;
32583*)
32584 case $ac_srcdir in
32585 .) ac_abs_srcdir=$ac_abs_builddir;;
32586 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32587 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32588 esac;;
32589esac
32590case $ac_abs_builddir in
32591.) ac_abs_top_srcdir=$ac_top_srcdir;;
32592*)
32593 case $ac_top_srcdir in
32594 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32595 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32596 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32597 esac;;
32598esac
John Criswell12399a12003-09-30 15:55:44 +000032599
32600
32601 cd $ac_dir
32602
32603 # Check for guested configure; otherwise get Cygnus style configure.
32604 if test -f $ac_srcdir/configure.gnu; then
32605 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32606 elif test -f $ac_srcdir/configure; then
32607 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32608 elif test -f $ac_srcdir/configure.in; then
32609 ac_sub_configure=$ac_configure
32610 else
32611 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32612echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32613 ac_sub_configure=
32614 fi
32615
32616 # The recursion is here.
32617 if test -n "$ac_sub_configure"; then
32618 # Make the cache file name correct relative to the subdirectory.
32619 case $cache_file in
32620 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32621 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032622 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032623 esac
32624
32625 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32626echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32627 # The eval makes quoting arguments work.
32628 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032629 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32630 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032631echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32632 { (exit 1); exit 1; }; }
32633 fi
32634
32635 cd $ac_popdir
32636 done
32637fi
32638
Brian Gaekef3b24102003-11-16 18:38:14 +000032639
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032640if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032641 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32642echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032643 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32644echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32645 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32646echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32647 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32648echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32649 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32650echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032651fi